Constants
Import these from @grafloria/element.
Constants
DIAGRAM_KIT_STYLE_ID
Diagram-kit stylesheet — injected once, on first use of any kit builder.
Everything is prefixed axk- and the selection overrides are scoped with
:has(...) to kit cards only, so embedding the kit can never restyle a
host's own nodes. The rules encode the lessons the diagrams/* demos learned
the hard way:
- the card fills the node and draws the ONLY border (the node's own rect is
hidden by the builders, and suppressed again on selection because the
theme paints
.selectedwith an accent stroke that overrides inline transparency); - the default
.selection-highlightoutline (a dashed rect a few px OUTSIDE the node) reads as a second floating box around a bordered card — the kit hides it and rings the card itself instead.
tsconst DIAGRAM_KIT_STYLE_ID: "grafloria-diagram-kit-styles"
ER_HEAD_H
tsconst ER_HEAD_H: 28
ER_ROW_H
Row height / header height of the entity card — sizing is derived from these.
tsconst ER_ROW_H: 25
JOIN_GUIDANCE_STYLE_ID
tsconst JOIN_GUIDANCE_STYLE_ID: "grafloria-join-guidance-styles"
Was this page helpful?