@developmentseed/morecantile 0.1.0 → 0.1.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 (81) hide show
  1. package/dist/index.d.ts +2 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/index.d.ts +5 -0
  6. package/dist/types/index.d.ts.map +1 -0
  7. package/dist/types/index.js +2 -0
  8. package/dist/types/index.js.map +1 -0
  9. package/dist/types/spec/2DBoundingBox.d.ts +17 -0
  10. package/dist/types/spec/2DBoundingBox.d.ts.map +1 -0
  11. package/dist/types/spec/2DBoundingBox.js +5 -0
  12. package/dist/types/spec/2DBoundingBox.js.map +1 -0
  13. package/dist/types/spec/2DPoint.d.ts +8 -0
  14. package/dist/types/spec/2DPoint.d.ts.map +1 -0
  15. package/dist/types/spec/2DPoint.js +5 -0
  16. package/dist/types/spec/2DPoint.js.map +1 -0
  17. package/dist/types/spec/crs.d.ts +20 -0
  18. package/dist/types/spec/crs.d.ts.map +1 -0
  19. package/dist/types/spec/crs.js +5 -0
  20. package/dist/types/spec/crs.js.map +1 -0
  21. package/dist/types/spec/dataType.d.ts +2 -0
  22. package/dist/types/spec/dataType.d.ts.map +1 -0
  23. package/dist/types/spec/dataType.js +5 -0
  24. package/dist/types/spec/dataType.js.map +1 -0
  25. package/dist/types/spec/geospatialData.d.ts +112 -0
  26. package/dist/types/spec/geospatialData.d.ts.map +1 -0
  27. package/dist/types/spec/geospatialData.js +5 -0
  28. package/dist/types/spec/geospatialData.js.map +1 -0
  29. package/dist/types/spec/index.d.ts +17 -0
  30. package/dist/types/spec/index.d.ts.map +1 -0
  31. package/dist/types/spec/index.js +20 -0
  32. package/dist/types/spec/index.js.map +1 -0
  33. package/dist/types/spec/link.d.ts +36 -0
  34. package/dist/types/spec/link.d.ts.map +1 -0
  35. package/dist/types/spec/link.js +5 -0
  36. package/dist/types/spec/link.js.map +1 -0
  37. package/dist/types/spec/projJSON.d.ts +3 -0
  38. package/dist/types/spec/projJSON.d.ts.map +1 -0
  39. package/dist/types/spec/projJSON.js +5 -0
  40. package/dist/types/spec/projJSON.js.map +1 -0
  41. package/dist/types/spec/propertiesSchema.d.ts +71 -0
  42. package/dist/types/spec/propertiesSchema.d.ts.map +1 -0
  43. package/dist/types/spec/propertiesSchema.js +5 -0
  44. package/dist/types/spec/propertiesSchema.js.map +1 -0
  45. package/dist/types/spec/style.d.ts +27 -0
  46. package/dist/types/spec/style.d.ts.map +1 -0
  47. package/dist/types/spec/style.js +5 -0
  48. package/dist/types/spec/style.js.map +1 -0
  49. package/dist/types/spec/tileMatrix.d.ts +60 -0
  50. package/dist/types/spec/tileMatrix.d.ts.map +1 -0
  51. package/dist/types/spec/tileMatrix.js +5 -0
  52. package/dist/types/spec/tileMatrix.js.map +1 -0
  53. package/dist/types/spec/tileMatrixLimits.d.ts +12 -0
  54. package/dist/types/spec/tileMatrixLimits.d.ts.map +1 -0
  55. package/dist/types/spec/tileMatrixLimits.js +5 -0
  56. package/dist/types/spec/tileMatrixLimits.js.map +1 -0
  57. package/dist/types/spec/tileMatrixSet.d.ts +48 -0
  58. package/dist/types/spec/tileMatrixSet.d.ts.map +1 -0
  59. package/dist/types/spec/tileMatrixSet.js +5 -0
  60. package/dist/types/spec/tileMatrixSet.js.map +1 -0
  61. package/dist/types/spec/tilePoint.d.ts +25 -0
  62. package/dist/types/spec/tilePoint.d.ts.map +1 -0
  63. package/dist/types/spec/tilePoint.js +5 -0
  64. package/dist/types/spec/tilePoint.js.map +1 -0
  65. package/dist/types/spec/tileSet.d.ts +93 -0
  66. package/dist/types/spec/tileSet.d.ts.map +1 -0
  67. package/dist/types/spec/tileSet.js +5 -0
  68. package/dist/types/spec/tileSet.js.map +1 -0
  69. package/dist/types/spec/timeStamp.d.ts +5 -0
  70. package/dist/types/spec/timeStamp.d.ts.map +1 -0
  71. package/dist/types/spec/timeStamp.js +5 -0
  72. package/dist/types/spec/timeStamp.js.map +1 -0
  73. package/dist/types/spec/variableMatrixWidth.d.ts +19 -0
  74. package/dist/types/spec/variableMatrixWidth.d.ts.map +1 -0
  75. package/dist/types/spec/variableMatrixWidth.js +5 -0
  76. package/dist/types/spec/variableMatrixWidth.js.map +1 -0
  77. package/dist/utils.d.ts +18 -0
  78. package/dist/utils.d.ts.map +1 -0
  79. package/dist/utils.js +38 -0
  80. package/dist/utils.js.map +1 -0
  81. package/package.json +23 -17
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export {};
1
+ export type { BoundingBox, CRS, TileMatrix, TileMatrixSet, } from "./types/index";
2
+ export { metersPerUnit } from "./utils";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,GAAG,EACH,UAAU,EACV,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export {};
1
+ export { metersPerUnit } from "./utils";
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type { DBoundingBox as BoundingBox } from "./spec/2DBoundingBox";
2
+ export type { CRS } from "./spec/crs";
3
+ export type { TileMatrix } from "./spec/tileMatrix";
4
+ export type { TileMatrixSetDefinition as TileMatrixSet } from "./spec/tileMatrixSet";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxE,YAAY,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,uBAAuB,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import type { DPoint } from "./2DPoint.js";
2
+ import type { CRS } from "./crs.js";
3
+ /**
4
+ * Minimum bounding rectangle surrounding a 2D resource in the CRS indicated elsewhere
5
+ */
6
+ export interface DBoundingBox {
7
+ lowerLeft: DPoint;
8
+ upperRight: DPoint;
9
+ crs?: CRS;
10
+ /**
11
+ * @minItems 2
12
+ * @maxItems 2
13
+ */
14
+ orderedAxes?: [string, string];
15
+ [k: string]: unknown;
16
+ }
17
+ //# sourceMappingURL=2DBoundingBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2DBoundingBox.d.ts","sourceRoot":"","sources":["../../../src/types/spec/2DBoundingBox.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=2DBoundingBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2DBoundingBox.js","sourceRoot":"","sources":["../../../src/types/spec/2DBoundingBox.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A 2D Point in the CRS indicated elsewhere
3
+ *
4
+ * @minItems 2
5
+ * @maxItems 2
6
+ */
7
+ export type DPoint = [number, number];
8
+ //# sourceMappingURL=2DPoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2DPoint.d.ts","sourceRoot":"","sources":["../../../src/types/spec/2DPoint.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=2DPoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2DPoint.js","sourceRoot":"","sources":["../../../src/types/spec/2DPoint.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,20 @@
1
+ import type { ProjJSON } from "./projJSON.js";
2
+ export type CRS = string | ({
3
+ /**
4
+ * Reference to one coordinate reference system (CRS)
5
+ */
6
+ uri: string;
7
+ [k: string]: unknown;
8
+ } | {
9
+ wkt: ProjJSON;
10
+ [k: string]: unknown;
11
+ } | {
12
+ /**
13
+ * A reference system data structure as defined in the MD_ReferenceSystem of the ISO 19115
14
+ */
15
+ referenceSystem: {
16
+ [k: string]: unknown;
17
+ };
18
+ [k: string]: unknown;
19
+ });
20
+ //# sourceMappingURL=crs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crs.d.ts","sourceRoot":"","sources":["../../../src/types/spec/crs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,GAAG,GACX,MAAM,GACN,CACI;IACE;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,GACD;IACE,GAAG,EAAE,QAAQ,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,GACD;IACE;;OAEG;IACH,eAAe,EAAE;QACf,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=crs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crs.js","sourceRoot":"","sources":["../../../src/types/spec/crs.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,2 @@
1
+ export type DataType = string | ("map" | "vector" | "coverage");
2
+ //# sourceMappingURL=dataType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataType.d.ts","sourceRoot":"","sources":["../../../src/types/spec/dataType.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=dataType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataType.js","sourceRoot":"","sources":["../../../src/types/spec/dataType.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,112 @@
1
+ import type { DBoundingBox } from "./2DBoundingBox.js";
2
+ import type { CRS } from "./crs.js";
3
+ import type { LinkSchema } from "./link.js";
4
+ import type { PropertiesSchema } from "./propertiesSchema.js";
5
+ import type { Style } from "./style.js";
6
+ export interface GeospatialData {
7
+ /**
8
+ * Title of this tile matrix set, normally used for display to a human
9
+ */
10
+ title?: string;
11
+ /**
12
+ * Brief narrative description of this tile matrix set, normally available for display to a human
13
+ */
14
+ description?: string;
15
+ /**
16
+ * Unordered list of one or more commonly used or formalized word(s) or phrase(s) used to describe this layer
17
+ */
18
+ keywords?: string;
19
+ /**
20
+ * Unique identifier of the Layer. Implementation of 'identifier'
21
+ */
22
+ id: string;
23
+ dataType: {
24
+ [k: string]: unknown;
25
+ } & (string | ("map" | "vector" | "coverage"));
26
+ /**
27
+ * The geometry dimension of the features shown in this layer (0: points, 1: curves, 2: surfaces, 3: solids), unspecified: mixed or unknown
28
+ */
29
+ geometryDimension?: number;
30
+ /**
31
+ * Feature type identifier. Only applicable to layers of datatype 'geometries'
32
+ */
33
+ featureType?: string;
34
+ /**
35
+ * Useful information to contact the authors or custodians for the layer (e.g. e-mail address, a physical address, phone numbers, etc)
36
+ */
37
+ pointOfContact?: string;
38
+ /**
39
+ * Short reference to recognize the author or provider
40
+ */
41
+ attribution?: string;
42
+ /**
43
+ * License applicable to the tiles
44
+ */
45
+ license?: string;
46
+ /**
47
+ * Organization or individual responsible for making the layer available
48
+ */
49
+ publisher?: string;
50
+ /**
51
+ * Category where the layer can be grouped
52
+ */
53
+ theme?: string;
54
+ crs?: {
55
+ [k: string]: unknown;
56
+ } & CRS;
57
+ /**
58
+ * Epoch of the Coordinate Reference System (CRS)
59
+ */
60
+ epoch?: number;
61
+ /**
62
+ * Minimum scale denominator for usage of the layer
63
+ */
64
+ minScaleDenominator?: number;
65
+ /**
66
+ * Maximum scale denominator for usage of the layer
67
+ */
68
+ maxScaleDenominator?: number;
69
+ /**
70
+ * Minimum cell size for usage of the layer
71
+ */
72
+ minCellSize?: number;
73
+ /**
74
+ * Maximum cell size for usage of the layer
75
+ */
76
+ maxCellSize?: number;
77
+ /**
78
+ * TileMatrix identifier associated with the minScaleDenominator
79
+ */
80
+ maxTileMatrix?: string;
81
+ /**
82
+ * TileMatrix identifier associated with the maxScaleDenominator
83
+ */
84
+ minTileMatrix?: string;
85
+ boundingBox?: {
86
+ [k: string]: unknown;
87
+ } & DBoundingBox;
88
+ created?: {
89
+ [k: string]: unknown;
90
+ } & string;
91
+ updated?: {
92
+ [k: string]: unknown;
93
+ } & string;
94
+ style?: {
95
+ [k: string]: unknown;
96
+ } & Style;
97
+ /**
98
+ * URI identifying a class of data contained in this layer (useful to determine compatibility with styles or processes)
99
+ */
100
+ geoDataClasses?: string[];
101
+ propertiesSchema?: {
102
+ [k: string]: unknown;
103
+ } & PropertiesSchema;
104
+ /**
105
+ * Links related to this layer. Possible link 'rel' values are: 'geodata' for a URL pointing to the collection of geospatial data.
106
+ *
107
+ * @minItems 1
108
+ */
109
+ links?: [LinkSchema, ...LinkSchema[]];
110
+ [k: string]: unknown;
111
+ }
112
+ //# sourceMappingURL=geospatialData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geospatialData.d.ts","sourceRoot":"","sources":["../../../src/types/spec/geospatialData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,CAAC,MAAM,GAAG,CAAC,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC;IAC/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE;QACJ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,GAAG,CAAC;IACR;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,YAAY,CAAC;IACjB,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX,KAAK,CAAC,EAAE;QACN,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,KAAK,CAAC;IACV;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE;QACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,gBAAgB,CAAC;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=geospatialData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geospatialData.js","sourceRoot":"","sources":["../../../src/types/spec/geospatialData.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,17 @@
1
+ export * from "./2DBoundingBox.js";
2
+ export * from "./2DPoint.js";
3
+ export * from "./crs.js";
4
+ export * from "./dataType.js";
5
+ export * from "./geospatialData.js";
6
+ export * from "./link.js";
7
+ export * from "./projJSON.js";
8
+ export * from "./propertiesSchema.js";
9
+ export * from "./style.js";
10
+ export * from "./tileMatrix.js";
11
+ export * from "./tileMatrixLimits.js";
12
+ export * from "./tileMatrixSet.js";
13
+ export * from "./tilePoint.js";
14
+ export * from "./tileSet.js";
15
+ export * from "./timeStamp.js";
16
+ export * from "./variableMatrixWidth.js";
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/spec/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,20 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export * from "./2DBoundingBox.js";
5
+ export * from "./2DPoint.js";
6
+ export * from "./crs.js";
7
+ export * from "./dataType.js";
8
+ export * from "./geospatialData.js";
9
+ export * from "./link.js";
10
+ export * from "./projJSON.js";
11
+ export * from "./propertiesSchema.js";
12
+ export * from "./style.js";
13
+ export * from "./tileMatrix.js";
14
+ export * from "./tileMatrixLimits.js";
15
+ export * from "./tileMatrixSet.js";
16
+ export * from "./tilePoint.js";
17
+ export * from "./tileSet.js";
18
+ export * from "./timeStamp.js";
19
+ export * from "./variableMatrixWidth.js";
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/spec/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E;AAE1E,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Schema for external references
3
+ */
4
+ export interface LinkSchema {
5
+ /**
6
+ * Supplies the URI to a remote resource (or resource fragment).
7
+ */
8
+ href: string;
9
+ /**
10
+ * The type or semantics of the relation.
11
+ */
12
+ rel: string;
13
+ /**
14
+ * This flag set to true if the link is a URL template.
15
+ */
16
+ templated?: boolean;
17
+ /**
18
+ * A base path to retrieve semantic information about the variables used in URL template.
19
+ */
20
+ varBase?: string;
21
+ /**
22
+ * A hint indicating what the media type of the result of dereferencing the link should be.
23
+ */
24
+ type?: string;
25
+ /**
26
+ * A hint indicating what the language of the result of dereferencing the link should be.
27
+ */
28
+ hreflang?: string;
29
+ /**
30
+ * Used to label the destination of a link such that it can be used as a human-readable identifier.
31
+ */
32
+ title?: string;
33
+ length?: number;
34
+ [k: string]: unknown;
35
+ }
36
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/types/spec/link.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","sourceRoot":"","sources":["../../../src/types/spec/link.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,3 @@
1
+ /** Opaque type for PROJ JSON coordinate reference system definitions. */
2
+ export type ProjJSON = Record<string, unknown>;
3
+ //# sourceMappingURL=projJSON.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projJSON.d.ts","sourceRoot":"","sources":["../../../src/types/spec/projJSON.ts"],"names":[],"mappings":"AAIA,yEAAyE;AACzE,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=projJSON.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projJSON.js","sourceRoot":"","sources":["../../../src/types/spec/projJSON.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Attributes of the features or rangetypes of a coverage. Defined by a subset of the JSON Schema for the properties of a feature
3
+ */
4
+ export interface PropertiesSchema {
5
+ type: "object";
6
+ /**
7
+ * Implements 'multiplicity' by citing property 'name' defined as 'additionalProperties'
8
+ *
9
+ * @minItems 1
10
+ */
11
+ required?: [string, ...string[]];
12
+ properties: {
13
+ /**
14
+ * No property names are defined but any property name they should be described by JSON Schema. So 'additionalProperties' implements 'name'.
15
+ */
16
+ [k: string]: {
17
+ title?: string;
18
+ /**
19
+ * Implements 'description'
20
+ */
21
+ description?: string;
22
+ type?: "array" | "boolean" | "integer" | "null" | "number" | "object" | "string";
23
+ /**
24
+ * Implements 'acceptedValues'
25
+ *
26
+ * @minItems 1
27
+ */
28
+ enum?: [unknown, ...unknown[]];
29
+ /**
30
+ * Complements implementation of 'type'
31
+ */
32
+ format?: string;
33
+ /**
34
+ * Implements 'mediaType'
35
+ */
36
+ contentMediaType?: string;
37
+ /**
38
+ * Implements 'range'
39
+ */
40
+ maximum?: number;
41
+ /**
42
+ * Implements 'range'
43
+ */
44
+ exclusiveMaximum?: number;
45
+ /**
46
+ * Implements 'range'
47
+ */
48
+ minimum?: number;
49
+ /**
50
+ * Implements 'range'
51
+ */
52
+ exclusiveMinimum?: number;
53
+ pattern?: string;
54
+ /**
55
+ * Implements 'upperMultiplicity'
56
+ */
57
+ maxItems?: number;
58
+ /**
59
+ * Implements 'lowerMultiplicity'
60
+ */
61
+ minItems?: number;
62
+ observedProperty?: string;
63
+ observedPropertyURI?: string;
64
+ uom?: string;
65
+ uomURI?: string;
66
+ [k: string]: unknown;
67
+ };
68
+ };
69
+ [k: string]: unknown;
70
+ }
71
+ //# sourceMappingURL=propertiesSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propertiesSchema.d.ts","sourceRoot":"","sources":["../../../src/types/spec/propertiesSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACjC,UAAU,EAAE;QACV;;WAEG;QACH,CAAC,CAAC,EAAE,MAAM,GAAG;YACX,KAAK,CAAC,EAAE,MAAM,CAAC;YACf;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,IAAI,CAAC,EACD,OAAO,GACP,SAAS,GACT,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;YACb;;;;eAIG;YACH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;YAC/B;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;YAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;SACtB,CAAC;KACH,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=propertiesSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propertiesSchema.js","sourceRoot":"","sources":["../../../src/types/spec/propertiesSchema.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,27 @@
1
+ import type { LinkSchema } from "./link.js";
2
+ export interface Style {
3
+ /**
4
+ * An identifier for this style. Implementation of 'identifier'
5
+ */
6
+ id: string;
7
+ /**
8
+ * A title for this style
9
+ */
10
+ title?: string;
11
+ /**
12
+ * Brief narrative description of this style
13
+ */
14
+ description?: string;
15
+ /**
16
+ * keywords about this style
17
+ */
18
+ keywords?: string[];
19
+ /**
20
+ * Links to style related resources. Possible link 'rel' values are: 'style' for a URL pointing to the style description, 'styleSpec' for a URL pointing to the specification or standard used to define the style.
21
+ *
22
+ * @minItems 1
23
+ */
24
+ links?: [LinkSchema, ...LinkSchema[]];
25
+ [k: string]: unknown;
26
+ }
27
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/types/spec/style.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/types/spec/style.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,60 @@
1
+ import type { DPoint } from "./2DPoint.js";
2
+ import type { VariableMatrixWidth } from "./variableMatrixWidth.js";
3
+ /**
4
+ * A tile matrix, usually corresponding to a particular zoom level of a TileMatrixSet.
5
+ */
6
+ export interface TileMatrix {
7
+ /**
8
+ * Title of this tile matrix, normally used for display to a human
9
+ */
10
+ title?: string;
11
+ /**
12
+ * Brief narrative description of this tile matrix set, normally available for display to a human
13
+ */
14
+ description?: string;
15
+ /**
16
+ * Unordered list of one or more commonly used or formalized word(s) or phrase(s) used to describe this dataset
17
+ */
18
+ keywords?: string[];
19
+ /**
20
+ * Identifier selecting one of the scales defined in the TileMatrixSet and representing the scaleDenominator the tile. Implementation of 'identifier'
21
+ */
22
+ id: string;
23
+ /**
24
+ * Scale denominator of this tile matrix
25
+ */
26
+ scaleDenominator: number;
27
+ /**
28
+ * Cell size of this tile matrix
29
+ */
30
+ cellSize: number;
31
+ /**
32
+ * The corner of the tile matrix (_topLeft_ or _bottomLeft_) used as the origin for numbering tile rows and columns. This corner is also a corner of the (0, 0) tile.
33
+ */
34
+ cornerOfOrigin?: "topLeft" | "bottomLeft";
35
+ pointOfOrigin: {
36
+ [k: string]: unknown;
37
+ } & DPoint;
38
+ /**
39
+ * Width of each tile of this tile matrix in pixels
40
+ */
41
+ tileWidth: number;
42
+ /**
43
+ * Height of each tile of this tile matrix in pixels
44
+ */
45
+ tileHeight: number;
46
+ /**
47
+ * Width of the matrix (number of tiles in width)
48
+ */
49
+ matrixHeight: number;
50
+ /**
51
+ * Height of the matrix (number of tiles in height)
52
+ */
53
+ matrixWidth: number;
54
+ /**
55
+ * Describes the rows that has variable matrix width
56
+ */
57
+ variableMatrixWidths?: VariableMatrixWidth[];
58
+ [k: string]: unknown;
59
+ }
60
+ //# sourceMappingURL=tileMatrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tileMatrix.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileMatrix.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAC1C,aAAa,EAAE;QACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=tileMatrix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tileMatrix.js","sourceRoot":"","sources":["../../../src/types/spec/tileMatrix.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The limits for an individual tile matrix of a TileSet's TileMatrixSet, as defined in the OGC 2D TileMatrixSet and TileSet Metadata Standard
3
+ */
4
+ export interface TileMatrixLimits {
5
+ tileMatrix: string;
6
+ minTileRow: number;
7
+ maxTileRow: number;
8
+ minTileCol: number;
9
+ maxTileCol: number;
10
+ [k: string]: unknown;
11
+ }
12
+ //# sourceMappingURL=tileMatrixLimits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tileMatrixLimits.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileMatrixLimits.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=tileMatrixLimits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tileMatrixLimits.js","sourceRoot":"","sources":["../../../src/types/spec/tileMatrixLimits.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,48 @@
1
+ import type { DBoundingBox } from "./2DBoundingBox.js";
2
+ import type { CRS } from "./crs.js";
3
+ import type { TileMatrix } from "./tileMatrix.js";
4
+ /**
5
+ * A definition of a tile matrix set following the Tile Matrix Set standard. For tileset metadata, such a description (in `tileMatrixSet` property) is only required for offline use, as an alternative to a link with a `http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme` relation type.
6
+ */
7
+ export interface TileMatrixSetDefinition {
8
+ /**
9
+ * Title of this tile matrix set, normally used for display to a human
10
+ */
11
+ title?: string;
12
+ /**
13
+ * Brief narrative description of this tile matrix set, normally available for display to a human
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Unordered list of one or more commonly used or formalized word(s) or phrase(s) used to describe this tile matrix set
18
+ */
19
+ keywords?: string[];
20
+ /**
21
+ * Tile matrix set identifier. Implementation of 'identifier'
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Reference to an official source for this tileMatrixSet
26
+ */
27
+ uri?: string;
28
+ /**
29
+ * @minItems 1
30
+ */
31
+ orderedAxes?: [string, ...string[]];
32
+ crs: {
33
+ [k: string]: unknown;
34
+ } & CRS;
35
+ /**
36
+ * Reference to a well-known scale set
37
+ */
38
+ wellKnownScaleSet?: string;
39
+ boundingBox?: {
40
+ [k: string]: unknown;
41
+ } & DBoundingBox;
42
+ /**
43
+ * Describes scale levels and its tile matrices
44
+ */
45
+ tileMatrices: TileMatrix[];
46
+ [k: string]: unknown;
47
+ }
48
+ //# sourceMappingURL=tileMatrixSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tileMatrixSet.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileMatrixSet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACpC,GAAG,EAAE;QACH,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,GAAG,CAAC;IACR;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,YAAY,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=tileMatrixSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tileMatrixSet.js","sourceRoot":"","sources":["../../../src/types/spec/tileMatrixSet.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,25 @@
1
+ import type { CRS } from "./crs.js";
2
+ export interface TilePoint {
3
+ /**
4
+ * @minItems 2
5
+ * @maxItems 2
6
+ */
7
+ coordinates: [number, number];
8
+ crs?: {
9
+ [k: string]: unknown;
10
+ } & CRS;
11
+ /**
12
+ * TileMatrix identifier associated with the scaleDenominator
13
+ */
14
+ tileMatrix?: string;
15
+ /**
16
+ * Scale denominator of the tile matrix selected
17
+ */
18
+ scaleDenominator?: number;
19
+ /**
20
+ * Cell size of the tile matrix selected
21
+ */
22
+ cellSize?: number;
23
+ [k: string]: unknown;
24
+ }
25
+ //# sourceMappingURL=tilePoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tilePoint.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tilePoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,GAAG,CAAC,EAAE;QACJ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,GAAG,CAAC;IACR;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=tilePoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tilePoint.js","sourceRoot":"","sources":["../../../src/types/spec/tilePoint.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,93 @@
1
+ import type { DBoundingBox } from "./2DBoundingBox.js";
2
+ import type { CRS } from "./crs.js";
3
+ import type { GeospatialData } from "./geospatialData.js";
4
+ import type { LinkSchema } from "./link.js";
5
+ import type { Style } from "./style.js";
6
+ import type { TileMatrixLimits } from "./tileMatrixLimits.js";
7
+ import type { TileMatrixSetDefinition } from "./tileMatrixSet.js";
8
+ import type { TilePoint } from "./tilePoint.js";
9
+ /**
10
+ * A resource describing a tileset based on the OGC TileSet Metadata Standard. At least one of the 'TileMatrixSet', or a link with 'rel' http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme
11
+ */
12
+ export interface TileSetMetadata {
13
+ /**
14
+ * A title for this tileset
15
+ */
16
+ title?: string;
17
+ /**
18
+ * Brief narrative description of this tile set
19
+ */
20
+ description?: string;
21
+ /**
22
+ * keywords about this tileset
23
+ */
24
+ keywords?: string[];
25
+ /**
26
+ * Version of the Tile Set. Changes if the data behind the tiles has been changed
27
+ */
28
+ version?: string;
29
+ /**
30
+ * Useful information to contact the authors or custodians for the Tile Set
31
+ */
32
+ pointOfContact?: string;
33
+ /**
34
+ * Short reference to recognize the author or provider
35
+ */
36
+ attribution?: string;
37
+ /**
38
+ * License applicable to the tiles
39
+ */
40
+ license?: string;
41
+ /**
42
+ * Restrictions on the availability of the Tile Set that the user needs to be aware of before using or redistributing the Tile Set
43
+ */
44
+ accessConstraints?: "unclassified" | "restricted" | "confidential" | "secret" | "topSecret";
45
+ /**
46
+ * Media types available for the tiles
47
+ */
48
+ mediaTypes?: string[];
49
+ dataType: {
50
+ [k: string]: unknown;
51
+ } & (string | ("map" | "vector" | "coverage"));
52
+ /**
53
+ * Limits for the TileRow and TileCol values for each TileMatrix in the tileMatrixSet. If missing, there are no limits other that the ones imposed by the TileMatrixSet. If present the TileMatrices listed are limited and the rest not available at all
54
+ */
55
+ tileMatrixSetLimits?: TileMatrixLimits[];
56
+ crs: {
57
+ [k: string]: unknown;
58
+ } & CRS;
59
+ /**
60
+ * Epoch of the Coordinate Reference System (CRS)
61
+ */
62
+ epoch?: number;
63
+ boundingBox?: {
64
+ [k: string]: unknown;
65
+ } & DBoundingBox;
66
+ created?: {
67
+ [k: string]: unknown;
68
+ } & string;
69
+ updated?: {
70
+ [k: string]: unknown;
71
+ } & string;
72
+ /**
73
+ * @minItems 1
74
+ */
75
+ layers?: [GeospatialData, ...GeospatialData[]];
76
+ style?: {
77
+ [k: string]: unknown;
78
+ } & Style;
79
+ centerPoint?: {
80
+ [k: string]: unknown;
81
+ } & TilePoint;
82
+ tileMatrixSet?: TileMatrixSetDefinition;
83
+ /**
84
+ * Reference to a Tile Matrix Set on an official source for Tile Matrix Sets such as the OGC-NA definition server (http://www.opengis.net/def/tms). Required if the tile matrix set is registered on an open official source.
85
+ */
86
+ tileMatrixSetURI?: string;
87
+ /**
88
+ * Links to related resources. Possible link 'rel' values are: 'http://www.opengis.net/def/rel/ogc/1.0/dataset' for a URL pointing to the dataset, 'item' for a URL template to get a tile; 'alternate' for a URL pointing to another representation of the TileSetMetadata (e.g a TileJSON file); 'http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme' for a definition of the TileMatrixSet; 'http://www.opengis.net/def/rel/ogc/1.0/geodata' for pointing to a single collection (if the tileset represents a single collection)
89
+ */
90
+ links?: LinkSchema[];
91
+ [k: string]: unknown;
92
+ }
93
+ //# sourceMappingURL=tileSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tileSet.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileSet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,iBAAiB,CAAC,EACd,cAAc,GACd,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,WAAW,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,CAAC,MAAM,GAAG,CAAC,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC;IAC/C;;OAEG;IACH,mBAAmB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACzC,GAAG,EAAE;QACH,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,GAAG,CAAC;IACR;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,YAAY,CAAC;IACjB,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE;QACN,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,KAAK,CAAC;IACV,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,SAAS,CAAC;IACd,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=tileSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tileSet.js","sourceRoot":"","sources":["../../../src/types/spec/tileSet.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This property indicates the time and date when the response was generated using RFC 3339 notation.
3
+ */
4
+ export type TimeStamp = string;
5
+ //# sourceMappingURL=timeStamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeStamp.d.ts","sourceRoot":"","sources":["../../../src/types/spec/timeStamp.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=timeStamp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeStamp.js","sourceRoot":"","sources":["../../../src/types/spec/timeStamp.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Variable Matrix Width data structure
3
+ */
4
+ export interface VariableMatrixWidth {
5
+ /**
6
+ * Number of tiles in width that coalesce in a single tile for these rows
7
+ */
8
+ coalesce: number;
9
+ /**
10
+ * First tile row where the coalescence factor applies for this tilematrix
11
+ */
12
+ minTileRow: number;
13
+ /**
14
+ * Last tile row where the coalescence factor applies for this tilematrix
15
+ */
16
+ maxTileRow: number;
17
+ [k: string]: unknown;
18
+ }
19
+ //# sourceMappingURL=variableMatrixWidth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variableMatrixWidth.d.ts","sourceRoot":"","sources":["../../../src/types/spec/variableMatrixWidth.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ /* This file was automatically generated from OGC TMS 2.0 JSON Schema. */
2
+ /* DO NOT MODIFY IT BY HAND. Instead, modify the source JSON Schema file */
3
+ /* and run `pnpm run generate-types` to regenerate. */
4
+ export {};
5
+ //# sourceMappingURL=variableMatrixWidth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variableMatrixWidth.js","sourceRoot":"","sources":["../../../src/types/spec/variableMatrixWidth.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Coefficient to convert the coordinate reference system (CRS)
3
+ * units into meters (metersPerUnit).
4
+ *
5
+ * From note g in http://docs.opengeospatial.org/is/17-083r2/17-083r2.html#table_2:
6
+ *
7
+ * > If the CRS uses meters as units of measure for the horizontal dimensions,
8
+ * > then metersPerUnit=1; if it has degrees, then metersPerUnit=2pa/360
9
+ * > (a is the Earth maximum radius of the ellipsoid).
10
+ *
11
+ * @param unit - The unit of the CRS.
12
+ * @param semiMajorAxis - The semi-major axis of the ellipsoid, required if unit is 'degree'.
13
+ * @returns The meters per unit conversion factor.
14
+ */
15
+ export declare function metersPerUnit(unit: "m" | "metre" | "meter" | "meters" | "foot" | "us survey foot" | "degree", { semiMajorAxis }: {
16
+ semiMajorAxis?: number;
17
+ }): number;
18
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,wBAAgB,aAAa,CAC3B,IAAI,EACA,GAAG,GACH,OAAO,GACP,OAAO,GACP,QAAQ,GACR,MAAM,GACN,gBAAgB,GAChB,QAAQ,EACZ,EAAE,aAAa,EAAE,EAAE;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5C,MAAM,CA4BR"}
package/dist/utils.js ADDED
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Coefficient to convert the coordinate reference system (CRS)
3
+ * units into meters (metersPerUnit).
4
+ *
5
+ * From note g in http://docs.opengeospatial.org/is/17-083r2/17-083r2.html#table_2:
6
+ *
7
+ * > If the CRS uses meters as units of measure for the horizontal dimensions,
8
+ * > then metersPerUnit=1; if it has degrees, then metersPerUnit=2pa/360
9
+ * > (a is the Earth maximum radius of the ellipsoid).
10
+ *
11
+ * @param unit - The unit of the CRS.
12
+ * @param semiMajorAxis - The semi-major axis of the ellipsoid, required if unit is 'degree'.
13
+ * @returns The meters per unit conversion factor.
14
+ */
15
+ // https://github.com/developmentseed/morecantile/blob/7c95a11c491303700d6e33e9c1607f2719584dec/morecantile/utils.py#L67-L90
16
+ export function metersPerUnit(unit, { semiMajorAxis }) {
17
+ unit = unit.toLowerCase();
18
+ switch (unit) {
19
+ case "m":
20
+ case "metre":
21
+ case "meter":
22
+ case "meters":
23
+ return 1;
24
+ case "foot":
25
+ return 0.3048;
26
+ case "us survey foot":
27
+ return 1200 / 3937;
28
+ }
29
+ if (unit === "degree") {
30
+ // 2 * π * ellipsoid semi-major-axis / 360
31
+ if (semiMajorAxis === undefined) {
32
+ throw new Error("CRS with degrees unit requires ellipsoid semi-major-axis");
33
+ }
34
+ return (2 * Math.PI * semiMajorAxis) / 360;
35
+ }
36
+ throw new Error(`Unsupported CRS units: ${unit} when computing metersPerUnit.`);
37
+ }
38
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,4HAA4H;AAC5H,MAAM,UAAU,aAAa,CAC3B,IAOY,EACZ,EAAE,aAAa,EAA8B;IAE7C,IAAI,GAAG,IAAI,CAAC,WAAW,EAAiB,CAAC;IACzC,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,GAAG,CAAC;QACT,KAAK,OAAO,CAAC;QACb,KAAK,OAAO,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,CAAC,CAAC;QACX,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,gBAAgB;YACnB,OAAO,IAAI,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtB,0CAA0C;QAC1C,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CACb,0DAA0D,CAC3D,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,aAAa,CAAC,GAAG,GAAG,CAAC;IAC7C,CAAC;IAED,MAAM,IAAI,KAAK,CACb,0BAA0B,IAAI,gCAAgC,CAC/D,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@developmentseed/morecantile",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript port of Morecantile for working with OGC TileMatrixSet grids",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -14,6 +14,22 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
+ "scripts": {
18
+ "build": "tsc --build",
19
+ "build:watch": "tsc --build --watch",
20
+ "clean": "rm -rf dist",
21
+ "check": "biome check .",
22
+ "check:fix": "biome check --write .",
23
+ "format": "biome format .",
24
+ "format:fix": "biome format --write .",
25
+ "generate-types": "tsx scripts/generate-types.ts && pnpm check:fix",
26
+ "lint": "biome lint .",
27
+ "lint:fix": "biome lint --write .",
28
+ "publint": "publint",
29
+ "test": "vitest run",
30
+ "test:watch": "vitest",
31
+ "typecheck": "tsc --noEmit"
32
+ },
17
33
  "keywords": [
18
34
  "tiles",
19
35
  "tilematrixset",
@@ -38,24 +54,14 @@
38
54
  "typescript": "^5.9.3",
39
55
  "vitest": "^3.1.1"
40
56
  },
57
+ "pnpm": {
58
+ "onlyBuiltDependencies": [
59
+ "esbuild"
60
+ ]
61
+ },
62
+ "packageManager": "pnpm@10.25.0",
41
63
  "volta": {
42
64
  "node": "24.11.1",
43
65
  "pnpm": "10.25.0"
44
- },
45
- "scripts": {
46
- "build": "tsc --build",
47
- "build:watch": "tsc --build --watch",
48
- "clean": "rm -rf dist",
49
- "check": "biome check .",
50
- "check:fix": "biome check --write .",
51
- "format": "biome format .",
52
- "format:fix": "biome format --write .",
53
- "generate-types": "tsx scripts/generate-types.ts && pnpm check:fix",
54
- "lint": "biome lint .",
55
- "lint:fix": "biome lint --write .",
56
- "publint": "publint",
57
- "test": "vitest run",
58
- "test:watch": "vitest",
59
- "typecheck": "tsc --noEmit"
60
66
  }
61
67
  }