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

Function getSourceSensor

packages/core/src/designer/dragon.ts:105–110  ·  view source on GitHub ↗
(dragObject: DragObject)

Source from the content-addressed store, hash-verified

103}
104
105export const getSourceSensor = (dragObject: DragObject): Simulator | null => {
106 if (!isDragNodeObject(dragObject)) {
107 return null
108 }
109 return dragObject.nodes[0]?.document?.simulator || null
110}
111
112export class Dragon {
113 emitter = createEventBus('Dragon')

Callers 1

boostMethod · 0.85

Calls 1

isDragNodeObjectFunction · 0.85

Tested by

no test coverage detected