@itowns/geographic 2.46.1-next.54 → 2.46.1-next.56

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.
@@ -4,8 +4,6 @@ import * as CRS from "./Crs.js";
4
4
  const ellipsoid = /* @__PURE__ */new Ellipsoid();
5
5
  const v0 = /* @__PURE__ */new Vector3();
6
6
  const v1 = /* @__PURE__ */new Vector3();
7
- let coord0;
8
- let coord1;
9
7
  /**
10
8
  * A class representing a geographic or geocentric coordinate.
11
9
  *
@@ -315,6 +313,6 @@ class Coordinates {
315
313
  return target;
316
314
  }
317
315
  }
318
- coord0 = /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0);
319
- coord1 = /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0);
316
+ const coord0 = /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0);
317
+ const coord1 = /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0);
320
318
  export default Coordinates;
package/lib/Extent.js CHANGED
@@ -10,7 +10,6 @@ const cSouthWest = /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0);
10
10
  const cNorthEast = /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0);
11
11
  const southWest = /* @__PURE__ */new Vector3();
12
12
  const northEast = /* @__PURE__ */new Vector3();
13
- let _extent;
14
13
  const cardinals = [/* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0), /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0), /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0), /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0), /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0), /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0), /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0), /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0, 0)];
15
14
  const _c = /* @__PURE__ */new Coordinates('EPSG:4326', 0, 0);
16
15
  /**
@@ -566,5 +565,5 @@ class Extent {
566
565
  return this.clampWestEast(extent.west, extent.east);
567
566
  }
568
567
  }
569
- _extent = /* @__PURE__ */new Extent('EPSG:4326');
568
+ const _extent = /* @__PURE__ */new Extent('EPSG:4326');
570
569
  export default Extent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itowns/geographic",
3
- "version": "2.46.1-next.54",
3
+ "version": "2.46.1-next.56",
4
4
  "description": "Proj4-based three.js geodesy toolkit",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -11,7 +11,6 @@
11
11
  "types": "./lib/index.d.ts",
12
12
  "scripts": {
13
13
  "build": "",
14
- "lint": "eslint \"src/**/*.{js,ts,tsx}\" \"test/**/*.js\"",
15
14
  "transpile": "tsc && cross-env BABEL_DISABLE_CACHE=1 babel src --out-dir lib --extensions .js,.ts",
16
15
  "test-unit": "npm run base-test-unit test/unit",
17
16
  "base-test-unit": "cross-env BABEL_DISABLE_CACHE=1 NODE_OPTIONS=--no-experimental-strip-types mocha --import=../../config/babel-register/register.mjs",
@@ -9,9 +9,6 @@ const ellipsoid = /* @__PURE__ */ new Ellipsoid();
9
9
  const v0 = /* @__PURE__ */ new Vector3();
10
10
  const v1 = /* @__PURE__ */ new Vector3();
11
11
 
12
- let coord0: Coordinates;
13
- let coord1: Coordinates;
14
-
15
12
  export interface CoordinatesLike {
16
13
  readonly crs: string;
17
14
  readonly x: number;
@@ -356,7 +353,7 @@ class Coordinates {
356
353
  }
357
354
  }
358
355
 
359
- coord0 = /* @__PURE__ */ new Coordinates('EPSG:4326', 0, 0, 0);
360
- coord1 = /* @__PURE__ */ new Coordinates('EPSG:4326', 0, 0, 0);
356
+ const coord0 = /* @__PURE__ */ new Coordinates('EPSG:4326', 0, 0, 0);
357
+ const coord1 = /* @__PURE__ */ new Coordinates('EPSG:4326', 0, 0, 0);
361
358
 
362
359
  export default Coordinates;
package/src/Extent.ts CHANGED
@@ -16,8 +16,6 @@ const cNorthEast = /* @__PURE__ */ new Coordinates('EPSG:4326', 0, 0, 0);
16
16
  const southWest = /* @__PURE__ */ new Vector3();
17
17
  const northEast = /* @__PURE__ */ new Vector3();
18
18
 
19
- let _extent: Extent;
20
-
21
19
  const cardinals = [
22
20
  /* @__PURE__ */ new Coordinates('EPSG:4326', 0, 0, 0),
23
21
  /* @__PURE__ */ new Coordinates('EPSG:4326', 0, 0, 0),
@@ -646,6 +644,6 @@ class Extent {
646
644
  }
647
645
  }
648
646
 
649
- _extent = /* @__PURE__ */ new Extent('EPSG:4326');
647
+ const _extent = /* @__PURE__ */ new Extent('EPSG:4326');
650
648
 
651
649
  export default Extent;