@xylabs/geo 4.12.44 → 4.13.1

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.
Files changed (60) hide show
  1. package/dist/neutral/index.d.ts +84 -0
  2. package/package.json +5 -5
  3. package/dist/types/GeoJson.d.ts +0 -25
  4. package/dist/types/GeoJson.d.ts.map +0 -1
  5. package/dist/types/LayerBase.d.ts +0 -9
  6. package/dist/types/LayerBase.d.ts.map +0 -1
  7. package/dist/types/index.d.ts +0 -4
  8. package/dist/types/index.d.ts.map +0 -1
  9. package/dist/types/mercator/boundingbox/index.d.ts +0 -2
  10. package/dist/types/mercator/boundingbox/index.d.ts.map +0 -1
  11. package/dist/types/mercator/boundingbox/to/boundary.d.ts +0 -3
  12. package/dist/types/mercator/boundingbox/to/boundary.d.ts.map +0 -1
  13. package/dist/types/mercator/boundingbox/to/center.d.ts +0 -3
  14. package/dist/types/mercator/boundingbox/to/center.d.ts.map +0 -1
  15. package/dist/types/mercator/boundingbox/to/index.d.ts +0 -4
  16. package/dist/types/mercator/boundingbox/to/index.d.ts.map +0 -1
  17. package/dist/types/mercator/boundingbox/to/polygon.d.ts +0 -4
  18. package/dist/types/mercator/boundingbox/to/polygon.d.ts.map +0 -1
  19. package/dist/types/mercator/constants.d.ts +0 -4
  20. package/dist/types/mercator/constants.d.ts.map +0 -1
  21. package/dist/types/mercator/index.d.ts +0 -6
  22. package/dist/types/mercator/index.d.ts.map +0 -1
  23. package/dist/types/mercator/tile/from/index.d.ts +0 -3
  24. package/dist/types/mercator/tile/from/index.d.ts.map +0 -1
  25. package/dist/types/mercator/tile/from/point.d.ts +0 -4
  26. package/dist/types/mercator/tile/from/point.d.ts.map +0 -1
  27. package/dist/types/mercator/tile/from/quadkey.d.ts +0 -3
  28. package/dist/types/mercator/tile/from/quadkey.d.ts.map +0 -1
  29. package/dist/types/mercator/tile/index.d.ts +0 -3
  30. package/dist/types/mercator/tile/index.d.ts.map +0 -1
  31. package/dist/types/mercator/tile/to/boundingbox.d.ts +0 -5
  32. package/dist/types/mercator/tile/to/boundingbox.d.ts.map +0 -1
  33. package/dist/types/mercator/tile/to/children.d.ts +0 -4
  34. package/dist/types/mercator/tile/to/children.d.ts.map +0 -1
  35. package/dist/types/mercator/tile/to/geoJson.d.ts +0 -5
  36. package/dist/types/mercator/tile/to/geoJson.d.ts.map +0 -1
  37. package/dist/types/mercator/tile/to/index.d.ts +0 -8
  38. package/dist/types/mercator/tile/to/index.d.ts.map +0 -1
  39. package/dist/types/mercator/tile/to/parent.d.ts +0 -4
  40. package/dist/types/mercator/tile/to/parent.d.ts.map +0 -1
  41. package/dist/types/mercator/tile/to/point.d.ts +0 -4
  42. package/dist/types/mercator/tile/to/point.d.ts.map +0 -1
  43. package/dist/types/mercator/tile/to/quadkey.d.ts +0 -4
  44. package/dist/types/mercator/tile/to/quadkey.d.ts.map +0 -1
  45. package/dist/types/mercator/tile/to/siblings.d.ts +0 -4
  46. package/dist/types/mercator/tile/to/siblings.d.ts.map +0 -1
  47. package/dist/types/mercator/tiles/equal.d.ts +0 -3
  48. package/dist/types/mercator/tiles/equal.d.ts.map +0 -1
  49. package/dist/types/mercator/tiles/from/boundingbox.d.ts +0 -4
  50. package/dist/types/mercator/tiles/from/boundingbox.d.ts.map +0 -1
  51. package/dist/types/mercator/tiles/from/index.d.ts +0 -2
  52. package/dist/types/mercator/tiles/from/index.d.ts.map +0 -1
  53. package/dist/types/mercator/tiles/hasSiblings.d.ts +0 -3
  54. package/dist/types/mercator/tiles/hasSiblings.d.ts.map +0 -1
  55. package/dist/types/mercator/tiles/hasTile.d.ts +0 -3
  56. package/dist/types/mercator/tiles/hasTile.d.ts.map +0 -1
  57. package/dist/types/mercator/tiles/index.d.ts +0 -6
  58. package/dist/types/mercator/tiles/index.d.ts.map +0 -1
  59. package/dist/types/mercator/types.d.ts +0 -10
  60. package/dist/types/mercator/types.d.ts.map +0 -1
