itowns 2.44.3-next.24 → 2.44.3-next.25

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.
@@ -1035,7 +1035,7 @@ class GlobeControls extends THREE.EventDispatcher {
1035
1035
  *
1036
1036
  * @deprecated Use View#getScale instead.
1037
1037
  */
1038
- getScale(pitch) /* istanbul ignore next */{
1038
+ getScale(pitch) {
1039
1039
  console.warn('Deprecated, use View#getScale instead.');
1040
1040
  return this.view.getScale(pitch);
1041
1041
  }
@@ -1048,7 +1048,7 @@ class GlobeControls extends THREE.EventDispatcher {
1048
1048
  *
1049
1049
  * @deprecated Use `View#getPixelsToMeters` instead.
1050
1050
  */
1051
- pixelsToMeters(pixels) /* istanbul ignore next */{
1051
+ pixelsToMeters(pixels) {
1052
1052
  let pixelPitch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.28;
1053
1053
  console.warn('Deprecated use View#getPixelsToMeters instead.');
1054
1054
  const scaled = this.getScale(pixelPitch);
@@ -1064,7 +1064,7 @@ class GlobeControls extends THREE.EventDispatcher {
1064
1064
  * @deprecated Use `View#getPixelsToMeters` and `GlobeControls#metersToDegrees`
1065
1065
  * instead.
1066
1066
  */
1067
- pixelsToDegrees(pixels) /* istanbul ignore next */{
1067
+ pixelsToDegrees(pixels) {
1068
1068
  let pixelPitch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.28;
1069
1069
  console.warn('Deprecated, use View#getPixelsToMeters and GlobeControls#getMetersToDegrees instead.');
1070
1070
  const chord = this.pixelsToMeters(pixels, pixelPitch);
@@ -1079,7 +1079,7 @@ class GlobeControls extends THREE.EventDispatcher {
1079
1079
  *
1080
1080
  * @deprecated Use `View#getMetersToPixels` instead.
1081
1081
  */
1082
- metersToPixels(value) /* istanbul ignore next */{
1082
+ metersToPixels(value) {
1083
1083
  let pixelPitch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.28;
1084
1084
  console.warn('Deprecated, use View#getMetersToPixels instead.');
1085
1085
  const scaled = this.getScale(pixelPitch);
@@ -1,8 +1,3 @@
1
- /*
2
- * To change this license header, choose License Headers in Project Properties.
3
- * To change this template file, choose Tools | Templates
4
- * and open the template in the editor.
5
- */
6
1
  import * as THREE from 'three';
7
2
  import TileMesh from "../Core/TileMesh.js";
8
3
  import LayeredMaterial from "../Renderer/LayeredMaterial.js";
@@ -13,7 +13,6 @@ export const deprecatedColorLayerOptions = options => {
13
13
  return options;
14
14
  };
15
15
  export const deprecatedParsingOptionsToNewOne = options => {
16
- /* istanbul ignore next */
17
16
  if (options.crsOut || options.crsIn) {
18
17
  console.warn('Parsing options with crsIn and crsOut are deprecated, use { in, out } structure.');
19
18
  const newOptions = {
@@ -1,9 +1,3 @@
1
- /*
2
- * To change this license header, choose License Headers in Project Properties.
3
- * To change this template file, choose Tools | Templates
4
- * and open the template in the editor.
5
- */
6
-
7
1
  import * as THREE from 'three';
8
2
  import GeometryLayer from "../../../Layer/GeometryLayer.js";
9
3
  import Coordinates from "../../Geographic/Coordinates.js";
@@ -103,8 +103,6 @@ class OrientedImageLayer extends GeometryLayer {
103
103
  getCamerasNameFromFeature = () => {},
104
104
  ...geometryOptions
105
105
  } = config;
106
-
107
- /* istanbul ignore next */
108
106
  if (config.projection) {
109
107
  console.warn('OrientedImageLayer projection parameter is deprecated, use crs instead.');
110
108
  config.crs = config.crs || config.projection;
@@ -1,9 +1,3 @@
1
- /*
2
- * To change this license header, choose License Headers in Project Properties.
3
- * To change this template file, choose Tools | Templates
4
- * and open the template in the editor.
5
- */
6
-
7
1
  import * as THREE from 'three';
8
2
  function SphereHelper(radius) {
9
3
  THREE.Mesh.call(this);
@@ -103,12 +103,10 @@ class FileSource extends Source {
103
103
  * presents in `features` under the property `crs`, it is fine.
104
104
  */
105
105
  constructor(source) {
106
- /* istanbul ignore next */
107
106
  if (source.parsedData) {
108
107
  console.warn('FileSource parsedData parameter is deprecated, use features instead of.');
109
108
  source.features = source.features || source.parsedData;
110
109
  }
111
- /* istanbul ignore next */
112
110
  if (source.projection) {
113
111
  console.warn('FileSource projection parameter is deprecated, use crs instead.');
114
112
  source.crs = source.crs || source.projection;
@@ -30,7 +30,6 @@ const noCache = {
30
30
  */
31
31
  class InformationsData {
32
32
  constructor(options) {
33
- /* istanbul ignore next */
34
33
  if (options.projection) {
35
34
  console.warn('Source projection parameter is deprecated, use crs instead.');
36
35
  options.crs = options.crs || options.projection;
@@ -166,8 +165,6 @@ class Source extends InformationsData {
166
165
  in: this,
167
166
  extent
168
167
  })).catch(err => this.handlingError(err)), key);
169
-
170
- /* istanbul ignore next */
171
168
  if (this.onParsedFile) {
172
169
  features.then(feat => {
173
170
  this.onParsedFile(feat);
@@ -162,8 +162,6 @@ class VectorTilesSource extends TMSSource {
162
162
  in: this,
163
163
  extent
164
164
  })))).then(collections => mergeCollections(collections)).catch(err => this.handlingError(err)), key);
165
-
166
- /* istanbul ignore next */
167
165
  if (this.onParsedFile) {
168
166
  features.then(feat => {
169
167
  this.onParsedFile(feat);
@@ -55,7 +55,6 @@ function _updateVector3(layer, method, nodes, vecCRS, vec, offset) {
55
55
  *
56
56
  * @return {boolean} true if successful, false if we couldn't lookup the elevation at the given coords
57
57
  */
58
- /* istanbul ignore next */
59
58
  function placeObjectOnGround(layer, crs, obj) {
60
59
  let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
61
60
  let tileHint = arguments.length > 4 ? arguments[4] : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itowns",
3
- "version": "2.44.3-next.24",
3
+ "version": "2.44.3-next.25",
4
4
  "description": "A JS/WebGL framework for 3D geospatial data visualization",
5
5
  "type": "module",
6
6
  "main": "lib/Main.js",