interface GeneralStateType {
    destroy: () => Promise<void>;
    options?: Options;
    setFillAlpha: (fillAlpha: number) => Promise<void>;
    setStrokeAlpha: (strokeAlpha: number) => Promise<void>;
}

Implemented by

Properties

destroy: () => Promise<void>

Destroys the GeneralState object.

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

      A promise that resolves when the object is destroyed.

options?: Options
setFillAlpha: (fillAlpha: number) => Promise<void>

Set the fill alpha value.

Type declaration

    • (fillAlpha: number): Promise<void>
    • Parameters

      • fillAlpha: number

        The fill alpha value to be set. 0 - 100

      Returns Promise<void>

      A promise that resolves when the fill alpha value is set.

setStrokeAlpha: (strokeAlpha: number) => Promise<void>

Set the stroke alpha value.

Type declaration

    • (strokeAlpha: number): Promise<void>
    • Parameters

      • strokeAlpha: number

        The stroke alpha value to be set. 0 - 100

      Returns Promise<void>

      A promise that resolves when the stroke alpha value is set.