Skip to content

@graphty/graphty-element / session / FileStyleShapeTable

Type Alias: FileStyleShapeTable ​

FileStyleShapeTable = Readonly<Record<string, string>>

Defined in: graphty-element/src/session/styles/fileStyles/shapes.ts:20

The element shape each 2D node shape of a file is drawn as, keyed by the neutral shape name (ellipse, rectangle, round-rectangle, triangle, diamond, pentagon, hexagon, octagon, parallelogram, trapezoid, star, vee, polygon, none, and the other: shapes a file's own vocabulary keeps, such as Pajek's other:cross). A shape the table leaves out is not drawn from the file, and the load notes it. A shape drawn as the element shape of the same name is drawn exactly; any other is noted as drawn as the nearest.