@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 ​
readonlyglyph:string
Defined in: graphty-element/src/catalog/shapes.ts:32
A static 24 x 24 SVG, drawn in currentColor.
id ​
readonlyid:Id
Defined in: graphty-element/src/catalog/shapes.ts:28
The value a layer writes, such as "torus-knot".
plainName ​
readonlyplainName: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.