* Embedded layout information * Direct layout data attached to each node in structure tree * Eliminates need for separate LayoutMeasurementProvider lookups
| 106 | * Eliminates need for separate LayoutMeasurementProvider lookups |
| 107 | */ |
| 108 | interface EmbeddedLayoutInfo { |
| 109 | /** Position and size in CSS coordinates */ |
| 110 | boundingBox: CssBoundingBox; |
| 111 | /** Position and size relative to parent component */ |
| 112 | relativeBoundingBox?: CssBoundingBox; |
| 113 | /** Computed layout direction based on children positions */ |
| 114 | layoutDirection: string; |
| 115 | /** Gap to previous and next siblings */ |
| 116 | spacing: { |
| 117 | previous?: number; |
| 118 | next?: number; |
| 119 | }; |
| 120 | /** Pre-computed offset from parent's bounding box */ |
| 121 | parentRelativeOffset: { |
| 122 | x: number; |
| 123 | y: number; |
| 124 | }; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Bounding box with position and size using CSS coordinate naming (top, left) |
nothing calls this directly
no outgoing calls
no test coverage detected