({children, spawner, key, ...rest}: NodeProps)
| 534 | public readonly creationStack?: string; |
| 535 | |
| 536 | public constructor({children, spawner, key, ...rest}: NodeProps) { |
| 537 | const scene = useScene2D(); |
| 538 | [this.key, this.unregister] = scene.registerNode(this, key); |
| 539 | this.view2D = scene.getView(); |
| 540 | this.creationStack = new Error().stack; |
| 541 | initializeSignals(this, rest); |
| 542 | if (spawner) { |
| 543 | useLogger().warn({ |
| 544 | message: 'Node.spawner() has been deprecated.', |
| 545 | remarks: 'Use <code>Node.children()</code> instead.', |
| 546 | inspect: this.key, |
| 547 | stack: new Error().stack, |
| 548 | }); |
| 549 | } |
| 550 | this.children(spawner ?? children); |
| 551 | } |
| 552 | |
| 553 | /** |
| 554 | * Get the local-to-world matrix for this node. |
nothing calls this directly
no test coverage detected