BindingOnShapeChangeOptions

See source code
Table of contents

Options passed to BindingUtil.onAfterChangeFromShape and BindingUtil.onAfterChangeToShape, describing a bound shape being changed.

interface BindingOnShapeChangeOptions<Binding extends TLUnknownBinding> {}

Properties

binding

The binding record linking these two shapes.

binding: Binding

reason

Why did this shape change?

  • 'self': the shape itself changed
  • 'ancestry': the ancestry of the shape changed, but the shape itself may not have done
reason: 'ancestry' | 'self'

shapeAfter

The shape record after the change is made.

shapeAfter: TLShape

shapeBefore

The shape record before the change is made.

shapeBefore: TLShape

Prev
BindingOnDeleteOptions
Next
BindingOnShapeDeleteOptions