UNPKG

@tai-kun/surrealdb

Version:

The SurrealDB SDK for JavaScript

29 lines 1.27 kB
import { type GeoJsonPoint, GeometryPointBase as Base, type GeometryPointSource, type GeometryPointTypes } from "@tai-kun/surrealdb/encodable-datatypes"; import { type CoordValue } from "../_internals/geometry"; export type { GeoJsonPoint, GeometryPointSource, GeometryPointTypes }; export declare class GeometryPointBase<TTypes extends GeometryPointTypes> extends Base<TTypes> { point: [ x: CoordValue<TTypes["Coord"]>, y: CoordValue<TTypes["Coord"]> ]; get x(): CoordValue<TTypes["Coord"]>; set x(v: CoordValue<TTypes["Coord"]>); get y(): CoordValue<TTypes["Coord"]>; set y(v: CoordValue<TTypes["Coord"]>); get coordinates(): [ x: CoordValue<TTypes["Coord"]>, y: CoordValue<TTypes["Coord"]> ]; set coordinates(source: GeometryPointSource<TTypes>); clone(): this; equals(other: unknown): boolean; } /** * [API Reference](https://tai-kun.github.io/surrealdb.js/v2/api/data/geometry-point) */ export declare class GeometryPoint extends GeometryPointBase<GeometryPointTypes<typeof Number>> { static get ZERO(): GeometryPoint; static readonly Coord: NumberConstructor; constructor(source: GeometryPointSource<typeof GeometryPoint>); } //# sourceMappingURL=geometry-point.d.ts.map