Skip to content

DrawableOpts

Defined in: core/scene.ts:88

optional anchor?: [number, number]

Defined in: core/scene.ts:103

Optional glyph anchor in world coordinates. When set, in “screen” sizeMode the whole drawable (fill + stroke) is rendered at a constant pixel size around the projected anchor (e.g. a pie or symbol pinned to a node). When unset, fills stay in world space and strokes render at a constant pixel width about their own centerline.


optional lineCap?: LineCap

Defined in: core/scene.ts:96

End-cap style for open subpaths (“butt” default | “square” | “round”).


optional lineJoin?: LineJoin

Defined in: core/scene.ts:92

Stroke join style (“bevel” default | “miter” | “round”) — see LineJoin.


optional lineWidth?: number

Defined in: core/scene.ts:90

Stroke width in coordinate units. 0/undefined => no stroke geometry.


optional miterLimit?: number

Defined in: core/scene.ts:94

Miter length / width above which a miter falls back to a bevel (default 10).