@arcgis/core 5.0.0-next.69 → 5.0.0-next.70
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/Map.d.ts +3 -1
- package/analysis/Analysis.d.ts +1 -0
- package/analysis/Dimension/types.d.ts +1 -0
- package/analysis/DimensionAnalysis.d.ts +10 -10
- package/analysis/DimensionSimpleStyle.d.ts +14 -13
- package/analysis/DirectLineMeasurementAnalysis.d.ts +1 -1
- package/analysis/DistanceMeasurementAnalysis.d.ts +2 -1
- package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +3 -3
- package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +1 -1
- package/analysis/ElevationProfile/types.d.ts +2 -0
- package/analysis/LengthDimension.d.ts +22 -21
- package/analysis/LineOfSightAnalysis.d.ts +2 -2
- package/analysis/ShadowCast/MinDurationOptions.d.ts +2 -2
- package/analysis/ShadowCast/types.d.ts +6 -2
- package/analysis/Slice/types.d.ts +1 -0
- package/analysis/Viewshed.d.ts +22 -20
- package/analysis/ViewshedAnalysis.d.ts +13 -13
- package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +1 -2
- package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +2 -2
- package/analysis/VolumeMeasurement/types.d.ts +1 -0
- package/analysis/VolumeMeasurementAnalysis.d.ts +1 -0
- package/analysis/types.d.ts +5 -0
- package/arcade.d.ts +2 -2
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/04364f3dd7578c2acb71.js +1 -0
- package/assets/esri/core/workers/chunks/18ed69d563986dc2eb21.js +1 -0
- package/assets/esri/core/workers/chunks/{4c04c54330b693892cfc.js → 1a45b4b4803337f4b99f.js} +2 -2
- package/assets/esri/core/workers/chunks/{60c7f896f2246a8aa6d7.js → 244006d4b0547d574401.js} +53 -53
- package/assets/esri/core/workers/chunks/329b10897c6965948b84.js +1 -0
- package/assets/esri/core/workers/chunks/4387aaf9d5e8f6d1833d.js +1 -0
- package/assets/esri/core/workers/chunks/{944dfa9309da8f49a616.js → 6a3d66d7c92f90cc2a17.js} +1 -1
- package/assets/esri/core/workers/chunks/760a759f9697adde6dd4.js +1 -0
- package/assets/esri/core/workers/chunks/798d227205bd958de6a7.js +1 -0
- package/assets/esri/core/workers/chunks/{9d88b4ba8e511da64583.js → 98d68b145226e7527c84.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ad6595ad44c2d60c1ce.js → a79fad422d41019c8232.js} +1 -1
- package/assets/esri/core/workers/chunks/{10e474d664b20adcd917.js → db4661fd82dc61162115.js} +1 -1
- package/assets/esri/core/workers/chunks/{1d1e25bb61eeeee8ee94.js → df2ba5f9d57080fca183.js} +1 -1
- package/assets/esri/themes/base/widgets/_UtilityNetworkAssociations.scss +5 -3
- package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +15 -11
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/ComponentShader.glsl.js +43 -43
- package/chunks/DefaultMaterial.glsl.js +1 -1
- package/config.js +1 -1
- package/form/elements/inputs/attachments/Input.d.ts +6 -6
- package/geometry/Mesh.d.ts +20 -21
- package/geometry/Polygon.d.ts +1 -8
- package/geometry/Polygon.js +1 -1
- package/geometry/geometryEngine.d.ts +19 -19
- package/geometry/support/MeshComponent.d.ts +3 -3
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +2 -2
- package/geometry/support/MeshLocalVertexSpace.d.ts +2 -2
- package/geometry/support/MeshMaterial.d.ts +8 -8
- package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
- package/geometry/support/MeshTexture.d.ts +3 -3
- package/geometry/support/MeshTextureTransform.d.ts +3 -3
- package/geometry/support/MeshTransform.d.ts +1 -1
- package/geometry/support/MeshVertexAttributes.d.ts +13 -5
- package/geometry/support/intersects.js +1 -1
- package/geometry/support/intersectsBase.js +1 -1
- package/geometry/support/meshUtils/centerAt.js +1 -1
- package/geometry/support/meshUtils/geographicUtils.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/meshUtils/types.d.ts +44 -52
- package/geometry/support/meshUtils.d.ts +6 -50
- package/geometry/support/meshUtils.js +1 -1
- package/interfaces.d.ts +5 -151
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.d.ts +2 -2
- package/layers/BaseElevationLayer.d.ts +2 -2
- package/layers/BuildingSceneLayer.d.ts +2 -2
- package/layers/CSVLayer.d.ts +2 -2
- package/layers/CatalogLayer.d.ts +2 -2
- package/layers/DimensionLayer.d.ts +2 -2
- package/layers/ElevationLayer.d.ts +2 -2
- package/layers/FeatureLayer.d.ts +2 -2
- package/layers/GeoJSONLayer.d.ts +2 -2
- package/layers/GeoRSSLayer.d.ts +2 -2
- package/layers/GraphicsLayer.d.ts +2 -2
- package/layers/GroupLayer.d.ts +2 -2
- package/layers/ImageryLayer.d.ts +2 -2
- package/layers/ImageryTileLayer.d.ts +2 -2
- package/layers/IntegratedMesh3DTilesLayer.d.ts +2 -2
- package/layers/IntegratedMeshLayer.d.ts +2 -2
- package/layers/KMLLayer.d.ts +2 -2
- package/layers/Layer.d.ts +9 -7
- package/layers/LineOfSightLayer.d.ts +3 -3
- package/layers/MapImageLayer.d.ts +2 -2
- package/layers/MapNotesLayer.d.ts +2 -2
- package/layers/MediaLayer.d.ts +2 -2
- package/layers/OGCFeatureLayer.d.ts +2 -2
- package/layers/OrientedImageryLayer.d.ts +2 -2
- package/layers/ParquetLayer.d.ts +2 -2
- package/layers/PointCloudLayer.d.ts +2 -2
- package/layers/RouteLayer.d.ts +2 -2
- package/layers/SceneLayer.d.ts +2 -2
- package/layers/SubtypeGroupLayer.d.ts +2 -2
- package/layers/TileLayer.d.ts +2 -2
- package/layers/UnknownLayer.d.ts +2 -2
- package/layers/UnsupportedLayer.d.ts +2 -2
- package/layers/VectorTileLayer.d.ts +2 -2
- package/layers/VideoLayer.d.ts +2 -2
- package/layers/ViewshedLayer.d.ts +2 -2
- package/layers/VoxelLayer.d.ts +2 -2
- package/layers/WCSLayer.d.ts +2 -2
- package/layers/WFSLayer.d.ts +2 -2
- package/layers/WMSLayer.d.ts +2 -2
- package/layers/WMTSLayer.d.ts +2 -2
- package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -2
- package/layers/catalog/CatalogFootprintLayer.d.ts +2 -2
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/types.d.ts +8 -1
- package/layers/support/PixelBlock.d.ts +7 -7
- package/layers/support/RasterInfo.d.ts +2 -9
- package/layers/types.d.ts +77 -2
- package/networks/support/CircuitSection.d.ts +20 -2
- package/networks/support/CircuitSection.js +1 -1
- package/networks/support/Subcircuit.d.ts +12 -10
- package/networks/support/Subcircuit.js +1 -1
- package/networks/support/typeUtils.d.ts +2 -0
- package/networks/support/typeUtils.js +1 -1
- package/package.json +2 -2
- package/rest/support/AttributeBinsQuery.d.ts +7 -1
- package/rest/support/NormalizationBinParametersMixin.d.ts +29 -9
- package/support/revision.js +1 -1
- package/symbols/patterns/LinePattern3D.d.ts +3 -3
- package/symbols/patterns/Pattern3D.d.ts +3 -3
- package/unionTypes.d.ts +17 -17
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +6 -5
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +7 -6
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/types.d.ts +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.d.ts +2 -2
- package/views/3d/analysis/DirectLineMeasurement/types.d.ts +1 -0
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/types.d.ts +1 -0
- package/views/3d/analysis/types.d.ts +2 -0
- package/views/3d/constraints/Constraints.d.ts +2 -2
- package/views/3d/environment/ChapmanApproximation.glsl.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/layers/DimensionLayerView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/LineOfSightLayerView3D.js +1 -1
- package/views/3d/layers/ViewshedLayerView3D.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/support/LayerPerformanceInfo.d.ts +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepthToWriteShadowMap.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ViewingModeConfiguration.js +5 -0
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +2 -2
- package/views/BreakpointsOwner.d.ts +9 -10
- package/views/MapView.d.ts +18 -17
- package/views/SceneView.d.ts +30 -89
- package/views/SceneView.js +1 -1
- package/views/View2D.d.ts +0 -37
- package/views/View2D.js +1 -1
- package/views/ViewAnimation.d.ts +2 -3
- package/views/analysis/ElevationProfile/types.d.ts +7 -6
- package/views/analysis/types.d.ts +1 -0
- package/views/animation/types.d.ts +3 -1
- package/views/layers/DimensionLayerView.d.ts +97 -4
- package/views/layers/DimensionLayerView.js +1 -1
- package/views/layers/HighlightLayerViewMixin.d.ts +1 -59
- package/views/layers/HighlightLayerViewMixin.js +1 -1
- package/views/layers/ImageryLayerViewMixin.d.ts +1 -55
- package/views/layers/LineOfSightLayerView.d.ts +77 -4
- package/views/layers/LineOfSightLayerView.js +1 -1
- package/views/layers/ViewshedLayerView.d.ts +96 -5
- package/views/layers/ViewshedLayerView.js +1 -1
- package/views/navigation/Navigation.d.ts +1 -22
- package/views/navigation/Navigation.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/views/types.d.ts +75 -5
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +4 -4
- package/widgets/AreaMeasurement3D.d.ts +2 -2
- package/widgets/BasemapGallery.d.ts +1 -1
- package/widgets/BasemapToggle.d.ts +1 -1
- package/widgets/Bookmarks.d.ts +1 -1
- package/widgets/BuildingExplorer/BuildingExplorerViewModel.d.ts +2 -2
- package/widgets/BuildingExplorer/BuildingLevel.d.ts +2 -2
- package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.d.ts +2 -2
- package/widgets/BuildingExplorer/BuildingPhase.d.ts +2 -2
- package/widgets/BuildingExplorer.d.ts +3 -3
- package/widgets/Compass.d.ts +1 -1
- package/widgets/CoordinateConversion.d.ts +1 -1
- package/widgets/Daylight/DaylightViewModel.d.ts +3 -3
- package/widgets/Daylight/VisibleElements.d.ts +2 -2
- package/widgets/Daylight/types.d.ts +2 -2
- package/widgets/Daylight.d.ts +3 -3
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +4 -4
- package/widgets/DirectLineMeasurement3D.d.ts +2 -2
- package/widgets/DirectionalPad.d.ts +1 -1
- package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineQuery.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +3 -3
- package/widgets/ElevationProfile/ElevationProfileViewModel.d.ts +2 -2
- package/widgets/ElevationProfile/ElevationProfileVisibleElements.d.ts +2 -2
- package/widgets/ElevationProfile/types.d.ts +9 -9
- package/widgets/ElevationProfile.d.ts +2 -2
- package/widgets/Expand/ExpandViewModel.d.ts +1 -1
- package/widgets/Expand.d.ts +1 -1
- package/widgets/Feature.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
- package/widgets/Features.d.ts +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.d.ts +1 -1
- package/widgets/Fullscreen.d.ts +1 -1
- package/widgets/Home.d.ts +1 -1
- package/widgets/LayerList.d.ts +12 -0
- package/widgets/Legend.d.ts +1 -1
- package/widgets/LineOfSight/LineOfSightTarget.d.ts +2 -2
- package/widgets/LineOfSight/LineOfSightViewModel.d.ts +2 -2
- package/widgets/LineOfSight.d.ts +2 -2
- package/widgets/Locate/LocateViewModel.d.ts +1 -1
- package/widgets/Locate.d.ts +1 -1
- package/widgets/NavigationToggle/NavigationToggleViewModel.d.ts +1 -1
- package/widgets/NavigationToggle.d.ts +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/Arrow.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationNode.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUIViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
- package/widgets/OrientedImageryViewer/support/MediaPrefetcher.js +5 -0
- package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
- package/widgets/OrientedImageryViewer/support/NonPanoramicMediaCollection.js +1 -1
- package/widgets/OrientedImageryViewer/support/resolveMediaProps.js +5 -0
- package/widgets/OrientedImageryViewer/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/widgets/Print/CustomTemplate.d.ts +1 -1
- package/widgets/Print/PrintViewModel.d.ts +1 -1
- package/widgets/Print.d.ts +1 -1
- package/widgets/ScaleBar.d.ts +1 -1
- package/widgets/Search.d.ts +1 -1
- package/widgets/ShadowCast/DiscreteOptions.d.ts +2 -2
- package/widgets/ShadowCast/DurationOptions.d.ts +2 -2
- package/widgets/ShadowCast/ShadowCastViewModel.d.ts +3 -3
- package/widgets/ShadowCast/ShadowCastVisibleElements.d.ts +2 -2
- package/widgets/ShadowCast/ThresholdOptions.d.ts +2 -2
- package/widgets/ShadowCast/types.d.ts +2 -2
- package/widgets/ShadowCast.d.ts +1 -1
- package/widgets/Slice/SliceViewModel.d.ts +2 -2
- package/widgets/Slice.d.ts +2 -2
- package/widgets/Swipe.d.ts +1 -1
- package/widgets/TimeZoneLabel.d.ts +1 -1
- package/widgets/Track.d.ts +1 -1
- package/widgets/UtilityNetworkValidateTopology.js +1 -1
- package/widgets/VideoPlayer.d.ts +1 -1
- package/widgets/VideoPlayer.js +1 -1
- package/widgets/Weather/VisibleElements.d.ts +2 -2
- package/widgets/Weather/WeatherViewModel.d.ts +2 -2
- package/widgets/Weather/types.d.ts +1 -1
- package/widgets/Weather.d.ts +2 -2
- package/widgets/Zoom.d.ts +1 -1
- package/widgets/support/GridControls.d.ts +1 -1
- package/assets/esri/core/workers/chunks/35961e71f69ae1d24b9e.js +0 -1
- package/assets/esri/core/workers/chunks/3cce8e894bf37c3e598e.js +0 -1
- package/assets/esri/core/workers/chunks/7ee68f67f9cc48a328f0.js +0 -1
- package/assets/esri/core/workers/chunks/a931515a2569713e743b.js +0 -1
- package/assets/esri/core/workers/chunks/bb4574a87ca21e719f0d.js +0 -1
- package/assets/esri/core/workers/chunks/c9f868f85d740ee32715.js +0 -1
- package/geometry.d.ts +0 -136
- package/geometry.js +0 -5
- package/pointCloudRenderers.d.ts +0 -112
- package/pointCloudRenderers.js +0 -5
- package/rasterRenderers.d.ts +0 -151
- package/rasterRenderers.js +0 -5
- package/renderers.d.ts +0 -166
- package/renderers.js +0 -5
- package/views/layers/DimensionLayerViewMixin.d.ts +0 -1
- package/views/layers/DimensionLayerViewMixin.js +0 -5
- package/views/layers/LineOfSightLayerViewMixin.d.ts +0 -1
- package/views/layers/LineOfSightLayerViewMixin.js +0 -5
- package/views/layers/ViewshedLayerViewMixin.d.ts +0 -98
- package/views/layers/ViewshedLayerViewMixin.js +0 -5
|
@@ -299,7 +299,7 @@ export function difference(inputGeometry: GeometryUnion | GeometryUnion[], subtr
|
|
|
299
299
|
* Creates the symmetric difference of two geometries. The symmetric difference includes the parts
|
|
300
300
|
* that are in either of the sets, but not in both.
|
|
301
301
|
*
|
|
302
|
-
* @deprecated since 4.32. Use [symmetricDifferenceOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-symmetricDifferenceOperator.html) instead.
|
|
302
|
+
* @deprecated since version 4.32. Use [symmetricDifferenceOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-symmetricDifferenceOperator.html) instead.
|
|
303
303
|
* @param leftGeometry - One of the Geometry instances in the XOR operation.
|
|
304
304
|
* @param rightGeometry - One of the Geometry instances in the XOR operation.
|
|
305
305
|
* @returns The symmetric differences of the two geometries.
|
|
@@ -347,7 +347,7 @@ export function intersect(geometry1: GeometryUnion | GeometryUnion[], geometry2:
|
|
|
347
347
|
/**
|
|
348
348
|
* All inputs must be of the same type of geometries and share one spatial reference.
|
|
349
349
|
*
|
|
350
|
-
* @deprecated since 4.32. Use [unionOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-unionOperator.html) instead.
|
|
350
|
+
* @deprecated since version 4.32. Use [unionOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-unionOperator.html) instead.
|
|
351
351
|
* @param geometries - An array of Geometries to union.
|
|
352
352
|
* @returns The union of the geometries.
|
|
353
353
|
* @example
|
|
@@ -360,7 +360,7 @@ export function union(geometries: GeometryUnion[]): GeometryUnion;
|
|
|
360
360
|
* The offset operation creates a geometry that is a constant planar distance from an input
|
|
361
361
|
* polyline or polygon. It is similar to buffering, but produces a one-sided result.
|
|
362
362
|
*
|
|
363
|
-
* @deprecated since 4.32. Use [offsetOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-offsetOperator.html) instead.
|
|
363
|
+
* @deprecated since version 4.32. Use [offsetOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-offsetOperator.html) instead.
|
|
364
364
|
* @param geometry - The geometries to offset.
|
|
365
365
|
* @param offsetDistance - The planar distance to offset from the input geometry. If offsetDistance > 0, then the offset
|
|
366
366
|
* geometry is constructed to the right of the oriented input geometry, if offsetDistance = 0, then there is no
|
|
@@ -391,7 +391,7 @@ export function offset(geometry: GeometryUnion | GeometryUnion[], offsetDistance
|
|
|
391
391
|
* with a geographic coordinate system other than WGS84 (wkid: 4326), use
|
|
392
392
|
* [buffer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#buffer).
|
|
393
393
|
*
|
|
394
|
-
* @deprecated since 4.32. Use [bufferOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-bufferOperator.html) instead.
|
|
394
|
+
* @deprecated since version 4.32. Use [bufferOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-bufferOperator.html) instead.
|
|
395
395
|
* @param geometry - The buffer input geometry.
|
|
396
396
|
* The `geometry` and `distance` parameters must be specified as either both arrays or
|
|
397
397
|
* both non-arrays. Never specify one as an array and the other a non-array.
|
|
@@ -431,7 +431,7 @@ export function buffer(geometry: GeometryUnion | GeometryUnion[], distance: numb
|
|
|
431
431
|
* have a geographic coordinate system other than WGS84 (wkid: 4326), use
|
|
432
432
|
* [buffer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#buffer).
|
|
433
433
|
*
|
|
434
|
-
* @deprecated since 4.32. Use [geodesicBufferOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodesicBufferOperator.html) instead.
|
|
434
|
+
* @deprecated since version 4.32. Use [geodesicBufferOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodesicBufferOperator.html) instead.
|
|
435
435
|
* @param geometry - The buffer input geometry.
|
|
436
436
|
* The `geometry` and `distance` parameters must be specified as either both arrays or
|
|
437
437
|
* both non-arrays. Never specify one as an array and the other a non-array.
|
|
@@ -460,7 +460,7 @@ export function geodesicBuffer(geometry: GeometryUnion | GeometryUnion[], distan
|
|
|
460
460
|
/**
|
|
461
461
|
* Finds the coordinate of the geometry that is closest to the specified point.
|
|
462
462
|
*
|
|
463
|
-
* @deprecated since 4.32. Use [proximityOperator's getNearestCoordinate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestCoordinate) method instead.
|
|
463
|
+
* @deprecated since version 4.32. Use [proximityOperator's getNearestCoordinate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestCoordinate) method instead.
|
|
464
464
|
* @param geometry - The geometry to consider.
|
|
465
465
|
* @param inputPoint - The point used to search the nearest coordinate in the geometry.
|
|
466
466
|
* @returns Returns an object containing the nearest coordinate.
|
|
@@ -470,7 +470,7 @@ export function nearestCoordinate(geometry: GeometryUnion, inputPoint: Point): N
|
|
|
470
470
|
/**
|
|
471
471
|
* Finds the vertex on the geometry nearest to the specified point.
|
|
472
472
|
*
|
|
473
|
-
* @deprecated since 4.32. Use [proximityOperator's getNearestVertex()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertex) method instead.
|
|
473
|
+
* @deprecated since version 4.32. Use [proximityOperator's getNearestVertex()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertex) method instead.
|
|
474
474
|
* @param geometry - The geometry to consider.
|
|
475
475
|
* @param inputPoint - The point used to search the nearest vertex in the geometry.
|
|
476
476
|
* @returns Returns an object containing the nearest vertex.
|
|
@@ -487,7 +487,7 @@ export function nearestVertex(geometry: GeometryUnion, inputPoint: Point): Neare
|
|
|
487
487
|
* Finds all vertices in the given distance from the specified point, sorted from the closest to the furthest and
|
|
488
488
|
* returns them as an array of Objects.
|
|
489
489
|
*
|
|
490
|
-
* @deprecated since 4.32. Use [proximityOperator's getNearestVertices()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertices) method instead.
|
|
490
|
+
* @deprecated since version 4.32. Use [proximityOperator's getNearestVertices()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-proximityOperator.html#getNearestVertices) method instead.
|
|
491
491
|
* @param geometry - The geometry to consider.
|
|
492
492
|
* @param inputPoint - The point from which to measure.
|
|
493
493
|
* @param searchRadius - The distance to search from the inputPoint in the units of the view's spatial reference.
|
|
@@ -504,7 +504,7 @@ export function nearestVertices(geometry: GeometryUnion, inputPoint: Point, sear
|
|
|
504
504
|
* Rotates a geometry counterclockwise by the specified number of degrees.
|
|
505
505
|
* Rotation is around the centroid, or a given rotation point.
|
|
506
506
|
*
|
|
507
|
-
* @deprecated since 4.32. Use [Transformation's rotate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-support-Transformation.html#rotate) method and the {@link geometry/operators/affineTransformationOperator} instead.
|
|
507
|
+
* @deprecated since version 4.32. Use [Transformation's rotate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-support-Transformation.html#rotate) method and the {@link geometry/operators/affineTransformationOperator} instead.
|
|
508
508
|
* @param geometry - The geometry to rotate.
|
|
509
509
|
* @param angle - The rotation angle in degrees.
|
|
510
510
|
* @param rotationOrigin - Point to rotate the geometry around. Defaults to the centroid of the geometry.
|
|
@@ -518,7 +518,7 @@ export function rotate(geometry: GeometryUnion, angle: number, rotationOrigin?:
|
|
|
518
518
|
/**
|
|
519
519
|
* Flips a geometry on the horizontal axis. Can optionally be flipped around a point.
|
|
520
520
|
*
|
|
521
|
-
* @deprecated since 4.32. Use [Transformation's flipY()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-support-Transformation.html#flipY) method and the {@link geometry/operators/affineTransformationOperator} instead.
|
|
521
|
+
* @deprecated since version 4.32. Use [Transformation's flipY()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-support-Transformation.html#flipY) method and the {@link geometry/operators/affineTransformationOperator} instead.
|
|
522
522
|
* @param geometry - The input geometry to be flipped.
|
|
523
523
|
* @param flipOrigin - Point to flip the geometry around. Defaults to the centroid of the geometry.
|
|
524
524
|
* @returns The flipped geometry.
|
|
@@ -531,7 +531,7 @@ export function flipHorizontal(geometry: GeometryUnion, flipOrigin?: Point | nul
|
|
|
531
531
|
/**
|
|
532
532
|
* Flips a geometry on the vertical axis. Can optionally be flipped around a point.
|
|
533
533
|
*
|
|
534
|
-
* @deprecated since 4.32. Use [Transformation's flipX()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-support-Transformation.html#flipX) method and the {@link geometry/operators/affineTransformationOperator} instead.
|
|
534
|
+
* @deprecated since version 4.32. Use [Transformation's flipX()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-support-Transformation.html#flipX) method and the {@link geometry/operators/affineTransformationOperator} instead.
|
|
535
535
|
* @param geometry - The input geometry to be flipped.
|
|
536
536
|
* @param flipOrigin - Point to flip the geometry around. Defaults to the centroid of the geometry.
|
|
537
537
|
* @returns The flipped geometry.
|
|
@@ -545,7 +545,7 @@ export function flipVertical(geometry: GeometryUnion, flipOrigin?: Point | null
|
|
|
545
545
|
* Performs the generalize operation on the geometries in the cursor. Point and Multipoint geometries are left unchanged.
|
|
546
546
|
* Envelope is converted to a Polygon and then generalized.
|
|
547
547
|
*
|
|
548
|
-
* @deprecated since 4.32. Use [generalizeOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-generalizeOperator.html) instead.
|
|
548
|
+
* @deprecated since version 4.32. Use [generalizeOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-generalizeOperator.html) instead.
|
|
549
549
|
* @param geometry - The input geometry to be generalized.
|
|
550
550
|
* @param maxDeviation - The maximum allowed deviation from the generalized geometry to the original geometry.
|
|
551
551
|
* @param removeDegenerateParts - When `true` the degenerate parts of the geometry will
|
|
@@ -562,7 +562,7 @@ export function generalize(geometry: GeometryUnion, maxDeviation: number, remove
|
|
|
562
562
|
/**
|
|
563
563
|
* Densify geometries by plotting points between existing vertices.
|
|
564
564
|
*
|
|
565
|
-
* @deprecated since 4.32. Use [densifyOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-densifyOperator.html) instead.
|
|
565
|
+
* @deprecated since version 4.32. Use [densifyOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-densifyOperator.html) instead.
|
|
566
566
|
* @param geometry - The geometry to be densified.
|
|
567
567
|
* @param maxSegmentLength - The maximum segment length allowed. Must be a positive value.
|
|
568
568
|
* @param maxSegmentLengthUnit - Measurement unit for maxSegmentLength.
|
|
@@ -578,7 +578,7 @@ export function densify(geometry: GeometryUnion, maxSegmentLength: number, maxSe
|
|
|
578
578
|
/**
|
|
579
579
|
* Returns a geodetically densified version of the input geometry. Use this function to draw the line(s) of the geometry along great circles.
|
|
580
580
|
*
|
|
581
|
-
* @deprecated since 4.32. Use [geodeticDensifyOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticDensifyOperator.html) instead.
|
|
581
|
+
* @deprecated since version 4.32. Use [geodeticDensifyOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticDensifyOperator.html) instead.
|
|
582
582
|
* @param geometry - A polyline or polygon to densify.
|
|
583
583
|
* @param maxSegmentLength - The maximum segment length allowed (in meters if a `maxSegmentLengthUnit` is not provided). This must be a positive value.
|
|
584
584
|
* @param maxSegmentLengthUnit - Measurement unit for `maxSegmentLength`. If not provided, the unit will default to `meters`.
|
|
@@ -596,7 +596,7 @@ export function geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength:
|
|
|
596
596
|
* calculate areas using [geodesicArea()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#geodesicArea). If the input geometries have a projected coordinate system other than
|
|
597
597
|
* Web Mercator, use planarArea() instead.
|
|
598
598
|
*
|
|
599
|
-
* @deprecated since 4.32. Use [areaOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-areaOperator.html) instead.
|
|
599
|
+
* @deprecated since version 4.32. Use [areaOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-areaOperator.html) instead.
|
|
600
600
|
* @param geometry - The input polygon.
|
|
601
601
|
* @param unit - Measurement unit of the return value.
|
|
602
602
|
* Defaults to the units of the input geometries.
|
|
@@ -615,7 +615,7 @@ export function planarArea(geometry: Polygon, unit?: number | AreaUnit): number;
|
|
|
615
615
|
* calculate lengths using [geodesicLength()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#geodesicLength). If the input geometries have a projected coordinate system other than
|
|
616
616
|
* Web Mercator, use planarLength() instead.
|
|
617
617
|
*
|
|
618
|
-
* @deprecated since 4.32. Use [lengthOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-lengthOperator.html) instead.
|
|
618
|
+
* @deprecated since version 4.32. Use [lengthOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-lengthOperator.html) instead.
|
|
619
619
|
* @param geometry - The input geometry.
|
|
620
620
|
* @param unit - Measurement unit of the return value.
|
|
621
621
|
* Defaults to the units of the input geometries.
|
|
@@ -635,7 +635,7 @@ export function planarLength(geometry: GeometryUnion, unit?: number | LinearUnit
|
|
|
635
635
|
*
|
|
636
636
|
* This method only works with WGS84 (wkid: 4326) and [Web Mercator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#isWebMercator) spatial references.
|
|
637
637
|
*
|
|
638
|
-
* @deprecated since 4.32. Use [geodeticAreaOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticAreaOperator.html) instead.
|
|
638
|
+
* @deprecated since version 4.32. Use [geodeticAreaOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticAreaOperator.html) instead.
|
|
639
639
|
* @param geometry - The input polygon.
|
|
640
640
|
* @param unit - Measurement unit of the return value.
|
|
641
641
|
* Defaults to the units of the input geometries.
|
|
@@ -655,7 +655,7 @@ export function geodesicArea(geometry: Polygon, unit?: number | AreaUnit): numbe
|
|
|
655
655
|
*
|
|
656
656
|
* This method only works with WGS84 (wkid: 4326) and [Web Mercator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#isWebMercator) spatial references.
|
|
657
657
|
*
|
|
658
|
-
* @deprecated since 4.32. Use [geodeticLengthOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticLengthOperator.html) instead.
|
|
658
|
+
* @deprecated since version 4.32. Use [geodeticLengthOperator](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-geodeticLengthOperator.html) instead.
|
|
659
659
|
* @param geometry - The input geometry.
|
|
660
660
|
* @param unit - Measurement unit of the return value.
|
|
661
661
|
* Defaults to the units of the input geometry.
|
|
@@ -670,7 +670,7 @@ export function geodesicLength(geometry: GeometryUnion, unit?: number | LinearUn
|
|
|
670
670
|
* Returns an array of points at the intersecting locations of two input polylines. Use
|
|
671
671
|
* [intersect()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#intersect) for all other geometry intersect operations.
|
|
672
672
|
*
|
|
673
|
-
* @deprecated since 4.32. Use [intersectionOperator's executeMany()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-intersectionOperator.html#executeMany) method instead.
|
|
673
|
+
* @deprecated since version 4.32. Use [intersectionOperator's executeMany()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-intersectionOperator.html#executeMany) method instead.
|
|
674
674
|
* @param line1 - The first polyline to use in the intersect operation.
|
|
675
675
|
* @param line2 - The second polyline to use in the intersect operation.
|
|
676
676
|
* @returns The point intersections of the input polylines.
|
|
@@ -81,9 +81,9 @@ export default class MeshComponent extends MeshComponentSuperclass {
|
|
|
81
81
|
* let mesh = new Mesh({
|
|
82
82
|
* vertexAttributes: {
|
|
83
83
|
* position: [
|
|
84
|
-
* 2.336006, 48.860818, 0
|
|
85
|
-
* 2.336172, 48.861114, 0
|
|
86
|
-
* 2.335724, 48.861229, 0
|
|
84
|
+
* 2.336006, 48.860818, 0,
|
|
85
|
+
* 2.336172, 48.861114, 0,
|
|
86
|
+
* 2.335724, 48.861229, 0,
|
|
87
87
|
* 2.335563, 48.860922, 0
|
|
88
88
|
* ]
|
|
89
89
|
* },
|
|
@@ -22,8 +22,8 @@ export interface MeshGeoreferencedVertexSpaceProperties extends JSONSupportMixin
|
|
|
22
22
|
export default class MeshGeoreferencedVertexSpace extends MeshGeoreferencedVertexSpaceSuperclass {
|
|
23
23
|
constructor(properties?: MeshGeoreferencedVertexSpaceProperties);
|
|
24
24
|
/**
|
|
25
|
-
* Origin of the vertex space.
|
|
26
|
-
* If this is null, the coordinates are expected to be absolute. If not,
|
|
25
|
+
* Origin of the vertex space. These coordinates are interpreted in the spatial reference of the mesh using the vertex space.
|
|
26
|
+
* If this is null, the coordinates are expected to be absolute. If not, the coordinates are expected to be deltas relative
|
|
27
27
|
* to the origin.
|
|
28
28
|
*/
|
|
29
29
|
accessor origin: readonly [
|
|
@@ -4,7 +4,7 @@ import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSup
|
|
|
4
4
|
export interface MeshLocalVertexSpaceProperties extends JSONSupportMixinProperties, ClonableMixinProperties, Partial<Pick<MeshLocalVertexSpace, "origin">> {}
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* A mesh vertex space that indicates mesh vertices
|
|
7
|
+
* A mesh vertex space that indicates mesh vertices exist in a plain cartesian space as often encountered in 3D
|
|
8
8
|
* modeling and CAD applications. Georeferencing is done by using the coordinates in the
|
|
9
9
|
* [local tangent plane](https://en.wikipedia.org/wiki/Local_tangent_plane_coordinates)
|
|
10
10
|
* reference frame at the fully georeferenced [origin](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshLocalVertexSpace.html#origin)
|
|
@@ -17,7 +17,7 @@ export interface MeshLocalVertexSpaceProperties extends JSONSupportMixinProperti
|
|
|
17
17
|
*/
|
|
18
18
|
export default class MeshLocalVertexSpace extends MeshLocalVertexSpaceSuperclass {
|
|
19
19
|
constructor(properties?: MeshLocalVertexSpaceProperties);
|
|
20
|
-
/** Origin of the vertex space.
|
|
20
|
+
/** Origin of the vertex space. These coordinates are interpreted in the spatial reference of the mesh using the vertex space. */
|
|
21
21
|
accessor origin: readonly [
|
|
22
22
|
number,
|
|
23
23
|
number,
|
|
@@ -17,7 +17,7 @@ export interface MeshMaterialProperties extends JSONSupportMixinProperties, Clon
|
|
|
17
17
|
color?: ColorLike | null;
|
|
18
18
|
/**
|
|
19
19
|
* Specifies a texture from which to get color information.
|
|
20
|
-
* The texture is accessed using the
|
|
20
|
+
* The texture is accessed using the UV coordinates specified for each vertex
|
|
21
21
|
* in the [Mesh#vertexAttributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes).
|
|
22
22
|
*/
|
|
23
23
|
colorTexture?: MeshTextureProperties | string | MeshTextureData | null;
|
|
@@ -32,7 +32,7 @@ export interface MeshMaterialProperties extends JSONSupportMixinProperties, Clon
|
|
|
32
32
|
colorTextureTransform?: MeshTextureTransformProperties | null;
|
|
33
33
|
/**
|
|
34
34
|
* Specifies a texture from which to get normal information.
|
|
35
|
-
* The texture is accessed using the
|
|
35
|
+
* The texture is accessed using the UV coordinates specified for each vertex
|
|
36
36
|
* in the [Mesh#vertexAttributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes).
|
|
37
37
|
*/
|
|
38
38
|
normalTexture?: MeshTextureProperties | string | MeshTextureData | null;
|
|
@@ -51,12 +51,12 @@ export interface MeshMaterialProperties extends JSONSupportMixinProperties, Clon
|
|
|
51
51
|
* The material determines how a [MeshComponent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html) is visualized.
|
|
52
52
|
* One of the major characteristics of a material is its [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#color). The [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#color) property
|
|
53
53
|
* can be used to set a uniform color for the whole [MeshComponent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html).
|
|
54
|
-
* Use the [colorTexture](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#colorTexture) property to map an image onto the mesh component, using the
|
|
54
|
+
* Use the [colorTexture](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#colorTexture) property to map an image onto the mesh component, using the UV
|
|
55
55
|
* coordinate specified for each vertex in the [Mesh#vertexAttributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes).
|
|
56
56
|
*
|
|
57
57
|
* The material properties support a number of convenience autocast types, including
|
|
58
|
-
* hex color strings and well
|
|
59
|
-
* [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html)), or strings representing
|
|
58
|
+
* hex color strings and well-known color strings (autocasts to
|
|
59
|
+
* [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html)), or strings representing URLs to images,
|
|
60
60
|
* [HTMLImageElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement),
|
|
61
61
|
* [HTMLCanvasElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement),
|
|
62
62
|
* [HTMLVideoElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement),
|
|
@@ -139,7 +139,7 @@ export default class MeshMaterial extends MeshMaterialSuperclass {
|
|
|
139
139
|
* |------|-------------|
|
|
140
140
|
* | opaque | Alpha is ignored, and the object is rendered fully opaque. |
|
|
141
141
|
* | blend | Alpha values are used for gradual transparency, blending between the object and its background. |
|
|
142
|
-
* | mask | Alpha values are used for binary transparency, either displaying the object
|
|
142
|
+
* | mask | Alpha values are used for binary transparency, either displaying the object or its background. See also [alphaCutoff](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#alphaCutoff). |
|
|
143
143
|
* | auto | The implementation mixes the `mask` and `blend` settings, masking below `alphaCutoff` and blending above it. |
|
|
144
144
|
*
|
|
145
145
|
* @default "auto"
|
|
@@ -154,7 +154,7 @@ export default class MeshMaterial extends MeshMaterialSuperclass {
|
|
|
154
154
|
set color(value: ColorLike | null | undefined);
|
|
155
155
|
/**
|
|
156
156
|
* Specifies a texture from which to get color information.
|
|
157
|
-
* The texture is accessed using the
|
|
157
|
+
* The texture is accessed using the UV coordinates specified for each vertex
|
|
158
158
|
* in the [Mesh#vertexAttributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes).
|
|
159
159
|
*/
|
|
160
160
|
get colorTexture(): MeshTexture | null | undefined;
|
|
@@ -177,7 +177,7 @@ export default class MeshMaterial extends MeshMaterialSuperclass {
|
|
|
177
177
|
accessor doubleSided: boolean;
|
|
178
178
|
/**
|
|
179
179
|
* Specifies a texture from which to get normal information.
|
|
180
|
-
* The texture is accessed using the
|
|
180
|
+
* The texture is accessed using the UV coordinates specified for each vertex
|
|
181
181
|
* in the [Mesh#vertexAttributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes).
|
|
182
182
|
*/
|
|
183
183
|
get normalTexture(): MeshTexture | null | undefined;
|
|
@@ -110,7 +110,7 @@ export default class MeshMaterialMetallicRoughness extends MeshMaterial {
|
|
|
110
110
|
/**
|
|
111
111
|
* Specifies how much the material behaves like a metal. Values must be in the range 0 (non metal material) to 1
|
|
112
112
|
* (metal material). Physically accurate materials are usually either a metal (1) or a non-metal (0) and not something
|
|
113
|
-
*
|
|
113
|
+
* in between.
|
|
114
114
|
*
|
|
115
115
|
* @default 1
|
|
116
116
|
*/
|
|
@@ -88,9 +88,9 @@ export interface MeshTextureProperties extends JSONSupportMixinProperties, Clona
|
|
|
88
88
|
* video.style.visibility = "hidden";
|
|
89
89
|
*
|
|
90
90
|
* const meshWithVideoMaterial = Mesh.createPlane(location, {
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
91
|
+
* material: {
|
|
92
|
+
* colorTexture: { data: video }
|
|
93
|
+
* }
|
|
94
94
|
* });
|
|
95
95
|
* ```
|
|
96
96
|
*
|
|
@@ -6,8 +6,8 @@ export interface MeshTextureTransformProperties extends JSONSupportMixinProperti
|
|
|
6
6
|
/**
|
|
7
7
|
* MeshTextureTransform represents a transformation of UV mesh coordinates used to sample a
|
|
8
8
|
* [MeshTexture](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html). The transformation includes an offset,
|
|
9
|
-
* rotation and scale. Texture transformations can be used to optimize
|
|
10
|
-
* example by packing many images into a single texture "atlas" and using the texture transform
|
|
9
|
+
* rotation and scale. Texture transformations can be used to optimize reuse of textures, for
|
|
10
|
+
* example, by packing many images into a single texture "atlas" and using the texture transform
|
|
11
11
|
* offset and scale to sample a specific region within this larger texture.
|
|
12
12
|
*
|
|
13
13
|
* @since 4.27
|
|
@@ -27,7 +27,7 @@ export default class MeshTextureTransform extends MeshTextureTransformSuperclass
|
|
|
27
27
|
number
|
|
28
28
|
];
|
|
29
29
|
/**
|
|
30
|
-
* The rotation of the UV coordinates in degrees,
|
|
30
|
+
* The rotation of the UV coordinates in degrees, counterclockwise around the origin.
|
|
31
31
|
*
|
|
32
32
|
* @default 0
|
|
33
33
|
*/
|
|
@@ -4,7 +4,7 @@ import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSup
|
|
|
4
4
|
export interface MeshTransformProperties extends JSONSupportMixinProperties, ClonableMixinProperties, Partial<Pick<MeshTransform, "rotationAngle" | "rotationAxis" | "scale" | "translation">> {}
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Represents a transformation that combines translation, rotation and scale for a mesh.
|
|
8
8
|
*
|
|
9
9
|
* @since 4.27
|
|
10
10
|
* @see [Mesh](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html)
|
|
@@ -5,17 +5,25 @@ export interface MeshVertexAttributesProperties extends JSONSupportMixinProperti
|
|
|
5
5
|
|
|
6
6
|
export default abstract class MeshVertexAttributes extends MeshVertexAttributesSuperclass {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* A flat array of the vertex colors (4 elements per vertex ranging from 0 to 255).
|
|
9
|
+
* Vertex colors are multiplied by the component material color (if any is defined).
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
-
* Vertex colors are multiplied by the component material color (if any is defined).
|
|
11
|
+
* @since 4.9
|
|
12
12
|
*/
|
|
13
13
|
accessor color: MeshVertexColor | null | undefined;
|
|
14
14
|
/** A flat array of the vertex normals (3 elements per vertex ranging from -1 to 1). */
|
|
15
15
|
accessor normal: MeshVertexNormal | null | undefined;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* A flat array of vertex positions. Vertex positions have x, y and z coordinates and they should be in the spatial
|
|
18
|
+
* reference system of the geometry.
|
|
19
|
+
*/
|
|
17
20
|
accessor position: MeshVertexPosition;
|
|
18
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* A flat array of the vertex tangents (4 elements per vertex ranging from -1 to 1. The 4th element is a sign value
|
|
23
|
+
* (-1 or +1) indicating handedness of the tangent basis). An array of 4-component vectors specifying per-vertex tangents.
|
|
24
|
+
* Tangents are used (and currently required) for normal mapping—see [MeshMaterial#normalTexture](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#normalTexture).
|
|
25
|
+
* For more details on the expected encoding of these, see the [glTF 2.0 spec](https://github.com/KhronosGroup/glTF/tree/master/specification/2.0).
|
|
26
|
+
*/
|
|
19
27
|
accessor tangent: MeshVertexTangent | null | undefined;
|
|
20
28
|
/** A flat array of vertex uv coordinates (2 elements per vertex). */
|
|
21
29
|
accessor uv: MeshVertexUV | null | undefined;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{extentIntersectsExtent as e,getFeatureExtentIntersector as t}from"./intersectsBase.js";export{extentIntersectsMultipoint,extentIntersectsPoint,extentIntersectsPolygon,extentIntersectsPolyline,
|
|
5
|
+
import{extentIntersectsExtent as e,getFeatureExtentIntersector as t}from"./intersectsBase.js";export{extentIntersectsMultipoint,extentIntersectsPoint,extentIntersectsPolygon,extentIntersectsPolyline,segmentIntersects}from"./intersectsBase.js";function s(s){return"mesh"===s?e:t(s)}export{e as extentIntersectsExtent,s as getExtentIntersector,t as getFeatureExtentIntersector};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{extentContainsCoords2D as n,extentContainsPoint as t,extentContainsCoords3D as e,ringsContainsCoords as r}from"./contains.js";function i(n,e){return t(n,e)}function o(n,t){const e=n.hasZ&&t.hasZ;let r,i,o;if(n.xmin<=t.xmin){if(r=t.xmin,n.xmax<r)return!1}else if(r=n.xmin,t.xmax<r)return!1;if(n.ymin<=t.ymin){if(i=t.ymin,n.ymax<i)return!1}else if(i=n.ymin,t.ymax<i)return!1;if(e&&t.hasZ)if(n.zmin<=t.zmin){if(o=t.zmin,n.zmax<o)return!1}else if(o=n.zmin,t.zmax<o)return!1;return!0}function
|
|
5
|
+
import{extentContainsCoords2D as n,extentContainsPoint as t,extentContainsCoords3D as e,ringsContainsCoords as r}from"./contains.js";function i(n,e){return t(n,e)}function o(n,t){const e=n.hasZ&&t.hasZ;let r,i,o;if(n.xmin<=t.xmin){if(r=t.xmin,n.xmax<r)return!1}else if(r=n.xmin,t.xmax<r)return!1;if(n.ymin<=t.ymin){if(i=t.ymin,n.ymax<i)return!1}else if(i=n.ymin,t.ymax<i)return!1;if(e&&t.hasZ)if(n.zmin<=t.zmin){if(o=t.zmin,n.zmax<o)return!1}else if(o=n.zmin,t.zmax<o)return!1;return!0}function m(t,r){const{points:i,hasZ:o}=r,m=o?e:n;for(const n of i)if(m(t,n))return!0;return!1}const s=[0,0],u=[0,0],f=[0,0],c=[0,0],a=[s,u,f,c],x=[[f,s],[s,u],[u,c],[c,f]];function l(n,t){return y(n,t.rings)}function y(t,e){s[0]=t.xmin,s[1]=t.ymax,u[0]=t.xmax,u[1]=t.ymax,f[0]=t.xmin,f[1]=t.ymin,c[0]=t.xmax,c[1]=t.ymin;for(const n of a)if(r(e,n))return!0;for(const r of e){if(!r.length)continue;let e=r[0];if(n(t,e))return!0;for(let i=1;i<r.length;i++){const o=r[i];if(n(t,o)||p(e,o,x))return!0;e=o}}return!1}function h(t,e){s[0]=t.xmin,s[1]=t.ymax,u[0]=t.xmax,u[1]=t.ymax,f[0]=t.xmin,f[1]=t.ymin,c[0]=t.xmax,c[1]=t.ymin;const r=e.paths;for(const i of r){if(!r.length)continue;let e=i[0];if(n(t,e))return!0;for(let r=1;r<i.length;r++){const o=i[r];if(n(t,o)||p(e,o,x))return!0;e=o}}return!1}function p(n,t,e){for(let r=0;r<e.length;r++)if(g(n,t,e[r][0],e[r][1]))return!0;return!1}function g(n,t,e,r,i){const[o,m]=n,[s,u]=t,[f,c]=e,[a,x]=r,l=a-f,y=o-f,h=s-o,p=x-c,g=m-c,z=u-m,G=p*h-l*z;if(0===G)return!1;const P=(l*g-p*y)/G,Z=(h*g-z*y)/G;return P>=0&&P<=1&&Z>=0&&Z<=1&&(i&&(i[0]=o+P*(s-o),i[1]=m+P*(u-m)),!0)}function z(n){switch(n){case"esriGeometryEnvelope":case"extent":return o;case"esriGeometryMultipoint":case"multipoint":return m;case"esriGeometryPoint":case"point":return i;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return l;case"esriGeometryPolyline":case"polyline":return h}}export{o as extentIntersectsExtent,m as extentIntersectsMultipoint,i as extentIntersectsPoint,l as extentIntersectsPolygon,h as extentIntersectsPolyline,z as getFeatureExtentIntersector,g as segmentIntersects};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../../../core/Logger.js";import{e as t,i as r}from"../../../chunks/vec32.js";import{create as i,fromValues as o}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{projectPointToVector as n}from"../../projection/projectPointToVector.js";import s from"../MeshGeoreferencedVertexSpace.js";import c from"../MeshLocalVertexSpace.js";import{isRelativeVertexSpace as a}from"../meshVertexSpaceUtils.js";import{performGlobalOperation as f}from"./geographicUtils.js";import{logProjectionError as p,loadProjectErrorMessage as l}from"./projection.js";import{convertVertexSpace as m}from"./vertexSpaceConversion.js";const
|
|
5
|
+
import e from"../../../core/Logger.js";import{e as t,i as r}from"../../../chunks/vec32.js";import{create as i,fromValues as o}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{projectPointToVector as n}from"../../projection/projectPointToVector.js";import s from"../MeshGeoreferencedVertexSpace.js";import c from"../MeshLocalVertexSpace.js";import{isRelativeVertexSpace as a}from"../meshVertexSpaceUtils.js";import{performGlobalOperation as f}from"./geographicUtils.js";import{logProjectionError as p,loadProjectErrorMessage as l}from"./projection.js";import{convertVertexSpace as m}from"./vertexSpaceConversion.js";const u=()=>e.getLogger("esri.geometry.support.meshUtils.centerAt");function g(e,t,r){if(!e.vertexAttributes?.position)return;const{vertexSpace:i}=e,o=r?.origin??e.origin;if(a(i))x(e,t,o);else{f(i,o.spatialReference)?v(e,t,o):R(e,t,o)}}function x(e,o,s){const{vertexSpace:c}=e;if(!a(c))return;const f=h,m=b;if(!n(o,m,e.spatialReference))return void p(u(),o.spatialReference,e.spatialReference,l);if(!n(s,f,e.spatialReference)){const t=e.origin;return f[0]=t.x,f[1]=t.y,f[2]=t.z,void p(u(),s.spatialReference,e.spatialReference,l)}const g=t(A,m,f);c.origin=r(i(),c.origin,g)}function v(e,t,r){const i=o(r.x,r.y,r.z??0),n=m(e,new c({origin:i}));if(!n)return;const a=o(t.x,t.y,t.z??0),f=m({vertexAttributes:n,spatialReference:e.spatialReference,vertexSpace:new c({origin:a})},s.absolute);if(!f)return;const{position:p,normal:l,tangent:u}=f;e.vertexAttributes.position=p,e.vertexAttributes.normal=l,e.vertexAttributes.tangent=u,e.vertexAttributesChanged()}function R(e,t,r){const i=h,o=b;if(n(t,o,e.spatialReference)){if(!n(r,i,e.spatialReference)){const t=e.origin;return i[0]=t.x,i[1]=t.y,i[2]=t.z,void p(u(),r.spatialReference,e.spatialReference,l)}j(e.vertexAttributes.position,o,i),e.vertexAttributesChanged()}else p(u(),t.spatialReference,e.spatialReference,l)}function j(e,t,r){if(e)for(let i=0;i<e.length;i+=3)for(let o=0;o<3;o++)e[i+o]+=t[o]-r[o]}const b=i(),h=i(),A=i();export{g as centerAt};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
function e(e){return e.isGeographic||e.isWebMercator}function r(e,r){switch(e.type){case"georeferenced":return r.isGeographic;case"local":return r.isGeographic||r.isWebMercator}}export{e as isGlobal,r as performGlobalOperation};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{fromValues as e}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import t from"../MeshGeoreferencedVertexSpace.js";import r from"../MeshLocalVertexSpace.js";import{isGlobal as n}from"./geographicUtils.js";import{convertVertexSpace as i}from"./vertexSpaceConversion.js";function o(e,t,r){return n(t.spatialReference
|
|
5
|
+
import{fromValues as e}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import t from"../MeshGeoreferencedVertexSpace.js";import r from"../MeshLocalVertexSpace.js";import{isGlobal as n}from"./geographicUtils.js";import{convertVertexSpace as i}from"./vertexSpaceConversion.js";function o(e,t,r){return n(t.spatialReference)?s(e,t,!1,r):c(e,t,r)}function a(e,t,r){return n(t.spatialReference)?f(e,t,r):u(e,t,r)}function c(r,n,o){const a=e(n.x,n.y,n.z??0);return i({vertexAttributes:r,vertexSpace:new t({origin:a}),spatialReference:n.spatialReference},t.absolute,{sourceUnit:o?.unit})}function s(n,o,a,c){const s=e(o.x,o.y,o.z??0);return i({vertexAttributes:n,vertexSpace:new r({origin:s}),spatialReference:o.spatialReference},new t({origin:null}),{sourceUnit:c?.unit})}function u(r,n,o){const a=e(n.x,n.y,n.z??0);return i({vertexAttributes:r,vertexSpace:t.absolute,spatialReference:n.spatialReference},new t({origin:a}),{targetUnit:o?.unit})}function f(n,o,a){const c=e(o.x,o.y,o.z??0);return i({vertexAttributes:n,spatialReference:o.spatialReference,vertexSpace:t.absolute},new r({origin:c}),{targetUnit:a?.unit})}export{o as georeference,a as ungeoreference};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import t from"../../../core/Logger.js";import{fromMat4 as e}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{fromRotationTranslationScaleOrigin as o,multiply as i,getScale as n,scale as s,getTranslation as a,fromRotation as l}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as
|
|
5
|
+
import t from"../../../core/Logger.js";import{fromMat4 as e}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{fromRotationTranslationScaleOrigin as o,multiply as i,getScale as n,scale as s,getTranslation as a,fromRotation as l}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as m}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{setAxisAngle as c}from"../../../core/libs/gl-matrix-2/math/quat.js";import{create as f}from"../../../core/libs/gl-matrix-2/factories/quatf64.js";import{h as p,o as u,t as g,p as x}from"../../../chunks/vec32.js";import{create as j,ZEROS as v,ONES as b}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import A from"../../Point.js";import{getSphericalPCPF as h}from"../../spatialReferenceEllipsoidUtils.js";import{computeTranslationToOriginAndRotation as R}from"../../projection/computeTranslationToOriginAndRotation.js";import{projectPointToVector as d}from"../../projection/projectPointToVector.js";import{angleRad as y,axis as w,fromMatrix as F,create as S}from"../axisAngleDegrees.js";import T from"../MeshTransform.js";import{isMeshWithRelativeVertexSpace as U}from"../meshVertexSpaceUtils.js";import{performGlobalOperation as q}from"./geographicUtils.js";import{logProjectionError as C,loadProjectErrorMessage as k,projectToPCPF as z,projectNormalToPCPF as L,projectTangentToPCPF as M,projectFromPCPF as P,projectNormalFromPCPF as V,projectTangentFromPCPF as D}from"./projection.js";import{projectPointToVertexSpace as E}from"./vertexSpaceConversion.js";const O=()=>t.getLogger("esri.geometry.support.meshUtils.rotate");function B(t,e,r){if(!t.vertexAttributes?.position||0===e[3])return;const{spatialReference:o,vertexSpace:i}=t,n=r?.origin??t.origin;if(U(t))G(t,e,n);else{q(i,o)?H(t,e,n):I(t,e,n)}}function G(t,e,r){t.transform??=new T;const{vertexSpace:l,transform:m,spatialReference:f}=t,[g,x,h]=l.origin,R=new A({x:g,y:x,z:h,spatialReference:f}),d=K;if(R.equals(r))p(d,0,0,0);else if(!E(d,r,t))return void C(O(),r.spatialReference,f,k);c(Z,w(e),y(e));const S=o(N,Z,v,b,d),{localMatrix:U}=m,q=i(N,S,U);m.scale=n(j(),q),s(q,q,u(K,m.scale));const z=m.rotationAxis;m.rotation=F(q),0===m.rotationAngle&&(m.rotationAxis=z),m.translation=a(j(),q)}function H(t,r,o){const i=t.spatialReference,n=h(i),s=Y;if(!d(o,s,n)&&(C(O(),o.spatialReference,n,"Falling back to mesh origin"),!d(t.origin,s,n)))return void C(O(),t.origin.spatialReference,n);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,m=t.vertexAttributes.tangent,c=new Float64Array(a.length),f=null!=l?new Float32Array(l.length):null,p=null!=m?new Float32Array(m.length):null;R(n,s,W,n),e(X,W);const u=Q;g(w(Q),w(r),X),u[3]=r[3],z(a,i,c,n)&&(null==l||null==f||L(l,a,i,c,n,f))&&(null==m||null==p||M(m,a,i,c,n,p))?(J(c,u,3,s),P(c,n,a,i)&&(null==l||null==f||(J(f,u,3),V(f,a,i,c,n,l)))&&(null==m||null==p||(J(p,u,4),D(p,a,i,c,n,m)))?t.vertexAttributesChanged():C(O(),n,i)):C(O(),i,n)}function I(t,e,r){const o=Y;if(!d(r,o,t.spatialReference)){const e=t.origin;return o[0]=e.x,o[1]=e.y,o[2]=e.z,void C(O(),r.spatialReference,t.spatialReference,k)}J(t.vertexAttributes.position,e,3,o),J(t.vertexAttributes.normal,e,3),J(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}function J(t,e,r,o=v){if(null!=t){l(W,y(e),w(e));for(let e=0;e<t.length;e+=r){for(let r=0;r<3;r++)K[r]=t[e+r]-o[r];x(K,K,W);for(let r=0;r<3;r++)t[e+r]=K[r]+o[r]}}}const K=j(),N=m(),Q=S(),W=m(),X=r(),Y=j(),Z=f();export{B as rotate};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../../../core/Logger.js";import{fromRotationTranslationScaleOrigin as t,multiply as r,getScale as o,scale as i,getTranslation as n}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as s}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{IDENTITY as
|
|
5
|
+
import e from"../../../core/Logger.js";import{fromRotationTranslationScaleOrigin as t,multiply as r,getScale as o,scale as i,getTranslation as n}from"../../../core/libs/gl-matrix-2/math/mat4.js";import{create as s}from"../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{IDENTITY as l}from"../../../core/libs/gl-matrix-2/factories/quatf64.js";import{h as a,o as c,j as f}from"../../../chunks/vec32.js";import{create as m,ZEROS as p}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import u from"../../Point.js";import{getSphericalPCPF as g}from"../../spatialReferenceEllipsoidUtils.js";import{projectPointToVector as x}from"../../projection/projectPointToVector.js";import{fromMatrix as j}from"../axisAngleDegrees.js";import v from"../MeshTransform.js";import{isMeshWithRelativeVertexSpace as h}from"../meshVertexSpaceUtils.js";import{performGlobalOperation as A}from"./geographicUtils.js";import{logProjectionError as b,loadProjectErrorMessage as R,projectToPCPF as d,projectNormalToPCPF as y,projectTangentToPCPF as w,projectFromPCPF as F,projectNormalFromPCPF as S,projectTangentFromPCPF as U}from"./projection.js";import{projectPointToVertexSpace as C}from"./vertexSpaceConversion.js";const k=()=>e.getLogger("esri.geometry.support.meshUtils.scale");function q(e,t,r){if(!e.vertexAttributes?.position)return;const{vertexSpace:o,spatialReference:i}=e,n=r?.origin??e.origin;if(h(e))z(e,t,n);else{A(o,i)?L(e,t,n):M(e,t,n)}}function z(e,s,f){e.transform??=new v;const{vertexSpace:g,transform:x,spatialReference:h}=e,[A,d,y]=g.origin,w=new u({x:A,y:d,z:y,spatialReference:h}),F=T;if(w.equals(f))a(F,0,0,0);else if(!C(F,f,e))return void b(k(),f.spatialReference,h,R);const S=a(V,s,s,s),U=t(D,l,p,S,F),{localMatrix:q}=x,z=r(D,U,q);x.scale=o(m(),z),i(z,z,c(T,x.scale));const L=x.rotationAxis;x.rotation=j(z),0===x.rotationAngle&&(x.rotationAxis=L),x.translation=n(m(),z)}function L(e,t,r){const o=e.spatialReference,i=g(o),n=E;if(!x(r,n,i)&&(b(k(),r.spatialReference,i,"Falling back to mesh origin"),!x(e.origin,n,i)))return void b(k(),e.origin.spatialReference,i);const s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,c=new Float64Array(s.length),f=null!=l?new Float32Array(l.length):null,m=null!=a?new Float32Array(a.length):null;d(s,o,c,i)&&(null==l||null==f||y(l,s,o,c,i,f))&&(null==a||null==m||w(a,s,o,c,i,m))?(P(c,t,n),F(c,i,s,o)&&(null==l||null==f||S(f,s,o,c,i,l))&&(null==a||null==m||U(m,s,o,c,i,a))?e.vertexAttributesChanged():b(k(),i,o)):b(k(),o,i)}function M(e,t,r){const o=E;if(!x(r,o,e.spatialReference)){const t=e.origin;return o[0]=t.x,o[1]=t.y,o[2]=t.z,void b(k(),r.spatialReference,e.spatialReference,R)}P(e.vertexAttributes.position,t,o),e.vertexAttributesChanged()}function P(e,t,r=p){if(e)for(let o=0;o<e.length;o+=3){for(let t=0;t<3;t++)T[t]=e[o+t]-r[t];f(T,T,t);for(let t=0;t<3;t++)e[o+t]=T[t]+r[t]}}const T=m(),V=m(),D=s(),E=m();export{q as scale};
|