blockly > Marker > getSourceBlockFromNode
Marker.getSourceBlockFromNode() 方法
返回给定节点的父块。
Signature:
getSourceBlockFromNode(node: IFocusableNode | null): BlockSvg | null;
参数
参数 | 类型 | 说明 |
---|---|---|
节点 | IFocusableNode | null |
返回:
BlockSvg | null
节点的父块(如果有),否则为 null。