TLDefaultBinding

See source code

The default set of bindings that are available in the editor. Currently includes only arrow bindings, but can be extended with custom bindings.

type TLDefaultBinding = TLArrowBinding;

Example

// Arrow binding connects an arrow to shapes
const arrowBinding: TLDefaultBinding = {
  id: "binding:arrow1",
  typeName: "binding",
  type: "arrow",
  fromId: "shape:arrow1",
  toId: "shape:rectangle1",
  props: {
    terminal: "end",
    normalizedAnchor: { x: 0.5, y: 0.5 },
    isExact: false,
    isPrecise: true,
  },
};
Prev
TLDefaultAsset
Next
TLDefaultColorStyle