MCPcopy Create free account
hub / github.com/MigoXLab/coderio / EmbeddedLayoutInfo

Interface EmbeddedLayoutInfo

src/types/protocol-types.ts:108–125  ·  view source on GitHub ↗

* Embedded layout information * Direct layout data attached to each node in structure tree * Eliminates need for separate LayoutMeasurementProvider lookups

Source from the content-addressed store, hash-verified

106 * Eliminates need for separate LayoutMeasurementProvider lookups
107 */
108interface 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected