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

Property Type Description
x number X coordinate.
y number Y coordinate.

Methods

Method Returns Description
copyFrom(p) this Copies x and y from the given point.
copyTo(p) U Copies x and y into the given point.
set(x?, y?) this Sets the point to a new x and y position.