@@ -0,0 +1,84 @@
1
+ import type { Feature } from 'geojson';
2
+ import type { FeatureCollection } from 'geojson';
3
+ import type { Geometry } from 'geojson';
4
+ import MapBox from 'mapbox-gl';
5
+ import type { Point } from 'geojson';
6
+ import type { Polygon } from 'geojson';
7
+
8
+ export declare const boundingBoxToBoundary: (box: MercatorBoundingBox) => MercatorBoundary;
9
+
10
+ export declare const boundingBoxToCenter: (boundingBox: MercatorBoundingBox, decimal?: number) => number[];
11
+
12
+ export declare const boundingBoxToPolygon: (box: MercatorBoundingBox) => Polygon;
13
+
14
+ export declare const d2r: number;
15
+
16
+ export declare class GeoJson {
17
+ private _lngLat?;
18
+ private _point?;
19
+ private _polygon?;
20
+ private _zoom?;
21
+ private quadkey;
22
+ constructor(quadkey: string);
23
+ static featureCollection(features: Feature[]): FeatureCollection;
24
+ static featuresSource(data: FeatureCollection): MapBox.GeoJSONSourceSpecification;
25
+ static geometryFeature(geometry: Geometry): Feature;
26
+ center(): MapBox.LngLat;
27
+ point(): Point;
28
+ pointFeature(): Feature;
29
+ pointFeatureCollection(): FeatureCollection;
30
+ pointSource(): MapBox.GeoJSONSourceSpecification;
31
+ polygon(): Polygon;
32
+ polygonFeature(): Feature;
33
+ polygonFeatureCollection(): FeatureCollection;
34
+ polygonSource(): MapBox.GeoJSONSourceSpecification;
35
+ zoom(): number;
36
+ }
37
+
38
+ export declare const hasSiblings: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
39
+
40
+ export declare abstract class LayerBase<T extends MapBox.Layer> {
41
+ id: string;
42
+ source: string;
43
+ constructor(id: string, source: string);
44
+ update(map: MapBox.Map, show?: boolean): void;
45
+ abstract buildLayer(): T;
46
+ }
47
+
48
+ export declare type MercatorBoundary = MercatorLngLat[];
49
+
50
+ export declare class MercatorBoundingBox extends MapBox.LngLatBounds {
51
+ }
52
+
53
+ export declare class MercatorLngLat extends MapBox.LngLat {
54
+ }
55
+
56
+ export declare type MercatorTile = number[];
57
+
58
+ export declare const r2d: number;
59
+
60
+ export declare const tileFromPoint: (point: MercatorLngLat, z: number) => number[];
61
+
62
+ export declare const tileFromQuadkey: (quadkey: string) => number[];
63
+
64
+ export declare const tilesEqual: (tile1: MercatorTile, tile2: MercatorTile) => boolean;
65
+
66
+ export declare const tilesFromBoundingBox: (box: MercatorBoundingBox, zoom: number) => MercatorTile[];
67
+
68
+ export declare const tilesHasTile: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
69
+
70
+ export declare const tileToBoundingBox: (tile: MercatorTile) => MercatorBoundingBox;
71
+
72
+ export declare const tileToChildren: (tile: MercatorTile) => number[][];
73
+
74
+ export declare const tileToGeoJson: (tile: MercatorTile) => Polygon;
75
+
76
+ export declare const tileToParent: (tile: MercatorTile) => MercatorTile;
77
+
78
+ export declare const tileToPoint: (tile: MercatorTile) => MercatorLngLat;
79
+
80
+ export declare const tileToQuadkey: (tile: MercatorTile) => string;
81
+
82
+ export declare const tileToSiblings: (tile: MercatorTile) => MercatorTile[];
83
+
84
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/geo",
3
- "version": "4.12.44",
3
+ "version": "4.13.1",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -27,20 +27,20 @@
27
27
  "type": "module",
