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:33

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:18


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:23