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

Method getRGL

packages/designer/src/document/node/node.ts:1222–1237  ·  view source on GitHub ↗

* 获取磁贴相关信息

()

Source from the content-addressed store, hash-verified

1220 * 获取磁贴相关信息
1221 */
1222 getRGL(): {
1223 isContainerNode: boolean;
1224 isEmptyNode: boolean;
1225 isRGLContainerNode: boolean;
1226 isRGLNode: boolean;
1227 isRGL: boolean;
1228 rglNode: Node | null;
1229 } {
1230 const isContainerNode = this.isContainer();
1231 const isEmptyNode = this.isEmpty();
1232 const isRGLContainerNode = this.isRGLContainer;
1233 const isRGLNode = (this.getParent()?.isRGLContainer) as boolean;
1234 const isRGL = isRGLContainerNode || (isRGLNode && (!isContainerNode || !isEmptyNode));
1235 let rglNode = isRGLContainerNode ? this : isRGL ? this?.getParent() : null;
1236 return { isContainerNode, isEmptyNode, isRGLContainerNode, isRGLNode, isRGL, rglNode };
1237 }
1238
1239 /**
1240 * @deprecated no one is using this, will be removed in a future release

Callers

nothing calls this directly

Calls 3

isContainerMethod · 0.95
isEmptyMethod · 0.95
getParentMethod · 0.95

Tested by

no test coverage detected