itowns 2.44.3-next.40 → 2.44.3-next.41
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 +3 -129
- package/package.json +16 -72
- package/CODING.md +0 -120
- package/CONTRIBUTING.md +0 -150
- package/CONTRIBUTORS.md +0 -56
- package/LICENSE.md +0 -44
- package/changelog.md +0 -1361
- package/dist/455.js +0 -2
- package/dist/455.js.map +0 -1
- package/dist/debug.js +0 -3
- package/dist/debug.js.LICENSE.txt +0 -13
- package/dist/debug.js.map +0 -1
- package/dist/itowns.js +0 -3
- package/dist/itowns.js.LICENSE.txt +0 -5
- package/dist/itowns.js.map +0 -1
- package/dist/itowns_lasparser.js +0 -2
- package/dist/itowns_lasparser.js.map +0 -1
- package/dist/itowns_lasworker.js +0 -2
- package/dist/itowns_lasworker.js.map +0 -1
- package/dist/itowns_potree2worker.js +0 -2
- package/dist/itowns_potree2worker.js.map +0 -1
- package/dist/itowns_widgets.js +0 -2
- package/dist/itowns_widgets.js.map +0 -1
- package/examples/.eslintrc.cjs +0 -35
- package/examples/jsm/.eslintrc.cjs +0 -38
- package/lib/Controls/FirstPersonControls.js +0 -308
- package/lib/Controls/FlyControls.js +0 -175
- package/lib/Controls/GlobeControls.js +0 -1179
- package/lib/Controls/PlanarControls.js +0 -1025
- package/lib/Controls/StateControl.js +0 -432
- package/lib/Controls/StreetControls.js +0 -392
- package/lib/Converter/Feature2Mesh.js +0 -614
- package/lib/Converter/Feature2Texture.js +0 -175
- package/lib/Converter/convertToTile.js +0 -70
- package/lib/Converter/textureConverter.js +0 -43
- package/lib/Core/3DTiles/C3DTBatchTable.js +0 -131
- package/lib/Core/3DTiles/C3DTBatchTableHierarchyExtension.js +0 -96
- package/lib/Core/3DTiles/C3DTBoundingVolume.js +0 -157
- package/lib/Core/3DTiles/C3DTExtensions.js +0 -97
- package/lib/Core/3DTiles/C3DTFeature.js +0 -110
- package/lib/Core/3DTiles/C3DTilesEnums.js +0 -20
- package/lib/Core/3DTiles/C3DTileset.js +0 -99
- package/lib/Core/3DTiles/utils/BinaryPropertyAccessor.js +0 -100
- package/lib/Core/AnimationPlayer.js +0 -142
- package/lib/Core/CopcNode.js +0 -174
- package/lib/Core/Deprecated/Undeprecator.js +0 -74
- package/lib/Core/EntwinePointTileNode.js +0 -126
- package/lib/Core/Feature.js +0 -489
- package/lib/Core/Geographic/CoordStars.js +0 -80
- package/lib/Core/Geographic/Coordinates.js +0 -331
- package/lib/Core/Geographic/Crs.js +0 -170
- package/lib/Core/Geographic/Extent.js +0 -550
- package/lib/Core/Geographic/GeoidGrid.js +0 -109
- package/lib/Core/Label.js +0 -222
- package/lib/Core/MainLoop.js +0 -209
- package/lib/Core/Math/Ellipsoid.js +0 -185
- package/lib/Core/Picking.js +0 -255
- package/lib/Core/PointCloudNode.js +0 -42
- package/lib/Core/Potree2Node.js +0 -206
- package/lib/Core/Potree2PointAttributes.js +0 -139
- package/lib/Core/PotreeNode.js +0 -101
- package/lib/Core/Prefab/Globe/Atmosphere.js +0 -295
- package/lib/Core/Prefab/Globe/GlobeLayer.js +0 -152
- package/lib/Core/Prefab/Globe/GlobeTileBuilder.js +0 -111
- package/lib/Core/Prefab/Globe/SkyShader.js +0 -78
- package/lib/Core/Prefab/GlobeView.js +0 -156
- package/lib/Core/Prefab/Planar/PlanarLayer.js +0 -59
- package/lib/Core/Prefab/Planar/PlanarTileBuilder.js +0 -72
- package/lib/Core/Prefab/PlanarView.js +0 -62
- package/lib/Core/Prefab/TileBuilder.js +0 -82
- package/lib/Core/Prefab/computeBufferTileGeometry.js +0 -248
- package/lib/Core/Scheduler/Cache.js +0 -17
- package/lib/Core/Scheduler/CancelledCommandException.js +0 -15
- package/lib/Core/Scheduler/Scheduler.js +0 -294
- package/lib/Core/Style.js +0 -660
- package/lib/Core/StyleOptions.js +0 -486
- package/lib/Core/System/Capabilities.js +0 -63
- package/lib/Core/Tile/Tile.js +0 -207
- package/lib/Core/Tile/TileGrid.js +0 -49
- package/lib/Core/TileGeometry.js +0 -124
- package/lib/Core/TileMesh.js +0 -108
- package/lib/Core/View.js +0 -1116
- package/lib/Layer/C3DTilesLayer.js +0 -459
- package/lib/Layer/ColorLayer.js +0 -154
- package/lib/Layer/CopcLayer.js +0 -63
- package/lib/Layer/ElevationLayer.js +0 -139
- package/lib/Layer/EntwinePointTileLayer.js +0 -71
- package/lib/Layer/FeatureGeometryLayer.js +0 -77
- package/lib/Layer/GeoidLayer.js +0 -80
- package/lib/Layer/GeometryLayer.js +0 -233
- package/lib/Layer/InfoLayer.js +0 -64
- package/lib/Layer/LabelLayer.js +0 -470
- package/lib/Layer/Layer.js +0 -335
- package/lib/Layer/LayerUpdateState.js +0 -89
- package/lib/Layer/LayerUpdateStrategy.js +0 -80
- package/lib/Layer/OGC3DTilesLayer.js +0 -543
- package/lib/Layer/OrientedImageLayer.js +0 -228
- package/lib/Layer/PointCloudLayer.js +0 -405
- package/lib/Layer/Potree2Layer.js +0 -171
- package/lib/Layer/PotreeLayer.js +0 -72
- package/lib/Layer/RasterLayer.js +0 -37
- package/lib/Layer/ReferencingLayerProperties.js +0 -62
- package/lib/Layer/TiledGeometryLayer.js +0 -459
- package/lib/Loader/LASLoader.js +0 -193
- package/lib/Loader/Potree2BrotliLoader.js +0 -261
- package/lib/Loader/Potree2Loader.js +0 -207
- package/lib/Main.js +0 -115
- package/lib/MainBundle.js +0 -4
- package/lib/Parser/B3dmParser.js +0 -174
- package/lib/Parser/CameraCalibrationParser.js +0 -94
- package/lib/Parser/GDFParser.js +0 -72
- package/lib/Parser/GTXParser.js +0 -75
- package/lib/Parser/GeoJsonParser.js +0 -212
- package/lib/Parser/GpxParser.js +0 -25
- package/lib/Parser/ISGParser.js +0 -71
- package/lib/Parser/KMLParser.js +0 -25
- package/lib/Parser/LASParser.js +0 -137
- package/lib/Parser/MapBoxUrlParser.js +0 -83
- package/lib/Parser/PntsParser.js +0 -131
- package/lib/Parser/Potree2BinParser.js +0 -92
- package/lib/Parser/PotreeBinParser.js +0 -106
- package/lib/Parser/PotreeCinParser.js +0 -29
- package/lib/Parser/ShapefileParser.js +0 -78
- package/lib/Parser/VectorTileParser.js +0 -215
- package/lib/Parser/XbilParser.js +0 -120
- package/lib/Parser/deprecated/LegacyGLTFLoader.js +0 -1386
- package/lib/Parser/iGLTFLoader.js +0 -168
- package/lib/Process/3dTilesProcessing.js +0 -304
- package/lib/Process/FeatureProcessing.js +0 -76
- package/lib/Process/LayeredMaterialNodeProcessing.js +0 -221
- package/lib/Process/ObjectRemovalHelper.js +0 -97
- package/lib/Process/handlerNodeError.js +0 -23
- package/lib/Provider/3dTilesProvider.js +0 -149
- package/lib/Provider/DataSourceProvider.js +0 -8
- package/lib/Provider/Fetcher.js +0 -233
- package/lib/Provider/PointCloudProvider.js +0 -45
- package/lib/Provider/TileProvider.js +0 -16
- package/lib/Provider/URLBuilder.js +0 -116
- package/lib/Renderer/Camera.js +0 -281
- package/lib/Renderer/Color.js +0 -56
- package/lib/Renderer/ColorLayersOrdering.js +0 -115
- package/lib/Renderer/CommonMaterial.js +0 -31
- package/lib/Renderer/Label2DRenderer.js +0 -192
- package/lib/Renderer/LayeredMaterial.js +0 -243
- package/lib/Renderer/OBB.js +0 -151
- package/lib/Renderer/OrientedImageCamera.js +0 -118
- package/lib/Renderer/OrientedImageMaterial.js +0 -167
- package/lib/Renderer/PointsMaterial.js +0 -485
- package/lib/Renderer/RasterTile.js +0 -208
- package/lib/Renderer/RenderMode.js +0 -31
- package/lib/Renderer/Shader/ShaderChunk.js +0 -160
- package/lib/Renderer/Shader/ShaderUtils.js +0 -47
- package/lib/Renderer/SphereHelper.js +0 -17
- package/lib/Renderer/WebXR.js +0 -51
- package/lib/Renderer/c3DEngine.js +0 -214
- package/lib/Source/C3DTilesGoogleSource.js +0 -74
- package/lib/Source/C3DTilesIonSource.js +0 -54
- package/lib/Source/C3DTilesSource.js +0 -30
- package/lib/Source/CopcSource.js +0 -126
- package/lib/Source/EntwinePointTileSource.js +0 -72
- package/lib/Source/FileSource.js +0 -188
- package/lib/Source/OGC3DTilesGoogleSource.js +0 -29
- package/lib/Source/OGC3DTilesIonSource.js +0 -34
- package/lib/Source/OGC3DTilesSource.js +0 -21
- package/lib/Source/OrientedImageSource.js +0 -59
- package/lib/Source/Potree2Source.js +0 -167
- package/lib/Source/PotreeSource.js +0 -82
- package/lib/Source/Source.js +0 -203
- package/lib/Source/TMSSource.js +0 -144
- package/lib/Source/VectorTilesSource.js +0 -182
- package/lib/Source/WFSSource.js +0 -170
- package/lib/Source/WMSSource.js +0 -168
- package/lib/Source/WMTSSource.js +0 -92
- package/lib/ThreeExtended/capabilities/WebGL.js +0 -69
- package/lib/ThreeExtended/libs/ktx-parse.module.js +0 -506
- package/lib/ThreeExtended/libs/zstddec.module.js +0 -29
- package/lib/ThreeExtended/loaders/DDSLoader.js +0 -200
- package/lib/ThreeExtended/loaders/DRACOLoader.js +0 -400
- package/lib/ThreeExtended/loaders/GLTFLoader.js +0 -2879
- package/lib/ThreeExtended/loaders/KTX2Loader.js +0 -709
- package/lib/ThreeExtended/math/ColorSpaces.js +0 -59
- package/lib/ThreeExtended/utils/BufferGeometryUtils.js +0 -846
- package/lib/ThreeExtended/utils/WorkerPool.js +0 -70
- package/lib/Utils/CameraUtils.js +0 -555
- package/lib/Utils/DEMUtils.js +0 -350
- package/lib/Utils/FeaturesUtils.js +0 -156
- package/lib/Utils/Gradients.js +0 -16
- package/lib/Utils/OrientationUtils.js +0 -457
- package/lib/Utils/ThreeUtils.js +0 -115
- package/lib/Utils/gui/C3DTilesStyle.js +0 -215
- package/lib/Utils/gui/Main.js +0 -7
- package/lib/Utils/gui/Minimap.js +0 -154
- package/lib/Utils/gui/Navigation.js +0 -245
- package/lib/Utils/gui/Scale.js +0 -107
- package/lib/Utils/gui/Searchbar.js +0 -234
- package/lib/Utils/gui/Widget.js +0 -80
- package/lib/Utils/placeObjectOnGround.js +0 -136
- package/lib/Worker/LASLoaderWorker.js +0 -19
- package/lib/Worker/Potree2Worker.js +0 -21
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { LinearTransfer, Matrix3, SRGBTransfer } from 'three';
|
|
2
|
-
|
|
3
|
-
// Reference: http://www.russellcottrell.com/photo/matrixCalculator.htm
|
|
4
|
-
|
|
5
|
-
const P3_PRIMARIES = [0.680, 0.320, 0.265, 0.690, 0.150, 0.060];
|
|
6
|
-
const P3_LUMINANCE_COEFFICIENTS = [0.2289, 0.6917, 0.0793];
|
|
7
|
-
const REC2020_PRIMARIES = [0.708, 0.292, 0.170, 0.797, 0.131, 0.046];
|
|
8
|
-
const REC2020_LUMINANCE_COEFFICIENTS = [0.2627, 0.6780, 0.0593];
|
|
9
|
-
const D65 = [0.3127, 0.3290];
|
|
10
|
-
|
|
11
|
-
/******************************************************************************
|
|
12
|
-
* Display P3 definitions
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
const LINEAR_DISPLAY_P3_TO_XYZ = /*@__PURE__*/new Matrix3().set(0.4865709, 0.2656677, 0.1982173, 0.2289746, 0.6917385, 0.0792869, 0.0000000, 0.0451134, 1.0439444);
|
|
16
|
-
const XYZ_TO_LINEAR_DISPLAY_P3 = /*@__PURE__*/new Matrix3().set(2.4934969, -0.9313836, -0.4027108, -0.8294890, 1.7626641, 0.0236247, 0.0358458, -0.0761724, 0.9568845);
|
|
17
|
-
export const DisplayP3ColorSpace = 'display-p3';
|
|
18
|
-
export const LinearDisplayP3ColorSpace = 'display-p3-linear';
|
|
19
|
-
export const DisplayP3ColorSpaceImpl = {
|
|
20
|
-
primaries: P3_PRIMARIES,
|
|
21
|
-
whitePoint: D65,
|
|
22
|
-
transfer: SRGBTransfer,
|
|
23
|
-
toXYZ: LINEAR_DISPLAY_P3_TO_XYZ,
|
|
24
|
-
fromXYZ: XYZ_TO_LINEAR_DISPLAY_P3,
|
|
25
|
-
luminanceCoefficients: P3_LUMINANCE_COEFFICIENTS,
|
|
26
|
-
outputColorSpaceConfig: {
|
|
27
|
-
drawingBufferColorSpace: DisplayP3ColorSpace
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
export const LinearDisplayP3ColorSpaceImpl = {
|
|
31
|
-
primaries: P3_PRIMARIES,
|
|
32
|
-
whitePoint: D65,
|
|
33
|
-
transfer: LinearTransfer,
|
|
34
|
-
toXYZ: LINEAR_DISPLAY_P3_TO_XYZ,
|
|
35
|
-
fromXYZ: XYZ_TO_LINEAR_DISPLAY_P3,
|
|
36
|
-
luminanceCoefficients: P3_LUMINANCE_COEFFICIENTS,
|
|
37
|
-
workingColorSpaceConfig: {
|
|
38
|
-
unpackColorSpace: DisplayP3ColorSpace
|
|
39
|
-
},
|
|
40
|
-
outputColorSpaceConfig: {
|
|
41
|
-
drawingBufferColorSpace: DisplayP3ColorSpace
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/******************************************************************************
|
|
46
|
-
* Rec. 2020 definitions
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
const LINEAR_REC2020_TO_XYZ = /*@__PURE__*/new Matrix3().set(0.6369580, 0.1446169, 0.1688810, 0.2627002, 0.6779981, 0.0593017, 0.0000000, 0.0280727, 1.0609851);
|
|
50
|
-
const XYZ_TO_LINEAR_REC2020 = /*@__PURE__*/new Matrix3().set(1.7166512, -0.3556708, -0.2533663, -0.6666844, 1.6164812, 0.0157685, 0.0176399, -0.0427706, 0.9421031);
|
|
51
|
-
export const LinearRec2020ColorSpace = 'rec2020-linear';
|
|
52
|
-
export const LinearRec2020ColorSpaceImpl = {
|
|
53
|
-
primaries: REC2020_PRIMARIES,
|
|
54
|
-
whitePoint: D65,
|
|
55
|
-
transfer: LinearTransfer,
|
|
56
|
-
toXYZ: LINEAR_REC2020_TO_XYZ,
|
|
57
|
-
fromXYZ: XYZ_TO_LINEAR_REC2020,
|
|
58
|
-
luminanceCoefficients: REC2020_LUMINANCE_COEFFICIENTS
|
|
59
|
-
};
|