DuplicateNodesOptions
Defined in: src/components/editor/NodeGraph/nodeGraphActions.ts:31
Properties
Section titled “Properties”idFactory?
Section titled “idFactory?”
optionalidFactory?: (sourceId) =>string
Defined in: src/components/editor/NodeGraph/nodeGraphActions.ts:41
Build the id for a clone from its source id. Defaults to a unique id
derived from ${sourceId}-copy. Override to keep your own id scheme.
Parameters
Section titled “Parameters”sourceId
Section titled “sourceId”string
Returns
Section titled “Returns”string
offset?
Section titled “offset?”
optionaloffset?:Point2D
Defined in: src/components/editor/NodeGraph/nodeGraphActions.ts:36
World-unit offset applied to each clone so it doesn’t sit exactly on top of its source.
Default
Section titled “Default”{ x: 32, y: 32 }