Skip to content

@graphty/graph-io / styles / ToolDefaults

Interface: ToolDefaults ​

Defined in: styles/defaults.ts:76

The defaults of one program.

Properties ​

arrowhead? ​

readonly optional arrowhead?: 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 ​

readonly derived: readonly ToolDerivedDefault[]

Defined in: styles/defaults.ts:90

Defaults that are rules, applied above the constants.


edge ​

readonly edge: ToolDefaultValues<EdgeStyleValues>

Defined in: styles/defaults.ts:86

Edge defaults.


graph ​

readonly graph: ToolDefaultValues<GraphStyleValues>

Defined in: styles/defaults.ts:88

Graph defaults.


node ​

readonly node: ToolDefaultValues<NodeStyleValues>

Defined in: styles/defaults.ts:84

Node defaults.


nodeBorderOnScreen? ​

readonly optional nodeBorderOnScreen?: 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? ​

readonly optional roundedCornerRadius?: 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 ​

readonly tool: StyleTool

Defined in: styles/defaults.ts:78

The program's id.


units ​

readonly units: "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 ​

readonly version: string

Defined in: styles/defaults.ts:80

The version of the program the values were read from.