itowns 2.42.1-next.9 → 2.43.1-next.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.
Files changed (174) hide show
  1. package/changelog.md +90 -0
  2. package/dist/debug.js +1 -1
  3. package/dist/debug.js.map +1 -1
  4. package/dist/itowns.js +1 -1
  5. package/dist/itowns.js.map +1 -1
  6. package/dist/itowns_widgets.js +1 -1
  7. package/dist/itowns_widgets.js.map +1 -1
  8. package/examples/{.eslintrc.js → .eslintrc.cjs} +1 -1
  9. package/examples/effects_stereo.html +2 -2
  10. package/examples/misc_collada.html +2 -2
  11. package/examples/source_stream_wfs_25d.html +11 -11
  12. package/examples/source_stream_wfs_3d.html +1 -1
  13. package/examples/view_25d_map.html +2 -2
  14. package/examples/view_3d_map.html +2 -2
  15. package/examples/view_3d_map_webxr.html +1 -1
  16. package/examples/view_3d_mns_map.html +2 -2
  17. package/examples/view_immersive.html +1 -1
  18. package/examples/view_multi_25d.html +2 -2
  19. package/examples/widgets_searchbar.html +2 -2
  20. package/lib/Controls/FirstPersonControls.js +5 -12
  21. package/lib/Controls/FlyControls.js +4 -13
  22. package/lib/Controls/GlobeControls.js +33 -43
  23. package/lib/Controls/PlanarControls.js +9 -20
  24. package/lib/Controls/StateControl.js +2 -11
  25. package/lib/Controls/StreetControls.js +14 -24
  26. package/lib/Converter/Feature2Mesh.js +28 -38
  27. package/lib/Converter/Feature2Texture.js +15 -25
  28. package/lib/Converter/convertToTile.js +16 -26
  29. package/lib/Converter/textureConverter.js +9 -19
  30. package/lib/Core/3DTiles/C3DTBatchTable.js +5 -13
  31. package/lib/Core/3DTiles/C3DTBatchTableHierarchyExtension.js +1 -8
  32. package/lib/Core/3DTiles/C3DTBoundingVolume.js +17 -27
  33. package/lib/Core/3DTiles/C3DTExtensions.js +1 -8
  34. package/lib/Core/3DTiles/C3DTFeature.js +3 -10
  35. package/lib/Core/3DTiles/C3DTilesEnums.js +3 -11
  36. package/lib/Core/3DTiles/C3DTileset.js +7 -16
  37. package/lib/Core/3DTiles/utils/BinaryPropertyAccessor.js +5 -11
  38. package/lib/Core/AnimationPlayer.js +2 -11
  39. package/lib/Core/Deprecated/Undeprecator.js +9 -20
  40. package/lib/Core/EntwinePointTileNode.js +6 -16
  41. package/lib/Core/Feature.js +16 -30
  42. package/lib/Core/Geographic/CoordStars.js +3 -12
  43. package/lib/Core/Geographic/Coordinates.js +12 -22
  44. package/lib/Core/Geographic/Crs.js +7 -15
  45. package/lib/Core/Geographic/Extent.js +36 -47
  46. package/lib/Core/Geographic/GeoidGrid.js +6 -16
  47. package/lib/Core/Label.js +7 -17
  48. package/lib/Core/MainLoop.js +7 -16
  49. package/lib/Core/Math/Ellipsoid.js +6 -17
  50. package/lib/Core/Picking.js +10 -20
  51. package/lib/Core/PointCloudNode.js +2 -11
  52. package/lib/Core/PotreeNode.js +4 -13
  53. package/lib/Core/Prefab/Globe/Atmosphere.js +17 -26
  54. package/lib/Core/Prefab/Globe/BuilderEllipsoidTile.js +6 -16
  55. package/lib/Core/Prefab/Globe/GlobeLayer.js +19 -28
  56. package/lib/Core/Prefab/Globe/SkyShader.js +2 -11
  57. package/lib/Core/Prefab/GlobeView.js +27 -45
  58. package/lib/Core/Prefab/Planar/PlanarLayer.js +11 -20
  59. package/lib/Core/Prefab/Planar/PlanarTileBuilder.js +6 -16
  60. package/lib/Core/Prefab/PlanarView.js +10 -25
  61. package/lib/Core/Prefab/TileBuilder.js +13 -22
  62. package/lib/Core/Prefab/computeBufferTileGeometry.js +12 -16
  63. package/lib/Core/Scheduler/Cache.js +2 -10
  64. package/lib/Core/Scheduler/CancelledCommandException.js +1 -8
  65. package/lib/Core/Scheduler/Scheduler.js +15 -23
  66. package/lib/Core/Style.js +24 -38
  67. package/lib/Core/System/Capabilities.js +2 -13
  68. package/lib/Core/TileGeometry.js +13 -15
  69. package/lib/Core/TileMesh.js +6 -15
  70. package/lib/Core/View.js +43 -58
  71. package/lib/Layer/C3DTilesLayer.js +29 -41
  72. package/lib/Layer/ColorLayer.js +10 -16
  73. package/lib/Layer/ElevationLayer.js +7 -14
  74. package/lib/Layer/EntwinePointTileLayer.js +9 -18
  75. package/lib/Layer/FeatureGeometryLayer.js +9 -16
  76. package/lib/Layer/GeoidLayer.js +6 -15
  77. package/lib/Layer/GeometryLayer.js +11 -17
  78. package/lib/Layer/InfoLayer.js +5 -14
  79. package/lib/Layer/LabelLayer.js +22 -32
  80. package/lib/Layer/Layer.js +16 -26
  81. package/lib/Layer/LayerUpdateState.js +1 -8
  82. package/lib/Layer/LayerUpdateStrategy.js +7 -18
  83. package/lib/Layer/OrientedImageLayer.js +15 -25
  84. package/lib/Layer/PointCloudLayer.js +9 -19
  85. package/lib/Layer/PotreeLayer.js +8 -18
  86. package/lib/Layer/RasterLayer.js +9 -17
  87. package/lib/Layer/ReferencingLayerProperties.js +1 -8
  88. package/lib/Layer/TiledGeometryLayer.js +37 -33
  89. package/lib/Main.js +87 -708
  90. package/lib/MainBundle.js +4 -34
  91. package/lib/Parser/B3dmParser.js +80 -131
  92. package/lib/Parser/CameraCalibrationParser.js +5 -14
  93. package/lib/Parser/GDFParser.js +11 -22
  94. package/lib/Parser/GLTFParser.js +88 -0
  95. package/lib/Parser/GTXParser.js +9 -21
  96. package/lib/Parser/GeoJsonParser.js +14 -22
  97. package/lib/Parser/GpxParser.js +7 -14
  98. package/lib/Parser/ISGParser.js +19 -28
  99. package/lib/Parser/KMLParser.js +7 -14
  100. package/lib/Parser/LASLoader.js +20 -21
  101. package/lib/Parser/LASParser.js +6 -15
  102. package/lib/Parser/MapBoxUrlParser.js +2 -9
  103. package/lib/Parser/PntsParser.js +4 -14
  104. package/lib/Parser/PotreeBinParser.js +8 -16
  105. package/lib/Parser/PotreeCinParser.js +3 -12
  106. package/lib/Parser/ShapefileParser.js +11 -18
  107. package/lib/Parser/VectorTileParser.js +23 -31
  108. package/lib/Parser/XbilParser.js +5 -13
  109. package/lib/Parser/deprecated/LegacyGLTFLoader.js +2 -12
  110. package/lib/Process/3dTilesProcessing.js +14 -27
  111. package/lib/Process/FeatureProcessing.js +14 -22
  112. package/lib/Process/LayeredMaterialNodeProcessing.js +14 -26
  113. package/lib/Process/ObjectRemovalHelper.js +2 -9
  114. package/lib/Process/handlerNodeError.js +1 -7
  115. package/lib/Provider/3dTilesProvider.js +32 -29
  116. package/lib/Provider/DataSourceProvider.js +2 -9
  117. package/lib/Provider/Fetcher.js +40 -22
  118. package/lib/Provider/PointCloudProvider.js +7 -19
  119. package/lib/Provider/TileProvider.js +4 -12
  120. package/lib/Provider/URLBuilder.js +4 -12
  121. package/lib/Renderer/Camera.js +7 -17
  122. package/lib/Renderer/Color.js +3 -11
  123. package/lib/Renderer/ColorLayersOrdering.js +14 -22
  124. package/lib/Renderer/CommonMaterial.js +3 -12
  125. package/lib/Renderer/Label2DRenderer.js +5 -16
  126. package/lib/Renderer/LayeredMaterial.js +33 -53
  127. package/lib/Renderer/OBB.js +12 -21
  128. package/lib/Renderer/OrientedImageCamera.js +2 -11
  129. package/lib/Renderer/OrientedImageMaterial.js +17 -35
  130. package/lib/Renderer/PointsMaterial.js +37 -60
  131. package/lib/Renderer/RasterTile.js +16 -29
  132. package/lib/Renderer/RenderMode.js +2 -9
  133. package/lib/Renderer/Shader/ShaderChunk.js +5 -23
  134. package/lib/Renderer/Shader/ShaderUtils.js +2 -9
  135. package/lib/Renderer/SphereHelper.js +2 -11
  136. package/lib/Renderer/WebXR.js +2 -11
  137. package/lib/Renderer/c3DEngine.js +20 -53
  138. package/lib/Source/C3DTilesGoogleSource.js +76 -0
  139. package/lib/Source/C3DTilesIonSource.js +6 -13
  140. package/lib/Source/C3DTilesSource.js +5 -12
  141. package/lib/Source/EntwinePointTileSource.js +12 -19
  142. package/lib/Source/FileSource.js +7 -14
  143. package/lib/Source/OrientedImageSource.js +6 -14
  144. package/lib/Source/PotreeSource.js +9 -16
  145. package/lib/Source/Source.js +26 -39
  146. package/lib/Source/TMSSource.js +11 -22
  147. package/lib/Source/VectorTilesSource.js +75 -34
  148. package/lib/Source/WFSSource.js +7 -14
  149. package/lib/Source/WMSSource.js +5 -12
  150. package/lib/Source/WMTSSource.js +3 -10
  151. package/lib/ThreeExtended/capabilities/WebGL.js +1 -8
  152. package/lib/ThreeExtended/libs/ktx-parse.module.js +2 -256
  153. package/lib/ThreeExtended/libs/zstddec.module.js +2 -8
  154. package/lib/ThreeExtended/loaders/DDSLoader.js +10 -16
  155. package/lib/ThreeExtended/loaders/DRACOLoader.js +14 -19
  156. package/lib/ThreeExtended/loaders/GLTFLoader.js +124 -129
  157. package/lib/ThreeExtended/loaders/KTX2Loader.js +73 -78
  158. package/lib/ThreeExtended/utils/BufferGeometryUtils.js +40 -59
  159. package/lib/ThreeExtended/utils/WorkerPool.js +2 -9
  160. package/lib/Utils/CameraUtils.js +32 -44
  161. package/lib/Utils/DEMUtils.js +8 -19
  162. package/lib/Utils/FeaturesUtils.js +8 -16
  163. package/lib/Utils/Gradients.js +3 -12
  164. package/lib/Utils/OrientationUtils.js +8 -18
  165. package/lib/Utils/ThreeUtils.js +2 -9
  166. package/lib/Utils/gui/C3DTilesStyle.js +7 -15
  167. package/lib/Utils/gui/Main.js +7 -48
  168. package/lib/Utils/gui/Minimap.js +12 -20
  169. package/lib/Utils/gui/Navigation.js +6 -14
  170. package/lib/Utils/gui/Scale.js +11 -19
  171. package/lib/Utils/gui/Searchbar.js +5 -13
  172. package/lib/Utils/gui/Widget.js +1 -8
  173. package/lib/Utils/placeObjectOnGround.js +13 -23
  174. package/package.json +13 -8
