itowns 2.43.2-next.4 → 2.43.2-next.6
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/dist/debug.js +1 -1
- package/dist/debug.js.map +1 -1
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.map +1 -1
- package/dist/itowns_widgets.js +1 -1
- package/dist/itowns_widgets.js.map +1 -1
- package/examples/js/plugins/COGParser.js +84 -50
- package/examples/js/plugins/COGSource.js +7 -4
- package/examples/source_file_cog.html +22 -5
- package/lib/Controls/FirstPersonControls.js +0 -1
- package/lib/Controls/FlyControls.js +0 -1
- package/lib/Converter/Feature2Mesh.js +2 -4
- package/lib/Core/3DTiles/C3DTBatchTable.js +1 -1
- package/lib/Core/3DTiles/C3DTFeature.js +0 -1
- package/lib/Core/Feature.js +1 -2
- package/lib/Core/Geographic/CoordStars.js +0 -1
- package/lib/Core/Label.js +0 -1
- package/lib/Core/MainLoop.js +0 -1
- package/lib/Core/Prefab/Globe/Atmosphere.js +0 -4
- package/lib/Core/Style.js +2 -4
- package/lib/Core/View.js +2 -4
- package/lib/Layer/ElevationLayer.js +2 -3
- package/lib/Layer/GeoidLayer.js +1 -2
- package/lib/Layer/LabelLayer.js +8 -17
- package/lib/Layer/Layer.js +1 -2
- package/lib/Layer/PointCloudLayer.js +3 -6
- package/lib/Layer/ReferencingLayerProperties.js +1 -2
- package/lib/Parser/GeoJsonParser.js +2 -3
- package/lib/Parser/LASParser.js +2 -3
- package/lib/Parser/deprecated/LegacyGLTFLoader.js +1 -2
- package/lib/Process/FeatureProcessing.js +1 -2
- package/lib/Process/LayeredMaterialNodeProcessing.js +3 -7
- package/lib/Process/ObjectRemovalHelper.js +1 -2
- package/lib/Renderer/ColorLayersOrdering.js +1 -2
- package/lib/Renderer/Label2DRenderer.js +1 -4
- package/lib/Renderer/RenderMode.js +0 -1
- package/lib/ThreeExtended/loaders/DDSLoader.js +11 -1
- package/lib/ThreeExtended/loaders/DRACOLoader.js +0 -1
- package/lib/ThreeExtended/loaders/GLTFLoader.js +1 -0
- package/lib/Utils/DEMUtils.js +2 -2
- package/lib/Utils/OrientationUtils.js +0 -1
- package/lib/Utils/gui/Searchbar.js +1 -2
- package/package.json +6 -5
|
@@ -2627,6 +2627,7 @@ class GLTFParser {
|
|
|
2627
2627
|
|
|
2628
2628
|
// Removes dangling associations, associations that reference a node that
|
|
2629
2629
|
// didn't make it into the scene.
|
|
2630
|
+
|
|
2630
2631
|
parser.associations = (node => {
|
|
2631
2632
|
const reducedAssociations = new Map();
|
|
2632
2633
|
for (const [key, value] of parser.associations) {
|
package/lib/Utils/DEMUtils.js
CHANGED
|
@@ -255,6 +255,7 @@ function _readZCorrect(layer, texture, uv, tileDimensions, tileOwnerDimensions)
|
|
|
255
255
|
|
|
256
256
|
// Determine if we're going to read the vertices from the top-left or lower-right triangle
|
|
257
257
|
// (low-right = on the line 21-22 or under the diagonal lu = 1 - lv)
|
|
258
|
+
|
|
258
259
|
const tri = new THREE.Triangle(new THREE.Vector3(u1, v2), new THREE.Vector3(u2, v1), lv == 1 || lu / (1 - lv) >= 1 ? new THREE.Vector3(u2, v2) : new THREE.Vector3(u1, v1));
|
|
259
260
|
|
|
260
261
|
// bary holds the respective weight of each vertices of the triangles
|
|
@@ -287,11 +288,10 @@ function offsetInExtent(point, extent) {
|
|
|
287
288
|
return target.set(originX, originY);
|
|
288
289
|
}
|
|
289
290
|
function _readZ(layer, method, coord, nodes, cache) {
|
|
290
|
-
var _cache$tile;
|
|
291
291
|
const pt = coord.as(layer.extent.crs, temp.coord1);
|
|
292
292
|
let tileWithValidElevationTexture = null;
|
|
293
293
|
// first check in cache
|
|
294
|
-
if (cache
|
|
294
|
+
if (cache?.tile?.material) {
|
|
295
295
|
tileWithValidElevationTexture = tileAt(pt, cache.tile);
|
|
296
296
|
}
|
|
297
297
|
for (let i = 0; !tileWithValidElevationTexture && i < nodes.length; i++) {
|
|
@@ -71,7 +71,6 @@ export default {
|
|
|
71
71
|
// return this.setFromEuler(euler.set(pitch, roll, heading , 'ZXY')).conjugate();
|
|
72
72
|
return target.setFromEuler(euler.set(-pitch, -roll, -heading, 'YXZ')); // optimized version of above
|
|
73
73
|
},
|
|
74
|
-
|
|
75
74
|
/**
|
|
76
75
|
* From
|
|
77
76
|
* [DocMicMac](https://github.com/micmacIGN/Documentation/raw/master/DocMicMac.pdf),
|
|
@@ -9,7 +9,6 @@ const DEFAULT_OPTIONS = {
|
|
|
9
9
|
placeholder: 'Search location'
|
|
10
10
|
};
|
|
11
11
|
function addActive(htmlElements, index) {
|
|
12
|
-
var _htmlElements$index;
|
|
13
12
|
if (!htmlElements) {
|
|
14
13
|
return index;
|
|
15
14
|
}
|
|
@@ -19,7 +18,7 @@ function addActive(htmlElements, index) {
|
|
|
19
18
|
} else if (index < 0) {
|
|
20
19
|
index = htmlElements.length - 1;
|
|
21
20
|
}
|
|
22
|
-
|
|
21
|
+
htmlElements[index]?.classList.add('active');
|
|
23
22
|
return index;
|
|
24
23
|
}
|
|
25
24
|
function removeAllActives(htmlElements) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "itowns",
|
|
3
|
-
"version": "2.43.2-next.
|
|
3
|
+
"version": "2.43.2-next.6",
|
|
4
4
|
"description": "A JS/WebGL framework for 3D geospatial data visualization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/Main.js",
|
|
@@ -72,10 +72,11 @@
|
|
|
72
72
|
"three": "^0.159.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@babel/cli": "^7.
|
|
76
|
-
"@babel/
|
|
77
|
-
"@babel/
|
|
78
|
-
"@babel/
|
|
75
|
+
"@babel/cli": "^7.24.6",
|
|
76
|
+
"@babel/core": "^7.24.6",
|
|
77
|
+
"@babel/plugin-transform-runtime": "^7.24.6",
|
|
78
|
+
"@babel/preset-env": "^7.24.6",
|
|
79
|
+
"@babel/register": "^7.24.6",
|
|
79
80
|
"@types/three": "^0.159.0",
|
|
80
81
|
"@xmldom/xmldom": "^0.8.10",
|
|
81
82
|
"babel-inline-import-loader": "^1.0.1",
|