Skip to content

ShapeLine

Defined in: src/core/document-model/types.ts:1396

§20.1.2.2.24 a:ln — a shape’s outline (stroke).

readonly optional alpha?: number

Defined in: src/core/document-model/types.ts:1408

§20.1.2.3.1 a:alpha on the line’s colour — how opaque the stroke is, 0..1.


readonly optional cap?: "square" | "flat" | "round"

Defined in: src/core/document-model/types.ts:1405


readonly optional colorHex?: string

Defined in: src/core/document-model/types.ts:1398


readonly optional customDash?: readonly number[]

Defined in: src/core/document-model/types.ts:1404

§20.1.8.21 a:custDash — the author’s own pattern: dash/space lengths as MULTIPLES of the line width, in the order they are drawn.


readonly optional dash?: ShapeDash

Defined in: src/core/document-model/types.ts:1399


readonly optional fill?: "none" | "solid"

Defined in: src/core/document-model/types.ts:1406


readonly optional headEnd?: LineEnd

Defined in: src/core/document-model/types.ts:1410

§20.1.8.24 a:headEnd — the decoration at the line’s first point.


readonly optional tailEnd?: LineEnd

Defined in: src/core/document-model/types.ts:1412

§20.1.8.42 a:tailEnd — the decoration at the line’s last point.


readonly optional width?: Pt

Defined in: src/core/document-model/types.ts:1397