package/changelog.md CHANGED
@@ -1,3 +1,93 @@
1
+ <a name="2.43.0"></a>
2
+ # [2.43.0](https://github.com/iTowns/itowns/compare/v2.42.0...v2.43.0) (2024-04-02)
3
+
4
+
5
+ ### Features
6
+
7
+ * ESM distribution ([ab36885](https://github.com/iTowns/itowns/commit/ab36885))
8
+ * **gltf:** add a GLTFParser to parse gltf 1.0 and 2.0 files ([e6eb4cf](https://github.com/iTowns/itowns/commit/e6eb4cf))
9
+ * Remove WebGL1 support ([5bd5c32](https://github.com/iTowns/itowns/commit/5bd5c32))
10
+ * **TiledGeometryLayer:** layer can now hide skirt ([06c7181](https://github.com/iTowns/itowns/commit/06c7181))
11
+ * **VectorTileSource:** add support for multiple source ([c51e64a](https://github.com/iTowns/itowns/commit/c51e64a))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **3dtiles:** fix tiles disappearing when zooming in and out ([c04e784](https://github.com/iTowns/itowns/commit/c04e784))
17
+ * **elevation:** Fix elevation layer removal from view ([4f361c3](https://github.com/iTowns/itowns/commit/4f361c3))
18
+ * **example:** migrate sources to IGN geoplateforme ([f6baf69](https://github.com/iTowns/itowns/commit/f6baf69))
19
+ * **examples:** fix new IGN VT style url ([17124ec](https://github.com/iTowns/itowns/commit/17124ec))
20
+ * **examples:** fix some issues with entwine planar example ([7d05a0f](https://github.com/iTowns/itowns/commit/7d05a0f))
21
+ * **examples:** migrate ign and grandlyon urls ([3f3ed82](https://github.com/iTowns/itowns/commit/3f3ed82))
22
+ * **Feature2Mesh:** fix proj on base alti ([49e48b5](https://github.com/iTowns/itowns/commit/49e48b5))
23
+ * **PointCloud:** fix precision error for entwinePointTileLayer ([bf38a72](https://github.com/iTowns/itowns/commit/bf38a72))
24
+ * **PotreeDebug:** fix oversight ([e5810d7](https://github.com/iTowns/itowns/commit/e5810d7))
25
+ * **RasterTile:** Fix RasterTile removeEvent when view.dispose is called ([33d0e8d](https://github.com/iTowns/itowns/commit/33d0e8d))
26
+ * **tutorials:** migrate urls to IGN geoplateforme ([5d324ca](https://github.com/iTowns/itowns/commit/5d324ca))
27
+
28
+
29
+ ### Performance Improvements
30
+
31
+ * **3dtiles:** fix loading time overhead due to internal structures pre-filling ([5d2f384](https://github.com/iTowns/itowns/commit/5d2f384))
32
+
33
+
34
+ ### Examples
35
+
36
+ * **ept:** Allow navigation on the pointcloud ([ec7ae6c](https://github.com/iTowns/itowns/commit/ec7ae6c))
37
+
38
+
39
+ ### Code Refactoring
40
+
41
+ * **babelrc:** add geojson and remove gltf from import extension ([dd3f80d](https://github.com/iTowns/itowns/commit/dd3f80d))
42
+ * **example:** entwine_simple_loader add use of param in url ([89d6fbd](https://github.com/iTowns/itowns/commit/89d6fbd))
43
+ * **Fetcher:** supp extent in parsed file ([1240db6](https://github.com/iTowns/itowns/commit/1240db6))
44
+ * **PointCloudLayer:** add new scheme and gradients to generate texture for use in the shader ([a557914](https://github.com/iTowns/itowns/commit/a557914))
45
+ * **source:** supp supportedFetchers and add Fetcher.get(format) ([9fa4cde](https://github.com/iTowns/itowns/commit/9fa4cde))
46
+ * **test:** add CanvasGradient in bootstrap.js ([99be96e](https://github.com/iTowns/itowns/commit/99be96e))
47
+ * **test:** add tests for Fetcher.js ([2fb3298](https://github.com/iTowns/itowns/commit/2fb3298))
48
+ * **test:** unit test clean up ([f6b6bf4](https://github.com/iTowns/itowns/commit/f6b6bf4))
49
+ * **test:** use sinon for multisource ([3b0709b](https://github.com/iTowns/itowns/commit/3b0709b))
50
+ * **unitTests:** use sinon to mock hidden itowns.Fetcher and add json file localy ([9dcfed3](https://github.com/iTowns/itowns/commit/9dcfed3))
51
+
52
+
53
+ ### Workflow and chores
54
+
55
+ * release v2.43.0 ([066e4e5](https://github.com/iTowns/itowns/commit/066e4e5))
56
+ * **coverage:** replace nyc by c8 ([f55ee06](https://github.com/iTowns/itowns/commit/f55ee06))
57
+ * **deps-dev:** bump express from 4.18.2 to 4.19.2 ([9be39b7](https://github.com/iTowns/itowns/commit/9be39b7))
58
+ * **deps-dev:** bump follow-redirects from 1.15.4 to 1.15.6 ([3163f5f](https://github.com/iTowns/itowns/commit/3163f5f))
59
+ * **deps-dev:** bump ip from 1.1.8 to 1.1.9 ([5d84b37](https://github.com/iTowns/itowns/commit/5d84b37))
60
+ * **deps-dev:** bump webpack-dev-middleware from 5.3.3 to 5.3.4 ([d53c1a5](https://github.com/iTowns/itowns/commit/d53c1a5))
61
+ * **deps:** bump copc and remove unecessary ignore of fs ([d4779cc](https://github.com/iTowns/itowns/commit/d4779cc))
62
+ * npm install [@xmldom](https://github.com/xmldom)/xmldom --save-dev ([1c8256c](https://github.com/iTowns/itowns/commit/1c8256c))
63
+ * npm install sinon --save-dev ([4d21c1e](https://github.com/iTowns/itowns/commit/4d21c1e))
64
+ * replace the CDN from unpkg to jsdelivr ([c7ff763](https://github.com/iTowns/itowns/commit/c7ff763))
65
+ * **scripts:** mark cjs scripts explicitely ([c6bae49](https://github.com/iTowns/itowns/commit/c6bae49))
66
+
67
+
68
+ ### Documentation
69
+
70
+ * **tutorials:** minor typo and syntax fixes ([7680ccf](https://github.com/iTowns/itowns/commit/7680ccf))
71
+ * **tutorials:** replace deprecated callback ([c6ba5fb](https://github.com/iTowns/itowns/commit/c6ba5fb))
72
+
73
+
74
+ ### Tests
75
+
76
+ * **wfs:** fix wfs to 25d example test ([1cb36a7](https://github.com/iTowns/itowns/commit/1cb36a7))
77
+
78
+
79
+ ### BREAKING CHANGES
80
+
81
+ * - WebGL1 context is no longer supported.
82
+ * The itowns library drops the CommonJS distribution in favor of
83
+ a standard ECMAScript module (ESM) distribution.
84
+ * **3dtiles:** * C3DTFeature constructor parameters changed from
85
+ (tileId, batchId, groups, info, userData, object3d) to
86
+ (tileId, batchId, groups, userData, object3d)
87
+ * C3DTilesLayer.findBatchTable() is not exposed in the API anymore
88
+
89
+
90
+
1
91
  <a name="2.42.0"></a>
2
92
  # [2.42.0](https://github.com/iTowns/itowns/compare/v2.41.0...v2.42.0) (2024-02-05)
3
93