MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / didDropIn

Method didDropIn

packages/core/src/document/node/node.ts:242–250  ·  view source on GitHub ↗

* link to componentMeta.advanced.callbacks.onNodeAdd

(dragNode: Node)

Source from the content-addressed store, hash-verified

240 * link to componentMeta.advanced.callbacks.onNodeAdd
241 */
242 didDropIn(dragNode: Node) {
243 const { callbacks } = this.componentMeta.advanced
244 if (callbacks?.onNodeAdd) {
245 callbacks?.onNodeAdd.call(this, dragNode, this)
246 }
247 if (this._parent) {
248 this._parent.didDropIn(dragNode)
249 }
250 }
251
252 /**
253 * link to componentMeta.advanced.callbacks.onNodeRemove

Callers 1

internalSetParentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected