MCPcopy
hub / github.com/midrender/revideo / instantiate

Method instantiate

packages/2d/src/lib/components/Node.ts:1270–1272  ·  view source on GitHub ↗

* Create an instance of this node's class. * * @param props - Properties to pass to the constructor.

(props: NodeProps = {})

Source from the content-addressed store, hash-verified

1268 * @param props - Properties to pass to the constructor.
1269 */
1270 public instantiate(props: NodeProps = {}): this {
1271 return new (<NodeConstructor<NodeProps, this>>this.constructor)(props);
1272 }
1273
1274 /**
1275 * Set the children without parsing them.

Callers 3

cloneMethod · 0.95
snapshotCloneMethod · 0.95
reactiveCloneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected