mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
Document.views holds one view while the desktop app shows the document on its canvas: every document's while documents are under the tabs, and only the current document's while they are tiled or one floats in a window. Without a window (headless) it holds none. The view has typename, parent, bounds (the part of the document the canvas shows), centerPoint, zoom (1 is 100%, from 0.0313 to 640) and screenMode. Setting zoom, centerPoint or screenMode changes the window when the slice ends, runs no command and adds no undo step, and a run that fails keeps the change. The screen mode is the app's, so setting it on one view sets it on every view. A bad value throws and leaves the view as it was. Docs: docs/mcp.md, docs/target-app-parity.md.