(originNode: INode | undefined)
| 335 | { x: number; y: number; width: number; height: number } |
| 336 | > = {}; |
| 337 | const setOriginNode = (originNode: INode | undefined) => { |
| 338 | if (!originNode || originMap[originNode.state.id]) return; |
| 339 | walkTree(originNode, (item, next) => { |
| 340 | originMap[item.state.id] = originNode.state.id; |
| 341 | next(); |
| 342 | }); |
| 343 | }; |
| 344 | const getOriginSourceRect = (node: INode) => { |
| 345 | const rect = sourceRectMap[originMap[node.state.id]]; |
| 346 | return rect || rootNode.state.rect; |
nothing calls this directly
no test coverage detected