@graphty/graph-io / styles / ToolDefaults
Interface: ToolDefaults ​
Defined in: styles/defaults.ts:76
The defaults of one program.
Properties ​
arrowhead? ​
readonlyoptionalarrowhead?:ToolArrowhead
Defined in: styles/defaults.ts:102
How big the program draws its filled triangle arrowhead, which it sizes from the line width and its own size setting rather than from the neutral arrowSize alone. Not an edge default: the size follows from two properties, so no rule carries it. Absent for a program whose arrowheads graph-io has not measured.
derived ​
readonlyderived: readonlyToolDerivedDefault[]
Defined in: styles/defaults.ts:90
Defaults that are rules, applied above the constants.
edge ​
readonlyedge:ToolDefaultValues<EdgeStyleValues>
Defined in: styles/defaults.ts:86
Edge defaults.
graph ​
readonlygraph:ToolDefaultValues<GraphStyleValues>
Defined in: styles/defaults.ts:88
Graph defaults.
node ​
readonlynode:ToolDefaultValues<NodeStyleValues>
Defined in: styles/defaults.ts:84
Node defaults.
nodeBorderOnScreen? ​
readonlyoptionalnodeBorderOnScreen?:ToolDefaultValue<boolean>
Defined in: styles/defaults.ts:108
Whether the program draws a node's borderWidth in screen pixels, the same at every zoom, rather than as a length that grows and shrinks with the drawing: vis-network divides it by its view's scale. Not a node default: it says how every node's border width is read, so no rule carries it. Absent, a border width is a length.
roundedCornerRadius? ​
readonlyoptionalroundedCornerRadius?:ToolDefaultValue<number>
Defined in: styles/defaults.ts:96
The largest corner radius, in units, the program draws on a rounded rectangle whose file gives none. Not a node default: it only bounds the rounding of the shape the file names, so no rule carries it and no writer has to hold it.
tool ​
readonlytool:StyleTool
Defined in: styles/defaults.ts:78
The program's id.
units ​
readonlyunits:"px"|"relative"
Defined in: styles/defaults.ts:82
The unit of the lengths below: pixels (or points), or the program's relative size factor.
version ​
readonlyversion:string
Defined in: styles/defaults.ts:80
The version of the program the values were read from.