ElbowArrowSnap

See source code

Type

Type representing the possible elbow arrow snap modes.

  • 'center' - Snap to the center of the target shape - 'edge-point' - Snap to a specific point on the shape's edge - 'edge' - Snap to the nearest edge of the shape - 'none' - No snapping behavior
type ElbowArrowSnap = T.TypeOf<typeof ElbowArrowSnap>;

Value

Defines the snapping behavior for elbow-style arrows when binding to shapes. Controls how the arrow segment aligns with the target shape's geometry.

ElbowArrowSnap: T.Validator<"center" | "edge-point" | "edge" | "none">;

Example

const binding: TLArrowBindingProps = {
  terminal: "end",
  normalizedAnchor: { x: 0.5, y: 0.5 },
  isExact: false,
  isPrecise: true,
  snap: "edge", // Snap to shape edge
};
Prev
drawShapeProps
Next
embedShapeMigrations