Skip to content

zeropdf v1.5.5


zeropdf / ShapeStyle

Interface: ShapeStyle

Defined in: src/types.ts:2940

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:2952
fill?ColorInputFill color. Presence enables fill painting.src/types.ts:2942
lineCap?LineCapLine cap for stroked shapes.src/types.ts:2948
lineJoin?LineJoinLine join for stroked shapes.src/types.ts:2950
lineWidth?numberStroke width in PDF points.src/types.ts:2946
stroke?ColorInputStroke color. Defaults to black when only lineWidth is set.src/types.ts:2944
tag?"Artifact"Structure tag; use "Artifact" to mark decorative shapes.src/types.ts:2954

Released under the ISC license.