Skip to content

@graphty/graphty-element / schema / FLAT_NODE_SHAPES

Variable: FLAT_NODE_SHAPES ​

const FLAT_NODE_SHAPES: readonly z.infer<typeof NodeShapes>[]

Defined in: graphty-element/src/config/NodeStyle.ts:128

The node shapes that are a 2D outline rather than a solid: the shapes graph files from 2D tools name. Each is an outline extruded into a thin slab, so in 2D and 3D views alike the node reads as the flat shape; shape.depth makes it deeper.