* 获取磁贴相关信息
()
| 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 |
nothing calls this directly
no test coverage detected