Skip to main content

Module spatial_node

Module spatial_node 

Source

Structs§

ReferenceFrameInfo
Contains information about reference frames.
SceneSpatialNode
Scene building specific representation of a spatial node, which is a much lighter subset of a full spatial node constructed and used for frame building
ScrollFrameInfo
SpatialNode
Contains information common among all types of SpatialTree nodes.
SpatialNodeDescriptor
Defines the content of a spatial node. If the values in the descriptor don’t change, that means the rest of the fields in a spatial node will end up with the same result
SpatialNodeInfo
Information about a spatial node that can be queried during either scene of frame building.
StickyFrameInfo

Enums§

ScrollFrameKind
Defines whether we have an implicit scroll frame for a pipeline root, or an explicitly defined scroll frame from the display list.
SpatialNodeType

Functions§

snap_offset 🔒
Snap an offset to be incorporated into a transform, where the local space may be considered the world space. We assume raster scale is 1.0, which may not always be correct if there are intermediate surfaces used, however those are either cases where snapping is not important (e.g. has perspective or is not axis aligned), or an edge case (e.g. SVG filters) which we can accept imperfection for now.