Skip to content

a11ydocs v1.7.0


a11ydocs / ShapeStyle

Interface: ShapeStyle

Defined in: src/types.ts:2969

Simplified styling for the PdfPage shape helpers (rect, line, circle, ellipse). The paint mode is inferred: a fill and stroke together paint both; fill alone fills; otherwise the shape is stroked.

Properties

PropertyTypeDescriptionDefined in
dashArray?number[]Dash pattern for stroked shapes.src/types.ts:2981
fill?ColorInputFill color. Presence enables fill painting.src/types.ts:2971
lineCap?LineCapLine cap for stroked shapes.src/types.ts:2977
lineJoin?LineJoinLine join for stroked shapes.src/types.ts:2979
lineWidth?numberStroke width in PDF points.src/types.ts:2975
stroke?ColorInputStroke color. Defaults to black when only lineWidth is set.src/types.ts:2973
tag?"Artifact"Structure tag; use "Artifact" to mark decorative shapes.src/types.ts:2983

Released under the ISC license.