Skip to content

@graphty/graph-io / styles / ToolArrowhead

Interface: ToolArrowhead ​

Defined in: styles/defaults.ts:115

How a program sizes its filled triangle arrowhead, in its units.

Properties ​

aspect ​

readonly aspect: number

Defined in: styles/defaults.ts:124

Its width across the line as a fraction of its length, which its diamond shares.


length ​

readonly length: (arrowSize, width) => number

Defined in: styles/defaults.ts:122

The arrowhead's length along its line.

Parameters ​

arrowSize ​

number

the edge's neutral arrowSize (1 is the program's normal size)

width ​

number

the edge's line width

Returns ​

number

the length


shapes? ​

readonly optional shapes?: Readonly<Partial<Record<StyleArrowShape, { aspect?: number; length: number; }>>>

Defined in: styles/defaults.ts:129

Another arrow shape's length along its line as a fraction of the triangle's, and its width as a fraction of its own length, where they differ.


source ​

readonly source: string

Defined in: styles/defaults.ts:143

Where the rule is stated or measured.