pub struct PreparedCanvasGeometry {
pub world_transform: Affine,
pub layer: usize,
pub bounds: (f64, f64),
pub surface_transform: Affine,
pub coverage_bounds: Option<Rect>,
pub local: CanvasGeometry,
/* private fields */
}Expand description
Geometry shared by render selection, primitive drawing, and viewport observation. Native surfaces use a separate bounds lookup in the same geometry service. Observed layout-only targets and their ancestors share these records without entering either rendering index.
Coverage is in the owning canvas’s content coordinates, so native scrolling changes the queried region without invalidating every descendant record.
Fields§
§world_transform: AffineLayout transform in unscrolled scene coordinates, shared with viewport observation.
layer: usizeOwning logical canvas layer.
bounds: (f64, f64)Layout dimensions, kept separate from overflowing paint coverage.
surface_transform: AffineTransform from primitive-local space to canvas content space.
coverage_bounds: Option<Rect>Transformed paint coverage including the renderer’s conservative culling pad.
local: CanvasGeometryPrimitive-local geometry backing this prepared record.