Raster target derived from an editor viewport. More...
#include "donner/editor/ViewportState.h"
Public Attributes | |
| Box2d | documentRect |
| Document-space rectangle covered by the output raster. | |
| Vector2i | outputSizePx = Vector2i::Zero() |
| Output raster size in device pixels. | |
| Vector2i | semanticCanvasSizePx = Vector2i::Zero() |
| Nominal full-document raster size in device pixels; not a document-layout mutation. | |
| Transform2d | outputFromDocument |
| Transform from document/viewBox coordinates to output raster pixels. | |
| bool | viewportBounded = false |
| True when the output raster covers only the pane window plus margin. | |
Raster target derived from an editor viewport.
semanticCanvasSizePx is the legacy name for the nominal full-document raster target; it does not change the document's resolved SVG layout viewport. outputSizePx is the size rendered for presentation. At low zoom they are the same full-document raster. At high zoom, outputSizePx is capped to the pane plus margin and outputFromDocument maps the visible document window into that smaller surface.
| Box2d donner::editor::EditorRasterViewport::documentRect |
Document-space rectangle covered by the output raster.
| Transform2d donner::editor::EditorRasterViewport::outputFromDocument |
Transform from document/viewBox coordinates to output raster pixels.
| Vector2i donner::editor::EditorRasterViewport::outputSizePx = Vector2i::Zero() |
Output raster size in device pixels.
| Vector2i donner::editor::EditorRasterViewport::semanticCanvasSizePx = Vector2i::Zero() |
Nominal full-document raster size in device pixels; not a document-layout mutation.
| bool donner::editor::EditorRasterViewport::viewportBounded = false |
True when the output raster covers only the pane window plus margin.