[]
        
(Showing Draft Content)

DrawPolygonOptions

DsPdfJS API v9.1.0


DsPdfJS API / DrawPolygonOptions

Type Alias: DrawPolygonOptions

DrawPolygonOptions = object

Provides options for drawing and filling a polygon.

Properties

brushBounds?

optional brushBounds: Bounds | null

The optional bounds for the fill brush.


brushTransform?

optional brushTransform: Transform | null

The transformation applied to the brush.


fillBrush?

optional fillBrush: Brush | null

A reference to the brush to fill the interior of the polygon. This property has a priority over the DrawPolygonOptions.fillColor.


fillColor?

optional fillColor: Color

The color to fill the interior of the polygon. This property is ignored if the DrawPolygonOptions.fillBrush is assigned.


fillMode?

optional fillMode: FillMode

The fill mode ("Alternate" by default).


lineCap?

optional lineCap: PenLineCap

The line cap style specifies the shape to be used at the ends of open subpaths (and dashes, if any) when they are stroked. Overrides the existing value if DrawPolygonOptions.strokePen is specified.


lineColor?

optional lineColor: Color

The color of the polygon outline. Overrides the existing value if DrawPolygonOptions.strokePen is specified.


lineJoin?

optional lineJoin: PenLineJoin

The line join style specifies the shape to be used at the corners of line segments. Overrides the existing value if DrawPolygonOptions.strokePen is specified.


lineStyle?

optional lineStyle: DashStyle

The style of dashed pen to draw the polygon outline. Overrides the existing value if DrawPolygonOptions.strokePen is specified.


lineWidth?

optional lineWidth: number

The width of the line pen to draw the polygon outline, in units used for drawing. Overrides the existing value if DrawPolygonOptions.strokePen is specified.


strokePen?

optional strokePen: Pen | null

A reference to the pen to draw the polygon outline.