Class ObservablePoint

Represents an observable point in 2D space.

Constructors

Properties

Accessors

x y

Methods

Constructors

  • Creates a new ObservablePoint instance.

    Parameters

    • x: number = 0

      The x-coordinate of the point. Default is 0.

    • y: number = 0

      The y-coordinate of the point. Default is 0.

    • Optionalcallback: (() => void)

      The callback function to be called when the point changes. Default is undefined.

        • (): void
        • Returns void

    Returns ObservablePoint

Properties

type: "ObservablePoint"

Accessors

Methods