Appearance
zeropdf / ShapeStyle
Interface: ShapeStyle
Defined in: src/types.ts:2879
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
| Property | Type | Description | Defined in |
|---|---|---|---|
dashArray? | number[] | Dash pattern for stroked shapes. | src/types.ts:2891 |
fill? | ColorInput | Fill color. Presence enables fill painting. | src/types.ts:2881 |
lineCap? | LineCap | Line cap for stroked shapes. | src/types.ts:2887 |
lineJoin? | LineJoin | Line join for stroked shapes. | src/types.ts:2889 |
lineWidth? | number | Stroke width in PDF points. | src/types.ts:2885 |
stroke? | ColorInput | Stroke color. Defaults to black when only lineWidth is set. | src/types.ts:2883 |
tag? | "Artifact" | Structure tag; use "Artifact" to mark decorative shapes. | src/types.ts:2893 |