[]
DsPdfJS API / DrawRectangleOptions
DrawRectangleOptions =
object
Provides options for drawing and filling a rectangle.
optionalbrushBounds:Bounds
The optional bounds for the fill brush.
optionalbrushTransform:Transform|null
The transformation applied to the brush.
optionalfillBrush:Brush|null
A reference to the brush to fill the interior of the rectangle. This property has a priority over the DrawRectangleOptions.fillColor.
optionalfillColor:Color
The color to fill the interior of the rectangle. This property is ignored if the DrawRectangleOptions.fillBrush is assigned.
optionallineCap: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 DrawRectangleOptions.strokePen is specified.
optionallineColor:Color
The color of the rectangle outline. Overrides the existing value if DrawRectangleOptions.strokePen is specified.
optionallineJoin:PenLineJoin
The line join style specifies the shape to be used at the corners of line segments. Overrides the existing value if DrawRectangleOptions.strokePen is specified.
optionallineStyle:DashStyle
The style of dashed pen to draw the rectangle outline. Overrides the existing value if DrawRectangleOptions.strokePen is specified.
optionallineWidth:number
The width of the line pen to draw the rectangle outline, in units used for drawing. Overrides the existing value if DrawRectangleOptions.strokePen is specified.
optionalradius:number
The radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
optionalradiusX:number
The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
optionalradiusY:number
The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
optionalstrokePen:Pen|null
A reference to the pen to draw the rectangle outline.