@xyo-network/quadkey 4.1.2 → 4.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.d.ts +2 -67
- package/package.json +7 -7
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,67 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const isQuadkey: (obj: {
|
|
5
|
-
type: string;
|
|
6
|
-
}) => boolean;
|
|
7
|
-
declare class Quadkey {
|
|
8
|
-
key: bigint;
|
|
9
|
-
static readonly Zero: Quadkey;
|
|
10
|
-
static readonly root: Quadkey;
|
|
11
|
-
static readonly type = "Quadkey";
|
|
12
|
-
type: string;
|
|
13
|
-
private _geoJson?;
|
|
14
|
-
constructor(key?: bigint);
|
|
15
|
-
get base10String(): string;
|
|
16
|
-
get base16String(): string;
|
|
17
|
-
get base4Hash(): string;
|
|
18
|
-
get base4HashLabel(): string;
|
|
19
|
-
get boundingBox(): MercatorBoundingBox;
|
|
20
|
-
get center(): mb.LngLat;
|
|
21
|
-
get children(): Quadkey[];
|
|
22
|
-
get gridLocation(): {
|
|
23
|
-
col: number;
|
|
24
|
-
row: number;
|
|
25
|
-
zoom: number;
|
|
26
|
-
};
|
|
27
|
-
get id(): bigint;
|
|
28
|
-
get parent(): Quadkey | undefined;
|
|
29
|
-
get siblings(): Quadkey[];
|
|
30
|
-
get tile(): MercatorTile;
|
|
31
|
-
get valid(): boolean;
|
|
32
|
-
get zoom(): number;
|
|
33
|
-
static from(zoom: number, id: bigint): Quadkey;
|
|
34
|
-
static fromArrayBuffer(zoom: number, id: ArrayBuffer): Quadkey;
|
|
35
|
-
static fromBase16String(value: string): Quadkey;
|
|
36
|
-
static fromBase4String(value?: string): Quadkey;
|
|
37
|
-
static fromBoundingBox(boundingBox: MercatorBoundingBox, zoom: number): Quadkey[];
|
|
38
|
-
static fromLngLat(point: LngLatLike, zoom: number): Quadkey;
|
|
39
|
-
static fromString(zoom: number, id: string, base?: number): Quadkey;
|
|
40
|
-
static fromTile(tile: MercatorTile): Quadkey;
|
|
41
|
-
childrenByZoom(zoom: number): Quadkey[];
|
|
42
|
-
clone(): Quadkey;
|
|
43
|
-
equals(obj: Quadkey): boolean;
|
|
44
|
-
geoJson(): GeoJson;
|
|
45
|
-
getGridBoundingBox(size: number): {
|
|
46
|
-
height: number;
|
|
47
|
-
left: number;
|
|
48
|
-
top: number;
|
|
49
|
-
width: number;
|
|
50
|
-
};
|
|
51
|
-
/** @deprecated use .gridLocation instead */
|
|
52
|
-
getGridLocation(): {
|
|
53
|
-
col: number;
|
|
54
|
-
row: number;
|
|
55
|
-
zoom: number;
|
|
56
|
-
};
|
|
57
|
-
isInBoundingBox(boundingBox: MercatorBoundingBox): boolean;
|
|
58
|
-
relative(direction: string): Quadkey;
|
|
59
|
-
setId(id: bigint): this;
|
|
60
|
-
setKey(zoom: number, key: bigint): this;
|
|
61
|
-
setZoom(zoom: number): this;
|
|
62
|
-
toJSON(): string;
|
|
63
|
-
toString(): string;
|
|
64
|
-
protected guessZoom(): void;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export { Quadkey, isQuadkey };
|
|
1
|
+
export * from './Quadkey.ts';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/quadkey",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.13.
|
|
33
|
-
"@xylabs/geo": "^4.13.
|
|
34
|
-
"@xylabs/hex": "^4.13.
|
|
32
|
+
"@xylabs/assert": "^4.13.16",
|
|
33
|
+
"@xylabs/geo": "^4.13.16",
|
|
34
|
+
"@xylabs/hex": "^4.13.16",
|
|
35
35
|
"mapbox-gl": "^3.13.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
39
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
40
|
-
"@xylabs/vitest-extended": "^4.13.
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
39
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
40
|
+
"@xylabs/vitest-extended": "^4.13.16",
|
|
41
41
|
"typescript": "^5.8.3",
|
|
42
42
|
"vitest": "^3.2.4"
|
|
43
43
|
},
|