Skip to content

generateNodeId

generateNodeId(templateId): string

Defined in: src/components/editor/NodeGraph/nodeGraphIds.ts:21

Generate a unique-enough id for a freshly-spawned node from a template. Format: ${templateId}-${timestamp36}-${counter36}-${random36}.

Parameters

templateId

string

Returns

string