Skip to main content

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​

RectangleOptions

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​

IRectangleOptions.centered

Defined in​

options/RectangleOptions.ts:23


draggable​

draggable: boolean

Determines if the shape can be dragged by mouse.

Implementation of​

IRectangleOptions.draggable

Defined in​

options/RectangleOptions.ts:17


visible​

visible: boolean

Determines if the shape should be visible or not.

Implementation of​

IRectangleOptions.visible

Defined in​

options/RectangleOptions.ts:12


DefaultOptions​

readonly static DefaultOptions: IRectangleOptions

Default options for the rectangle.

Defined in​

options/RectangleOptions.ts:28