@mocanvas/editor · interface

BindingOnDeleteOptions

interface BindingOnDeleteOptions<B extends UnknownBinding>

What the binding's own delete callbacks are told.

Deliberately just the binding: onBeforeDelete fires because the *binding* record is going away, which happens for reasons that have nothing to do with either shape — an explicit deleteBinding, a store reset, a peer's edit arriving. When a *shape* is what is being deleted, the callback is onBeforeDeleteFromShape / onBeforeDeleteToShape, and it is told which.


Properties · 1

binding: B

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.