Skip to content

ObservablePoint<T = unknown>

Unofficial

Observable point that triggers a callback when changed.

Import:

import type { ObservablePoint } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export class ObservablePoint<T = unknown> implements IPointData

Implements: IPointData

Properties

PropertyTypeDescription
xnumberX coordinate.
ynumberY coordinate.

Methods

MethodReturnsDescription
copyFrom(p)thisCopies x and y from the given point.
copyTo(p)UCopies x and y into the given point.
set(x?, y?)thisSets the point to a new x and y position.