Shape
Constructors
Properties
Offset of the curve's mid-point from the straight-line midpoint of points[0] → points.last(). Only meaningful for ShapeType.LINE and ShapeType.ARROW; ignored otherwise. Offset.Zero (default) = straight. Non-zero = the line/arrow renders as a quadratic bezier arcing through midpoint + bend.
Corner radius in world pixels for ShapeType.RECTANGLE and ShapeType.TRIANGLE. Ignored for circle, line, arrow. 0 = sharp. Auto-clamped at render time so it never exceeds half the shortest adjacent edge.
ID of the element this arrow's end endpoint is bound to. Behaves like startBinding for the end point. Only honored for ShapeType.ARROW.
ID of the element this arrow's start endpoint is bound to. When set and the bound element moves/resizes/rotates, the arrow's start point follows. Only honored for ShapeType.ARROW.
Stroke pattern for non-filled rendering. Solid by default. For arrows the body line follows this style; the head stays solid for clarity.
Functions
World-space point on the curve at t = 0.5 — the spot where the bend handle sits.
Point on this shape's outline closest to the ray from the shape's center toward target. Used by arrow connectors to terminate at the boundary instead of sinking into the shape.
World-space attachment point for an arrow connector binding to this shape.
Quadratic-bezier control point for a curved ShapeType.LINE / ShapeType.ARROW.
Scale points so the bounding box matches newBounds. For two-point shapes this snaps start/end to the new bbox corners (preserving orientation of the original drag direction). For freedraw paths every point is scaled linearly. Rotation unchanged.
Absolute rotation in degrees.