@itwin/core-frontend 5.1.0-dev.9 → 5.2.0-dev.1
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/CHANGELOG.md +92 -1
- package/lib/cjs/AccuDraw.js +2 -2
- package/lib/cjs/AccuDraw.js.map +1 -1
- package/lib/cjs/AccuSnap.d.ts.map +1 -1
- package/lib/cjs/AccuSnap.js +15 -6
- package/lib/cjs/AccuSnap.js.map +1 -1
- package/lib/cjs/AuxCoordSys.js +1 -1
- package/lib/cjs/AuxCoordSys.js.map +1 -1
- package/lib/cjs/DisplayStyleState.d.ts +37 -0
- package/lib/cjs/DisplayStyleState.d.ts.map +1 -1
- package/lib/cjs/DisplayStyleState.js +65 -0
- package/lib/cjs/DisplayStyleState.js.map +1 -1
- package/lib/cjs/DrawingViewState.d.ts.map +1 -1
- package/lib/cjs/DrawingViewState.js +1 -0
- package/lib/cjs/DrawingViewState.js.map +1 -1
- package/lib/cjs/GraphicalEditingScope.d.ts +1 -1
- package/lib/cjs/GraphicalEditingScope.d.ts.map +1 -1
- package/lib/cjs/GraphicalEditingScope.js +1 -1
- package/lib/cjs/GraphicalEditingScope.js.map +1 -1
- package/lib/cjs/HitDetail.d.ts +1 -1
- package/lib/cjs/HitDetail.d.ts.map +1 -1
- package/lib/cjs/HitDetail.js.map +1 -1
- package/lib/cjs/IModelApp.d.ts +19 -4
- package/lib/cjs/IModelApp.d.ts.map +1 -1
- package/lib/cjs/IModelApp.js +21 -2
- package/lib/cjs/IModelApp.js.map +1 -1
- package/lib/cjs/IModelConnection.d.ts +8 -9
- package/lib/cjs/IModelConnection.d.ts.map +1 -1
- package/lib/cjs/IModelConnection.js +52 -24
- package/lib/cjs/IModelConnection.js.map +1 -1
- package/lib/cjs/IpcApp.d.ts +2 -1
- package/lib/cjs/IpcApp.d.ts.map +1 -1
- package/lib/cjs/IpcApp.js +4 -2
- package/lib/cjs/IpcApp.js.map +1 -1
- package/lib/cjs/RealityDataSource.d.ts +65 -3
- package/lib/cjs/RealityDataSource.d.ts.map +1 -1
- package/lib/cjs/RealityDataSource.js +79 -3
- package/lib/cjs/RealityDataSource.js.map +1 -1
- package/lib/cjs/RealityDataSourceTilesetUrlImpl.js +1 -1
- package/lib/cjs/RealityDataSourceTilesetUrlImpl.js.map +1 -1
- package/lib/cjs/SelectionSet.d.ts +7 -7
- package/lib/cjs/SelectionSet.js +3 -3
- package/lib/cjs/SelectionSet.js.map +1 -1
- package/lib/cjs/SheetViewState.d.ts +2 -0
- package/lib/cjs/SheetViewState.d.ts.map +1 -1
- package/lib/cjs/SheetViewState.js +25 -3
- package/lib/cjs/SheetViewState.js.map +1 -1
- package/lib/cjs/ViewState.d.ts +1 -1
- package/lib/cjs/ViewState.js +1 -1
- package/lib/cjs/ViewState.js.map +1 -1
- package/lib/cjs/Viewport.d.ts +6 -4
- package/lib/cjs/Viewport.d.ts.map +1 -1
- package/lib/cjs/Viewport.js +23 -3
- package/lib/cjs/Viewport.js.map +1 -1
- package/lib/cjs/common/gltf/GltfSchema.d.ts +18 -0
- package/lib/cjs/common/gltf/GltfSchema.d.ts.map +1 -1
- package/lib/cjs/common/gltf/GltfSchema.js +1 -0
- package/lib/cjs/common/gltf/GltfSchema.js.map +1 -1
- package/lib/cjs/common/imdl/CompactEdges.d.ts +11 -0
- package/lib/cjs/common/imdl/CompactEdges.d.ts.map +1 -1
- package/lib/cjs/common/imdl/CompactEdges.js +9 -6
- package/lib/cjs/common/imdl/CompactEdges.js.map +1 -1
- package/lib/cjs/common/imdl/ImdlSchema.d.ts +5 -1
- package/lib/cjs/common/imdl/ImdlSchema.d.ts.map +1 -1
- package/lib/cjs/common/imdl/ImdlSchema.js +4 -0
- package/lib/cjs/common/imdl/ImdlSchema.js.map +1 -1
- package/lib/cjs/common/imdl/ParseImdlDocument.d.ts.map +1 -1
- package/lib/cjs/common/imdl/ParseImdlDocument.js +11 -9
- package/lib/cjs/common/imdl/ParseImdlDocument.js.map +1 -1
- package/lib/cjs/common/internal/render/EdgeParams.d.ts +7 -2
- package/lib/cjs/common/internal/render/EdgeParams.d.ts.map +1 -1
- package/lib/cjs/common/internal/render/EdgeParams.js +30 -8
- package/lib/cjs/common/internal/render/EdgeParams.js.map +1 -1
- package/lib/cjs/common/internal/render/MeshPrimitives.d.ts +2 -1
- package/lib/cjs/common/internal/render/MeshPrimitives.d.ts.map +1 -1
- package/lib/cjs/common/internal/render/MeshPrimitives.js +5 -7
- package/lib/cjs/common/internal/render/MeshPrimitives.js.map +1 -1
- package/lib/cjs/common/internal/render/PolylineParams.d.ts +8 -3
- package/lib/cjs/common/internal/render/PolylineParams.d.ts.map +1 -1
- package/lib/cjs/common/internal/render/PolylineParams.js +6 -9
- package/lib/cjs/common/internal/render/PolylineParams.js.map +1 -1
- package/lib/cjs/common/internal/render/VertexTableSplitter.d.ts.map +1 -1
- package/lib/cjs/common/internal/render/VertexTableSplitter.js +9 -7
- package/lib/cjs/common/internal/render/VertexTableSplitter.js.map +1 -1
- package/lib/cjs/core-frontend.d.ts +2 -2
- package/lib/cjs/core-frontend.d.ts.map +1 -1
- package/lib/cjs/core-frontend.js +1 -1
- package/lib/cjs/core-frontend.js.map +1 -1
- package/lib/cjs/extension/ExtensionRuntime.js +15 -2
- package/lib/cjs/extension/ExtensionRuntime.js.map +1 -1
- package/lib/cjs/extension/providers/ExtensionLoadScript.js.map +1 -1
- package/lib/cjs/internal/GoogleMapsDecorator.d.ts +53 -0
- package/lib/cjs/internal/GoogleMapsDecorator.d.ts.map +1 -0
- package/lib/cjs/internal/GoogleMapsDecorator.js +132 -0
- package/lib/cjs/internal/GoogleMapsDecorator.js.map +1 -0
- package/lib/cjs/internal/RealityDataSourceGoogle3dTilesImpl.d.ts +83 -0
- package/lib/cjs/internal/RealityDataSourceGoogle3dTilesImpl.d.ts.map +1 -0
- package/lib/cjs/internal/RealityDataSourceGoogle3dTilesImpl.js +201 -0
- package/lib/cjs/internal/RealityDataSourceGoogle3dTilesImpl.js.map +1 -0
- package/lib/cjs/internal/ScriptUtils.d.ts +5 -0
- package/lib/cjs/internal/ScriptUtils.d.ts.map +1 -0
- package/lib/cjs/internal/ScriptUtils.js +120 -0
- package/lib/cjs/internal/ScriptUtils.js.map +1 -0
- package/lib/cjs/internal/cross-package.d.ts +1 -0
- package/lib/cjs/internal/cross-package.d.ts.map +1 -1
- package/lib/cjs/internal/cross-package.js +4 -1
- package/lib/cjs/internal/cross-package.js.map +1 -1
- package/lib/cjs/internal/render/webgl/AtmosphereUniforms.d.ts +1 -1
- package/lib/cjs/internal/render/webgl/AtmosphereUniforms.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/AtmosphereUniforms.js +1 -1
- package/lib/cjs/internal/render/webgl/AtmosphereUniforms.js.map +1 -1
- package/lib/cjs/internal/render/webgl/AttributeBuffers.d.ts +2 -2
- package/lib/cjs/internal/render/webgl/AttributeBuffers.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/AttributeBuffers.js +2 -2
- package/lib/cjs/internal/render/webgl/AttributeBuffers.js.map +1 -1
- package/lib/cjs/internal/render/webgl/BatchUniforms.js +1 -1
- package/lib/cjs/internal/render/webgl/BatchUniforms.js.map +1 -1
- package/lib/cjs/internal/render/webgl/BranchStack.d.ts +2 -2
- package/lib/cjs/internal/render/webgl/BranchStack.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/BranchStack.js +3 -2
- package/lib/cjs/internal/render/webgl/BranchStack.js.map +1 -1
- package/lib/cjs/internal/render/webgl/BranchState.d.ts +4 -2
- package/lib/cjs/internal/render/webgl/BranchState.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/BranchState.js +4 -1
- package/lib/cjs/internal/render/webgl/BranchState.js.map +1 -1
- package/lib/cjs/internal/render/webgl/BranchUniforms.d.ts +2 -2
- package/lib/cjs/internal/render/webgl/BranchUniforms.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/BranchUniforms.js +2 -2
- package/lib/cjs/internal/render/webgl/BranchUniforms.js.map +1 -1
- package/lib/cjs/internal/render/webgl/ClippingProgram.d.ts +1 -1
- package/lib/cjs/internal/render/webgl/ClippingProgram.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/ClippingProgram.js +1 -1
- package/lib/cjs/internal/render/webgl/ClippingProgram.js.map +1 -1
- package/lib/cjs/internal/render/webgl/ContourUniforms.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/ContourUniforms.js +2 -3
- package/lib/cjs/internal/render/webgl/ContourUniforms.js.map +1 -1
- package/lib/cjs/internal/render/webgl/Contours.js +8 -8
- package/lib/cjs/internal/render/webgl/Contours.js.map +1 -1
- package/lib/cjs/internal/render/webgl/EdgeGeometry.d.ts +8 -6
- package/lib/cjs/internal/render/webgl/EdgeGeometry.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/EdgeGeometry.js +21 -7
- package/lib/cjs/internal/render/webgl/EdgeGeometry.js.map +1 -1
- package/lib/cjs/internal/render/webgl/Graphic.d.ts +2 -1
- package/lib/cjs/internal/render/webgl/Graphic.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/Graphic.js +2 -0
- package/lib/cjs/internal/render/webgl/Graphic.js.map +1 -1
- package/lib/cjs/internal/render/webgl/IndexedEdgeGeometry.d.ts +6 -1
- package/lib/cjs/internal/render/webgl/IndexedEdgeGeometry.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/IndexedEdgeGeometry.js +19 -4
- package/lib/cjs/internal/render/webgl/IndexedEdgeGeometry.js.map +1 -1
- package/lib/cjs/internal/render/webgl/Mesh.d.ts +1 -1
- package/lib/cjs/internal/render/webgl/Mesh.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/Mesh.js +13 -6
- package/lib/cjs/internal/render/webgl/Mesh.js.map +1 -1
- package/lib/cjs/internal/render/webgl/SceneCompositor.js +2 -1
- package/lib/cjs/internal/render/webgl/SceneCompositor.js.map +1 -1
- package/lib/cjs/internal/render/webgl/ShaderProgram.d.ts +2 -2
- package/lib/cjs/internal/render/webgl/ShaderProgram.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/ShaderProgram.js +2 -2
- package/lib/cjs/internal/render/webgl/ShaderProgram.js.map +1 -1
- package/lib/cjs/internal/render/webgl/Target.d.ts +2 -1
- package/lib/cjs/internal/render/webgl/Target.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/Target.js +3 -1
- package/lib/cjs/internal/render/webgl/Target.js.map +1 -1
- package/lib/cjs/internal/render/webgl/Technique.d.ts +3 -3
- package/lib/cjs/internal/render/webgl/Technique.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/Technique.js +3 -3
- package/lib/cjs/internal/render/webgl/Technique.js.map +1 -1
- package/lib/cjs/internal/tile/ClassifierTileTree.js +3 -1
- package/lib/cjs/internal/tile/ClassifierTileTree.js.map +1 -1
- package/lib/cjs/internal/tile/IModelTile.d.ts +1 -0
- package/lib/cjs/internal/tile/IModelTile.d.ts.map +1 -1
- package/lib/cjs/internal/tile/IModelTile.js +4 -0
- package/lib/cjs/internal/tile/IModelTile.js.map +1 -1
- package/lib/cjs/internal/tile/IModelTileTree.d.ts +4 -2
- package/lib/cjs/internal/tile/IModelTileTree.d.ts.map +1 -1
- package/lib/cjs/internal/tile/IModelTileTree.js +58 -0
- package/lib/cjs/internal/tile/IModelTileTree.js.map +1 -1
- package/lib/cjs/internal/tile/LayerTileTreeReferenceHandler.d.ts.map +1 -1
- package/lib/cjs/internal/tile/LayerTileTreeReferenceHandler.js +8 -0
- package/lib/cjs/internal/tile/LayerTileTreeReferenceHandler.js.map +1 -1
- package/lib/cjs/internal/tile/OrbitGtTileTree.d.ts +4 -1
- package/lib/cjs/internal/tile/OrbitGtTileTree.d.ts.map +1 -1
- package/lib/cjs/internal/tile/OrbitGtTileTree.js +4 -0
- package/lib/cjs/internal/tile/OrbitGtTileTree.js.map +1 -1
- package/lib/cjs/internal/tile/PrimaryTileTree.d.ts.map +1 -1
- package/lib/cjs/internal/tile/PrimaryTileTree.js +5 -4
- package/lib/cjs/internal/tile/PrimaryTileTree.js.map +1 -1
- package/lib/cjs/internal/tile/RealityModelTileTree.d.ts +26 -7
- package/lib/cjs/internal/tile/RealityModelTileTree.d.ts.map +1 -1
- package/lib/cjs/internal/tile/RealityModelTileTree.js +48 -21
- package/lib/cjs/internal/tile/RealityModelTileTree.js.map +1 -1
- package/lib/cjs/internal/tile/RealityTileLoader.d.ts +2 -2
- package/lib/cjs/internal/tile/RealityTileLoader.d.ts.map +1 -1
- package/lib/cjs/internal/tile/RealityTileLoader.js +10 -2
- package/lib/cjs/internal/tile/RealityTileLoader.js.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.d.ts +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.d.ts.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.js +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.js.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/BingImageryProvider.d.ts +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/BingImageryProvider.d.ts.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/BingImageryProvider.js +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/BingImageryProvider.js.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.d.ts +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.d.ts.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.js +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.js.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.d.ts +4 -0
- package/lib/cjs/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.d.ts.map +1 -1
- package/lib/cjs/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.js +52 -11
- package/lib/cjs/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.js.map +1 -1
- package/lib/cjs/internal/tile/map/WmtsCapabilities.d.ts +7 -0
- package/lib/cjs/internal/tile/map/WmtsCapabilities.d.ts.map +1 -1
- package/lib/cjs/internal/tile/map/WmtsCapabilities.js +17 -0
- package/lib/cjs/internal/tile/map/WmtsCapabilities.js.map +1 -1
- package/lib/cjs/internal/webgl.d.ts +1 -1
- package/lib/cjs/internal/webgl.d.ts.map +1 -1
- package/lib/cjs/internal/webgl.js.map +1 -1
- package/lib/cjs/properties/AngleDescription.d.ts +4 -1
- package/lib/cjs/properties/AngleDescription.d.ts.map +1 -1
- package/lib/cjs/properties/AngleDescription.js +10 -2
- package/lib/cjs/properties/AngleDescription.js.map +1 -1
- package/lib/cjs/properties/FormattedQuantityDescription.d.ts +11 -1
- package/lib/cjs/properties/FormattedQuantityDescription.d.ts.map +1 -1
- package/lib/cjs/properties/FormattedQuantityDescription.js +7 -2
- package/lib/cjs/properties/FormattedQuantityDescription.js.map +1 -1
- package/lib/cjs/properties/LengthDescription.d.ts +12 -3
- package/lib/cjs/properties/LengthDescription.d.ts.map +1 -1
- package/lib/cjs/properties/LengthDescription.js +30 -6
- package/lib/cjs/properties/LengthDescription.js.map +1 -1
- package/lib/cjs/quantity-formatting/QuantityFormatter.d.ts +103 -7
- package/lib/cjs/quantity-formatting/QuantityFormatter.d.ts.map +1 -1
- package/lib/cjs/quantity-formatting/QuantityFormatter.js +210 -23
- package/lib/cjs/quantity-formatting/QuantityFormatter.js.map +1 -1
- package/lib/cjs/render/Decorations.d.ts +1 -1
- package/lib/cjs/render/Decorations.d.ts.map +1 -1
- package/lib/cjs/render/Decorations.js +1 -1
- package/lib/cjs/render/Decorations.js.map +1 -1
- package/lib/cjs/render/GraphicBranch.d.ts +4 -2
- package/lib/cjs/render/GraphicBranch.d.ts.map +1 -1
- package/lib/cjs/render/GraphicBranch.js +1 -1
- package/lib/cjs/render/GraphicBranch.js.map +1 -1
- package/lib/cjs/render/MeshArgs.d.ts +8 -3
- package/lib/cjs/render/MeshArgs.d.ts.map +1 -1
- package/lib/cjs/render/MeshArgs.js.map +1 -1
- package/lib/cjs/render/RenderGraphic.d.ts +1 -1
- package/lib/cjs/render/RenderGraphic.d.ts.map +1 -1
- package/lib/cjs/render/RenderGraphic.js.map +1 -1
- package/lib/cjs/render/RenderSystem.d.ts +2 -2
- package/lib/cjs/render/RenderSystem.d.ts.map +1 -1
- package/lib/cjs/render/RenderSystem.js.map +1 -1
- package/lib/cjs/render/ScreenSpaceEffectBuilder.d.ts +1 -1
- package/lib/cjs/render/ScreenSpaceEffectBuilder.js.map +1 -1
- package/lib/cjs/request/Request.d.ts +2 -2
- package/lib/cjs/request/Request.js.map +1 -1
- package/lib/cjs/tile/GltfReader.d.ts +6 -2
- package/lib/cjs/tile/GltfReader.d.ts.map +1 -1
- package/lib/cjs/tile/GltfReader.js +154 -18
- package/lib/cjs/tile/GltfReader.js.map +1 -1
- package/lib/cjs/tile/ImdlReader.js.map +1 -1
- package/lib/cjs/tile/RealityTile.d.ts +9 -0
- package/lib/cjs/tile/RealityTile.d.ts.map +1 -1
- package/lib/cjs/tile/RealityTile.js +12 -0
- package/lib/cjs/tile/RealityTile.js.map +1 -1
- package/lib/cjs/tile/RealityTileTree.d.ts +4 -0
- package/lib/cjs/tile/RealityTileTree.d.ts.map +1 -1
- package/lib/cjs/tile/RealityTileTree.js +4 -0
- package/lib/cjs/tile/RealityTileTree.js.map +1 -1
- package/lib/cjs/tile/Tile.d.ts +1 -1
- package/lib/cjs/tile/Tile.d.ts.map +1 -1
- package/lib/cjs/tile/Tile.js +1 -1
- package/lib/cjs/tile/Tile.js.map +1 -1
- package/lib/cjs/tile/TileAdmin.d.ts +10 -0
- package/lib/cjs/tile/TileAdmin.d.ts.map +1 -1
- package/lib/cjs/tile/TileAdmin.js +3 -0
- package/lib/cjs/tile/TileAdmin.js.map +1 -1
- package/lib/cjs/tile/TileGeometryCollector.d.ts +5 -0
- package/lib/cjs/tile/TileGeometryCollector.d.ts.map +1 -1
- package/lib/cjs/tile/TileGeometryCollector.js.map +1 -1
- package/lib/cjs/tile/TileTree.d.ts +15 -2
- package/lib/cjs/tile/TileTree.d.ts.map +1 -1
- package/lib/cjs/tile/TileTree.js +14 -1
- package/lib/cjs/tile/TileTree.js.map +1 -1
- package/lib/cjs/tile/TileTreeReference.d.ts +17 -3
- package/lib/cjs/tile/TileTreeReference.d.ts.map +1 -1
- package/lib/cjs/tile/TileTreeReference.js +11 -5
- package/lib/cjs/tile/TileTreeReference.js.map +1 -1
- package/lib/cjs/tile/map/CesiumTerrainProvider.js +1 -1
- package/lib/cjs/tile/map/CesiumTerrainProvider.js.map +1 -1
- package/lib/cjs/tile/map/ImageryTileTree.d.ts +2 -2
- package/lib/cjs/tile/map/ImageryTileTree.d.ts.map +1 -1
- package/lib/cjs/tile/map/ImageryTileTree.js +2 -2
- package/lib/cjs/tile/map/ImageryTileTree.js.map +1 -1
- package/lib/cjs/tile/map/MapCartoRectangle.d.ts +10 -0
- package/lib/cjs/tile/map/MapCartoRectangle.d.ts.map +1 -1
- package/lib/cjs/tile/map/MapCartoRectangle.js +12 -0
- package/lib/cjs/tile/map/MapCartoRectangle.js.map +1 -1
- package/lib/cjs/tile/map/MapLayerImageryProvider.d.ts +3 -3
- package/lib/cjs/tile/map/MapLayerImageryProvider.d.ts.map +1 -1
- package/lib/cjs/tile/map/MapLayerImageryProvider.js +9 -5
- package/lib/cjs/tile/map/MapLayerImageryProvider.js.map +1 -1
- package/lib/cjs/tile/map/MapTileTree.d.ts +1 -1
- package/lib/cjs/tile/map/MapTileTree.d.ts.map +1 -1
- package/lib/cjs/tile/map/MapTileTree.js +1 -1
- package/lib/cjs/tile/map/MapTileTree.js.map +1 -1
- package/lib/cjs/tile/map/QuadId.d.ts +15 -0
- package/lib/cjs/tile/map/QuadId.d.ts.map +1 -1
- package/lib/cjs/tile/map/QuadId.js +12 -0
- package/lib/cjs/tile/map/QuadId.js.map +1 -1
- package/lib/cjs/tile/map/TerrainMeshProvider.d.ts +1 -1
- package/lib/cjs/tile/map/TerrainMeshProvider.d.ts.map +1 -1
- package/lib/cjs/tile/map/TerrainMeshProvider.js +1 -1
- package/lib/cjs/tile/map/TerrainMeshProvider.js.map +1 -1
- package/lib/cjs/tools/ClipViewTool.d.ts.map +1 -1
- package/lib/cjs/tools/ClipViewTool.js +18 -7
- package/lib/cjs/tools/ClipViewTool.js.map +1 -1
- package/lib/cjs/tools/ElementSetTool.d.ts +9 -1
- package/lib/cjs/tools/ElementSetTool.d.ts.map +1 -1
- package/lib/cjs/tools/ElementSetTool.js +130 -7
- package/lib/cjs/tools/ElementSetTool.js.map +1 -1
- package/lib/cjs/tools/IdleTool.d.ts.map +1 -1
- package/lib/cjs/tools/IdleTool.js +4 -1
- package/lib/cjs/tools/IdleTool.js.map +1 -1
- package/lib/cjs/tools/MeasureTool.d.ts +9 -0
- package/lib/cjs/tools/MeasureTool.d.ts.map +1 -1
- package/lib/cjs/tools/MeasureTool.js +57 -24
- package/lib/cjs/tools/MeasureTool.js.map +1 -1
- package/lib/cjs/tools/PrimitiveTool.d.ts +1 -1
- package/lib/cjs/tools/PrimitiveTool.d.ts.map +1 -1
- package/lib/cjs/tools/PrimitiveTool.js +4 -3
- package/lib/cjs/tools/PrimitiveTool.js.map +1 -1
- package/lib/cjs/tools/SelectTool.d.ts +2 -2
- package/lib/cjs/tools/SelectTool.d.ts.map +1 -1
- package/lib/cjs/tools/SelectTool.js +26 -97
- package/lib/cjs/tools/SelectTool.js.map +1 -1
- package/lib/cjs/tools/Tool.d.ts +10 -1
- package/lib/cjs/tools/Tool.d.ts.map +1 -1
- package/lib/cjs/tools/Tool.js +27 -4
- package/lib/cjs/tools/Tool.js.map +1 -1
- package/lib/cjs/tools/ToolAdmin.d.ts.map +1 -1
- package/lib/cjs/tools/ToolAdmin.js +51 -16
- package/lib/cjs/tools/ToolAdmin.js.map +1 -1
- package/lib/cjs/tools/ToolAssistance.d.ts +1 -1
- package/lib/cjs/tools/ToolAssistance.js.map +1 -1
- package/lib/cjs/tools/ToolSettings.d.ts +5 -0
- package/lib/cjs/tools/ToolSettings.d.ts.map +1 -1
- package/lib/cjs/tools/ToolSettings.js +5 -0
- package/lib/cjs/tools/ToolSettings.js.map +1 -1
- package/lib/cjs/tools/ViewTool.d.ts +1 -2
- package/lib/cjs/tools/ViewTool.d.ts.map +1 -1
- package/lib/cjs/tools/ViewTool.js +143 -84
- package/lib/cjs/tools/ViewTool.js.map +1 -1
- package/lib/esm/AccuDraw.js +2 -2
- package/lib/esm/AccuDraw.js.map +1 -1
- package/lib/esm/AccuSnap.d.ts.map +1 -1
- package/lib/esm/AccuSnap.js +15 -6
- package/lib/esm/AccuSnap.js.map +1 -1
- package/lib/esm/AuxCoordSys.js +1 -1
- package/lib/esm/AuxCoordSys.js.map +1 -1
- package/lib/esm/DisplayStyleState.d.ts +37 -0
- package/lib/esm/DisplayStyleState.d.ts.map +1 -1
- package/lib/esm/DisplayStyleState.js +65 -0
- package/lib/esm/DisplayStyleState.js.map +1 -1
- package/lib/esm/DrawingViewState.d.ts.map +1 -1
- package/lib/esm/DrawingViewState.js +1 -0
- package/lib/esm/DrawingViewState.js.map +1 -1
- package/lib/esm/GraphicalEditingScope.d.ts +1 -1
- package/lib/esm/GraphicalEditingScope.d.ts.map +1 -1
- package/lib/esm/GraphicalEditingScope.js +1 -1
- package/lib/esm/GraphicalEditingScope.js.map +1 -1
- package/lib/esm/HitDetail.d.ts +1 -1
- package/lib/esm/HitDetail.d.ts.map +1 -1
- package/lib/esm/HitDetail.js.map +1 -1
- package/lib/esm/IModelApp.d.ts +19 -4
- package/lib/esm/IModelApp.d.ts.map +1 -1
- package/lib/esm/IModelApp.js +22 -3
- package/lib/esm/IModelApp.js.map +1 -1
- package/lib/esm/IModelConnection.d.ts +8 -9
- package/lib/esm/IModelConnection.d.ts.map +1 -1
- package/lib/esm/IModelConnection.js +53 -25
- package/lib/esm/IModelConnection.js.map +1 -1
- package/lib/esm/IpcApp.d.ts +2 -1
- package/lib/esm/IpcApp.d.ts.map +1 -1
- package/lib/esm/IpcApp.js +4 -2
- package/lib/esm/IpcApp.js.map +1 -1
- package/lib/esm/RealityDataSource.d.ts +65 -3
- package/lib/esm/RealityDataSource.d.ts.map +1 -1
- package/lib/esm/RealityDataSource.js +77 -3
- package/lib/esm/RealityDataSource.js.map +1 -1
- package/lib/esm/RealityDataSourceTilesetUrlImpl.js +1 -1
- package/lib/esm/RealityDataSourceTilesetUrlImpl.js.map +1 -1
- package/lib/esm/SelectionSet.d.ts +7 -7
- package/lib/esm/SelectionSet.js +3 -3
- package/lib/esm/SelectionSet.js.map +1 -1
- package/lib/esm/SheetViewState.d.ts +2 -0
- package/lib/esm/SheetViewState.d.ts.map +1 -1
- package/lib/esm/SheetViewState.js +25 -3
- package/lib/esm/SheetViewState.js.map +1 -1
- package/lib/esm/ViewState.d.ts +1 -1
- package/lib/esm/ViewState.js +1 -1
- package/lib/esm/ViewState.js.map +1 -1
- package/lib/esm/Viewport.d.ts +6 -4
- package/lib/esm/Viewport.d.ts.map +1 -1
- package/lib/esm/Viewport.js +23 -3
- package/lib/esm/Viewport.js.map +1 -1
- package/lib/esm/common/gltf/GltfSchema.d.ts +18 -0
- package/lib/esm/common/gltf/GltfSchema.d.ts.map +1 -1
- package/lib/esm/common/gltf/GltfSchema.js +1 -0
- package/lib/esm/common/gltf/GltfSchema.js.map +1 -1
- package/lib/esm/common/imdl/CompactEdges.d.ts +11 -0
- package/lib/esm/common/imdl/CompactEdges.d.ts.map +1 -1
- package/lib/esm/common/imdl/CompactEdges.js +8 -6
- package/lib/esm/common/imdl/CompactEdges.js.map +1 -1
- package/lib/esm/common/imdl/ImdlSchema.d.ts +5 -1
- package/lib/esm/common/imdl/ImdlSchema.d.ts.map +1 -1
- package/lib/esm/common/imdl/ImdlSchema.js +4 -0
- package/lib/esm/common/imdl/ImdlSchema.js.map +1 -1
- package/lib/esm/common/imdl/ParseImdlDocument.d.ts.map +1 -1
- package/lib/esm/common/imdl/ParseImdlDocument.js +11 -9
- package/lib/esm/common/imdl/ParseImdlDocument.js.map +1 -1
- package/lib/esm/common/internal/render/EdgeParams.d.ts +7 -2
- package/lib/esm/common/internal/render/EdgeParams.d.ts.map +1 -1
- package/lib/esm/common/internal/render/EdgeParams.js +31 -9
- package/lib/esm/common/internal/render/EdgeParams.js.map +1 -1
- package/lib/esm/common/internal/render/MeshPrimitives.d.ts +2 -1
- package/lib/esm/common/internal/render/MeshPrimitives.d.ts.map +1 -1
- package/lib/esm/common/internal/render/MeshPrimitives.js +5 -7
- package/lib/esm/common/internal/render/MeshPrimitives.js.map +1 -1
- package/lib/esm/common/internal/render/PolylineParams.d.ts +8 -3
- package/lib/esm/common/internal/render/PolylineParams.d.ts.map +1 -1
- package/lib/esm/common/internal/render/PolylineParams.js +5 -8
- package/lib/esm/common/internal/render/PolylineParams.js.map +1 -1
- package/lib/esm/common/internal/render/VertexTableSplitter.d.ts.map +1 -1
- package/lib/esm/common/internal/render/VertexTableSplitter.js +9 -7
- package/lib/esm/common/internal/render/VertexTableSplitter.js.map +1 -1
- package/lib/esm/core-frontend.d.ts +2 -2
- package/lib/esm/core-frontend.d.ts.map +1 -1
- package/lib/esm/core-frontend.js +1 -1
- package/lib/esm/core-frontend.js.map +1 -1
- package/lib/esm/extension/ExtensionRuntime.js +15 -2
- package/lib/esm/extension/ExtensionRuntime.js.map +1 -1
- package/lib/esm/extension/providers/ExtensionLoadScript.js +1 -1
- package/lib/esm/extension/providers/ExtensionLoadScript.js.map +1 -1
- package/lib/esm/internal/GoogleMapsDecorator.d.ts +53 -0
- package/lib/esm/internal/GoogleMapsDecorator.d.ts.map +1 -0
- package/lib/esm/internal/GoogleMapsDecorator.js +126 -0
- package/lib/esm/internal/GoogleMapsDecorator.js.map +1 -0
- package/lib/esm/internal/RealityDataSourceGoogle3dTilesImpl.d.ts +83 -0
- package/lib/esm/internal/RealityDataSourceGoogle3dTilesImpl.d.ts.map +1 -0
- package/lib/esm/internal/RealityDataSourceGoogle3dTilesImpl.js +197 -0
- package/lib/esm/internal/RealityDataSourceGoogle3dTilesImpl.js.map +1 -0
- package/lib/esm/internal/ScriptUtils.d.ts +5 -0
- package/lib/esm/internal/ScriptUtils.d.ts.map +1 -0
- package/lib/esm/internal/ScriptUtils.js +117 -0
- package/lib/esm/internal/ScriptUtils.js.map +1 -0
- package/lib/esm/internal/cross-package.d.ts +1 -0
- package/lib/esm/internal/cross-package.d.ts.map +1 -1
- package/lib/esm/internal/cross-package.js +1 -0
- package/lib/esm/internal/cross-package.js.map +1 -1
- package/lib/esm/internal/render/webgl/AtmosphereUniforms.d.ts +1 -1
- package/lib/esm/internal/render/webgl/AtmosphereUniforms.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/AtmosphereUniforms.js +1 -1
- package/lib/esm/internal/render/webgl/AtmosphereUniforms.js.map +1 -1
- package/lib/esm/internal/render/webgl/AttributeBuffers.d.ts +2 -2
- package/lib/esm/internal/render/webgl/AttributeBuffers.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/AttributeBuffers.js +2 -2
- package/lib/esm/internal/render/webgl/AttributeBuffers.js.map +1 -1
- package/lib/esm/internal/render/webgl/BatchUniforms.js +1 -1
- package/lib/esm/internal/render/webgl/BatchUniforms.js.map +1 -1
- package/lib/esm/internal/render/webgl/BranchStack.d.ts +2 -2
- package/lib/esm/internal/render/webgl/BranchStack.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/BranchStack.js +3 -2
- package/lib/esm/internal/render/webgl/BranchStack.js.map +1 -1
- package/lib/esm/internal/render/webgl/BranchState.d.ts +4 -2
- package/lib/esm/internal/render/webgl/BranchState.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/BranchState.js +4 -1
- package/lib/esm/internal/render/webgl/BranchState.js.map +1 -1
- package/lib/esm/internal/render/webgl/BranchUniforms.d.ts +2 -2
- package/lib/esm/internal/render/webgl/BranchUniforms.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/BranchUniforms.js +2 -2
- package/lib/esm/internal/render/webgl/BranchUniforms.js.map +1 -1
- package/lib/esm/internal/render/webgl/ClippingProgram.d.ts +1 -1
- package/lib/esm/internal/render/webgl/ClippingProgram.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/ClippingProgram.js +1 -1
- package/lib/esm/internal/render/webgl/ClippingProgram.js.map +1 -1
- package/lib/esm/internal/render/webgl/ContourUniforms.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/ContourUniforms.js +2 -3
- package/lib/esm/internal/render/webgl/ContourUniforms.js.map +1 -1
- package/lib/esm/internal/render/webgl/Contours.js +8 -8
- package/lib/esm/internal/render/webgl/Contours.js.map +1 -1
- package/lib/esm/internal/render/webgl/EdgeGeometry.d.ts +8 -6
- package/lib/esm/internal/render/webgl/EdgeGeometry.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/EdgeGeometry.js +21 -7
- package/lib/esm/internal/render/webgl/EdgeGeometry.js.map +1 -1
- package/lib/esm/internal/render/webgl/Graphic.d.ts +2 -1
- package/lib/esm/internal/render/webgl/Graphic.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/Graphic.js +2 -0
- package/lib/esm/internal/render/webgl/Graphic.js.map +1 -1
- package/lib/esm/internal/render/webgl/IndexedEdgeGeometry.d.ts +6 -1
- package/lib/esm/internal/render/webgl/IndexedEdgeGeometry.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/IndexedEdgeGeometry.js +19 -4
- package/lib/esm/internal/render/webgl/IndexedEdgeGeometry.js.map +1 -1
- package/lib/esm/internal/render/webgl/Mesh.d.ts +1 -1
- package/lib/esm/internal/render/webgl/Mesh.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/Mesh.js +14 -7
- package/lib/esm/internal/render/webgl/Mesh.js.map +1 -1
- package/lib/esm/internal/render/webgl/SceneCompositor.js +2 -1
- package/lib/esm/internal/render/webgl/SceneCompositor.js.map +1 -1
- package/lib/esm/internal/render/webgl/ShaderProgram.d.ts +2 -2
- package/lib/esm/internal/render/webgl/ShaderProgram.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/ShaderProgram.js +2 -2
- package/lib/esm/internal/render/webgl/ShaderProgram.js.map +1 -1
- package/lib/esm/internal/render/webgl/Target.d.ts +2 -1
- package/lib/esm/internal/render/webgl/Target.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/Target.js +3 -1
- package/lib/esm/internal/render/webgl/Target.js.map +1 -1
- package/lib/esm/internal/render/webgl/Technique.d.ts +3 -3
- package/lib/esm/internal/render/webgl/Technique.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/Technique.js +3 -3
- package/lib/esm/internal/render/webgl/Technique.js.map +1 -1
- package/lib/esm/internal/tile/ClassifierTileTree.js +3 -1
- package/lib/esm/internal/tile/ClassifierTileTree.js.map +1 -1
- package/lib/esm/internal/tile/IModelTile.d.ts +1 -0
- package/lib/esm/internal/tile/IModelTile.d.ts.map +1 -1
- package/lib/esm/internal/tile/IModelTile.js +4 -0
- package/lib/esm/internal/tile/IModelTile.js.map +1 -1
- package/lib/esm/internal/tile/IModelTileTree.d.ts +4 -2
- package/lib/esm/internal/tile/IModelTileTree.d.ts.map +1 -1
- package/lib/esm/internal/tile/IModelTileTree.js +60 -2
- package/lib/esm/internal/tile/IModelTileTree.js.map +1 -1
- package/lib/esm/internal/tile/LayerTileTreeReferenceHandler.d.ts.map +1 -1
- package/lib/esm/internal/tile/LayerTileTreeReferenceHandler.js +8 -0
- package/lib/esm/internal/tile/LayerTileTreeReferenceHandler.js.map +1 -1
- package/lib/esm/internal/tile/OrbitGtTileTree.d.ts +4 -1
- package/lib/esm/internal/tile/OrbitGtTileTree.d.ts.map +1 -1
- package/lib/esm/internal/tile/OrbitGtTileTree.js +5 -1
- package/lib/esm/internal/tile/OrbitGtTileTree.js.map +1 -1
- package/lib/esm/internal/tile/PrimaryTileTree.d.ts.map +1 -1
- package/lib/esm/internal/tile/PrimaryTileTree.js +5 -4
- package/lib/esm/internal/tile/PrimaryTileTree.js.map +1 -1
- package/lib/esm/internal/tile/RealityModelTileTree.d.ts +26 -7
- package/lib/esm/internal/tile/RealityModelTileTree.d.ts.map +1 -1
- package/lib/esm/internal/tile/RealityModelTileTree.js +48 -22
- package/lib/esm/internal/tile/RealityModelTileTree.js.map +1 -1
- package/lib/esm/internal/tile/RealityTileLoader.d.ts +2 -2
- package/lib/esm/internal/tile/RealityTileLoader.d.ts.map +1 -1
- package/lib/esm/internal/tile/RealityTileLoader.js +10 -2
- package/lib/esm/internal/tile/RealityTileLoader.js.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.d.ts +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.d.ts.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.js +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.js.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/BingImageryProvider.d.ts +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/BingImageryProvider.d.ts.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/BingImageryProvider.js +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/BingImageryProvider.js.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.d.ts +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.d.ts.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.js +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.js.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.d.ts +4 -0
- package/lib/esm/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.d.ts.map +1 -1
- package/lib/esm/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.js +52 -11
- package/lib/esm/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.js.map +1 -1
- package/lib/esm/internal/tile/map/WmtsCapabilities.d.ts +7 -0
- package/lib/esm/internal/tile/map/WmtsCapabilities.d.ts.map +1 -1
- package/lib/esm/internal/tile/map/WmtsCapabilities.js +17 -0
- package/lib/esm/internal/tile/map/WmtsCapabilities.js.map +1 -1
- package/lib/esm/internal/webgl.d.ts +1 -1
- package/lib/esm/internal/webgl.d.ts.map +1 -1
- package/lib/esm/internal/webgl.js.map +1 -1
- package/lib/esm/properties/AngleDescription.d.ts +4 -1
- package/lib/esm/properties/AngleDescription.d.ts.map +1 -1
- package/lib/esm/properties/AngleDescription.js +10 -2
- package/lib/esm/properties/AngleDescription.js.map +1 -1
- package/lib/esm/properties/FormattedQuantityDescription.d.ts +11 -1
- package/lib/esm/properties/FormattedQuantityDescription.d.ts.map +1 -1
- package/lib/esm/properties/FormattedQuantityDescription.js +7 -2
- package/lib/esm/properties/FormattedQuantityDescription.js.map +1 -1
- package/lib/esm/properties/LengthDescription.d.ts +12 -3
- package/lib/esm/properties/LengthDescription.d.ts.map +1 -1
- package/lib/esm/properties/LengthDescription.js +30 -6
- package/lib/esm/properties/LengthDescription.js.map +1 -1
- package/lib/esm/quantity-formatting/QuantityFormatter.d.ts +103 -7
- package/lib/esm/quantity-formatting/QuantityFormatter.d.ts.map +1 -1
- package/lib/esm/quantity-formatting/QuantityFormatter.js +208 -23
- package/lib/esm/quantity-formatting/QuantityFormatter.js.map +1 -1
- package/lib/esm/render/Decorations.d.ts +1 -1
- package/lib/esm/render/Decorations.d.ts.map +1 -1
- package/lib/esm/render/Decorations.js +1 -1
- package/lib/esm/render/Decorations.js.map +1 -1
- package/lib/esm/render/GraphicBranch.d.ts +4 -2
- package/lib/esm/render/GraphicBranch.d.ts.map +1 -1
- package/lib/esm/render/GraphicBranch.js +1 -1
- package/lib/esm/render/GraphicBranch.js.map +1 -1
- package/lib/esm/render/MeshArgs.d.ts +8 -3
- package/lib/esm/render/MeshArgs.d.ts.map +1 -1
- package/lib/esm/render/MeshArgs.js.map +1 -1
- package/lib/esm/render/RenderGraphic.d.ts +1 -1
- package/lib/esm/render/RenderGraphic.d.ts.map +1 -1
- package/lib/esm/render/RenderGraphic.js.map +1 -1
- package/lib/esm/render/RenderSystem.d.ts +2 -2
- package/lib/esm/render/RenderSystem.d.ts.map +1 -1
- package/lib/esm/render/RenderSystem.js.map +1 -1
- package/lib/esm/render/ScreenSpaceEffectBuilder.d.ts +1 -1
- package/lib/esm/render/ScreenSpaceEffectBuilder.js.map +1 -1
- package/lib/esm/request/Request.d.ts +2 -2
- package/lib/esm/request/Request.js.map +1 -1
- package/lib/esm/tile/GltfReader.d.ts +6 -2
- package/lib/esm/tile/GltfReader.d.ts.map +1 -1
- package/lib/esm/tile/GltfReader.js +154 -19
- package/lib/esm/tile/GltfReader.js.map +1 -1
- package/lib/esm/tile/ImdlReader.js.map +1 -1
- package/lib/esm/tile/RealityTile.d.ts +9 -0
- package/lib/esm/tile/RealityTile.d.ts.map +1 -1
- package/lib/esm/tile/RealityTile.js +12 -0
- package/lib/esm/tile/RealityTile.js.map +1 -1
- package/lib/esm/tile/RealityTileTree.d.ts +4 -0
- package/lib/esm/tile/RealityTileTree.d.ts.map +1 -1
- package/lib/esm/tile/RealityTileTree.js +4 -0
- package/lib/esm/tile/RealityTileTree.js.map +1 -1
- package/lib/esm/tile/Tile.d.ts +1 -1
- package/lib/esm/tile/Tile.d.ts.map +1 -1
- package/lib/esm/tile/Tile.js +1 -1
- package/lib/esm/tile/Tile.js.map +1 -1
- package/lib/esm/tile/TileAdmin.d.ts +10 -0
- package/lib/esm/tile/TileAdmin.d.ts.map +1 -1
- package/lib/esm/tile/TileAdmin.js +3 -0
- package/lib/esm/tile/TileAdmin.js.map +1 -1
- package/lib/esm/tile/TileGeometryCollector.d.ts +5 -0
- package/lib/esm/tile/TileGeometryCollector.d.ts.map +1 -1
- package/lib/esm/tile/TileGeometryCollector.js.map +1 -1
- package/lib/esm/tile/TileTree.d.ts +15 -2
- package/lib/esm/tile/TileTree.d.ts.map +1 -1
- package/lib/esm/tile/TileTree.js +14 -1
- package/lib/esm/tile/TileTree.js.map +1 -1
- package/lib/esm/tile/TileTreeReference.d.ts +17 -3
- package/lib/esm/tile/TileTreeReference.d.ts.map +1 -1
- package/lib/esm/tile/TileTreeReference.js +11 -5
- package/lib/esm/tile/TileTreeReference.js.map +1 -1
- package/lib/esm/tile/map/CesiumTerrainProvider.js +1 -1
- package/lib/esm/tile/map/CesiumTerrainProvider.js.map +1 -1
- package/lib/esm/tile/map/ImageryTileTree.d.ts +2 -2
- package/lib/esm/tile/map/ImageryTileTree.d.ts.map +1 -1
- package/lib/esm/tile/map/ImageryTileTree.js +2 -2
- package/lib/esm/tile/map/ImageryTileTree.js.map +1 -1
- package/lib/esm/tile/map/MapCartoRectangle.d.ts +10 -0
- package/lib/esm/tile/map/MapCartoRectangle.d.ts.map +1 -1
- package/lib/esm/tile/map/MapCartoRectangle.js +12 -0
- package/lib/esm/tile/map/MapCartoRectangle.js.map +1 -1
- package/lib/esm/tile/map/MapLayerImageryProvider.d.ts +3 -3
- package/lib/esm/tile/map/MapLayerImageryProvider.d.ts.map +1 -1
- package/lib/esm/tile/map/MapLayerImageryProvider.js +9 -5
- package/lib/esm/tile/map/MapLayerImageryProvider.js.map +1 -1
- package/lib/esm/tile/map/MapTileTree.d.ts +1 -1
- package/lib/esm/tile/map/MapTileTree.d.ts.map +1 -1
- package/lib/esm/tile/map/MapTileTree.js +1 -1
- package/lib/esm/tile/map/MapTileTree.js.map +1 -1
- package/lib/esm/tile/map/QuadId.d.ts +15 -0
- package/lib/esm/tile/map/QuadId.d.ts.map +1 -1
- package/lib/esm/tile/map/QuadId.js +12 -0
- package/lib/esm/tile/map/QuadId.js.map +1 -1
- package/lib/esm/tile/map/TerrainMeshProvider.d.ts +1 -1
- package/lib/esm/tile/map/TerrainMeshProvider.d.ts.map +1 -1
- package/lib/esm/tile/map/TerrainMeshProvider.js +1 -1
- package/lib/esm/tile/map/TerrainMeshProvider.js.map +1 -1
- package/lib/esm/tools/ClipViewTool.d.ts.map +1 -1
- package/lib/esm/tools/ClipViewTool.js +18 -7
- package/lib/esm/tools/ClipViewTool.js.map +1 -1
- package/lib/esm/tools/ElementSetTool.d.ts +9 -1
- package/lib/esm/tools/ElementSetTool.d.ts.map +1 -1
- package/lib/esm/tools/ElementSetTool.js +132 -9
- package/lib/esm/tools/ElementSetTool.js.map +1 -1
- package/lib/esm/tools/IdleTool.d.ts.map +1 -1
- package/lib/esm/tools/IdleTool.js +4 -1
- package/lib/esm/tools/IdleTool.js.map +1 -1
- package/lib/esm/tools/MeasureTool.d.ts +9 -0
- package/lib/esm/tools/MeasureTool.d.ts.map +1 -1
- package/lib/esm/tools/MeasureTool.js +57 -24
- package/lib/esm/tools/MeasureTool.js.map +1 -1
- package/lib/esm/tools/PrimitiveTool.d.ts +1 -1
- package/lib/esm/tools/PrimitiveTool.d.ts.map +1 -1
- package/lib/esm/tools/PrimitiveTool.js +4 -3
- package/lib/esm/tools/PrimitiveTool.js.map +1 -1
- package/lib/esm/tools/SelectTool.d.ts +2 -2
- package/lib/esm/tools/SelectTool.d.ts.map +1 -1
- package/lib/esm/tools/SelectTool.js +26 -97
- package/lib/esm/tools/SelectTool.js.map +1 -1
- package/lib/esm/tools/Tool.d.ts +10 -1
- package/lib/esm/tools/Tool.d.ts.map +1 -1
- package/lib/esm/tools/Tool.js +27 -4
- package/lib/esm/tools/Tool.js.map +1 -1
- package/lib/esm/tools/ToolAdmin.d.ts.map +1 -1
- package/lib/esm/tools/ToolAdmin.js +51 -16
- package/lib/esm/tools/ToolAdmin.js.map +1 -1
- package/lib/esm/tools/ToolAssistance.d.ts +1 -1
- package/lib/esm/tools/ToolAssistance.js.map +1 -1
- package/lib/esm/tools/ToolSettings.d.ts +5 -0
- package/lib/esm/tools/ToolSettings.d.ts.map +1 -1
- package/lib/esm/tools/ToolSettings.js +5 -0
- package/lib/esm/tools/ToolSettings.js.map +1 -1
- package/lib/esm/tools/ViewTool.d.ts +1 -2
- package/lib/esm/tools/ViewTool.d.ts.map +1 -1
- package/lib/esm/tools/ViewTool.js +143 -84
- package/lib/esm/tools/ViewTool.js.map +1 -1
- package/lib/public/images/google_on_non_white.png +0 -0
- package/lib/public/images/google_on_non_white_hdpi.png +0 -0
- package/lib/public/images/google_on_white.png +0 -0
- package/lib/public/images/google_on_white_hdpi.png +0 -0
- package/lib/public/scripts/parse-imdl-worker.js +1 -1
- package/lib/workers/webpack/parse-imdl-worker.js +1 -1
- package/package.json +25 -22
|
@@ -128,11 +128,13 @@ export class ViewingToolHandle {
|
|
|
128
128
|
}
|
|
129
129
|
// if we have a valid depth point, set the focus distance to
|
|
130
130
|
changeFocusFromDepthPoint() {
|
|
131
|
-
if (undefined
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
131
|
+
if (undefined === this._depthPoint)
|
|
132
|
+
return;
|
|
133
|
+
const view = this.viewTool.viewport?.view;
|
|
134
|
+
if (undefined === view)
|
|
135
|
+
return;
|
|
136
|
+
if (view.is3d() && view.isCameraOn)
|
|
137
|
+
view.changeFocusFromPoint(this._depthPoint); // set the focus distance to the depth point
|
|
136
138
|
}
|
|
137
139
|
}
|
|
138
140
|
/** @internal */
|
|
@@ -622,11 +624,15 @@ export class ViewManip extends ViewTool {
|
|
|
622
624
|
return inDynamics || (doUpdate && hitHandle.checkOneShot());
|
|
623
625
|
}
|
|
624
626
|
lensAngleMatches(angle, tolerance) {
|
|
625
|
-
const cameraView = this.viewport
|
|
627
|
+
const cameraView = this.viewport?.view;
|
|
628
|
+
if (undefined === cameraView)
|
|
629
|
+
return false;
|
|
626
630
|
return !cameraView.is3d() ? false : Math.abs(cameraView.calcLensAngle().radians - angle.radians) < tolerance;
|
|
627
631
|
}
|
|
628
632
|
get isZUp() {
|
|
629
|
-
const view = this.viewport
|
|
633
|
+
const view = this.viewport?.view;
|
|
634
|
+
if (undefined === view)
|
|
635
|
+
return true;
|
|
630
636
|
const viewX = view.getXVector();
|
|
631
637
|
const viewY = view.getXVector();
|
|
632
638
|
const zVec = Vector3d.unitZ();
|
|
@@ -769,9 +775,12 @@ class ViewTargetCenter extends ViewingToolHandle {
|
|
|
769
775
|
testHandleForHit(ptScreen, out) {
|
|
770
776
|
if (this.viewTool.isDraggingRequired)
|
|
771
777
|
return false; // Target center handle is not movable in this mode, but it's still nice to display the point we're rotating about...
|
|
772
|
-
const
|
|
778
|
+
const vp = this.viewTool.viewport;
|
|
779
|
+
if (undefined === vp)
|
|
780
|
+
return false;
|
|
781
|
+
const targetPt = vp.worldToView(this.viewTool.targetCenterWorld);
|
|
773
782
|
const distance = targetPt.distanceXY(ptScreen);
|
|
774
|
-
const locateThreshold =
|
|
783
|
+
const locateThreshold = vp.pixelsFromInches(0.15);
|
|
775
784
|
if (distance > locateThreshold)
|
|
776
785
|
return false;
|
|
777
786
|
out.distance = distance;
|
|
@@ -848,7 +857,10 @@ class HandleWithInertia extends ViewingToolHandle {
|
|
|
848
857
|
doManipulation(ev, inDynamics) {
|
|
849
858
|
if (ToolSettings.viewingInertia.enabled && !inDynamics && undefined !== this._inertiaVec)
|
|
850
859
|
return this.beginAnimation();
|
|
851
|
-
const
|
|
860
|
+
const vp = ev.viewport;
|
|
861
|
+
if (undefined === vp)
|
|
862
|
+
return false;
|
|
863
|
+
const thisPtNpc = vp.worldToNpc(ev.point);
|
|
852
864
|
thisPtNpc.z = this._lastPtNpc.z;
|
|
853
865
|
this._inertiaVec = undefined;
|
|
854
866
|
if (this._lastPtNpc.isAlmostEqual(thisPtNpc, 1.0e-10))
|
|
@@ -861,7 +873,9 @@ class HandleWithInertia extends ViewingToolHandle {
|
|
|
861
873
|
this._duration = ToolSettings.viewingInertia.duration;
|
|
862
874
|
if (this._duration.isTowardsFuture) { // ensure duration is towards future. Otherwise, don't start animation
|
|
863
875
|
this._end = BeTimePoint.fromNow(this._duration);
|
|
864
|
-
this.viewTool.viewport
|
|
876
|
+
const vp = this.viewTool.viewport;
|
|
877
|
+
if (undefined !== vp)
|
|
878
|
+
vp.setAnimator(this);
|
|
865
879
|
}
|
|
866
880
|
return true;
|
|
867
881
|
}
|
|
@@ -875,7 +889,10 @@ class HandleWithInertia extends ViewingToolHandle {
|
|
|
875
889
|
const pt = this._lastPtNpc.plusScaled(this._inertiaVec, remaining);
|
|
876
890
|
// if we're not moving any more, or if the duration has elapsed, we're done
|
|
877
891
|
if (remaining <= 0 || (this._lastPtNpc.minus(pt).magnitudeSquared() < .000001)) {
|
|
878
|
-
this.viewTool.viewport
|
|
892
|
+
const vp = this.viewTool.viewport;
|
|
893
|
+
if (undefined === vp)
|
|
894
|
+
return false;
|
|
895
|
+
vp.saveViewUndo();
|
|
879
896
|
return true; // remove this as the animator
|
|
880
897
|
}
|
|
881
898
|
this.perform(pt); // perform the viewing operation
|
|
@@ -889,10 +906,12 @@ class ViewPan extends HandleWithInertia {
|
|
|
889
906
|
get handleType() { return ViewHandleType.Pan; }
|
|
890
907
|
getHandleCursor() { return this.viewTool.inHandleModify ? IModelApp.viewManager.grabbingCursor : IModelApp.viewManager.grabCursor; }
|
|
891
908
|
firstPoint(ev) {
|
|
909
|
+
this._inertiaVec = undefined;
|
|
892
910
|
const tool = this.viewTool;
|
|
893
911
|
const vp = tool.viewport;
|
|
912
|
+
if (undefined === vp)
|
|
913
|
+
return false;
|
|
894
914
|
vp.worldToNpc(ev.point, this._lastPtNpc);
|
|
895
|
-
this._inertiaVec = undefined;
|
|
896
915
|
// if the camera is on, we need to find the element under the starting point to get the z
|
|
897
916
|
if (this.needDepthPoint(ev, false)) {
|
|
898
917
|
this.pickDepthPoint(ev);
|
|
@@ -914,6 +933,8 @@ class ViewPan extends HandleWithInertia {
|
|
|
914
933
|
perform(thisPtNpc) {
|
|
915
934
|
const tool = this.viewTool;
|
|
916
935
|
const vp = tool.viewport;
|
|
936
|
+
if (undefined === vp)
|
|
937
|
+
return false;
|
|
917
938
|
const view = vp.view;
|
|
918
939
|
const lastWorld = vp.npcToWorld(this._lastPtNpc);
|
|
919
940
|
const thisWorld = vp.npcToWorld(thisPtNpc);
|
|
@@ -932,7 +953,10 @@ class ViewPan extends HandleWithInertia {
|
|
|
932
953
|
}
|
|
933
954
|
/** @internal */
|
|
934
955
|
needDepthPoint(ev, _isPreview) {
|
|
935
|
-
|
|
956
|
+
const vp = ev.viewport;
|
|
957
|
+
if (undefined === vp)
|
|
958
|
+
return false;
|
|
959
|
+
return vp.isCameraOn && CoordSource.User === ev.coordsFrom;
|
|
936
960
|
}
|
|
937
961
|
}
|
|
938
962
|
/** ViewingToolHandle for performing the "rotate view" operation */
|
|
@@ -951,6 +975,8 @@ class ViewRotate extends HandleWithInertia {
|
|
|
951
975
|
this._inertiaVec = undefined;
|
|
952
976
|
const tool = this.viewTool;
|
|
953
977
|
const vp = ev.viewport;
|
|
978
|
+
if (undefined === vp)
|
|
979
|
+
return false;
|
|
954
980
|
this.pickDepthPoint(ev);
|
|
955
981
|
if (undefined !== this._depthPoint)
|
|
956
982
|
tool.setTargetCenterWorld(this._depthPoint, false, false);
|
|
@@ -965,6 +991,8 @@ class ViewRotate extends HandleWithInertia {
|
|
|
965
991
|
perform(ptNpc) {
|
|
966
992
|
const tool = this.viewTool;
|
|
967
993
|
const vp = tool.viewport;
|
|
994
|
+
if (undefined === vp)
|
|
995
|
+
return false;
|
|
968
996
|
if (this._anchorPtNpc.isAlmostEqual(ptNpc, 1.0e-2)) // too close to anchor pt
|
|
969
997
|
ptNpc.setFrom(this._anchorPtNpc);
|
|
970
998
|
const currentFrustum = vp.getFrustum(CoordSystem.World, false);
|
|
@@ -1000,8 +1028,8 @@ class ViewRotate extends HandleWithInertia {
|
|
|
1000
1028
|
const xAxis = ToolSettings.preserveWorldUp && !vp.viewingGlobe ? (undefined !== this._depthPoint ? vp.view.getUpVector(this._depthPoint) : Vector3d.unitZ()) : vp.rotation.getRow(1);
|
|
1001
1029
|
// Movement in screen y == rotation about screen X...
|
|
1002
1030
|
const yAxis = vp.rotation.getRow(0);
|
|
1003
|
-
const xRMatrix = xDelta ? Matrix3d.createRotationAroundVector(xAxis, Angle.createRadians(Math.PI / (viewRect.width / xDelta))) : Matrix3d.identity;
|
|
1004
|
-
const yRMatrix = yDelta ? Matrix3d.createRotationAroundVector(yAxis, Angle.createRadians(Math.PI / (viewRect.height / yDelta))) : Matrix3d.identity;
|
|
1031
|
+
const xRMatrix = (xDelta ? Matrix3d.createRotationAroundVector(xAxis, Angle.createRadians(Math.PI / (viewRect.width / xDelta))) : undefined) ?? Matrix3d.identity;
|
|
1032
|
+
const yRMatrix = (yDelta ? Matrix3d.createRotationAroundVector(yAxis, Angle.createRadians(Math.PI / (viewRect.height / yDelta))) : undefined) ?? Matrix3d.identity;
|
|
1005
1033
|
const worldRMatrix = yRMatrix.multiplyMatrixMatrix(xRMatrix);
|
|
1006
1034
|
const result = worldRMatrix.getAxisAndAngleOfRotation();
|
|
1007
1035
|
angle = Angle.createRadians(-result.angle.radians);
|
|
@@ -1032,11 +1060,14 @@ class ViewRotate extends HandleWithInertia {
|
|
|
1032
1060
|
}
|
|
1033
1061
|
/** @internal */
|
|
1034
1062
|
needDepthPoint(ev, _isPreview) {
|
|
1035
|
-
|
|
1063
|
+
const vp = ev.viewport;
|
|
1064
|
+
if (undefined === vp)
|
|
1065
|
+
return false;
|
|
1066
|
+
return (!this.viewTool.targetCenterLocked && vp.view.allow3dManipulations());
|
|
1036
1067
|
}
|
|
1037
1068
|
/** @internal */
|
|
1038
1069
|
adjustDepthPoint(isValid, vp, plane, source) {
|
|
1039
|
-
if (vp.viewingGlobe && this.viewTool.isPointVisible(vp.iModel.ecefLocation.earthCenter)) {
|
|
1070
|
+
if (vp.viewingGlobe && vp.iModel.ecefLocation && this.viewTool.isPointVisible(vp.iModel.ecefLocation.earthCenter)) {
|
|
1040
1071
|
plane.getOriginRef().setFrom(vp.iModel.ecefLocation.earthCenter);
|
|
1041
1072
|
plane.getNormalRef().setFrom(vp.view.getZVector());
|
|
1042
1073
|
return true;
|
|
@@ -1063,6 +1094,8 @@ class ViewLook extends ViewingToolHandle {
|
|
|
1063
1094
|
firstPoint(ev) {
|
|
1064
1095
|
const tool = this.viewTool;
|
|
1065
1096
|
const vp = ev.viewport;
|
|
1097
|
+
if (undefined === vp)
|
|
1098
|
+
return true;
|
|
1066
1099
|
const view = vp.view;
|
|
1067
1100
|
if (!view || !view.is3d() || !view.allow3dManipulations())
|
|
1068
1101
|
return false;
|
|
@@ -1087,11 +1120,13 @@ class ViewLook extends ViewingToolHandle {
|
|
|
1087
1120
|
doManipulation(ev, _inDynamics) {
|
|
1088
1121
|
const tool = this.viewTool;
|
|
1089
1122
|
const viewport = tool.viewport;
|
|
1123
|
+
if (undefined === viewport)
|
|
1124
|
+
return false;
|
|
1090
1125
|
if (ev.viewport !== viewport)
|
|
1091
1126
|
return false;
|
|
1092
1127
|
const worldTransform = this.getLookTransform(viewport, this._firstPtView, ev.viewPoint);
|
|
1093
1128
|
const frustum = this._frustum.transformBy(worldTransform);
|
|
1094
|
-
|
|
1129
|
+
viewport.setupViewFromFrustum(frustum);
|
|
1095
1130
|
return true;
|
|
1096
1131
|
}
|
|
1097
1132
|
getLookTransform(vp, firstPt, currPt) {
|
|
@@ -1164,7 +1199,8 @@ class AnimatedHandle extends ViewingToolHandle {
|
|
|
1164
1199
|
}
|
|
1165
1200
|
this._lastPtView.setFrom(this._anchorPtView);
|
|
1166
1201
|
this._lastMotionTime = Date.now();
|
|
1167
|
-
tool.viewport
|
|
1202
|
+
if (undefined !== tool.viewport)
|
|
1203
|
+
tool.viewport.setAnimator(this);
|
|
1168
1204
|
return true;
|
|
1169
1205
|
}
|
|
1170
1206
|
getDirection() {
|
|
@@ -1173,10 +1209,13 @@ class AnimatedHandle extends ViewingToolHandle {
|
|
|
1173
1209
|
return dir.magnitudeSquared() < this._deadZone ? undefined : dir; // dead zone around starting point
|
|
1174
1210
|
}
|
|
1175
1211
|
getInputVector() {
|
|
1212
|
+
const vp = this.viewTool.viewport;
|
|
1213
|
+
if (undefined === vp)
|
|
1214
|
+
return undefined;
|
|
1176
1215
|
const dir = this.getDirection();
|
|
1177
1216
|
if (undefined === dir)
|
|
1178
1217
|
return undefined;
|
|
1179
|
-
const viewRect =
|
|
1218
|
+
const viewRect = vp.viewRect;
|
|
1180
1219
|
return new Vector3d(dir.x * (2.0 / viewRect.width), dir.y * (2.0 / viewRect.height));
|
|
1181
1220
|
}
|
|
1182
1221
|
onReinitialize() {
|
|
@@ -1252,6 +1291,8 @@ class ViewScroll extends AnimatedHandle {
|
|
|
1252
1291
|
dist.scaleInPlace(ToolSettings.scrollSpeed * this.getElapsedTime());
|
|
1253
1292
|
const tool = this.viewTool;
|
|
1254
1293
|
const viewport = tool.viewport;
|
|
1294
|
+
if (undefined === viewport)
|
|
1295
|
+
return false;
|
|
1255
1296
|
if (viewport.isCameraOn) {
|
|
1256
1297
|
const points = new Array(2);
|
|
1257
1298
|
points[0] = this._anchorPtView.clone();
|
|
@@ -1272,7 +1313,10 @@ class ViewScroll extends AnimatedHandle {
|
|
|
1272
1313
|
}
|
|
1273
1314
|
/** @internal */
|
|
1274
1315
|
needDepthPoint(ev, _isPreview) {
|
|
1275
|
-
|
|
1316
|
+
const vp = ev.viewport;
|
|
1317
|
+
if (undefined === vp)
|
|
1318
|
+
return false;
|
|
1319
|
+
return vp.isCameraOn && CoordSource.User === ev.coordsFrom;
|
|
1276
1320
|
}
|
|
1277
1321
|
}
|
|
1278
1322
|
/** ViewingToolHandle for performing the "zoom view" operation */
|
|
@@ -1322,6 +1366,8 @@ class ViewZoom extends ViewingToolHandle {
|
|
|
1322
1366
|
}
|
|
1323
1367
|
firstPoint(ev) {
|
|
1324
1368
|
const vp = ev.viewport;
|
|
1369
|
+
if (undefined === vp)
|
|
1370
|
+
return false;
|
|
1325
1371
|
this.viewTool.inDynamicUpdate = true;
|
|
1326
1372
|
if (this.needDepthPoint(ev, false)) {
|
|
1327
1373
|
this.pickDepthPoint(ev);
|
|
@@ -1366,6 +1412,8 @@ class ViewZoom extends ViewingToolHandle {
|
|
|
1366
1412
|
if (undefined === this._startFrust || undefined === this.getDirection()) // on anchor point?
|
|
1367
1413
|
return false;
|
|
1368
1414
|
const viewport = this.viewTool.viewport;
|
|
1415
|
+
if (undefined === viewport)
|
|
1416
|
+
return false;
|
|
1369
1417
|
const view = viewport.view;
|
|
1370
1418
|
const thisPtNpc = viewport.viewToNpc(this._lastPtView);
|
|
1371
1419
|
const dist = this._anchorPtNpc.minus(thisPtNpc);
|
|
@@ -1392,7 +1440,10 @@ class ViewZoom extends ViewingToolHandle {
|
|
|
1392
1440
|
}
|
|
1393
1441
|
/** @internal */
|
|
1394
1442
|
needDepthPoint(ev, _isPreview) {
|
|
1395
|
-
|
|
1443
|
+
const vp = ev.viewport;
|
|
1444
|
+
if (undefined === vp)
|
|
1445
|
+
return false;
|
|
1446
|
+
return vp.isCameraOn && CoordSource.User === ev.coordsFrom;
|
|
1396
1447
|
}
|
|
1397
1448
|
}
|
|
1398
1449
|
/** @internal */
|
|
@@ -1456,11 +1507,17 @@ class NavigateMotion {
|
|
|
1456
1507
|
const yAngle = -(accumulator.y / yExtent) * Math.PI;
|
|
1457
1508
|
const viewRot = vp.rotation;
|
|
1458
1509
|
const invViewRot = viewRot.inverse();
|
|
1510
|
+
if (undefined === invViewRot)
|
|
1511
|
+
return Transform.createIdentity();
|
|
1459
1512
|
const pitchAngle = Angle.createRadians(this.modifyPitchAngleToPreventInversion(yAngle));
|
|
1460
1513
|
const pitchMatrix = Matrix3d.createRotationAroundVector(Vector3d.unitX(), pitchAngle);
|
|
1514
|
+
if (undefined === pitchMatrix)
|
|
1515
|
+
return Transform.createIdentity();
|
|
1461
1516
|
const pitchTimesView = pitchMatrix.multiplyMatrixMatrix(viewRot);
|
|
1462
1517
|
const inverseViewTimesPitchTimesView = invViewRot.multiplyMatrixMatrix(pitchTimesView);
|
|
1463
1518
|
const yawMatrix = Matrix3d.createRotationAroundVector(Vector3d.unitZ(), Angle.createRadians(xAngle));
|
|
1519
|
+
if (undefined === yawMatrix)
|
|
1520
|
+
return Transform.createIdentity();
|
|
1464
1521
|
const yawTimesInverseViewTimesPitchTimesView = yawMatrix.multiplyMatrixMatrix(inverseViewTimesPitchTimesView);
|
|
1465
1522
|
return Transform.createFixedPointAndMatrix(view.getEyePoint(), yawTimesInverseViewTimesPitchTimesView, result);
|
|
1466
1523
|
}
|
|
@@ -1471,11 +1528,17 @@ class NavigateMotion {
|
|
|
1471
1528
|
return Transform.createIdentity();
|
|
1472
1529
|
const viewRot = vp.rotation;
|
|
1473
1530
|
const invViewRot = viewRot.inverse();
|
|
1531
|
+
if (undefined === invViewRot)
|
|
1532
|
+
return Transform.createIdentity();
|
|
1474
1533
|
const pitchAngle = Angle.createRadians(this.modifyPitchAngleToPreventInversion(pitchRate * this._seconds));
|
|
1475
1534
|
const pitchMatrix = Matrix3d.createRotationAroundVector(Vector3d.unitX(), pitchAngle);
|
|
1535
|
+
if (undefined === pitchMatrix)
|
|
1536
|
+
return Transform.createIdentity();
|
|
1476
1537
|
const pitchTimesView = pitchMatrix.multiplyMatrixMatrix(viewRot);
|
|
1477
1538
|
const inverseViewTimesPitchTimesView = invViewRot.multiplyMatrixMatrix(pitchTimesView);
|
|
1478
1539
|
const yawMatrix = Matrix3d.createRotationAroundVector(Vector3d.unitZ(), Angle.createRadians(yawRate * this._seconds));
|
|
1540
|
+
if (undefined === yawMatrix)
|
|
1541
|
+
return Transform.createIdentity();
|
|
1479
1542
|
const yawTimesInverseViewTimesPitchTimesView = yawMatrix.multiplyMatrixMatrix(inverseViewTimesPitchTimesView);
|
|
1480
1543
|
return Transform.createFixedPointAndMatrix(view.getEyePoint(), yawTimesInverseViewTimesPitchTimesView, result);
|
|
1481
1544
|
}
|
|
@@ -1533,6 +1596,8 @@ class NavigateMotion {
|
|
|
1533
1596
|
if (!view.is3d() || !view.isCameraOn)
|
|
1534
1597
|
return;
|
|
1535
1598
|
const angles = YawPitchRollAngles.createFromMatrix3d(this.viewport.rotation);
|
|
1599
|
+
if (undefined === angles)
|
|
1600
|
+
return;
|
|
1536
1601
|
angles.pitch.setRadians(0); // reset pitch to zero
|
|
1537
1602
|
Transform.createFixedPointAndMatrix(view.getEyePoint(), angles.toMatrix3d(), this.transform);
|
|
1538
1603
|
}
|
|
@@ -1545,7 +1610,7 @@ class ViewNavigate extends AnimatedHandle {
|
|
|
1545
1610
|
getMaxAngularVelocity() { return Math.PI / 4; }
|
|
1546
1611
|
getNavigateMode() {
|
|
1547
1612
|
const state = IModelApp.toolAdmin.currentInputState;
|
|
1548
|
-
return (state.isShiftDown ||
|
|
1613
|
+
return (state.isShiftDown || (false === this.viewTool.viewport?.isCameraOn)) ? 0 /* NavigateMode.Pan */ :
|
|
1549
1614
|
state.isControlDown ? 1 /* NavigateMode.Look */ : 2 /* NavigateMode.Travel */;
|
|
1550
1615
|
}
|
|
1551
1616
|
// called in animation loop
|
|
@@ -1555,6 +1620,8 @@ class ViewNavigate extends AnimatedHandle {
|
|
|
1555
1620
|
const motion = this.getNavigateMotion(this.getElapsedTime());
|
|
1556
1621
|
if (undefined !== motion) {
|
|
1557
1622
|
const vp = this.viewTool.viewport;
|
|
1623
|
+
if (undefined === vp)
|
|
1624
|
+
return false;
|
|
1558
1625
|
const frust = vp.getWorldFrustum();
|
|
1559
1626
|
frust.multiply(motion.transform);
|
|
1560
1627
|
vp.setupViewFromFrustum(frust);
|
|
@@ -1626,6 +1693,7 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
1626
1693
|
_pointerLockKeyEngagementListener;
|
|
1627
1694
|
constructor(viewManip) {
|
|
1628
1695
|
super(viewManip);
|
|
1696
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1629
1697
|
this._navigateMotion = new NavigateMotion(this.viewTool.viewport);
|
|
1630
1698
|
}
|
|
1631
1699
|
get handleType() { return ViewHandleType.LookAndMove; }
|
|
@@ -1748,10 +1816,10 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
1748
1816
|
getMaxAngularVelocityY() { return this.getMaxAngularVelocity(); }
|
|
1749
1817
|
getLinearVelocity() {
|
|
1750
1818
|
const positionInput = Vector3d.create();
|
|
1751
|
-
const vp = this.viewTool.viewport;
|
|
1752
1819
|
const position = this.getTouchStartPosition(this._touchStartL);
|
|
1753
1820
|
if (undefined !== position) {
|
|
1754
|
-
const
|
|
1821
|
+
const vp = this.viewTool.viewport;
|
|
1822
|
+
const outerRadius = vp ? this.getTouchControlRadius(vp) : 1;
|
|
1755
1823
|
const offset = this.getTouchOffset(this._touchStartL, outerRadius);
|
|
1756
1824
|
const inputL = new Vector3d(offset.x * (1.0 / outerRadius), offset.y * (1.0 / outerRadius));
|
|
1757
1825
|
positionInput.x = inputL.x * this.getMaxLinearVelocity();
|
|
@@ -1766,10 +1834,10 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
1766
1834
|
}
|
|
1767
1835
|
getAngularVelocity() {
|
|
1768
1836
|
const angularInput = Vector3d.create();
|
|
1769
|
-
const vp = this.viewTool.viewport;
|
|
1770
1837
|
const position = this.getTouchStartPosition(this._touchStartR);
|
|
1771
1838
|
if (undefined !== position) {
|
|
1772
|
-
const
|
|
1839
|
+
const vp = this.viewTool.viewport;
|
|
1840
|
+
const outerRadius = vp ? this.getTouchControlRadius(vp) : 1;
|
|
1773
1841
|
const offset = this.getTouchOffset(this._touchStartR, outerRadius);
|
|
1774
1842
|
const inputA = new Vector3d(offset.x * (1.0 / outerRadius), offset.y * (1.0 / outerRadius));
|
|
1775
1843
|
angularInput.x = inputA.x * -this.getMaxAngularVelocityX();
|
|
@@ -2022,7 +2090,8 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
2022
2090
|
if (tool.inDynamicUpdate)
|
|
2023
2091
|
return;
|
|
2024
2092
|
tool.changeViewport(vp);
|
|
2025
|
-
tool.viewport
|
|
2093
|
+
if (undefined !== tool.viewport)
|
|
2094
|
+
tool.viewport.setAnimator(this);
|
|
2026
2095
|
tool.inDynamicUpdate = true;
|
|
2027
2096
|
tool.inHandleModify = true;
|
|
2028
2097
|
vp.npcToView(NpcCenter, this._anchorPtView);
|
|
@@ -2187,6 +2256,8 @@ class ViewLookAndMove extends ViewNavigate {
|
|
|
2187
2256
|
const position = this.getTouchStartPosition(touchStart);
|
|
2188
2257
|
if (undefined === position)
|
|
2189
2258
|
return offset;
|
|
2259
|
+
if (undefined === touchStart?.viewport)
|
|
2260
|
+
return offset;
|
|
2190
2261
|
const lastTouch = BeTouchEvent.findTouchById(this._touchLast.touchEvent.targetTouches, touchStart.touchEvent.changedTouches[0].identifier);
|
|
2191
2262
|
if (undefined === lastTouch)
|
|
2192
2263
|
return offset;
|
|
@@ -2402,6 +2473,7 @@ class ViewWalk extends ViewNavigate {
|
|
|
2402
2473
|
_navigateMotion;
|
|
2403
2474
|
constructor(viewManip) {
|
|
2404
2475
|
super(viewManip);
|
|
2476
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
2405
2477
|
this._navigateMotion = new NavigateMotion(this.viewTool.viewport);
|
|
2406
2478
|
}
|
|
2407
2479
|
get handleType() { return ViewHandleType.Walk; }
|
|
@@ -2436,6 +2508,7 @@ class ViewFly extends ViewNavigate {
|
|
|
2436
2508
|
_navigateMotion;
|
|
2437
2509
|
constructor(viewManip) {
|
|
2438
2510
|
super(viewManip);
|
|
2511
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
2439
2512
|
this._navigateMotion = new NavigateMotion(this.viewTool.viewport);
|
|
2440
2513
|
}
|
|
2441
2514
|
get handleType() { return ViewHandleType.Fly; }
|
|
@@ -3002,6 +3075,8 @@ export class WindowAreaTool extends ViewTool {
|
|
|
3002
3075
|
}
|
|
3003
3076
|
computeWindowCorners() {
|
|
3004
3077
|
const vp = this.viewport;
|
|
3078
|
+
if (undefined === vp)
|
|
3079
|
+
return undefined;
|
|
3005
3080
|
const corners = this._corners;
|
|
3006
3081
|
corners[0].setFrom(this._firstPtWorld);
|
|
3007
3082
|
corners[1].setFrom(this._secondPtWorld);
|
|
@@ -3090,13 +3165,15 @@ export class WindowAreaTool extends ViewTool {
|
|
|
3090
3165
|
const corners = this.computeWindowCorners();
|
|
3091
3166
|
if (undefined === corners)
|
|
3092
3167
|
return;
|
|
3093
|
-
let delta;
|
|
3094
3168
|
const vp = this.viewport;
|
|
3169
|
+
if (undefined === vp)
|
|
3170
|
+
return;
|
|
3095
3171
|
const view = vp.view;
|
|
3096
3172
|
vp.viewToWorldArray(corners);
|
|
3097
3173
|
const opts = {
|
|
3098
3174
|
onExtentsError: (stat) => view.outputStatusMessage(stat),
|
|
3099
3175
|
};
|
|
3176
|
+
let delta;
|
|
3100
3177
|
let globalAlignment;
|
|
3101
3178
|
if (view.is3d() && view.isCameraOn) {
|
|
3102
3179
|
const windowArray = [corners[0].clone(), corners[1].clone()];
|
|
@@ -3168,7 +3245,10 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3168
3245
|
const vec = this._lastPtView.minus(pt);
|
|
3169
3246
|
// if we're not moving any more, or if the duration has elapsed, we're done
|
|
3170
3247
|
if (remaining <= 0 || (vec.magnitudeSquared() < .000001)) {
|
|
3171
|
-
this.viewport
|
|
3248
|
+
const vp = this.viewport;
|
|
3249
|
+
if (undefined === vp)
|
|
3250
|
+
return false;
|
|
3251
|
+
vp.saveViewUndo();
|
|
3172
3252
|
return true; // remove this as the animator
|
|
3173
3253
|
}
|
|
3174
3254
|
this._lastPtView.setFrom(pt);
|
|
@@ -3184,6 +3264,8 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3184
3264
|
}
|
|
3185
3265
|
onStart(ev) {
|
|
3186
3266
|
const vp = this.viewport;
|
|
3267
|
+
if (undefined === vp)
|
|
3268
|
+
return;
|
|
3187
3269
|
vp.getWorldFrustum(this._frustum);
|
|
3188
3270
|
const visiblePoint = vp.pickNearestVisibleGeometry(ev.rawPoint);
|
|
3189
3271
|
if (undefined !== visiblePoint) {
|
|
@@ -3206,8 +3288,10 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3206
3288
|
if (undefined === ev || 0.0 === this._startDistance)
|
|
3207
3289
|
return 1.0;
|
|
3208
3290
|
const vp = this.viewport;
|
|
3291
|
+
if (undefined === vp)
|
|
3292
|
+
return 1.0;
|
|
3209
3293
|
const distance = (2 === ev.touchCount ? BeTouchEvent.getTouchPosition(ev.touchEvent.targetTouches[0], vp).distance(BeTouchEvent.getTouchPosition(ev.touchEvent.targetTouches[1], vp)) : 0.0);
|
|
3210
|
-
const threshold =
|
|
3294
|
+
const threshold = vp.pixelsFromInches(ToolSettings.touchZoomChangeThresholdInches);
|
|
3211
3295
|
if (0.0 === distance || Math.abs(this._startDistance - distance) < threshold)
|
|
3212
3296
|
return 1.0;
|
|
3213
3297
|
// Remove inertia if the viewing operation includes zoom, only use it for pan and rotate.
|
|
@@ -3219,6 +3303,8 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3219
3303
|
if (undefined === ev || ev.touchCount < 2 || this._rotate2dDisabled)
|
|
3220
3304
|
return Angle.createDegrees(0.0);
|
|
3221
3305
|
const vp = this.viewport;
|
|
3306
|
+
if (undefined === vp)
|
|
3307
|
+
return Angle.createDegrees(0.0);
|
|
3222
3308
|
const direction = Vector2d.createStartEnd(BeTouchEvent.getTouchPosition(ev.touchEvent.targetTouches[0], vp), BeTouchEvent.getTouchPosition(ev.touchEvent.targetTouches[1], vp));
|
|
3223
3309
|
const rotation = this._startDirection.angleTo(direction);
|
|
3224
3310
|
if (undefined === this._rotate2dThreshold) {
|
|
@@ -3238,15 +3324,18 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3238
3324
|
}
|
|
3239
3325
|
handle2dPan() {
|
|
3240
3326
|
const screenDist = Point2d.create(this._startPtView.x - this._lastPtView.x, this._startPtView.y - this._lastPtView.y);
|
|
3241
|
-
this.viewport
|
|
3327
|
+
if (undefined !== this.viewport)
|
|
3328
|
+
this.viewport.scroll(screenDist, { noSaveInUndo: true });
|
|
3242
3329
|
}
|
|
3243
3330
|
handle2dRotateZoom(ev) {
|
|
3244
3331
|
const vp = this.viewport;
|
|
3332
|
+
if (undefined === vp)
|
|
3333
|
+
return;
|
|
3245
3334
|
const rotation = this.computeRotation(ev);
|
|
3246
3335
|
const zoomRatio = this.computeZoomRatio(ev);
|
|
3247
3336
|
const targetWorld = vp.viewToWorld(this._lastPtView);
|
|
3248
3337
|
const translateTransform = Transform.createTranslation(this._startPtWorld.minus(targetWorld));
|
|
3249
|
-
const rotationTransform = Transform.createFixedPointAndMatrix(targetWorld, Matrix3d.createRotationAroundVector(vp.view.getZVector(), rotation));
|
|
3338
|
+
const rotationTransform = Transform.createFixedPointAndMatrix(targetWorld, Matrix3d.createRotationAroundVector(vp.view.getZVector(), rotation) ?? Matrix3d.identity);
|
|
3250
3339
|
const scaleTransform = Transform.createScaleAboutPoint(this._startPtWorld, zoomRatio);
|
|
3251
3340
|
const transform = translateTransform.multiplyTransformTransform(rotationTransform);
|
|
3252
3341
|
scaleTransform.multiplyTransformTransform(transform, transform);
|
|
@@ -3255,6 +3344,8 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3255
3344
|
}
|
|
3256
3345
|
handle3dRotate() {
|
|
3257
3346
|
const vp = this.viewport;
|
|
3347
|
+
if (undefined === vp)
|
|
3348
|
+
return;
|
|
3258
3349
|
const viewRect = vp.viewRect;
|
|
3259
3350
|
const xExtent = viewRect.width;
|
|
3260
3351
|
const yExtent = viewRect.height;
|
|
@@ -3262,8 +3353,8 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3262
3353
|
const yDelta = this._lastPtView.y - this._startPtView.y;
|
|
3263
3354
|
const xAxis = ToolSettings.preserveWorldUp ? Vector3d.unitZ() : vp.rotation.getRow(1);
|
|
3264
3355
|
const yAxis = vp.rotation.getRow(0);
|
|
3265
|
-
const xRMatrix = (
|
|
3266
|
-
const yRMatrix = (
|
|
3356
|
+
const xRMatrix = (xDelta ? Matrix3d.createRotationAroundVector(xAxis, Angle.createRadians(Math.PI / (xExtent / xDelta))) : undefined) ?? Matrix3d.identity;
|
|
3357
|
+
const yRMatrix = (yDelta ? Matrix3d.createRotationAroundVector(yAxis, Angle.createRadians(Math.PI / (yExtent / yDelta))) : undefined) ?? Matrix3d.identity;
|
|
3267
3358
|
const worldRMatrix = yRMatrix.multiplyMatrixMatrix(xRMatrix);
|
|
3268
3359
|
const result = worldRMatrix.getAxisAndAngleOfRotation();
|
|
3269
3360
|
const radians = Angle.createRadians(-result.angle.radians);
|
|
@@ -3277,6 +3368,8 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3277
3368
|
}
|
|
3278
3369
|
handle3dPanZoom(ev) {
|
|
3279
3370
|
const vp = this.viewport;
|
|
3371
|
+
if (undefined === vp)
|
|
3372
|
+
return;
|
|
3280
3373
|
const zoomRatio = this.computeZoomRatio(ev);
|
|
3281
3374
|
if (vp.isCameraOn) {
|
|
3282
3375
|
const targetWorld = vp.viewToWorld(this._lastPtView);
|
|
@@ -3335,6 +3428,8 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3335
3428
|
}
|
|
3336
3429
|
perform(ev) {
|
|
3337
3430
|
const vp = this.viewport;
|
|
3431
|
+
if (undefined === vp)
|
|
3432
|
+
return;
|
|
3338
3433
|
vp.setupViewFromFrustum(this._frustum);
|
|
3339
3434
|
const singleTouch = this._singleTouch;
|
|
3340
3435
|
return (!this._only2dManipulations && vp.view.allow3dManipulations()) ?
|
|
@@ -3357,7 +3452,8 @@ export class DefaultViewTouchTool extends ViewManip {
|
|
|
3357
3452
|
this._duration = ToolSettings.viewingInertia.duration;
|
|
3358
3453
|
if (this._duration.isTowardsFuture) { // ensure duration is towards future. Otherwise, don't start animation
|
|
3359
3454
|
this._end = BeTimePoint.fromNow(this._duration);
|
|
3360
|
-
this.viewport
|
|
3455
|
+
if (undefined !== this.viewport)
|
|
3456
|
+
this.viewport.setAnimator(this);
|
|
3361
3457
|
}
|
|
3362
3458
|
}
|
|
3363
3459
|
return this.exitTool();
|
|
@@ -3589,7 +3685,7 @@ export class SetupCameraTool extends PrimitiveTool {
|
|
|
3589
3685
|
_cameraHeightProperty;
|
|
3590
3686
|
get cameraHeightProperty() {
|
|
3591
3687
|
if (!this._cameraHeightProperty)
|
|
3592
|
-
this._cameraHeightProperty = new DialogProperty(new LengthDescription("cameraHeight", ViewTool.translate("SetupCamera.Labels.CameraHeight")), 0.0
|
|
3688
|
+
this._cameraHeightProperty = new DialogProperty(new LengthDescription("cameraHeight", ViewTool.translate("SetupCamera.Labels.CameraHeight")), 0.0);
|
|
3593
3689
|
return this._cameraHeightProperty;
|
|
3594
3690
|
}
|
|
3595
3691
|
get cameraHeight() { return this.cameraHeightProperty.value; }
|
|
@@ -3605,60 +3701,23 @@ export class SetupCameraTool extends PrimitiveTool {
|
|
|
3605
3701
|
_targetHeightProperty;
|
|
3606
3702
|
get targetHeightProperty() {
|
|
3607
3703
|
if (!this._targetHeightProperty)
|
|
3608
|
-
this._targetHeightProperty = new DialogProperty(new LengthDescription("targetHeight", ViewTool.translate("SetupCamera.Labels.TargetHeight")), 0.0
|
|
3704
|
+
this._targetHeightProperty = new DialogProperty(new LengthDescription("targetHeight", ViewTool.translate("SetupCamera.Labels.TargetHeight")), 0.0);
|
|
3609
3705
|
return this._targetHeightProperty;
|
|
3610
3706
|
}
|
|
3611
3707
|
get targetHeight() { return this.targetHeightProperty.value; }
|
|
3612
3708
|
set targetHeight(value) { this.targetHeightProperty.value = value; }
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
this.targetHeightProperty.displayValue = this.targetHeightProperty.description.format(this.targetHeight);
|
|
3620
|
-
this.targetHeightProperty.isDisabled = !this.useTargetHeight;
|
|
3621
|
-
this.syncToolSettingsProperties([this.targetHeightProperty.syncItem]);
|
|
3709
|
+
getToolSettingLockProperty(property) {
|
|
3710
|
+
if (property === this.cameraHeightProperty)
|
|
3711
|
+
return this.useCameraHeightProperty;
|
|
3712
|
+
else if (property === this.targetHeightProperty)
|
|
3713
|
+
return this.useTargetHeightProperty;
|
|
3714
|
+
return undefined;
|
|
3622
3715
|
}
|
|
3623
3716
|
async applyToolSettingPropertyChange(updatedValue) {
|
|
3624
|
-
|
|
3625
|
-
this.useCameraHeight = updatedValue.value.value;
|
|
3626
|
-
IModelApp.toolAdmin.toolSettingsState.saveToolSettingProperty(this.toolId, this.useCameraHeightProperty.item);
|
|
3627
|
-
this.syncCameraHeightState();
|
|
3628
|
-
}
|
|
3629
|
-
else if (updatedValue.propertyName === this.useTargetHeightProperty.name) {
|
|
3630
|
-
this.useTargetHeight = updatedValue.value.value;
|
|
3631
|
-
IModelApp.toolAdmin.toolSettingsState.saveToolSettingProperty(this.toolId, this.useTargetHeightProperty.item);
|
|
3632
|
-
this.syncTargetHeightState();
|
|
3633
|
-
}
|
|
3634
|
-
else if (updatedValue.propertyName === this.cameraHeightProperty.name) {
|
|
3635
|
-
this.cameraHeight = updatedValue.value.value;
|
|
3636
|
-
IModelApp.toolAdmin.toolSettingsState.saveToolSettingProperty(this.toolId, this.cameraHeightProperty.item);
|
|
3637
|
-
}
|
|
3638
|
-
else if (updatedValue.propertyName === this.targetHeightProperty.name) {
|
|
3639
|
-
this.targetHeight = updatedValue.value.value;
|
|
3640
|
-
IModelApp.toolAdmin.toolSettingsState.saveToolSettingProperty(this.toolId, this.targetHeightProperty.item);
|
|
3641
|
-
}
|
|
3642
|
-
return true;
|
|
3717
|
+
return this.changeToolSettingPropertyValue(updatedValue);
|
|
3643
3718
|
}
|
|
3644
3719
|
supplyToolSettingsProperties() {
|
|
3645
|
-
|
|
3646
|
-
IModelApp.toolAdmin.toolSettingsState.getInitialToolSettingValues(this.toolId, [
|
|
3647
|
-
this.useCameraHeightProperty.name, this.useTargetHeightProperty.name, this.cameraHeightProperty.name, this.targetHeightProperty.name,
|
|
3648
|
-
])
|
|
3649
|
-
?.forEach((value) => {
|
|
3650
|
-
if (value.propertyName === this.useCameraHeightProperty.name)
|
|
3651
|
-
this.useCameraHeightProperty.dialogItemValue = value.value;
|
|
3652
|
-
else if (value.propertyName === this.cameraHeightProperty.name)
|
|
3653
|
-
this.cameraHeightProperty.dialogItemValue = value.value;
|
|
3654
|
-
else if (value.propertyName === this.useTargetHeightProperty.name)
|
|
3655
|
-
this.useTargetHeightProperty.dialogItemValue = value.value;
|
|
3656
|
-
else if (value.propertyName === this.targetHeightProperty.name)
|
|
3657
|
-
this.targetHeightProperty.dialogItemValue = value.value;
|
|
3658
|
-
});
|
|
3659
|
-
// ensure controls are enabled/disabled base on current lock property state
|
|
3660
|
-
this.targetHeightProperty.isDisabled = !this.useTargetHeight;
|
|
3661
|
-
this.cameraHeightProperty.isDisabled = !this.useCameraHeight;
|
|
3720
|
+
this.initializeToolSettingPropertyValues([this.useCameraHeightProperty, this.useTargetHeightProperty, this.cameraHeightProperty, this.targetHeightProperty]);
|
|
3662
3721
|
const cameraHeightLock = this.useCameraHeightProperty.toDialogItem({ rowPriority: 1, columnIndex: 0 });
|
|
3663
3722
|
const targetHeightLock = this.useTargetHeightProperty.toDialogItem({ rowPriority: 2, columnIndex: 0 });
|
|
3664
3723
|
const toolSettings = new Array();
|