Skip to content

DrawableOpts

Defined in: core/scene.ts:102

optional anchor?: [number, number]

Defined in: core/scene.ts:117

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:110

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


optional lineJoin?: LineJoin

Defined in: core/scene.ts:106

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


optional lineWidth?: number

Defined in: core/scene.ts:104

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


optional miterLimit?: number

Defined in: core/scene.ts:108

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