28
28
  "exports": {
29
29
  ".": {
30
- "types": "./dist/types/index.d.ts",
30
+ "types": "./dist/neutral/index.d.ts",
31
31
  "import": "./dist/neutral/index.mjs"
32
32
  },
33
33
  "./package.json": "./package.json"
34
34
  },
35
35
  "module": "dist/neutral/index.mjs",
36
- "types": "dist/types/index.d.ts",
36
+ "types": "dist/neutral/index.d.ts",
37
37
  "dependencies": {
38
38
  "@types/geojson": "^7946.0.16",
39
39
  "mapbox-gl": "^3.13.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
43
- "@xylabs/tsconfig": "^6.5.12",
42
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.7",
43
+ "@xylabs/tsconfig": "^7.0.0-rc.7",
44
44
  "typescript": "^5.8.3",
45
45
  "vitest": "^3.2.4"
46
46
  },
@@ -1,25 +0,0 @@
1
- import type { Feature, FeatureCollection, Geometry, Point, Polygon } from 'geojson';
2
- import MapBox from 'mapbox-gl';
3
- declare class GeoJson {
4
- private _lngLat?;
5
- private _point?;
6
- private _polygon?;
7
- private _zoom?;
8
- private quadkey;
9
- constructor(quadkey: string);
10
- static featureCollection(features: Feature[]): FeatureCollection;
11
- static featuresSource(data: FeatureCollection): MapBox.GeoJSONSourceSpecification;
12
- static geometryFeature(geometry: Geometry): Feature;
13
- center(): MapBox.LngLat;
14
- point(): Point;
15
- pointFeature(): Feature;
16
- pointFeatureCollection(): FeatureCollection;
17
- pointSource(): MapBox.GeoJSONSourceSpecification;
18
- polygon(): Polygon;
19
- polygonFeature(): Feature;
20
- polygonFeatureCollection(): FeatureCollection;
21
- polygonSource(): MapBox.GeoJSONSourceSpecification;
22
- zoom(): number;
23
- }
24
- export { GeoJson };
25
- //# sourceMappingURL=GeoJson.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GeoJson.d.ts","sourceRoot":"","sources":["../../src/GeoJson.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EACrD,MAAM,SAAS,CAAA;AAChB,OAAO,MAAM,MAAM,WAAW,CAAA;AAM9B,cAAM,OAAO;IACX,OAAO,CAAC,OAAO,CAAC,CAAe;IAC/B,OAAO,CAAC,MAAM,CAAC,CAAO;IACtB,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,KAAK,CAAC,CAAQ;IAEtB,OAAO,CAAC,OAAO,CAAQ;gBAEX,OAAO,EAAE,MAAM;IAI3B,MAAM,CAAC,iBAAiB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,iBAAiB;IAOhE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,0BAA0B;IAOjF,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;IAQnD,MAAM,IAAI,MAAM,CAAC,MAAM;IAUvB,KAAK,IAAI,KAAK;IAUd,YAAY,IAAI,OAAO;IAIvB,sBAAsB,IAAI,iBAAiB;IAI3C,WAAW,IAAI,MAAM,CAAC,0BAA0B;IAOhD,OAAO,IAAI,OAAO;IAOlB,cAAc,IAAI,OAAO;IAIzB,wBAAwB,IAAI,iBAAiB;IAI7C,aAAa,IAAI,MAAM,CAAC,0BAA0B;IAIlD,IAAI,IAAI,MAAM;CAIf;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,9 +0,0 @@
1
- import type MapBox from 'mapbox-gl';
2
- export declare abstract class LayerBase<T extends MapBox.Layer> {
3
- id: string;
4
- source: string;
5
- constructor(id: string, source: string);
6
- update(map: MapBox.Map, show?: boolean): void;
7
- abstract buildLayer(): T;
8
- }
9
- //# sourceMappingURL=LayerBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LayerBase.d.ts","sourceRoot":"","sources":["../../src/LayerBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,WAAW,CAAA;AAEnC,8BAAsB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,KAAK;IACpD,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;gBAEF,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAKtC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,UAAO;IASnC,QAAQ,CAAC,UAAU,IAAI,CAAC;CACzB"}
@@ -1,4 +0,0 @@
1
- export * from './GeoJson.ts';
2
- export * from './LayerBase.ts';
3
- export * from './mercator/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './to/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mercator/boundingbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { MercatorBoundary, MercatorBoundingBox } from '../../types.ts';
2
- export declare const boundingBoxToBoundary: (box: MercatorBoundingBox) => MercatorBoundary;
3
- //# sourceMappingURL=boundary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/boundingbox/to/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAE3E,eAAO,MAAM,qBAAqB,GAAI,KAAK,mBAAmB,KAAG,gBAEhE,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { MercatorBoundingBox } from '../../types.ts';
2
- export declare const boundingBoxToCenter: (boundingBox: MercatorBoundingBox, decimal?: number) => number[];
3
- //# sourceMappingURL=center.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"center.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/boundingbox/to/center.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEzD,eAAO,MAAM,mBAAmB,GAAI,aAAa,mBAAmB,EAAE,gBAAW,aAYhF,CAAA"}
@@ -1,4 +0,0 @@
1
- export { boundingBoxToBoundary } from './boundary.ts';
2
- export { boundingBoxToCenter } from './center.ts';
3
- export { boundingBoxToPolygon } from './polygon.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/boundingbox/to/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { Polygon } from 'geojson';
2
- import type { MercatorBoundingBox } from '../../types.ts';
3
- export declare const boundingBoxToPolygon: (box: MercatorBoundingBox) => Polygon;
4
- //# sourceMappingURL=polygon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/boundingbox/to/polygon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,gBAAgB,CAAA;AAGzE,eAAO,MAAM,oBAAoB,GAAI,KAAK,mBAAmB,KAAG,OAM/D,CAAA"}
@@ -1,4 +0,0 @@
1
- declare const d2r: number;
2
- declare const r2d: number;
3
- export { d2r, r2d };
4
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/mercator/constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,QAAgB,CAAA;AACzB,QAAA,MAAM,GAAG,QAAgB,CAAA;AAEzB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA"}
@@ -1,6 +0,0 @@
1
- export * from './boundingbox/index.ts';
2
- export * from './constants.ts';
3
- export * from './tile/index.ts';
4
- export * from './tiles/index.ts';
5
- export * from './types.ts';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mercator/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
@@ -1,3 +0,0 @@
1
- export { tileFromPoint } from './point.ts';
2
- export { tileFromQuadkey } from './quadkey.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/from/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { MercatorLngLat } from '../../types.ts';
2
- declare const tileFromPoint: (point: MercatorLngLat, z: number) => number[];
3
- export { tileFromPoint };
4
- //# sourceMappingURL=point.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/from/point.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAcpD,QAAA,MAAM,aAAa,GAAI,OAAO,cAAc,EAAE,GAAG,MAAM,aAWtD,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const tileFromQuadkey: (quadkey: string) => number[];
2
- export { tileFromQuadkey };
3
- //# sourceMappingURL=quadkey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quadkey.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/from/quadkey.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe,GAAI,SAAS,MAAM,aAgBvC,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './from/index.ts';
2
- export * from './to/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tile/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { MercatorTile } from '../../types.ts';
2
- import { MercatorBoundingBox } from '../../types.ts';
3
- declare const tileToBoundingBox: (tile: MercatorTile) => MercatorBoundingBox;
4
- export { tileToBoundingBox };
5
- //# sourceMappingURL=boundingbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boundingbox.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/boundingbox.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAWpD,QAAA,MAAM,iBAAiB,GAAI,MAAM,YAAY,KAAG,mBAM/C,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { MercatorTile } from '../../types.ts';
2
- declare const tileToChildren: (tile: MercatorTile) => number[][];
3
- export { tileToChildren };
4
- //# sourceMappingURL=children.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"children.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/children.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,QAAA,MAAM,cAAc,GAAI,MAAM,YAAY,eAOzC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { Polygon } from 'geojson';
2
- import type { MercatorTile } from '../../types.ts';
3
- declare const tileToGeoJson: (tile: MercatorTile) => Polygon;
4
- export { tileToGeoJson };
5
- //# sourceMappingURL=geoJson.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"geoJson.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/geoJson.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,SAAS,CAAA;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD,QAAA,MAAM,aAAa,GAAI,MAAM,YAAY,KAAG,OAe3C,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,8 +0,0 @@
1
- export { tileToBoundingBox } from './boundingbox.ts';
2
- export { tileToChildren } from './children.ts';
3
- export { tileToGeoJson } from './geoJson.ts';
4
- export { tileToParent } from './parent.ts';
5
- export { tileToPoint } from './point.ts';
6
- export { tileToQuadkey } from './quadkey.ts';
7
- export { tileToSiblings } from './siblings.ts';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { MercatorTile } from '../../types.ts';
2
- declare const tileToParent: (tile: MercatorTile) => MercatorTile;
3
- export { tileToParent };
4
- //# sourceMappingURL=parent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/parent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,QAAA,MAAM,YAAY,GAAI,MAAM,YAAY,KAAG,YAE1C,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { MercatorLngLat, MercatorTile } from '../../types.ts';
2
- declare const tileToPoint: (tile: MercatorTile) => MercatorLngLat;
3
- export { tileToPoint };
4
- //# sourceMappingURL=point.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlE,QAAA,MAAM,WAAW,GAAI,MAAM,YAAY,KAAG,cAIzC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { MercatorTile } from '../../types.ts';
2
- declare const tileToQuadkey: (tile: MercatorTile) => string;
3
- export { tileToQuadkey };
4
- //# sourceMappingURL=quadkey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quadkey.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/quadkey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,QAAA,MAAM,aAAa,GAAI,MAAM,YAAY,KAAG,MAU3C,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { MercatorTile } from '../../types.ts';
2
- declare const tileToSiblings: (tile: MercatorTile) => MercatorTile[];
3
- export { tileToSiblings };
4
- //# sourceMappingURL=siblings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"siblings.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/siblings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIlD,QAAA,MAAM,cAAc,GAAI,MAAM,YAAY,KAAG,YAAY,EAExD,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { MercatorTile } from '../types.ts';
2
- export declare const tilesEqual: (tile1: MercatorTile, tile2: MercatorTile) => boolean;
3
- //# sourceMappingURL=equal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tiles/equal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY,EAAE,OAAO,YAAY,YAElE,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { MercatorBoundingBox, MercatorTile } from '../../types.ts';
2
- declare const tilesFromBoundingBox: (box: MercatorBoundingBox, zoom: number) => MercatorTile[];
3
- export { tilesFromBoundingBox };
4
- //# sourceMappingURL=boundingbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boundingbox.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tiles/from/boundingbox.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEvE,QAAA,MAAM,oBAAoB,GAAI,KAAK,mBAAmB,EAAE,MAAM,MAAM,KAAG,YAAY,EA+BlF,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
@@ -1,2 +0,0 @@
1
- export { tilesFromBoundingBox } from './boundingbox.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tiles/from/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { MercatorTile } from '../types.ts';
2
- export declare const hasSiblings: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
3
- //# sourceMappingURL=hasSiblings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hasSiblings.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tiles/hasSiblings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C,eAAO,MAAM,WAAW,GAAI,OAAO,YAAY,EAAE,EAAE,MAAM,YAAY,YAMpE,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { MercatorTile } from '../types.ts';
2
- export declare const tilesHasTile: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
3
- //# sourceMappingURL=hasTile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hasTile.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tiles/hasTile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,EAAE,MAAM,YAAY,YAKrE,CAAA"}
@@ -1,6 +0,0 @@
1
- export * from './equal.ts';
2
- export * from './from/index.ts';
3
- export * from './hasSiblings.ts';
4
- export * from './hasTile.ts';
5
- export * from './hasTile.ts';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tiles/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA"}
@@ -1,10 +0,0 @@
1
- import MapBox from 'mapbox-gl';
2
- type MercatorTile = number[];
3
- type MercatorBoundary = MercatorLngLat[];
4
- declare class MercatorBoundingBox extends MapBox.LngLatBounds {
5
- }
6
- declare class MercatorLngLat extends MapBox.LngLat {
7
- }
8
- export { MercatorBoundingBox, MercatorLngLat };
9
- export type { MercatorBoundary, MercatorTile };
10
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/mercator/types.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAA;AAE9B,KAAK,YAAY,GAAG,MAAM,EAAE,CAAA;AAC5B,KAAK,gBAAgB,GAAG,cAAc,EAAE,CAAA;AACxC,cAAM,mBAAoB,SAAQ,MAAM,CAAC,YAAY;CAAG;AACxD,cAAM,cAAe,SAAQ,MAAM,CAAC,MAAM;CAAG;AAE7C,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,CAAA;AAC9C,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAA"}