@cloudbase/js-sdk
Version:
cloudbase javascript sdk
20 lines (19 loc) • 589 B
TypeScript
import { LineString } from './lineString';
import { ISerializedPolygon } from './interface';
export declare class Polygon {
readonly lines: LineString[];
constructor(lines: LineString[]);
parse(key: any): {
[x: number]: {
type: string;
coordinates: number[][][];
};
};
toJSON(): {
type: string;
coordinates: number[][][];
};
static validate(polygon: ISerializedPolygon): boolean;
static isCloseLineString(lineString: any): boolean;
get _internalType(): import("../utils/symbol").InternalSymbol;
}