|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
Computed layout for the Drawing window image, plus helpers for converting between screen coordinates and document coordinates. More...
#include "donner/editor/ViewportGeometry.h"
Public Member Functions | |
| bool | hasImage () const |
| bool | containsScreenPoint (const Vector2d &screenPoint) const |
| std::optional< Vector2d > | screenToDocument (const Vector2d &screenPoint) const |
| std::optional< Vector2d > | documentToScreen (const Vector2d &documentPoint) const |
Public Attributes | |
| Vector2d | imageOrigin |
| Vector2d | imageSize |
| Box2d | documentViewBox |
Computed layout for the Drawing window image, plus helpers for converting between screen coordinates and document coordinates.