RectangleOptions
Options for configuring the behavior of a rectangle shape.
Implements
Constructors
new RectangleOptions()
new RectangleOptions(
options
):RectangleOptions
Creates a new instance of RectangleOptions.
Parameters
• options: Partial
<IRectangleOptions
> = {}
The partial options provided by the user.
Returns
Defined in
options/RectangleOptions.ts:38
Properties
centered
centered:
boolean
If true, the rectangle will be centered at the provided position. If false or undefined, the rectangle will be positioned from the top-left corner.
Implementation of
Defined in
options/RectangleOptions.ts:23
draggable
draggable:
boolean
Determines if the shape can be dragged by mouse.
Implementation of
Defined in
options/RectangleOptions.ts:17
visible
visible:
boolean
Determines if the shape should be visible or not.
Implementation of
Defined in
options/RectangleOptions.ts:12
DefaultOptions
readonly
static
DefaultOptions:IRectangleOptions
Default options for the rectangle.