/** * Represents a point in a 2D coordinate system that can be observed for changes. */ /** * Represents an observable point in 2D space. */ export declare class ObservablePoint { private _callback; private _point; private _revoke; private callBackEnabled; type: "ObservablePoint"; /** * Creates a new ObservablePoint instance. * @param x - The x-coordinate of the point. Default is 0. * @param y - The y-coordinate of the point. Default is 0. * @param callback - The callback function to be called when the point changes. Default is undefined. */ constructor(x?: number, y?: number, callback?: () => void); /** * Sets the x and y coordinates of the point. * @param x - The new x-coordinate value. * @param y - The new y-coordinate value. * @returns Reference to this object for method chaining. */ set(x?: number, y?: number): this; /** * Sets the x and y coordinates of the point without triggering the callback. * @param x - The new x-coordinate value. * @param y - The new y-coordinate value. * @returns Reference to this object for method chaining. */ setMuted(x?: number, y?: number): this; /** * Gets the x-coordinate of the point. */ get x(): number; /** * Sets the x-coordinate of the point. * @param value - The new x-coordinate value. */ set x(value: number); /** * Gets the y-coordinate of the point. */ get y(): number; /** * Sets the y-coordinate of the point. * @param value - The new y-coordinate value. */ set y(value: number); /** * Sets the callback function to be called when the point changes. * @param callback - The callback function. */ setCallback(callback: () => void): void; /** * Checks if the point is equal to the given coordinates or another ObservablePoint. * @param x - The x-coordinate or the ObservablePoint to compare. * @param y - The y-coordinate. Required if the first parameter is a number. * @returns True if the point is equal to the given coordinates or another ObservablePoint, false otherwise. */ equals(x: number, y: number): boolean; equals(point: ObservablePoint): boolean; /** * Creates a clone of the ObservablePoint. * @returns A new ObservablePoint instance with the same coordinates and callback function. */ clone(): ObservablePoint; /** * Revokes the proxy object, preventing further access to the ObservablePoint instance. */ revoke(): void; } //# sourceMappingURL=observablePoint.d.ts.map