MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / onPropChange

Method onPropChange

packages/designer/src/document/node/node.ts:1363–1369  ·  view source on GitHub ↗
(func: (info: IPublicTypePropChangeOptions) => void)

Source from the content-addressed store, hash-verified

1361 }
1362
1363 onPropChange(func: (info: IPublicTypePropChangeOptions) => void): IPublicTypeDisposable {
1364 const wrappedFunc = wrapWithEventSwitch(func);
1365 this.emitter.on('propChange', wrappedFunc);
1366 return () => {
1367 this.emitter.removeListener('propChange', wrappedFunc);
1368 };
1369 }
1370}
1371
1372function ensureNode(node: any, document: IDocumentModel): INode {

Callers

nothing calls this directly

Calls 3

wrapWithEventSwitchFunction · 0.85
onMethod · 0.65
removeListenerMethod · 0.65

Tested by

no test coverage detected