@xylabs/geo 4.13.13 → 4.13.15

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/build/neutral/GeoJson.d.ts +25 -0
  2. package/build/neutral/GeoJson.d.ts.map +1 -0
  3. package/build/neutral/LayerBase.d.ts +9 -0
  4. package/build/neutral/LayerBase.d.ts.map +1 -0
  5. package/build/neutral/index.d.ts +4 -0
  6. package/build/neutral/index.d.ts.map +1 -0
  7. package/build/neutral/mercator/boundingbox/index.d.ts +2 -0
  8. package/build/neutral/mercator/boundingbox/index.d.ts.map +1 -0
  9. package/build/neutral/mercator/boundingbox/to/boundary.d.ts +3 -0
  10. package/build/neutral/mercator/boundingbox/to/boundary.d.ts.map +1 -0
  11. package/build/neutral/mercator/boundingbox/to/center.d.ts +3 -0
  12. package/build/neutral/mercator/boundingbox/to/center.d.ts.map +1 -0
  13. package/build/neutral/mercator/boundingbox/to/index.d.ts +4 -0
  14. package/build/neutral/mercator/boundingbox/to/index.d.ts.map +1 -0
  15. package/build/neutral/mercator/boundingbox/to/polygon.d.ts +4 -0
  16. package/build/neutral/mercator/boundingbox/to/polygon.d.ts.map +1 -0
  17. package/build/neutral/mercator/constants.d.ts +4 -0
  18. package/build/neutral/mercator/constants.d.ts.map +1 -0
  19. package/build/neutral/mercator/index.d.ts +6 -0
  20. package/build/neutral/mercator/index.d.ts.map +1 -0
  21. package/build/neutral/mercator/tile/from/index.d.ts +3 -0
  22. package/build/neutral/mercator/tile/from/index.d.ts.map +1 -0
  23. package/build/neutral/mercator/tile/from/point.d.ts +4 -0
  24. package/build/neutral/mercator/tile/from/point.d.ts.map +1 -0
  25. package/build/neutral/mercator/tile/from/quadkey.d.ts +3 -0
  26. package/build/neutral/mercator/tile/from/quadkey.d.ts.map +1 -0
  27. package/build/neutral/mercator/tile/index.d.ts +3 -0
  28. package/build/neutral/mercator/tile/index.d.ts.map +1 -0
  29. package/build/neutral/mercator/tile/to/boundingbox.d.ts +5 -0
  30. package/build/neutral/mercator/tile/to/boundingbox.d.ts.map +1 -0
  31. package/build/neutral/mercator/tile/to/children.d.ts +4 -0
  32. package/build/neutral/mercator/tile/to/children.d.ts.map +1 -0
  33. package/build/neutral/mercator/tile/to/geoJson.d.ts +5 -0
  34. package/build/neutral/mercator/tile/to/geoJson.d.ts.map +1 -0
  35. package/build/neutral/mercator/tile/to/index.d.ts +8 -0
  36. package/build/neutral/mercator/tile/to/index.d.ts.map +1 -0
  37. package/build/neutral/mercator/tile/to/parent.d.ts +4 -0
  38. package/build/neutral/mercator/tile/to/parent.d.ts.map +1 -0
  39. package/build/neutral/mercator/tile/to/point.d.ts +4 -0
  40. package/build/neutral/mercator/tile/to/point.d.ts.map +1 -0
  41. package/build/neutral/mercator/tile/to/quadkey.d.ts +4 -0
  42. package/build/neutral/mercator/tile/to/quadkey.d.ts.map +1 -0
  43. package/build/neutral/mercator/tile/to/siblings.d.ts +4 -0
  44. package/build/neutral/mercator/tile/to/siblings.d.ts.map +1 -0
  45. package/build/neutral/mercator/tiles/equal.d.ts +3 -0
  46. package/build/neutral/mercator/tiles/equal.d.ts.map +1 -0
  47. package/build/neutral/mercator/tiles/from/boundingbox.d.ts +4 -0
  48. package/build/neutral/mercator/tiles/from/boundingbox.d.ts.map +1 -0
  49. package/build/neutral/mercator/tiles/from/index.d.ts +2 -0
  50. package/build/neutral/mercator/tiles/from/index.d.ts.map +1 -0
  51. package/build/neutral/mercator/tiles/hasSiblings.d.ts +3 -0
  52. package/build/neutral/mercator/tiles/hasSiblings.d.ts.map +1 -0
  53. package/build/neutral/mercator/tiles/hasTile.d.ts +3 -0
  54. package/build/neutral/mercator/tiles/hasTile.d.ts.map +1 -0
  55. package/build/neutral/mercator/tiles/index.d.ts +6 -0
  56. package/build/neutral/mercator/tiles/index.d.ts.map +1 -0
  57. package/build/neutral/mercator/types.d.ts +10 -0
  58. package/build/neutral/mercator/types.d.ts.map +1 -0
  59. package/dist/neutral/index.d.ts +13 -0
  60. package/package.json +3 -3
