feat: shell node add isRGLContainer API (#1190)

* feat: shell node add isRGLContainer API
This commit is contained in:
丁志磊 2022-11-02 14:19:46 +08:00 committed by LeoYuan 袁力皓
parent 80be82af6a
commit 9a0fd151a3
2 changed files with 9011 additions and 3 deletions

View File

@ -124,9 +124,7 @@ export default class Node {
/**
* judge if it is a node or not
*/
get isNode() {
return true;
}
readonly isNode = true;
/**
* 获取当前节点的锁定状态
@ -476,6 +474,19 @@ export default class Node {
remove() {
this[nodeSymbol].remove();
}
/**
* 设置为磁贴布局节点
*/
set isRGLContainer(flag: boolean) {
this[nodeSymbol].isRGLContainer = flag;
}
/**
* 获取磁贴布局节点设置状态
* @returns Boolean
*/
get isRGLContainer() {
return this[nodeSymbol].isRGLContainer;
}
internalToShellNode() {
return this;

8997
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff