MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / RectangleStyle

Interface RectangleStyle

packages/backend/src/common/commonPosition.ts:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39interface RectangleStyle {
40 width: number; // Original width (w)
41 height: number; // Original height (h)
42 left: number; // Final CSS left
43 top: number; // Final CSS top
44 rotation: number; // Rotation in degrees
45}
46
47export function calculateRectangleFromBoundingBox(
48 boundingBox: BoundingBox,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected