Constants
Import these from @grafloria/renderer.
Constants
ANCHORS
tsconst ANCHORS: "anchors"
CONNECTION_POINTS
tsconst CONNECTION_POINTS: "connectionPoints"
CONNECTORS
tsconst CONNECTORS: "connectors"
EXTENSION_API_VERSION
The engine/host API version extensions declare compatibility against.
tsconst EXTENSION_API_VERSION: "1.0.0"
GLOBAL_DIAGRAM_REGISTRY
The process-wide registry — what the module-level register* functions write to.
tsconst GLOBAL_DIAGRAM_REGISTRY: DiagramRegistry
LABEL_TEMPLATES
tsconst LABEL_TEMPLATES: "labelTemplates"
LINK_TEMPLATES
tsconst LINK_TEMPLATES: "linkTemplates"
MARKERS
tsconst MARKERS: "markers"
PORTAL_CLASS
tsconst PORTAL_CLASS: "grafloria-portal"
SCREEN_LAYER_CLASS
tsconst SCREEN_LAYER_CLASS: "grafloria-screen-layer"
SHAPES
Table names. Constants rather than string literals so a typo cannot silently create a second, empty table that reads as "nothing registered".
tsconst SHAPES: "shapes"
STYLES
tsconst STYLES: "styles"
WORLD_PORTAL_CLASS
tsconst WORLD_PORTAL_CLASS: "grafloria-world-portal"
Was this page helpful?