@swissgeo/coordinates 1.0.0-rc.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.ts +1 -12
- package/dist/index.js +8012 -18103
- package/dist/ol.cjs +1 -0
- package/dist/ol.d.ts +10 -0
- package/dist/ol.js +4467 -0
- package/dist/registerProj4-BuUOcPpF.cjs +23 -0
- package/dist/registerProj4-CwR_kPOz.js +10172 -0
- package/eslint.config.mts +12 -0
- package/index.html +14 -0
- package/package.json +30 -23
- package/setup-vitest.ts +8 -0
- package/src/DevApp.vue +65 -0
- package/src/__test__/coordinatesUtils.spec.ts +178 -0
- package/src/__test__/extentUtils.spec.ts +92 -0
- package/src/coordinatesUtils.ts +188 -0
- package/src/dev.ts +6 -0
- package/src/extentUtils.ts +196 -0
- package/src/index.ts +29 -0
- package/src/ol.ts +52 -0
- package/src/proj/CoordinateSystem.ts +315 -0
- package/src/proj/CoordinateSystemBounds.ts +170 -0
- package/src/proj/CustomCoordinateSystem.ts +58 -0
- package/src/proj/LV03CoordinateSystem.ts +23 -0
- package/src/proj/LV95CoordinateSystem.ts +35 -0
- package/src/proj/StandardCoordinateSystem.ts +22 -0
- package/src/proj/SwissCoordinateSystem.ts +233 -0
- package/src/proj/WGS84CoordinateSystem.ts +97 -0
- package/src/proj/WebMercatorCoordinateSystem.ts +89 -0
- package/src/proj/__test__/CoordinateSystem.spec.ts +63 -0
- package/src/proj/__test__/CoordinateSystemBounds.spec.ts +252 -0
- package/src/proj/__test__/SwissCoordinateSystem.spec.ts +136 -0
- package/src/proj/index.ts +65 -0
- package/src/proj/types.ts +22 -0
- package/src/registerProj4.ts +38 -0
- package/tsconfig.json +4 -0
- package/vite.config.ts +46 -0
- package/dist/index.umd.cjs +0 -29
package/dist/index.d.ts
CHANGED
|
@@ -35,17 +35,6 @@ export declare interface CoordinatesChunk {
|
|
|
35
35
|
isWithinBounds: boolean;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
/**
|
|
39
|
-
* Group of coordinates resulting in a "split by bounds" function. Will also contain information if
|
|
40
|
-
* this chunk is within or outside the bounds from which it was cut from.
|
|
41
|
-
*/
|
|
42
|
-
declare interface CoordinatesChunk_2 {
|
|
43
|
-
/** Coordinates of this chunk */
|
|
44
|
-
coordinates: SingleCoordinate[];
|
|
45
|
-
/** Will be true if this chunk contains coordinates that are located within bounds */
|
|
46
|
-
isWithinBounds: boolean;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
38
|
export declare const coordinatesUtils: SwissGeoCoordinatesUtils;
|
|
50
39
|
|
|
51
40
|
/**
|
|
@@ -239,7 +228,7 @@ export declare class CoordinateSystemBounds {
|
|
|
239
228
|
* same coordinate system (projection) as the bounds
|
|
240
229
|
* @returns {CoordinatesChunk[] | undefined}
|
|
241
230
|
*/
|
|
242
|
-
splitIfOutOfBounds(coordinates: SingleCoordinate[]):
|
|
231
|
+
splitIfOutOfBounds(coordinates: SingleCoordinate[]): CoordinatesChunk[] | undefined;
|
|
243
232
|
}
|
|
244
233
|
|
|
245
234
|
declare interface CoordinateSystemBoundsProps {
|