Implements

Constructors

Properties

Methods

Constructors

  • Create a Rect instance. Instead of creating an instance in new mode, use create to create an instance.

    Parameters

    • Optionaloptions: Options

      Create a Rect instance with the specified options.

    Returns Rect

    const rect = await Rect.create();
    

Properties

options: Options

Methods

  • Destroy the current object.

    Returns Promise<void>

  • Create a Rect instance.

    Parameters

    • Optionaloptions: Options

      Create a Rect instance with the specified options.

    Returns Promise<Rect>

    Returns a Rect instance.