Get the position of the anchor of the diagram
anchor to get, anchors can be 'top-left', 'top-center', 'top-right' 'center-left', 'center-center', 'center-right' 'bottom-left', 'bottom-center', 'bottom-right'
the position of the anchor
Move the origin of the diagram to a position or anchor
position to move the origin to (Vector2), or anchor to move the origin to. anchors can be 'top-left', 'top-center', 'top-right' 'center-left', 'center-center', 'center-right' 'bottom-left', 'bottom-center', 'bottom-right'
move_origin_text()
Get the point on the path at t Path can be described parametrically in the form of (x(t), y(t)) Path starts at t=0 and ends at t=1
parameter
Optional
segment_index: number(only works for polygon and curves) If segment_index (n) is defined, get the point at the nth segment If segment_index (n) is defined, t can be outside of [0, 1] and will return the extrapolated point
the position of the point
Diagram Class
Diagram is a tree structure Diagram can be a polygon, curve, text, image, or diagram Polygon is a closed path Curve is an open path Diagram is a tree of Diagrams