Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

parseNodeShape

parseNodeShape(spec): SDFShape

Defined in: packages/sigma/src/primitives/parser.ts:95

Parses a node shape specification into an SDFShape.

Parameters

spec

NodeShapeSpec

Shape specification (pre-parsed SDFShape or custom GLSL)

Returns

SDFShape

SDFShape instance