matheus23 / elm-figma-api / Figma.Geometry


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

A rectangle expressing a bounding box in absolute coordinates.


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

A 2D point.


type Position
    = 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.