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

Method onVisibleChange

packages/designer/src/document/node/node.ts:805–811  ·  view source on GitHub ↗
(func: (flag: boolean) => any)

Source from the content-addressed store, hash-verified

803 }
804
805 onVisibleChange(func: (flag: boolean) => any): () => void {
806 const wrappedFunc = wrapWithEventSwitch(func);
807 this.emitter.on('visibleChange', wrappedFunc);
808 return () => {
809 this.emitter.removeListener('visibleChange', wrappedFunc);
810 };
811 }
812
813 getProp(path: string, createIfNone = true): IProp | null {
814 return this.props.query(path, createIfNone) || null;

Callers 1

constructorMethod · 0.95

Calls 3

wrapWithEventSwitchFunction · 0.85
onMethod · 0.65
removeListenerMethod · 0.65

Tested by

no test coverage detected