enum
Placement
pub enum Placement {
Hidden,
Pinned { x: f32, y: f32, scale: f32, z: i32 },
Plane { matrix: [f32; 16], z: i32 },
}Where an html layer goes this frame.
Variants
Pinned
Pinned { x: f32, y: f32, scale: f32, z: i32 }Pinned: its point on screen (CSS pixels), its scale, and a z-index (nearer is higher).
Plane
Plane { matrix: [f32; 16], z: i32 }On a plane: a CSS matrix3d (column-major) from the layer's own pixels to the surface's.