@graphty/graphty-element / catalog / LABEL_STYLE_DEFAULTS
Variable: LABEL_STYLE_DEFAULTS ​
constLABEL_STYLE_DEFAULTS:Readonly<LabelStyle>
Defined in: graphty-element/src/catalog/label-style.ts:589
What a label draws for each field no layer and no look sets: the element's own defaults, in the label vocabulary. enabled is left out (a label with words is drawn whatever its default), and so are the fields whose absence draws nothing (background, outline, badge, icon, progress).
An application shows these where a field is not set, so the reader sees the value that is drawn rather than the word "Default".
Since ​
3.26.0
Example ​
ts
import { LABEL_STYLE_DEFAULTS } from "@graphty/graphty-element/catalog";
LABEL_STYLE_DEFAULTS.font; // "Verdana"
LABEL_STYLE_DEFAULTS.marginTop; // 5