@@ -0,0 +1,25 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ export * from './GeoJson.ts';
2
+ export * from './LayerBase.ts';
3
+ export * from './mercator/index.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export * from './to/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mercator/boundingbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { MercatorBoundary, MercatorBoundingBox } from '../../types.ts';
2
+ export declare const boundingBoxToBoundary: (box: MercatorBoundingBox) => MercatorBoundary;
3
+ //# sourceMappingURL=boundary.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import type { MercatorBoundingBox } from '../../types.ts';
2
+ export declare const boundingBoxToCenter: (boundingBox: MercatorBoundingBox, decimal?: number) => number[];
3
+ //# sourceMappingURL=center.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ export { boundingBoxToBoundary } from './boundary.ts';
2
+ export { boundingBoxToCenter } from './center.ts';
3
+ export { boundingBoxToPolygon } from './polygon.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ declare const d2r: number;
2
+ declare const r2d: number;
3
+ export { d2r, r2d };
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export { tileFromPoint } from './point.ts';
2
+ export { tileFromQuadkey } from './quadkey.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ declare const tileFromQuadkey: (quadkey: string) => number[];
2
+ export { tileFromQuadkey };
3
+ //# sourceMappingURL=quadkey.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export * from './from/index.ts';
2
+ export * from './to/index.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ import type { MercatorTile } from '../../types.ts';
2
+ declare const tileToChildren: (tile: MercatorTile) => number[][];
3
+ export { tileToChildren };
4
+ //# sourceMappingURL=children.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ import type { MercatorTile } from '../../types.ts';
2
+ declare const tileToParent: (tile: MercatorTile) => MercatorTile;
3
+ export { tileToParent };
4
+ //# sourceMappingURL=parent.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ import type { MercatorLngLat, MercatorTile } from '../../types.ts';
2
+ declare const tileToPoint: (tile: MercatorTile) => MercatorLngLat;
3
+ export { tileToPoint };
4
+ //# sourceMappingURL=point.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ import type { MercatorTile } from '../../types.ts';
2
+ declare const tileToQuadkey: (tile: MercatorTile) => string;
3
+ export { tileToQuadkey };
4
+ //# sourceMappingURL=quadkey.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ import type { MercatorTile } from '../../types.ts';
2
+ declare const tileToSiblings: (tile: MercatorTile) => MercatorTile[];
3
+ export { tileToSiblings };
4
+ //# sourceMappingURL=siblings.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import type { MercatorTile } from '../types.ts';
2
+ export declare const tilesEqual: (tile1: MercatorTile, tile2: MercatorTile) => boolean;
3
+ //# sourceMappingURL=equal.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export { tilesFromBoundingBox } from './boundingbox.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import type { MercatorTile } from '../types.ts';
2
+ export declare const hasSiblings: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
3
+ //# sourceMappingURL=hasSiblings.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import type { MercatorTile } from '../types.ts';
2
+ export declare const tilesHasTile: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
3
+ //# sourceMappingURL=hasTile.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -22,6 +22,7 @@ declare class GeoJson {
22
22
  polygonSource(): MapBox.GeoJSONSourceSpecification;
23
23
  zoom(): number;
24
24
  }
25
+ //# sourceMappingURL=GeoJson.d.ts.map
25
26
 
26
27
  declare abstract class LayerBase<T extends MapBox.Layer> {
27
28
  id: string;
@@ -37,6 +38,7 @@ declare class MercatorBoundingBox extends MapBox.LngLatBounds {
37
38
  }
38
39
  declare class MercatorLngLat extends MapBox.LngLat {
39
40
  }
41
+ //# sourceMappingURL=types.d.ts.map
40
42
 
41
43
  declare const boundingBoxToBoundary: (box: MercatorBoundingBox) => MercatorBoundary;
42
44
 
@@ -46,28 +48,39 @@ declare const boundingBoxToPolygon: (box: MercatorBoundingBox) => Polygon;
46
48
 
47
49
  declare const d2r: number;
48
50
  declare const r2d: number;
51
+ //# sourceMappingURL=constants.d.ts.map
49
52
 
50
53
  declare const tileFromPoint: (point: MercatorLngLat, z: number) => number[];
54
+ //# sourceMappingURL=point.d.ts.map
51
55
 
52
56
  declare const tileFromQuadkey: (quadkey: string) => number[];
57
+ //# sourceMappingURL=quadkey.d.ts.map
53
58
 
54
59
  declare const tileToBoundingBox: (tile: MercatorTile) => MercatorBoundingBox;
60
+ //# sourceMappingURL=boundingbox.d.ts.map
55
61
 
56
62
  declare const tileToChildren: (tile: MercatorTile) => number[][];
63
+ //# sourceMappingURL=children.d.ts.map
57
64
 
58
65
  declare const tileToGeoJson: (tile: MercatorTile) => Polygon;
66
+ //# sourceMappingURL=geoJson.d.ts.map
59
67
 
60
68
  declare const tileToParent: (tile: MercatorTile) => MercatorTile;
69
+ //# sourceMappingURL=parent.d.ts.map
61
70
 
62
71
  declare const tileToPoint: (tile: MercatorTile) => MercatorLngLat;
72
+ //# sourceMappingURL=point.d.ts.map
63
73
 
64
74
  declare const tileToQuadkey: (tile: MercatorTile) => string;
75
+ //# sourceMappingURL=quadkey.d.ts.map
65
76
 
66
77
  declare const tileToSiblings: (tile: MercatorTile) => MercatorTile[];
78
+ //# sourceMappingURL=siblings.d.ts.map
67
79
 
68
80
  declare const tilesEqual: (tile1: MercatorTile, tile2: MercatorTile) => boolean;
69
81
 
70
82
  declare const tilesFromBoundingBox: (box: MercatorBoundingBox, zoom: number) => MercatorTile[];
83
+ //# sourceMappingURL=boundingbox.d.ts.map
71
84
 
72
85
  declare const hasSiblings: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
73
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/geo",
3
- "version": "4.13.13",
3
+ "version": "4.13.15",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -39,8 +39,8 @@
39
39
  "mapbox-gl": "^3.13.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.9",
43
- "@xylabs/tsconfig": "^7.0.0-rc.9",
42
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
43
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
44
44
  "typescript": "^5.8.3",
45
45
  "vitest": "^3.2.4"
46
46
  },