Skip to content

@graphty/graphty-element / catalog / GlyphDescriptor

Interface: GlyphDescriptor<Id> ​

Defined in: graphty-element/src/catalog/shapes.ts:26

One value of a closed visual vocabulary, with a name to show and a picture to show beside it.

Type Parameters ​

Id ​

Id extends string = string

Properties ​

glyph ​

readonly glyph: string

Defined in: graphty-element/src/catalog/shapes.ts:32

A static 24 x 24 SVG, drawn in currentColor.


id ​

readonly id: Id

Defined in: graphty-element/src/catalog/shapes.ts:28

The value a layer writes, such as "torus-knot".


plainName ​

readonly plainName: string

Defined in: graphty-element/src/catalog/shapes.ts:30

The default name to show for it, such as "Torus knot". An application may replace it by id.