matheus23/elm-figma-api/1.0.0

Figma.Geometry

type alias BoundingBox =
{ x : Float
, y : Float
, width : Float
, height : Float
}

A rectangle expressing a bounding box in absolute coordinates.

type alias Point =
{ x : Float
, y : Float
}

A 2D point.

= AbsolutePosition Point
| RelativePositionTo NodeId Point

Specify a position: either the absolute coordinates on the canvas or a relative offset within a frame.

Curently used only for comments.