ProtectedconstructorOptionalisInternalConstructor: booleanThe DPI scale factor. Set by the owning element for convenience.
Adds an image element with full configuration.
The image element configuration.
Adds a path to this draw content.
The path to add.
Optionaldepth: numberThe depth layer for this path (higher = rendered on top).
Adds a text element with full configuration.
The text element configuration.
StaticcalculateCalculates the size of text in points.
The text string to measure.
The font to use for measurement.
Font size in points.
DPI scale factor for point-to-pixel conversion.
OptionalmaximumWidth: numberOptional maximum width in points for word wrapping.
The size of the text in points.
Encapsulates all drawable elements (paths, text, images) used for UI rendering. Elements are stored in insertion order to maintain proper z-ordering during rendering.
This class is passed to GenerateDrawContent() with pre-baked context (bounds, dpiScale).