MCPcopy
hub / github.com/tldraw/tldraw / registerCall

Function registerCall

packages/tldraw/src/test/bindings.test.tsx:42–46  ·  view source on GitHub ↗
(method: string, binding: TLBinding)

Source from the content-addressed store, hash-verified

40const calls: string[] = []
41
42const registerCall = (method: string, binding: TLBinding) => {
43 calls.push(
44 `${method}: ${binding.fromId.slice('shape:'.length)}->${binding.toId.slice('shape:'.length)}`
45 )
46}
47
48class TestBindingUtil extends BindingUtil {
49 static override type = 'test'

Callers 12

onBeforeDeleteMethod · 0.85
onAfterDeleteMethod · 0.85
onBeforeDeleteToShapeMethod · 0.85
onBeforeCreateMethod · 0.85
onAfterCreateMethod · 0.85
onBeforeChangeMethod · 0.85
onAfterChangeMethod · 0.85
onAfterChangeToShapeMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…