@arcgis/core 6.0.0-next.8 → 6.0.0-next.9
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/arcade/featureSetUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{85908e6e9c50749cee60.js → 037a8cc19debbaaa4e10.js} +1 -1
- package/assets/esri/core/workers/chunks/066550852483ab8f77bc.js +1 -0
- package/assets/esri/core/workers/chunks/0f725cf79ce00e790a7d.js +1 -0
- package/assets/esri/core/workers/chunks/12a7997a40c77f5c9160.js +1 -0
- package/assets/esri/core/workers/chunks/1b077c92345ffb5916c2.js +1 -0
- package/assets/esri/core/workers/chunks/{6dd0b79fa3a629ab4f27.js → 1bca39e0e651426bdbb5.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b35ec54968fbeec17ce.js → 2686fe5b62dd0be699c0.js} +1 -1
- package/assets/esri/core/workers/chunks/2a97268000c6d03ef720.js +1 -0
- package/assets/esri/core/workers/chunks/2e2e33ec50e97b91b178.js +1 -0
- package/assets/esri/core/workers/chunks/{7a05b18f655c1167ce0a.js → 2ef5237e4c876d6a4ee0.js} +1 -1
- package/assets/esri/core/workers/chunks/{776ae25a34352d3468bc.js → 3081ee6d8019494fc21e.js} +1 -1
- package/assets/esri/core/workers/chunks/37d6a264a3f1d8072aa0.js +1 -0
- package/assets/esri/core/workers/chunks/3df5500a85345577480a.js +1 -0
- package/assets/esri/core/workers/chunks/{ded8b64a46992c3ae693.js → 40a584cb952e94326e9e.js} +1 -1
- package/assets/esri/core/workers/chunks/{1ba0dfbe0958cdbd7c9f.js → 42fd2a7b22b03dacc6a7.js} +1 -1
- package/assets/esri/core/workers/chunks/444e5f214abce3d607cd.js +1 -0
- package/assets/esri/core/workers/chunks/{d201fbf3ceff946d2bd6.js → 44d5508042cacdfcac47.js} +1 -1
- package/assets/esri/core/workers/chunks/{09a63cc1987f8636c5b0.js → 4503b20ca6a80fb63d72.js} +1 -1
- package/assets/esri/core/workers/chunks/45367aa8e5c5d574de94.js +1 -0
- package/assets/esri/core/workers/chunks/45800373650fbc8262e6.js +1 -0
- package/assets/esri/core/workers/chunks/{6a7ab1ef9a37e87db5ae.js → 46a7da93a63663878583.js} +1 -1
- package/assets/esri/core/workers/chunks/{f43a50d4bd9636e68ae5.js → 46b4fb6a7fe4877b0efc.js} +63 -61
- package/assets/esri/core/workers/chunks/47d074136a7f8e551a9a.js +1 -0
- package/assets/esri/core/workers/chunks/{257910cca66dc5df465e.js → 4911ce62421a6c3320b0.js} +1 -1
- package/assets/esri/core/workers/chunks/4a1e23e021bac37a88ab.js +1 -0
- package/assets/esri/core/workers/chunks/4debf2d9c3465250ef7a.js +1 -0
- package/assets/esri/core/workers/chunks/4e8e322b469657ac22e2.js +1 -0
- package/assets/esri/core/workers/chunks/54b18559280a7d2a8d93.js +1 -0
- package/assets/esri/core/workers/chunks/567a65f4203f6e81f4b4.js +1 -0
- package/assets/esri/core/workers/chunks/5c7780f804d789cb37f5.js +1 -0
- package/assets/esri/core/workers/chunks/{ceb680688fe7e570a774.js → 608be1172a908e92b9f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f358116f79021ff9687.js → 612104dff305ff062dfa.js} +2 -2
- package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +1 -0
- package/assets/esri/core/workers/chunks/6400446b7615b97c3521.js +1 -0
- package/assets/esri/core/workers/chunks/6431480ba0fa8c8d487f.js +1 -0
- package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +1 -0
- package/assets/esri/core/workers/chunks/7449568eb2305bf2d650.js +1 -0
- package/assets/esri/core/workers/chunks/745a153d0cd34faa124e.js +1 -0
- package/assets/esri/core/workers/chunks/7572c2bc5062e66f6330.js +1 -0
- package/assets/esri/core/workers/chunks/78472a57c2ba146fec65.js +1 -0
- package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +1 -0
- package/assets/esri/core/workers/chunks/{56a24061589f4a968818.js → 814751e705c05099f864.js} +1 -1
- package/assets/esri/core/workers/chunks/8293600f94553afc8c38.js +1 -0
- package/assets/esri/core/workers/chunks/836bb3673ab30fc66f1e.js +1 -0
- package/assets/esri/core/workers/chunks/8487727f1197cf7dbf50.js +1 -0
- package/assets/esri/core/workers/chunks/{ceb112fe7aef354f8051.js → 88e54449261ef94e390d.js} +1 -1
- package/assets/esri/core/workers/chunks/8b0d5551978ab0aac0d1.js +1 -0
- package/assets/esri/core/workers/chunks/8d0c2de92770a1567536.js +1 -0
- package/assets/esri/core/workers/chunks/{c76c42c74eedd43263d3.js → 9dd1fc56eb1ea6eb705e.js} +1 -1
- package/assets/esri/core/workers/chunks/{86a051e9fe71aa356108.js → 9e3e442a9874ed23a043.js} +1 -1
- package/assets/esri/core/workers/chunks/a40b6d8b5c73e06e14d4.js +1 -0
- package/assets/esri/core/workers/chunks/aaba33611753c6aada68.js +1 -0
- package/assets/esri/core/workers/chunks/aeaaff7a4b1a99540f52.js +1 -0
- package/assets/esri/core/workers/chunks/{ecaac39dde7ec4213264.js → af75747b06d79446a855.js} +1 -1
- package/assets/esri/core/workers/chunks/b564ec4e03478f5659db.js +1 -0
- package/assets/esri/core/workers/chunks/bc0f54a2c15502b630ec.js +1 -0
- package/assets/esri/core/workers/chunks/c1c534e08fc21842670b.js +1 -0
- package/assets/esri/core/workers/chunks/{9ab25ee06041f907b9a2.js → c2c1f51a4668055c2838.js} +1 -1
- package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +1 -0
- package/assets/esri/core/workers/chunks/{a7985d20fa6e8d4878e7.js → d0f5bee9db1ad51ae687.js} +1 -1
- package/assets/esri/core/workers/chunks/dba280c370df13196711.js +1 -0
- package/assets/esri/core/workers/chunks/{19b9d393046a780e6c3f.js → de5ecb567bd69c613e9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{534186fc921a0ccf58dc.js → e1f5d00878f27e1d413e.js} +1 -1
- package/assets/esri/core/workers/chunks/e65dfa19f030ec298437.js +1 -0
- package/assets/esri/core/workers/chunks/e932951598499befabf5.js +1 -0
- package/assets/esri/core/workers/chunks/f1df76f098a3cc924832.js +1 -0
- package/assets/esri/core/workers/chunks/f1f90adae13b04898008.js +1 -0
- package/assets/esri/core/workers/chunks/f4f9d08b2df856e3b694.js +1 -0
- package/assets/esri/core/workers/chunks/fc44227c1756f65b95df.js +1 -0
- package/assets/esri/core/workers/chunks/{3b737dae6efed627406e.js → fc44d45598a7476bc606.js} +1 -1
- package/assets/esri/themes/base/_mixins.scss +2 -2
- package/assets/esri/themes/base/widgets/_Attribution.scss +1 -1
- package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +2 -2
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +5 -5
- package/assets/esri/themes/base/widgets/_Bookmarks.scss +1 -1
- package/assets/esri/themes/base/widgets/_BuildingLevelPicker.scss +2 -2
- package/assets/esri/themes/base/widgets/_BuildingPhasePicker.scss +5 -5
- package/assets/esri/themes/base/widgets/_CatalogLayerList.scss +1 -1
- package/assets/esri/themes/base/widgets/_Compass.scss +0 -2
- package/assets/esri/themes/base/widgets/_DirectionalPad.scss +4 -10
- package/assets/esri/themes/base/widgets/_Directions.scss +40 -40
- package/assets/esri/themes/base/widgets/_Editor.scss +7 -7
- package/assets/esri/themes/base/widgets/_Expand.scss +1 -1
- package/assets/esri/themes/base/widgets/_Feature.scss +1 -1
- package/assets/esri/themes/base/widgets/_FeatureForm.scss +6 -6
- package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationLayers.scss +1 -1
- package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationList.scss +1 -1
- package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +3 -3
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +27 -27
- package/assets/esri/themes/base/widgets/_FeatureTemplates.scss +1 -1
- package/assets/esri/themes/base/widgets/_Features.scss +5 -5
- package/assets/esri/themes/base/widgets/_FilterBuilder.scss +1 -1
- package/assets/esri/themes/base/widgets/_FilterCondition.scss +1 -1
- package/assets/esri/themes/base/widgets/_Grid.scss +18 -18
- package/assets/esri/themes/base/widgets/_GridControls.scss +11 -11
- package/assets/esri/themes/base/widgets/_LayerList.scss +1 -1
- package/assets/esri/themes/base/widgets/_Legend.scss +5 -5
- package/assets/esri/themes/base/widgets/_NavigationToggle.scss +4 -1
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +18 -19
- package/assets/esri/themes/base/widgets/_ResponsiveToolbar.scss +0 -2
- package/assets/esri/themes/base/widgets/_SearchResultRenderer.scss +1 -1
- package/assets/esri/themes/base/widgets/_SelectionList.scss +15 -15
- package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +2 -2
- package/assets/esri/themes/base/widgets/_ShadowCast.scss +11 -11
- package/assets/esri/themes/base/widgets/_Sketch.scss +1 -1
- package/assets/esri/themes/base/widgets/_Slice.scss +3 -3
- package/assets/esri/themes/base/widgets/_SnappingControls.scss +1 -1
- package/assets/esri/themes/base/widgets/_TimeSlider.scss +5 -5
- package/assets/esri/themes/base/widgets/_TimeZoneLabel.scss +5 -4
- package/assets/esri/themes/base/widgets/_Tooltip.scss +14 -17
- package/assets/esri/themes/base/widgets/_UtilityNetworkAssociations.scss +2 -2
- package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +1 -1
- package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +2 -2
- package/assets/esri/themes/base/widgets/_ValuePicker.scss +2 -2
- package/assets/esri/themes/base/widgets/_VideoPlayer.scss +5 -5
- package/assets/esri/themes/base/widgets/_Widget.scss +5 -1
- 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/AtmosphereCompositing.glsl.js +1 -1
- package/chunks/ChapmanAtmosphere.glsl.js +3 -3
- package/chunks/CloudsComposition.glsl.js +1 -1
- package/chunks/Component.glsl.js +41 -41
- package/chunks/DefaultMaterial.glsl.js +2 -2
- package/chunks/EdgeShader.glsl.js +9 -9
- package/chunks/Fog.glsl.js +5 -5
- package/chunks/GaussianSplat.glsl.js +2 -2
- package/chunks/GlobalIllumination.glsl.js +9 -9
- package/chunks/HUDMaterial.glsl.js +13 -13
- package/chunks/Haze.glsl.js +6 -6
- package/chunks/HazeCompositing.glsl.js +1 -1
- package/chunks/LaserlinePath.glsl.js +6 -6
- package/chunks/LineCallout.glsl.js +1 -1
- package/chunks/LineMarker.glsl.js +5 -5
- package/chunks/NavigationDepth.glsl.js +2 -2
- package/chunks/Path.glsl.js +1 -1
- package/chunks/Pattern.glsl.js +26 -26
- package/chunks/Precipitation.glsl.js +7 -7
- package/chunks/RealisticTree.glsl.js +2 -2
- package/chunks/RibbonLine.glsl.js +60 -60
- package/chunks/ShadowCastAccumulate.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +5 -5
- package/chunks/ShadowHighlightBuffer.glsl.js +1 -1
- package/chunks/SimpleAtmosphere.glsl.js +4 -4
- package/chunks/Terrain.glsl.js +29 -32
- package/chunks/Viewshed.glsl.js +2 -2
- package/chunks/Water.glsl.js +2 -2
- package/config.js +1 -1
- package/core/Loadable.js +1 -1
- package/geometry/HeightModelInfo.js +1 -1
- package/geometry/support/meshUtils.d.ts +1 -1
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.d.ts +1 -0
- package/layers/BaseElevationLayer.d.ts +2 -0
- package/layers/BaseTileLayer.d.ts +12 -9
- package/layers/CSVLayer.d.ts +0 -15
- package/layers/FeatureLayer.d.ts +2 -15
- package/layers/GeoJSONLayer.d.ts +0 -52
- package/layers/GeoRSSLayer.d.ts +0 -44
- package/layers/ParquetLayer.d.ts +92 -12
- package/layers/ParquetLayer.js +1 -1
- package/layers/SketchLayer.d.ts +0 -1
- package/layers/VectorTileLayer.d.ts +2 -12
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/mixins/PortalLayer.js +1 -1
- package/layers/mixins/RefreshableLayer.d.ts +1 -3
- package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/support/ParquetPortalItemData.d.ts +2 -0
- package/layers/support/ParquetPortalItemData.js +1 -1
- package/layers/support/PortalItemData.d.ts +21 -0
- package/layers/support/PortalItemData.js +1 -1
- package/layers/support/layersLoader.js +1 -1
- package/layers/support/parquetUtils.d.ts +1 -1
- package/layers/support/types.d.ts +1 -1
- package/package.json +2 -2
- package/popup/FeaturesModel.d.ts +1 -1
- package/popup/FeaturesModel.js +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/rest/print.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
- package/views/3d/interactive/editingTools/originGeometryVisualElementUtils.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DBufferGraphicLayer.js +2 -0
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DDrapedBufferGraphicLayer.js +2 -0
- package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayerBase.js +2 -0
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DStageObjectGraphicLayer.js +2 -0
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/graphics/LabelInfo.js +1 -1
- package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
- package/views/3d/layers/graphics/pointUtils.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +13 -13
- package/views/3d/webgl-engine/core/shaderLibrary/bindUniforms.js +2 -0
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/lastFrameUniforms.js +2 -0
- package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +29 -27
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +14 -14
- package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +8 -8
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/lightingUniforms.js +2 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/pbrGlobals.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +3 -3
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanRaymarching.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/SimpleAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +5 -5
- package/views/3d/webgl-engine/effects/haze/Haze.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserlinePath.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/raymarching/DistanceFalloff.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/BufferObject3D.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/affectsGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/bufferGeometryUtils.js +2 -0
- package/views/3d/webgl-engine/lib/edgeRendering/AdjustProjectedPosition.glsl.js +5 -5
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeUtil.glsl.js +11 -11
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/lineUniforms.js +2 -0
- package/views/DOMContainer.d.ts +27 -9
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.d.ts +6 -0
- package/views/VideoView.d.ts +27 -9
- package/views/View.d.ts +16 -7
- package/views/View.js +1 -1
- package/views/View2D.d.ts +1 -1
- package/views/interactive/snapping/SnappingManagerPool.js +1 -1
- package/views/interactive/snapping/SnappingOptions.d.ts +1 -1
- package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/layers/FeatureLikeLayerView.d.ts +1 -2
- package/views/layers/ParquetLayerView.d.ts +15 -0
- package/views/layers/ParquetLayerView.js +1 -1
- package/webdoc/support/saveUtils.js +1 -1
- package/webdoc/support/unsupportedErrors.js +1 -1
- package/widgets/Legend.d.ts +1 -0
- package/widgets/support/SnappingControls.d.ts +1 -1
- package/assets/esri/core/workers/chunks/05963f57cbe5a5249496.js +0 -1
- package/assets/esri/core/workers/chunks/06ab24a083c3229228dd.js +0 -1
- package/assets/esri/core/workers/chunks/122111703528381539cc.js +0 -1
- package/assets/esri/core/workers/chunks/15cc2c295682f48030f9.js +0 -1
- package/assets/esri/core/workers/chunks/17b76e0d401c7e396d10.js +0 -1
- package/assets/esri/core/workers/chunks/2164fcaced72b0fda31f.js +0 -1
- package/assets/esri/core/workers/chunks/25b0885d3bc190b28c04.js +0 -1
- package/assets/esri/core/workers/chunks/27da9ece2afaeec39f59.js +0 -1
- package/assets/esri/core/workers/chunks/2b6c74646ff475a6e302.js +0 -1
- package/assets/esri/core/workers/chunks/340621182db9e8edbec2.js +0 -1
- package/assets/esri/core/workers/chunks/347bf269c2b1583d2dca.js +0 -1
- package/assets/esri/core/workers/chunks/384ae10053d35940de73.js +0 -1
- package/assets/esri/core/workers/chunks/451d7d456df0f4466563.js +0 -1
- package/assets/esri/core/workers/chunks/4cddd217383b9333f32e.js +0 -1
- package/assets/esri/core/workers/chunks/4fa59f8ed3b7b6239548.js +0 -1
- package/assets/esri/core/workers/chunks/5a5d80c2519aa3ea8878.js +0 -1
- package/assets/esri/core/workers/chunks/5b434e8c98e7119d4a3b.js +0 -1
- package/assets/esri/core/workers/chunks/5e4d6c283c2fa28db022.js +0 -1
- package/assets/esri/core/workers/chunks/5ea8809b6519c05ad9f6.js +0 -1
- package/assets/esri/core/workers/chunks/604344e45c0f27497188.js +0 -1
- package/assets/esri/core/workers/chunks/64770e2cf41211b63fd2.js +0 -1
- package/assets/esri/core/workers/chunks/658b2642ab6880770e4e.js +0 -1
- package/assets/esri/core/workers/chunks/6ef647b7769d27529f9c.js +0 -1
- package/assets/esri/core/workers/chunks/8313c626596a76c7449d.js +0 -1
- package/assets/esri/core/workers/chunks/841f67baf6a1634ada48.js +0 -1
- package/assets/esri/core/workers/chunks/84e9258a57d8c365f361.js +0 -1
- package/assets/esri/core/workers/chunks/8730e7e6e0296f43f10b.js +0 -1
- package/assets/esri/core/workers/chunks/87b4e916b2668203a6b0.js +0 -1
- package/assets/esri/core/workers/chunks/8fcfd515ee1b18c902e5.js +0 -1
- package/assets/esri/core/workers/chunks/9001e9a1e81bce175ddd.js +0 -1
- package/assets/esri/core/workers/chunks/966d0832a3c1f03668a0.js +0 -1
- package/assets/esri/core/workers/chunks/97dbbedea9fe03bd1306.js +0 -1
- package/assets/esri/core/workers/chunks/9a28a66807a1e3557018.js +0 -1
- package/assets/esri/core/workers/chunks/9bf48a907f91ea004648.js +0 -1
- package/assets/esri/core/workers/chunks/9c0fd8baa00ee9733ba4.js +0 -1
- package/assets/esri/core/workers/chunks/9c7fa9d324fa0bf64d9c.js +0 -1
- package/assets/esri/core/workers/chunks/a20526996d01386ec3b7.js +0 -1
- package/assets/esri/core/workers/chunks/a7edf7541569fef77cb3.js +0 -1
- package/assets/esri/core/workers/chunks/b1008bdfca995ebf98ed.js +0 -1
- package/assets/esri/core/workers/chunks/bfd85e8d54062a590f0e.js +0 -1
- package/assets/esri/core/workers/chunks/c8ba0673d1b87216e619.js +0 -1
- package/assets/esri/core/workers/chunks/d4926545193414cf2f16.js +0 -1
- package/assets/esri/core/workers/chunks/da18d96b35af20e73b3b.js +0 -1
- package/assets/esri/core/workers/chunks/df0481bcc1613ee4b7af.js +0 -1
- package/assets/esri/core/workers/chunks/e1af43e2a8f2ef1059e3.js +0 -1
- package/assets/esri/core/workers/chunks/eaf6d587477399a83088.js +0 -1
- package/assets/esri/core/workers/chunks/ec28e18275d36e71b438.js +0 -1
- package/assets/esri/core/workers/chunks/f05de08e194a3f9b96f2.js +0 -1
- package/assets/esri/core/workers/chunks/f31b424a3667686af10c.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{set as e,transformMat4 as t,normalize as n,scale as r,add as i,dot as a,cross as o,subtract as s,copy as c}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{clone as l,fromValues as u,create as d}from"../../../../core/libs/gl-matrix-2/factories/vec3f32.js";import{clone as f,create as p,fromValues as m}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{newDoubleArray as h}from"../../../../geometry/support/DoubleArray.js";import{newFloatArray as g,floatArrayFrom as _}from"../../../../geometry/support/FloatArray.js";import{getContinuousIndexArray as v,getZeroIndexArray as y}from"../../../../geometry/support/Indices.js";import{create as b,fromPositionAndNormal as x,intersectRay as S}from"../../../../geometry/support/plane.js";import{wrap as C}from"../../../../geometry/support/ray.js";import{addOlidAttribute as w}from"../../layers/graphics/olidUtils.js";import{timeStampsToAttribute as T,numTimeStampValuesPerVertex as E}from"../../support/engineContent/line.js";import{Attribute as D}from"./Attribute.js";import{scale as O,length as k,normalize as A,add as j}from"./bufferVectorMath.js";import{Geometry as M}from"./Geometry.js";import{assert as N}from"./Util.js";import{getHUDMaterialBaseInstance as P}from"../materials/HUDMaterialBaseInstance.js";const F=[[-.5,-.5,.5],[.5,-.5,.5],[.5,.5,.5],[-.5,.5,.5],[-.5,-.5,-.5],[.5,-.5,-.5],[.5,.5,-.5],[-.5,.5,-.5]],I=[0,0,1,-1,0,0,1,0,0,0,-1,0,0,1,0,0,0,-1],L=[0,0,1,0,1,1,0,1],R=[0,1,2,2,3,0,4,0,3,3,7,4,1,5,6,6,2,1,1,0,4,4,5,1,3,2,6,6,7,3,5,4,7,7,6,5],z=Array(36);for(let e=0;e<6;e++)for(let t=0;t<6;t++)z[e*6+t]=e;const B=Array(36);for(let e=0;e<6;e++)B[e*6]=0,B[e*6+1]=1,B[e*6+2]=2,B[e*6+3]=2,B[e*6+4]=3,B[e*6+5]=0;function V(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(24);for(let e=0;e<8;e++)n[e*3]=F[e][0]*t[0],n[e*3+1]=F[e][1]*t[1],n[e*3+2]=F[e][2]*t[2];return new M(e,[[`position`,new D(n,R,3,!0)],[`normal`,new D(I,z,3)],[`uv0`,new D(L,B,2)]])}const H=[[-.5,0,-.5],[.5,0,-.5],[.5,0,.5],[-.5,0,.5],[0,-.5,0],[0,.5,0]],ee=[0,1,-1,1,1,0,0,1,1,-1,1,0,0,-1,-1,1,-1,0,0,-1,1,-1,-1,0],U=[5,1,0,5,2,1,5,3,2,5,0,3,4,0,1,4,1,2,4,2,3,4,3,0],te=[0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7];function ne(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(18);for(let e=0;e<6;e++)n[e*3]=H[e][0]*t[0],n[e*3+1]=H[e][1]*t[1],n[e*3+2]=H[e][2]*t[2];return new M(e,[[`position`,new D(n,U,3,!0)],[`normal`,new D(ee,te,3)]])}const W=u(-.5,0,-.5),G=u(.5,0,-.5),K=u(0,0,.5),q=u(0,.5,0),J=d(),Y=d(),X=d(),Z=d(),Q=d();s(J,W,q),s(Y,W,G),o(X,J,Y),n(X,X),s(J,G,q),s(Y,G,K),o(Z,J,Y),n(Z,Z),s(J,K,q),s(Y,K,W),o(Q,J,Y),n(Q,Q);const re=[W,G,K,q],ie=[0,-1,0,X[0],X[1],X[2],Z[0],Z[1],Z[2],Q[0],Q[1],Q[2]],ae=[0,1,2,3,1,0,3,2,1,3,0,2],oe=[0,0,0,1,1,1,2,2,2,3,3,3];function se(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(12);for(let e=0;e<4;e++)n[e*3]=re[e][0]*t[0],n[e*3+1]=re[e][1]*t[1],n[e*3+2]=re[e][2]*t[2];return new M(e,[[`position`,new D(n,ae,3,!0)],[`normal`,new D(ie,oe,3)]])}function ce(e,t,n,r,i={uv:!0}){let a=-Math.PI,o=Math.PI*2,s=-Math.PI/2,c=Math.PI,l=Math.max(3,Math.floor(n)),u=Math.max(2,Math.floor(r)),d=(l+1)*(u+1),f=g(d*3),p=g(d*3),m=g(d*2),h=[],_=0;for(let e=0;e<=u;e++){let n=[],r=e/u,i=s+r*c,d=Math.cos(i);for(let e=0;e<=l;e++){let s=e/l,c=a+s*o,u=Math.cos(c)*d,h=Math.sin(i),g=-Math.sin(c)*d;f[3*_]=u*t,f[3*_+1]=h*t,f[3*_+2]=g*t,p[3*_]=u,p[3*_+1]=h,p[3*_+2]=g,m[2*_]=s,m[2*_+1]=r,n.push(_),++_}h.push(n)}let v=[];for(let e=0;e<u;e++)for(let t=0;t<l;t++){let n=h[e][t],r=h[e][t+1],i=h[e+1][t+1],a=h[e+1][t];e===0?(v.push(n),v.push(i),v.push(a)):e===u-1?(v.push(n),v.push(r),v.push(i)):(v.push(n),v.push(r),v.push(i),v.push(i),v.push(a),v.push(n))}let b=[[`position`,new D(f,v,3,!0)],[`normal`,new D(p,v,3,!0)]];return i.uv&&b.push([`uv0`,new D(m,v,2,!0)]),i.offset&&(b[0][0]=`offset`,b.push([`position`,new D(Float64Array.from(i.offset),y(v.length),3,!0)])),new M(e,b)}function le(e,t,n,r){let i=ue(t,n,r);return new M(e,i)}function ue(e,t,n){let r=e,i,a;if(n)i=[0,-1,0,1,0,0,0,0,1,-1,0,0,0,0,-1,0,1,0],a=[0,1,2,0,2,3,0,3,4,0,4,1,1,5,2,2,5,3,3,5,4,4,5,1];else{let e=r*(1+Math.sqrt(5))/2;i=[-r,e,0,r,e,0,-r,-e,0,r,-e,0,0,-r,e,0,r,e,0,-r,-e,0,r,-e,e,0,-r,e,0,r,-e,0,-r,-e,0,r],a=[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1]}for(let t=0;t<i.length;t+=3)O(i,t,e/k(i,t));let o={};function s(t,n){t>n&&([t,n]=[n,t]);let r=t.toString()+`.`+n.toString();if(o[r])return o[r];let a=i.length;return i.length+=3,j(i,t*3,i,n*3,i,a),O(i,a,e/k(i,a)),a/=3,o[r]=a,a}for(let e=0;e<t;e++){let e=a.length,t=Array(e*4);for(let n=0;n<e;n+=3){let e=a[n],r=a[n+1],i=a[n+2],o=s(e,r),c=s(r,i),l=s(i,e),u=n*4;t[u]=e,t[u+1]=o,t[u+2]=l,t[u+3]=r,t[u+4]=c,t[u+5]=o,t[u+6]=i,t[u+7]=l,t[u+8]=c,t[u+9]=o,t[u+10]=c,t[u+11]=l}a=t,o={}}let c=_(i);for(let e=0;e<c.length;e+=3)A(c,e);return[[`position`,new D(_(i),a,3,!0)],[`normal`,new D(c,a,3,!0)]]}function de(e,{normal:t,position:n,color:r,rotation:i,size:a,centerOffset:o,groundDistance:s,uvi:c,featureAttribute:l,olidColor:u=null}={}){let d=n?f(n):p(),h=t?f(t):m(0,0,1),g=s==null?[1]:[s],_=y(1),v=[[`position`,new D(d,_,3,!0)],[`normal`,new D(h,_,3,!0)]],b=a!=null&&a.length===2?a:null;if(b&&v.push([`size`,new D(b,_,2)]),i!=null&&v.push([`rotation`,new D([i],_,1,!0)]),r){let e=[r[0],r[1],r[2],r.length>3?r[3]:255];v.push([`color`,new D(e,_,4,!0)])}if(c&&v.push([`uvi`,new D(c,_,c.length)]),o&&v.push([`centerOffset`,new D(o,_,3)]),v.push([`groundDistance`,new D(g,_,1)]),l){let e=[l[0],l[1],l[2],l[3]];v.push([`featureAttribute`,new D(e,_,4)])}return u!=null&&w(v,u,_),new M(e,v,null,void 0,P())}const fe=[[-1,-1,0],[1,-1,0],[1,1,0],[-1,1,0]];function pe(e,t=fe){let n=Array(12);for(let e=0;e<4;e++)for(let r=0;r<3;r++)n[e*3+r]=t[e][r];let r=[0,1,2,2,3,0],i=[0,0,1],a=[0,0,0,0,0,0],o=[[`position`,new D(n,r,3,!0)],[`normal`,new D(i,a,3,!0)],[`uv0`,new D([0,0,1,0,1,1,0,1],r,2,!0)],[`color`,new D([255,255,255,255],a,4,!0)]];return new M(e,o)}function me(e,t,n,r,i=!0,a=!0){let o=0,s=t,c=e,l=u(0,o,0),d=u(0,o+c,0),f=u(0,-1,0),p=u(0,1,0);r&&(o=c,d=u(0,0,0),l=u(0,o,0),f=u(0,1,0),p=u(0,-1,0));let m=[d,l],h=[f,p],_=n+2,v=Math.sqrt(c*c+s*s);if(r)for(let e=n-1;e>=0;e--){let t=2*Math.PI/n*e,r=u(Math.cos(t)*s,o,Math.sin(t)*s);m.push(r);let i=u(c*Math.cos(t)/v,-s/v,c*Math.sin(t)/v);h.push(i)}else for(let e=0;e<n;e++){let t=2*Math.PI/n*e,r=u(Math.cos(t)*s,o,Math.sin(t)*s);m.push(r);let i=u(c*Math.cos(t)/v,s/v,c*Math.sin(t)/v);h.push(i)}let y=[],b=[];if(i){for(let e=3;e<m.length;e++)y.push(1),y.push(e-1),y.push(e),b.push(0),b.push(0),b.push(0);y.push(m.length-1),y.push(2),y.push(1),b.push(0),b.push(0),b.push(0)}if(a){for(let e=3;e<m.length;e++)y.push(e),y.push(e-1),y.push(0),b.push(e),b.push(e-1),b.push(1);y.push(0),y.push(2),y.push(m.length-1),b.push(1),b.push(2),b.push(h.length-1)}let x=g(_*3);for(let e=0;e<_;e++)x[e*3]=m[e][0],x[e*3+1]=m[e][1],x[e*3+2]=m[e][2];let S=g(_*3);for(let e=0;e<_;e++)S[e*3]=h[e][0],S[e*3+1]=h[e][1],S[e*3+2]=h[e][2];return[[`position`,new D(x,y,3,!0)],[`normal`,new D(S,b,3,!0)]]}function he(e,t,n,r,i,a=!0,o=!0){return new M(e,me(t,n,r,i,a,o))}function ge(t,s,c,f,p,m,h){let _=p?l(p):u(1,0,0),v=m?l(m):u(0,0,0);h??=!0;let y=d();n(y,_);let b=d();r(b,y,Math.abs(s));let x=d();r(x,b,-.5),i(x,x,v);let S=u(0,1,0);Math.abs(1-a(y,S))<.2&&e(S,0,0,1);let C=d();o(C,y,S),n(C,C),o(S,C,y);let w=f*2+(h?2:0),T=f+(h?2:0),E=g(w*3),O=g(T*3),k=g(w*2),A=Array(f*3*(h?4:2)),j=Array(f*3*(h?4:2));h&&(E[(w-2)*3]=x[0],E[(w-2)*3+1]=x[1],E[(w-2)*3+2]=x[2],k[(w-2)*2]=0,k[(w-2)*2+1]=0,E[(w-1)*3]=E[(w-2)*3]+b[0],E[(w-1)*3+1]=E[(w-2)*3+1]+b[1],E[(w-1)*3+2]=E[(w-2)*3+2]+b[2],k[(w-1)*2]=1,k[(w-1)*2+1]=1,O[(T-2)*3]=-y[0],O[(T-2)*3+1]=-y[1],O[(T-2)*3+2]=-y[2],O[(T-1)*3]=y[0],O[(T-1)*3+1]=y[1],O[(T-1)*3+2]=y[2]);let N=(e,t,n)=>{A[e]=t,j[e]=n},P=0,F=d(),I=d();for(let e=0;e<f;e++){let t=2*Math.PI/f*e;r(F,S,Math.sin(t)),r(I,C,Math.cos(t)),i(F,F,I),O[e*3]=F[0],O[e*3+1]=F[1],O[e*3+2]=F[2],r(F,F,c),i(F,F,x),E[e*3]=F[0],E[e*3+1]=F[1],E[e*3+2]=F[2],k[e*2]=e/f,k[e*2+1]=0,E[(e+f)*3]=E[e*3]+b[0],E[(e+f)*3+1]=E[e*3+1]+b[1],E[(e+f)*3+2]=E[e*3+2]+b[2],k[(e+f)*2]=e/f,k[e*2+1]=1;let n=(e+1)%f;N(P++,e,e),N(P++,e+f,e),N(P++,n,n),N(P++,n,n),N(P++,e+f,e),N(P++,n+f,n)}if(h){for(let e=0;e<f;e++){let t=(e+1)%f;N(P++,w-2,T-2),N(P++,e,T-2),N(P++,t,T-2)}for(let e=0;e<f;e++){let t=(e+1)%f;N(P++,e+f,T-1),N(P++,w-1,T-1),N(P++,t+f,T-1)}}let L=[[`position`,new D(E,A,3,!0)],[`normal`,new D(O,j,3,!0)],[`uv0`,new D(k,A,2,!0)]];return new M(t,L)}function _e(e,t,n,r,i,a){r||=10,i??=!0,N(t.length>1);let o=[[0,0,0]],s=[],c=[];for(let e=0;e<r;e++){s.push([0,-e-1,-((e+1)%r)-1]);let t=e/r*2*Math.PI;c.push([Math.cos(t)*n,Math.sin(t)*n])}return ve(e,c,t,o,s,i,a)}function ve(t,a,l,d,f,m,h=u(0,0,0)){let _=a.length,v=g(l.length*_*3+(d.length*6||0)),y=g(l.length*_*3+(d?6:0)),w=[],T=[],E=0,O=0,k=p(),A=p(),j=p(),N=p(),P=p(),F=p(),I=p(),L=p(),R=p(),z=p(),B=p(),V=p(),H=p(),ee=b();e(R,0,1,0),s(A,l[1],l[0]),n(A,A),m?(i(L,l[0],h),n(j,L)):e(j,0,0,1),we(A,j,R,R,P,j,Te),c(N,j),c(V,P);for(let e=0;e<d.length;e++)r(F,P,d[e][0]),r(L,j,d[e][2]),i(F,F,L),i(F,F,l[0]),v[E++]=F[0],v[E++]=F[1],v[E++]=F[2];y[O++]=-A[0],y[O++]=-A[1],y[O++]=-A[2];for(let e=0;e<f.length;e++)w.push(f[e][0]>0?f[e][0]:-f[e][0]-1+d.length),w.push(f[e][1]>0?f[e][1]:-f[e][1]-1+d.length),w.push(f[e][2]>0?f[e][2]:-f[e][2]-1+d.length),T.push(0),T.push(0),T.push(0);let U=d.length,te=d.length-1;for(let e=0;e<l.length;e++){let t=!1;e>0&&(c(k,A),e<l.length-1?(s(A,l[e+1],l[e]),n(A,A)):t=!0,i(z,k,A),n(z,z),i(B,l[e-1],N),x(l[e],z,ee),S(ee,C(B,k),L)?(s(L,L,l[e]),n(j,L),o(P,z,j),n(P,P)):we(z,N,V,R,P,j,Te),c(N,j),c(V,P)),m&&(i(L,l[e],h),n(H,L));for(let o=0;o<_;o++)if(r(F,P,a[o][0]),r(L,j,a[o][1]),i(F,F,L),n(I,F),y[O++]=I[0],y[O++]=I[1],y[O++]=I[2],i(F,F,l[e]),v[E++]=F[0],v[E++]=F[1],v[E++]=F[2],!t){let e=(o+1)%_;w.push(U+o),w.push(U+_+o),w.push(U+e),w.push(U+e),w.push(U+_+o),w.push(U+_+e);for(let e=0;e<6;e++){let t=w.length-6;T.push(w[t+e]-te)}}U+=_}let ne=l[l.length-1];for(let e=0;e<d.length;e++)r(F,P,d[e][0]),r(L,j,d[e][1]),i(F,F,L),i(F,F,ne),v[E++]=F[0],v[E++]=F[1],v[E++]=F[2];let W=O/3;y[O++]=A[0],y[O++]=A[1],y[O++]=A[2];let G=U-_;for(let e=0;e<f.length;e++)w.push(f[e][0]>=0?U+f[e][0]:-f[e][0]-1+G),w.push(f[e][2]>=0?U+f[e][2]:-f[e][2]-1+G),w.push(f[e][1]>=0?U+f[e][1]:-f[e][1]-1+G),T.push(W),T.push(W),T.push(W);let K=[[`position`,new D(v,w,3,!0)],[`normal`,new D(y,T,3,!0)]];return new M(t,K)}function ye(e,t,n,r,i){let a=h(t.length*3),o=Array(2*(t.length-1)),s=0,c=0;for(let e=0;e<t.length;e++){for(let n=0;n<3;n++)a[s++]=t[e][n];e>0&&(o[c++]=e-1,o[c++]=e)}let l=[[`position`,new D(a,o,3,!0)]];if(n?.length===t.length&&n[0].length===3){let e=g(n.length*3),r=0;for(let i=0;i<t.length;i++)for(let t=0;t<3;t++)e[r++]=n[i][t];l.push([`normal`,new D(e,o,3,!0)])}if(r&&l.push([`color`,new D(r,v(r.length/4),4)]),i?.length===t.length){let e=T(i,1);l.push([`timeStamps`,new D(e,o,E,!0)])}return new M(e,l,null)}function be(e,t,n,r,i,a=0){let o=Array(18),s=[[-n,a,i/2],[r,a,i/2],[0,t+a,i/2],[-n,a,-i/2],[r,a,-i/2],[0,t+a,-i/2]],c=[0,1,2,3,0,2,2,5,3,1,4,5,5,2,1,1,0,3,3,4,1,4,3,5];for(let e=0;e<6;e++)o[e*3]=s[e][0],o[e*3+1]=s[e][1],o[e*3+2]=s[e][2];return new M(e,[[`position`,new D(o,c,3,!0)]])}function xe(n,r){let i=n.getMutableAttribute(`position`).data;for(let n=0;n<i.length;n+=3){let a=i[n],o=i[n+1],s=i[n+2];e($,a,o,s),t($,$,r),i[n]=$[0],i[n+1]=$[1],i[n+2]=$[2]}}function Se(e,t=e){let n=e.attributes,r=n.get(`position`).data,i=n.get(`normal`).data;if(i){let e=t.getMutableAttribute(`normal`).data;for(let t=0;t<i.length;t+=3){let n=i[t+1];e[t+1]=-i[t+2],e[t+2]=n}}if(r){let e=t.getMutableAttribute(`position`).data;for(let t=0;t<r.length;t+=3){let n=r[t+1];e[t+1]=-r[t+2],e[t+2]=n}}}function Ce(e,t,r,i,s){return Math.abs(a(t,e))>s?!1:(o(r,e,t),n(r,r),o(i,r,e),n(i,i),!0)}function we(e,t,n,r,i,a,o){return Ce(e,t,i,a,o)||Ce(e,n,i,a,o)||Ce(e,r,i,a,o)}const Te=.99619469809,$=p();export{Se as cgToGIS,V as createBoxGeometry,he as createConeGeometry,me as createConeGeometryData,ge as createCylinderGeometry,ne as createDiamondGeometry,be as createExtrudedTriangle,ve as createPathExtrusionGeometry,de as createPointGeometry,ue as createPolySphereData,le as createPolySphereGeometry,ye as createPolylineGeometry,ce as createSphereGeometry,pe as createSquareGeometry,se as createTetrahedronGeometry,_e as createTubeGeometry,we as makeOrthoBasisDirUpFallback,xe as transformInPlace};
|
|
2
|
+
import{set as e,transformMat4 as t,normalize as n,scale as r,add as i,dot as a,cross as o,subtract as s,copy as c}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{clone as l,fromValues as u,create as d}from"../../../../core/libs/gl-matrix-2/factories/vec3f32.js";import{clone as f,create as p,fromValues as m,ZEROS as h,UNIT_Z as g}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{newDoubleArray as _}from"../../../../geometry/support/DoubleArray.js";import{newFloatArray as v,floatArrayFrom as y}from"../../../../geometry/support/FloatArray.js";import{getContinuousIndexArray as b,getZeroIndexArray as x}from"../../../../geometry/support/Indices.js";import{create as S,fromPositionAndNormal as C,intersectRay as w}from"../../../../geometry/support/plane.js";import{wrap as T}from"../../../../geometry/support/ray.js";import{addOlidAttribute as E}from"../../layers/graphics/olidUtils.js";import{timeStampsToAttribute as D,numTimeStampValuesPerVertex as O}from"../../support/engineContent/line.js";import{Attribute as k}from"./Attribute.js";import{BufferGeometry as A}from"./BufferGeometry.js";import{Buffers as j}from"./Buffers.js";import{scale as M,length as N,normalize as P,add as F}from"./bufferVectorMath.js";import{Geometry as I}from"./Geometry.js";import{assert as L}from"./Util.js";import{getHUDMaterialBaseInstance as R,getHUDMaterialBufferBaseInstance as z}from"../materials/HUDMaterialBaseInstance.js";import{getInstanceLayout as ee}from"../shaders/HUDMaterialTechnique.js";const B=[[-.5,-.5,.5],[.5,-.5,.5],[.5,.5,.5],[-.5,.5,.5],[-.5,-.5,-.5],[.5,-.5,-.5],[.5,.5,-.5],[-.5,.5,-.5]],te=[0,0,1,-1,0,0,1,0,0,0,-1,0,0,1,0,0,0,-1],ne=[0,0,1,0,1,1,0,1],V=[0,1,2,2,3,0,4,0,3,3,7,4,1,5,6,6,2,1,1,0,4,4,5,1,3,2,6,6,7,3,5,4,7,7,6,5],re=Array(36);for(let e=0;e<6;e++)for(let t=0;t<6;t++)re[e*6+t]=e;const H=Array(36);for(let e=0;e<6;e++)H[e*6]=0,H[e*6+1]=1,H[e*6+2]=2,H[e*6+3]=2,H[e*6+4]=3,H[e*6+5]=0;function U(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(24);for(let e=0;e<8;e++)n[e*3]=B[e][0]*t[0],n[e*3+1]=B[e][1]*t[1],n[e*3+2]=B[e][2]*t[2];return new I(e,[[`position`,new k(n,V,3,!0)],[`normal`,new k(te,re,3)],[`uv0`,new k(ne,H,2)]])}const W=[[-.5,0,-.5],[.5,0,-.5],[.5,0,.5],[-.5,0,.5],[0,-.5,0],[0,.5,0]],ie=[0,1,-1,1,1,0,0,1,1,-1,1,0,0,-1,-1,1,-1,0,0,-1,1,-1,-1,0],ae=[5,1,0,5,2,1,5,3,2,5,0,3,4,0,1,4,1,2,4,2,3,4,3,0],oe=[0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7];function se(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(18);for(let e=0;e<6;e++)n[e*3]=W[e][0]*t[0],n[e*3+1]=W[e][1]*t[1],n[e*3+2]=W[e][2]*t[2];return new I(e,[[`position`,new k(n,ae,3,!0)],[`normal`,new k(ie,oe,3)]])}const G=u(-.5,0,-.5),K=u(.5,0,-.5),q=u(0,0,.5),ce=u(0,.5,0),J=d(),Y=d(),X=d(),Z=d(),Q=d();s(J,G,ce),s(Y,G,K),o(X,J,Y),n(X,X),s(J,K,ce),s(Y,K,q),o(Z,J,Y),n(Z,Z),s(J,q,ce),s(Y,q,G),o(Q,J,Y),n(Q,Q);const le=[G,K,q,ce],ue=[0,-1,0,X[0],X[1],X[2],Z[0],Z[1],Z[2],Q[0],Q[1],Q[2]],de=[0,1,2,3,1,0,3,2,1,3,0,2],fe=[0,0,0,1,1,1,2,2,2,3,3,3];function pe(e,t){Array.isArray(t)||(t=[t,t,t]);let n=Array(12);for(let e=0;e<4;e++)n[e*3]=le[e][0]*t[0],n[e*3+1]=le[e][1]*t[1],n[e*3+2]=le[e][2]*t[2];return new I(e,[[`position`,new k(n,de,3,!0)],[`normal`,new k(ue,fe,3)]])}function me(e,t,n,r,i={uv:!0}){let a=-Math.PI,o=Math.PI*2,s=-Math.PI/2,c=Math.PI,l=Math.max(3,Math.floor(n)),u=Math.max(2,Math.floor(r)),d=(l+1)*(u+1),f=v(d*3),p=v(d*3),m=v(d*2),h=[],g=0;for(let e=0;e<=u;e++){let n=[],r=e/u,i=s+r*c,d=Math.cos(i);for(let e=0;e<=l;e++){let s=e/l,c=a+s*o,u=Math.cos(c)*d,h=Math.sin(i),_=-Math.sin(c)*d;f[3*g]=u*t,f[3*g+1]=h*t,f[3*g+2]=_*t,p[3*g]=u,p[3*g+1]=h,p[3*g+2]=_,m[2*g]=s,m[2*g+1]=r,n.push(g),++g}h.push(n)}let _=[];for(let e=0;e<u;e++)for(let t=0;t<l;t++){let n=h[e][t],r=h[e][t+1],i=h[e+1][t+1],a=h[e+1][t];e===0?(_.push(n),_.push(i),_.push(a)):e===u-1?(_.push(n),_.push(r),_.push(i)):(_.push(n),_.push(r),_.push(i),_.push(i),_.push(a),_.push(n))}let y=[[`position`,new k(f,_,3,!0)],[`normal`,new k(p,_,3,!0)]];return i.uv&&y.push([`uv0`,new k(m,_,2,!0)]),i.offset&&(y[0][0]=`offset`,y.push([`position`,new k(Float64Array.from(i.offset),x(_.length),3,!0)])),new I(e,y)}function he(e,t,n,r){let i=ge(t,n,r);return new I(e,i)}function ge(e,t,n){let r=e,i,a;if(n)i=[0,-1,0,1,0,0,0,0,1,-1,0,0,0,0,-1,0,1,0],a=[0,1,2,0,2,3,0,3,4,0,4,1,1,5,2,2,5,3,3,5,4,4,5,1];else{let e=r*(1+Math.sqrt(5))/2;i=[-r,e,0,r,e,0,-r,-e,0,r,-e,0,0,-r,e,0,r,e,0,-r,-e,0,r,-e,e,0,-r,e,0,r,-e,0,-r,-e,0,r],a=[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1]}for(let t=0;t<i.length;t+=3)M(i,t,e/N(i,t));let o={};function s(t,n){t>n&&([t,n]=[n,t]);let r=t.toString()+`.`+n.toString();if(o[r])return o[r];let a=i.length;return i.length+=3,F(i,t*3,i,n*3,i,a),M(i,a,e/N(i,a)),a/=3,o[r]=a,a}for(let e=0;e<t;e++){let e=a.length,t=Array(e*4);for(let n=0;n<e;n+=3){let e=a[n],r=a[n+1],i=a[n+2],o=s(e,r),c=s(r,i),l=s(i,e),u=n*4;t[u]=e,t[u+1]=o,t[u+2]=l,t[u+3]=r,t[u+4]=c,t[u+5]=o,t[u+6]=i,t[u+7]=l,t[u+8]=c,t[u+9]=o,t[u+10]=c,t[u+11]=l}a=t,o={}}let c=y(i);for(let e=0;e<c.length;e+=3)P(c,e);return[[`position`,new k(y(i),a,3,!0)],[`normal`,new k(c,a,3,!0)]]}function _e(e,{normal:t,position:n,color:r,rotation:i,size:a,centerOffset:o,groundDistance:s,uvi:c,featureAttribute:l,olidColor:u=null}={}){let d=n?f(n):p(),h=t?f(t):m(0,0,1),g=s==null?[1]:[s],_=x(1),v=[[`position`,new k(d,_,3,!0)],[`normal`,new k(h,_,3,!0)]],y=a!=null&&a.length===2?a:null;if(y&&v.push([`size`,new k(y,_,2)]),i!=null&&v.push([`rotation`,new k([i],_,1,!0)]),r){let e=[r[0],r[1],r[2],r.length>3?r[3]:255];v.push([`color`,new k(e,_,4,!0)])}if(c&&v.push([`uvi`,new k(c,_,c.length)]),o&&v.push([`centerOffset`,new k(o,_,3)]),v.push([`groundDistance`,new k(g,_,1)]),l){let e=[l[0],l[1],l[2],l[3]];v.push([`featureAttribute`,new k(e,_,4)])}return u!=null&&E(v,u,_),new I(e,v,null,void 0,R())}function ve(e,t,{position:n,normal:r,groundDistance:i,size:a,rotation:o,color:c,uvi:l,centerOffset:u,featureAttribute:d,olidColor:f}={}){let p=ee(e.parameters).createBuffer(1);return s($,n??h,t.vec3),p.position.setVec(0,$),p.normal.setVec(0,r??g),p.groundDistance.set(0,i??1),a!=null&&p.size?.setVec(0,a),o!=null&&p.rotation?.set(0,o),c!=null&&p.color?.setVec(0,c),l!=null&&p.uvi?.setVec(0,l),u!=null&&p.centerOffset?.setVec(0,u),d!=null&&p.featureAttribute?.setVec(0,d),f!=null&&p.olidColor?.setVec(0,f),new A(e,new j(p),t,null,z())}const ye=[[-1,-1,0],[1,-1,0],[1,1,0],[-1,1,0]];function be(e,t=ye){let n=Array(12);for(let e=0;e<4;e++)for(let r=0;r<3;r++)n[e*3+r]=t[e][r];let r=[0,1,2,2,3,0],i=[0,0,1],a=[0,0,0,0,0,0],o=[[`position`,new k(n,r,3,!0)],[`normal`,new k(i,a,3,!0)],[`uv0`,new k([0,0,1,0,1,1,0,1],r,2,!0)],[`color`,new k([255,255,255,255],a,4,!0)]];return new I(e,o)}function xe(e,t,n,r,i=!0,a=!0){let o=0,s=t,c=e,l=u(0,o,0),d=u(0,o+c,0),f=u(0,-1,0),p=u(0,1,0);r&&(o=c,d=u(0,0,0),l=u(0,o,0),f=u(0,1,0),p=u(0,-1,0));let m=[d,l],h=[f,p],g=n+2,_=Math.sqrt(c*c+s*s);if(r)for(let e=n-1;e>=0;e--){let t=2*Math.PI/n*e,r=u(Math.cos(t)*s,o,Math.sin(t)*s);m.push(r);let i=u(c*Math.cos(t)/_,-s/_,c*Math.sin(t)/_);h.push(i)}else for(let e=0;e<n;e++){let t=2*Math.PI/n*e,r=u(Math.cos(t)*s,o,Math.sin(t)*s);m.push(r);let i=u(c*Math.cos(t)/_,s/_,c*Math.sin(t)/_);h.push(i)}let y=[],b=[];if(i){for(let e=3;e<m.length;e++)y.push(1),y.push(e-1),y.push(e),b.push(0),b.push(0),b.push(0);y.push(m.length-1),y.push(2),y.push(1),b.push(0),b.push(0),b.push(0)}if(a){for(let e=3;e<m.length;e++)y.push(e),y.push(e-1),y.push(0),b.push(e),b.push(e-1),b.push(1);y.push(0),y.push(2),y.push(m.length-1),b.push(1),b.push(2),b.push(h.length-1)}let x=v(g*3);for(let e=0;e<g;e++)x[e*3]=m[e][0],x[e*3+1]=m[e][1],x[e*3+2]=m[e][2];let S=v(g*3);for(let e=0;e<g;e++)S[e*3]=h[e][0],S[e*3+1]=h[e][1],S[e*3+2]=h[e][2];return[[`position`,new k(x,y,3,!0)],[`normal`,new k(S,b,3,!0)]]}function Se(e,t,n,r,i,a=!0,o=!0){return new I(e,xe(t,n,r,i,a,o))}function Ce(t,s,c,f,p,m,h){let g=p?l(p):u(1,0,0),_=m?l(m):u(0,0,0);h??=!0;let y=d();n(y,g);let b=d();r(b,y,Math.abs(s));let x=d();r(x,b,-.5),i(x,x,_);let S=u(0,1,0);Math.abs(1-a(y,S))<.2&&e(S,0,0,1);let C=d();o(C,y,S),n(C,C),o(S,C,y);let w=f*2+(h?2:0),T=f+(h?2:0),E=v(w*3),D=v(T*3),O=v(w*2),A=Array(f*3*(h?4:2)),j=Array(f*3*(h?4:2));h&&(E[(w-2)*3]=x[0],E[(w-2)*3+1]=x[1],E[(w-2)*3+2]=x[2],O[(w-2)*2]=0,O[(w-2)*2+1]=0,E[(w-1)*3]=E[(w-2)*3]+b[0],E[(w-1)*3+1]=E[(w-2)*3+1]+b[1],E[(w-1)*3+2]=E[(w-2)*3+2]+b[2],O[(w-1)*2]=1,O[(w-1)*2+1]=1,D[(T-2)*3]=-y[0],D[(T-2)*3+1]=-y[1],D[(T-2)*3+2]=-y[2],D[(T-1)*3]=y[0],D[(T-1)*3+1]=y[1],D[(T-1)*3+2]=y[2]);let M=(e,t,n)=>{A[e]=t,j[e]=n},N=0,P=d(),F=d();for(let e=0;e<f;e++){let t=2*Math.PI/f*e;r(P,S,Math.sin(t)),r(F,C,Math.cos(t)),i(P,P,F),D[e*3]=P[0],D[e*3+1]=P[1],D[e*3+2]=P[2],r(P,P,c),i(P,P,x),E[e*3]=P[0],E[e*3+1]=P[1],E[e*3+2]=P[2],O[e*2]=e/f,O[e*2+1]=0,E[(e+f)*3]=E[e*3]+b[0],E[(e+f)*3+1]=E[e*3+1]+b[1],E[(e+f)*3+2]=E[e*3+2]+b[2],O[(e+f)*2]=e/f,O[e*2+1]=1;let n=(e+1)%f;M(N++,e,e),M(N++,e+f,e),M(N++,n,n),M(N++,n,n),M(N++,e+f,e),M(N++,n+f,n)}if(h){for(let e=0;e<f;e++){let t=(e+1)%f;M(N++,w-2,T-2),M(N++,e,T-2),M(N++,t,T-2)}for(let e=0;e<f;e++){let t=(e+1)%f;M(N++,e+f,T-1),M(N++,w-1,T-1),M(N++,t+f,T-1)}}let L=[[`position`,new k(E,A,3,!0)],[`normal`,new k(D,j,3,!0)],[`uv0`,new k(O,A,2,!0)]];return new I(t,L)}function we(e,t,n,r,i,a){r||=10,i??=!0,L(t.length>1);let o=[[0,0,0]],s=[],c=[];for(let e=0;e<r;e++){s.push([0,-e-1,-((e+1)%r)-1]);let t=e/r*2*Math.PI;c.push([Math.cos(t)*n,Math.sin(t)*n])}return Te(e,c,t,o,s,i,a)}function Te(t,a,l,d,f,m,h=u(0,0,0)){let g=a.length,_=v(l.length*g*3+(d.length*6||0)),y=v(l.length*g*3+(d?6:0)),b=[],x=[],E=0,D=0,O=p(),A=p(),j=p(),M=p(),N=p(),P=p(),F=p(),L=p(),R=p(),z=p(),ee=p(),B=p(),te=p(),ne=S();e(R,0,1,0),s(A,l[1],l[0]),n(A,A),m?(i(L,l[0],h),n(j,L)):e(j,0,0,1),je(A,j,R,R,N,j,Me),c(M,j),c(B,N);for(let e=0;e<d.length;e++)r(P,N,d[e][0]),r(L,j,d[e][2]),i(P,P,L),i(P,P,l[0]),_[E++]=P[0],_[E++]=P[1],_[E++]=P[2];y[D++]=-A[0],y[D++]=-A[1],y[D++]=-A[2];for(let e=0;e<f.length;e++)b.push(f[e][0]>0?f[e][0]:-f[e][0]-1+d.length),b.push(f[e][1]>0?f[e][1]:-f[e][1]-1+d.length),b.push(f[e][2]>0?f[e][2]:-f[e][2]-1+d.length),x.push(0),x.push(0),x.push(0);let V=d.length,re=d.length-1;for(let e=0;e<l.length;e++){let t=!1;e>0&&(c(O,A),e<l.length-1?(s(A,l[e+1],l[e]),n(A,A)):t=!0,i(z,O,A),n(z,z),i(ee,l[e-1],M),C(l[e],z,ne),w(ne,T(ee,O),L)?(s(L,L,l[e]),n(j,L),o(N,z,j),n(N,N)):je(z,M,B,R,N,j,Me),c(M,j),c(B,N)),m&&(i(L,l[e],h),n(te,L));for(let o=0;o<g;o++)if(r(P,N,a[o][0]),r(L,j,a[o][1]),i(P,P,L),n(F,P),y[D++]=F[0],y[D++]=F[1],y[D++]=F[2],i(P,P,l[e]),_[E++]=P[0],_[E++]=P[1],_[E++]=P[2],!t){let e=(o+1)%g;b.push(V+o),b.push(V+g+o),b.push(V+e),b.push(V+e),b.push(V+g+o),b.push(V+g+e);for(let e=0;e<6;e++){let t=b.length-6;x.push(b[t+e]-re)}}V+=g}let H=l[l.length-1];for(let e=0;e<d.length;e++)r(P,N,d[e][0]),r(L,j,d[e][1]),i(P,P,L),i(P,P,H),_[E++]=P[0],_[E++]=P[1],_[E++]=P[2];let U=D/3;y[D++]=A[0],y[D++]=A[1],y[D++]=A[2];let W=V-g;for(let e=0;e<f.length;e++)b.push(f[e][0]>=0?V+f[e][0]:-f[e][0]-1+W),b.push(f[e][2]>=0?V+f[e][2]:-f[e][2]-1+W),b.push(f[e][1]>=0?V+f[e][1]:-f[e][1]-1+W),x.push(U),x.push(U),x.push(U);let ie=[[`position`,new k(_,b,3,!0)],[`normal`,new k(y,x,3,!0)]];return new I(t,ie)}function Ee(e,t,n,r,i){let a=_(t.length*3),o=Array(2*(t.length-1)),s=0,c=0;for(let e=0;e<t.length;e++){for(let n=0;n<3;n++)a[s++]=t[e][n];e>0&&(o[c++]=e-1,o[c++]=e)}let l=[[`position`,new k(a,o,3,!0)]];if(n?.length===t.length&&n[0].length===3){let e=v(n.length*3),r=0;for(let i=0;i<t.length;i++)for(let t=0;t<3;t++)e[r++]=n[i][t];l.push([`normal`,new k(e,o,3,!0)])}if(r&&l.push([`color`,new k(r,b(r.length/4),4)]),i?.length===t.length){let e=D(i,1);l.push([`timeStamps`,new k(e,o,O,!0)])}return new I(e,l,null)}function De(e,t,n,r,i,a=0){let o=Array(18),s=[[-n,a,i/2],[r,a,i/2],[0,t+a,i/2],[-n,a,-i/2],[r,a,-i/2],[0,t+a,-i/2]],c=[0,1,2,3,0,2,2,5,3,1,4,5,5,2,1,1,0,3,3,4,1,4,3,5];for(let e=0;e<6;e++)o[e*3]=s[e][0],o[e*3+1]=s[e][1],o[e*3+2]=s[e][2];return new I(e,[[`position`,new k(o,c,3,!0)]])}function Oe(n,r){let i=n.getMutableAttribute(`position`).data;for(let n=0;n<i.length;n+=3){let a=i[n],o=i[n+1],s=i[n+2];e($,a,o,s),t($,$,r),i[n]=$[0],i[n+1]=$[1],i[n+2]=$[2]}}function ke(e,t=e){let n=e.attributes,r=n.get(`position`).data,i=n.get(`normal`).data;if(i){let e=t.getMutableAttribute(`normal`).data;for(let t=0;t<i.length;t+=3){let n=i[t+1];e[t+1]=-i[t+2],e[t+2]=n}}if(r){let e=t.getMutableAttribute(`position`).data;for(let t=0;t<r.length;t+=3){let n=r[t+1];e[t+1]=-r[t+2],e[t+2]=n}}}function Ae(e,t,r,i,s){return Math.abs(a(t,e))>s?!1:(o(r,e,t),n(r,r),o(i,r,e),n(i,i),!0)}function je(e,t,n,r,i,a,o){return Ae(e,t,i,a,o)||Ae(e,n,i,a,o)||Ae(e,r,i,a,o)}const Me=.99619469809,$=p();export{ke as cgToGIS,U as createBoxGeometry,Se as createConeGeometry,xe as createConeGeometryData,Ce as createCylinderGeometry,se as createDiamondGeometry,De as createExtrudedTriangle,Te as createPathExtrusionGeometry,ve as createPointBufferGeometry,_e as createPointGeometry,ge as createPolySphereData,he as createPolySphereGeometry,Ee as createPolylineGeometry,me as createSphereGeometry,be as createSquareGeometry,pe as createTetrahedronGeometry,we as createTubeGeometry,je as makeOrthoBasisDirUpFallback,Oe as transformInPlace};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
function e(e){return t.has(e)}const t=new Set(`position
|
|
2
|
+
function e(e){return t.has(e)}const t=new Set([`position`,`position`]);export{e as affectsGeometry};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{BufferViewVec3f as e,BufferViewFloat as t}from"../../../../geometry/support/buffer/BufferView.js";function n(e,t,n,r,...i){let a=t(n,r,...i);return a&&e.geometryVertexAttributeUpdated(n,r),a}function r(e,n,r,i){let a=e.buffers.vertex.getField(n,t);return a==null||a.get(r)===Math.fround(i)?!1:(e.getMutableVertexField(n,t).set(r,i),!0)}function i(t,n,r,i){let a=t.buffers.vertex.getField(n,e);return a==null||a.get(r,0)===Math.fround(i[0])&&a.get(r,1)===Math.fround(i[1])&&a.get(r,2)===Math.fround(i[2])?!1:(t.getMutableVertexField(n,e).setVec(r,i),!0)}export{n as updateObjectVertexField,r as updateVertexFieldFloat,i as updateVertexFieldVec3f};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{fromValues as e}from"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{projMatrix as t}from"../../core/shaderLibrary/util/cameraUniforms.js";import{IsNaN as n}from"../../core/shaderLibrary/util/IsNaN.glsl.js";import{Float2BindUniform as r}from"../../core/shaderModules/Float2BindUniform.js";import{glsl as i}from"../../core/shaderModules/glsl.js";import{Matrix3PassUniform as a}from"../../core/shaderModules/Matrix3PassUniform.js";
|
|
2
|
+
import{fromValues as e}from"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{projMatrix as t}from"../../core/shaderLibrary/util/cameraUniforms.js";import{IsNaN as n}from"../../core/shaderLibrary/util/IsNaN.glsl.js";import{Float2BindUniform as r}from"../../core/shaderModules/Float2BindUniform.js";import{glsl as i}from"../../core/shaderModules/glsl.js";import{Matrix3PassUniform as a}from"../../core/shaderModules/Matrix3PassUniform.js";const o=e(.5,-4e-4);function s(e,s){let c=e.vertex;c.include(n),c.constants.add(`depthBias`,`vec2`,o),c.uniforms.add(new r(`inverseViewport`,e=>e.inverseViewport)),s.legacy?(c.uniforms.add(t),c.code.add(i`vec2 calculateProjectedBiasXY(vec4 projPos, vec3 globalNormal) {
|
|
3
3
|
float offsetXY = depthBias.x;
|
|
4
4
|
vec4 projNormal = proj * localView * vec4(globalNormal, 0.0);
|
|
5
5
|
return offsetXY * projPos.w * 2.0 * inverseViewport * normalize(projNormal.xyz).xy;
|
|
6
|
-
}`)):
|
|
6
|
+
}`)):c.uniforms.add(new a(`transformNormalViewFromGlobal`,e=>e.transformNormalViewFromGlobal),t).code.add(i`vec2 calculateProjectedBiasXY(vec4 projPos, vec3 globalNormal) {
|
|
7
7
|
float offsetXY = depthBias.x;
|
|
8
|
-
vec4 projNormal =
|
|
8
|
+
vec4 projNormal = proj * vec4(transformNormalViewFromGlobal * globalNormal, 0.0);
|
|
9
9
|
return offsetXY * projPos.w * 2.0 * inverseViewport * normalize(projNormal.xyz).xy;
|
|
10
|
-
}`)
|
|
10
|
+
}`),c.code.add(i`float _calculateProjectedBiasZ(vec4 projPos) {
|
|
11
11
|
float offsetZ = depthBias.y;
|
|
12
12
|
return sqrt(max(projPos.z,0.0)) * offsetZ;
|
|
13
13
|
}
|
|
@@ -18,4 +18,4 @@ projPos.xy += offsetXY;
|
|
|
18
18
|
}
|
|
19
19
|
projPos.z += _calculateProjectedBiasZ(projPos);
|
|
20
20
|
return projPos;
|
|
21
|
-
}`)}export{
|
|
21
|
+
}`)}export{s as AdjustProjectedPosition};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"
|
|
2
|
+
import"../../core/shaderLibrary/Slice.glsl.js";import"../../core/shaderLibrary/util/cameraUniforms.js";import"../../core/shaderModules/FloatPassUniform.js";import"../../core/shaderModules/glsl.js";import"./AdjustProjectedPosition.glsl.js";import"./DiscardNonSilhouetteEdges.glsl.js";import"./EdgeUtil.glsl.js";import"./LineAmplitude.glsl.js";import"./LineOffset.glsl.js";import"./UnpackAttributes.glsl.js";import"../../../../webgl/ShaderBuilder.js";import"../../../../webgl/Uniform.js";export{b as build}from"../../../../../chunks/EdgeShader.glsl.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{TextureBackedBufferModule as e}from"../../core/shaderLibrary/TextureBackedBuffer.glsl.js";import{NormalAttribute as t}from"../../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{
|
|
2
|
+
import{TextureBackedBufferModule as e}from"../../core/shaderLibrary/TextureBackedBuffer.glsl.js";import{NormalAttribute as t}from"../../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{projMatrix as n}from"../../core/shaderLibrary/util/cameraUniforms.js";import{DoublePrecision as r}from"../../core/shaderLibrary/util/DoublePrecision.glsl.js";import{Float3PassUniform as i}from"../../core/shaderModules/Float3PassUniform.js";import{glsl as a}from"../../core/shaderModules/glsl.js";import{Matrix3PassUniform as o}from"../../core/shaderModules/Matrix3PassUniform.js";import{Texture2DUintDrawUniform as s}from"../../core/shaderModules/Texture2DUintDrawUniform.js";import{edgeViewTextureLayout as c}from"./bufferLayouts.js";import{Uniform as l}from"../../../../webgl/Uniform.js";const u=new e({layout:c,itemIndexExpression:`componentIndex`,bufferUniform:new s(`componentTextureBuffer`,e=>e.componentData?.texture)});function d(e,s){let{vertex:c}=e;e.include(t,s);let{silhouette:l,legacy:d,spherical:f}=s;e.attributes.add(`componentIndex`,`uint`);let h=u.createBuilder(e,s);c.constants.add(`lineWidthFractionFactor`,`float`,8),c.constants.add(`extensionLengthOffset`,`float`,128),c.code.add(a`
|
|
3
3
|
struct ComponentData {
|
|
4
4
|
vec4 color;
|
|
5
5
|
vec3 normal;
|
|
@@ -12,7 +12,7 @@ import{TextureBackedBufferModule as e}from"../../core/shaderLibrary/TextureBacke
|
|
|
12
12
|
|
|
13
13
|
ComponentData readComponentData() {
|
|
14
14
|
vec3 normal = normalModel();
|
|
15
|
-
vec3 normal2 = ${l?
|
|
15
|
+
vec3 normal2 = ${l?a`decompressNormal(normal2Compressed)`:a`normal`};
|
|
16
16
|
|
|
17
17
|
vec4 colorValue = ${h.getTextureAttribute(`color`)};
|
|
18
18
|
float lineWidth = float(${h.getTextureAttribute(`lineWidth`)}) / lineWidthFractionFactor;
|
|
@@ -32,21 +32,21 @@ import{TextureBackedBufferModule as e}from"../../core/shaderLibrary/TextureBacke
|
|
|
32
32
|
verticalOffset
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
`),d?c.code.add(
|
|
35
|
+
`),d?c.code.add(a`vec3 _modelToWorldNormal(vec3 normal) {
|
|
36
36
|
return (model * vec4(normal, 0.0)).xyz;
|
|
37
37
|
}
|
|
38
38
|
vec3 _modelToViewNormal(vec3 normal) {
|
|
39
39
|
return (localView * model * vec4(normal, 0.0)).xyz;
|
|
40
|
-
}`):c.uniforms.add(new p(`transformNormalGlobalFromModel`)).code.add(
|
|
40
|
+
}`):c.uniforms.add(new p(`transformNormalGlobalFromModel`)).code.add(a`vec3 _modelToWorldNormal(vec3 normal) {
|
|
41
41
|
return transformNormalGlobalFromModel * normal;
|
|
42
|
-
}`),l?(e.attributes.add(`normal2Compressed`,`vec2`),c.code.add(
|
|
42
|
+
}`),l?(e.attributes.add(`normal2Compressed`,`vec2`),c.code.add(a`vec3 worldNormal(ComponentData data) {
|
|
43
43
|
return _modelToWorldNormal(normalize(data.normal + data.normal2));
|
|
44
|
-
}`)):c.code.add(
|
|
44
|
+
}`)):c.code.add(a`vec3 worldNormal(ComponentData data) {
|
|
45
45
|
return _modelToWorldNormal(data.normal);
|
|
46
|
-
}`),d?c.code.add(
|
|
46
|
+
}`),d?c.code.add(a`void worldAndViewFromModelPosition(vec3 modelPos, float verticalOffset, out vec3 worldPos, out vec3 viewPos) {
|
|
47
47
|
worldPos = (model * vec4(modelPos, 1.0)).xyz;
|
|
48
48
|
viewPos = (localView * vec4(worldPos, 1.0)).xyz;
|
|
49
|
-
}`):(c.include(
|
|
49
|
+
}`):(c.include(r),c.uniforms.add(new m(`transformWorldFromModelTL`),new m(`transformWorldFromModelTH`),new p(`transformWorldFromModelRS`),new o(`transformViewFromCameraRelativeRS`,e=>e.transformViewFromCameraRelativeRS),new i(`transformWorldFromViewTL`,e=>e.transformWorldFromViewTL),new i(`transformWorldFromViewTH`,e=>e.transformWorldFromViewTH)).code.add(a`
|
|
50
50
|
void worldAndViewFromModelPosition(vec3 modelPos, float verticalOffset, out vec3 worldPos, out vec3 viewPos) {
|
|
51
51
|
vec3 rotatedModelPosition = transformWorldFromModelRS * modelPos;
|
|
52
52
|
vec3 transformCameraRelativeFromModel = dpAdd(
|
|
@@ -65,8 +65,8 @@ viewPos = (localView * vec4(worldPos, 1.0)).xyz;
|
|
|
65
65
|
|
|
66
66
|
viewPos = transformViewFromCameraRelativeRS * worldPos;
|
|
67
67
|
}
|
|
68
|
-
`)),c.uniforms.add(
|
|
69
|
-
return
|
|
70
|
-
}`),c.code.add(
|
|
68
|
+
`)),c.uniforms.add(n).code.add(a`vec4 projFromViewPosition(vec3 position) {
|
|
69
|
+
return proj * vec4(position, 1.0);
|
|
70
|
+
}`),c.code.add(a`float calculateExtensionLength(float extensionLength, float lineLength) {
|
|
71
71
|
return extensionLength / (log2(max(1.0, 256.0 / lineLength)) * 0.2 + 1.0);
|
|
72
72
|
}`)}function f(e){return e===1||e===2}class p extends l{constructor(e){super(e,`mat3`)}}class m extends l{constructor(e){super(e,`vec3`)}}export{d as EdgeUtil,f as usesSketchLogic};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../core/shaderLibrary/Offset.glsl.js";import"../core/shaderLibrary/ShaderOutput.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/PathVertexPosition.glsl.js";import"../core/shaderLibrary/output/OutputDepth.glsl.js";import"../core/shaderLibrary/output/OutputHighlight.glsl.js";import"../core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/
|
|
2
|
+
import"../core/shaderLibrary/Offset.glsl.js";import"../core/shaderLibrary/ShaderOutput.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/PathVertexPosition.glsl.js";import"../core/shaderLibrary/output/OutputDepth.glsl.js";import"../core/shaderLibrary/output/OutputHighlight.glsl.js";import"../core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/lightingUniforms.js";import"../core/shaderLibrary/shading/Normals.glsl.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import"../core/shaderLibrary/shading/readShadow.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float3PassUniform.js";import"../core/shaderModules/FloatPassUniform.js";import"../core/shaderModules/glsl.js";import"../effects/snowcover/SnowCover.glsl.js";import"../shaders/OutputColorHighlightOLID.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build}from"../../../../chunks/Path.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../core/Error.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import"../core/shaderLibrary/output/OutputHighlight.glsl.js";import"../core/shaderLibrary/shading/
|
|
2
|
+
import"../../../../core/Error.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import"../core/shaderLibrary/output/OutputHighlight.glsl.js";import"../core/shaderLibrary/shading/lightingUniforms.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/readShadow.glsl.js";import"../core/shaderLibrary/shading/WaterColor.glsl.js";import"../core/shaderLibrary/shading/WaterDistortion.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/FloatPassUniform.js";import"../core/shaderModules/glsl.js";import"../shaders/OutputColorHighlightOLID.glsl.js";import"../../../webgl/ShaderBuilder.js";import"../../../../webscene/support/AlphaCutoff.js";export{b as build}from"../../../../chunks/Water.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../core/shaderLibrary/
|
|
2
|
+
import"../core/shaderLibrary/bindUniforms.js";import"../core/shaderLibrary/ScreenSpacePass.glsl.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Texture2DPassUniform.js";import"../../../webgl/NoParameters.js";import"../../../webgl/ShaderBuilder.js";export{A as AtmosphereCompositingPassParameters,b as build}from"../../../../chunks/AtmosphereCompositing.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../core/shaderLibrary/Offset.glsl.js";import"../core/shaderLibrary/ShaderOutput.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js";import"../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import"../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import"../core/shaderLibrary/attributes/VertexNormal.glsl.js";import"../core/shaderLibrary/attributes/VerticalOffset.glsl.js";import"../core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js";import"../core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js";import"../core/shaderLibrary/shading/ComputeNormalTexture.glsl.js";import"../core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/
|
|
2
|
+
import"../core/shaderLibrary/Offset.glsl.js";import"../core/shaderLibrary/ShaderOutput.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js";import"../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import"../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import"../core/shaderLibrary/attributes/VertexNormal.glsl.js";import"../core/shaderLibrary/attributes/VerticalOffset.glsl.js";import"../core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js";import"../core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js";import"../core/shaderLibrary/shading/ComputeNormalTexture.glsl.js";import"../core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/lightingUniforms.js";import"../core/shaderLibrary/shading/Normals.glsl.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js";import"../core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import"../core/shaderLibrary/shading/readShadow.glsl.js";import"../core/shaderLibrary/shading/TextureTransformUV.glsl.js";import"../core/shaderLibrary/shading/VisualVariables.glsl.js";import"../core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float3PassUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Texture2DPassUniform.js";import"../effects/snowcover/SnowCover.glsl.js";import"./OutputColorHighlightOLID.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build}from"../../../../chunks/DefaultMaterial.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../core/shaderLibrary/shading/calculateUVZShadow.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/readShadow.glsl.js";import"../core/shaderLibrary/util/
|
|
2
|
+
import"../core/shaderLibrary/shading/calculateUVZShadow.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/lightingUniforms.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/readShadow.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/RgbNormalizedDepthEncoding.glsl.js";import"../core/shaderModules/glsl.js";import"./GaussianSplatDepthPolicy.js";import"./GaussianSplatPass.glsl.js";import"./GaussianSplatTechniqueConfiguration.js";import"../../../webgl/ShaderBuilder.js";export{b as build}from"../../../../chunks/GaussianSplat.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../core/libs/gl-matrix-2/math/vec2.js";import"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import"../core/shaderLibrary/ShaderOutput.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import"../core/shaderLibrary/hud/AlignPixel.glsl.js";import"../core/shaderLibrary/hud/HUD.glsl.js";import"../core/shaderLibrary/output/DepthConversion.glsl.js";import"../core/shaderLibrary/output/OutputHighlight.glsl.js";import"../core/shaderLibrary/shading/PositionOutsideClipSpace.js";import"../core/shaderLibrary/shading/VisualVariables.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import"../core/
|
|
2
|
+
import"../../../../core/libs/gl-matrix-2/math/vec2.js";import"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import"../core/shaderLibrary/bindUniforms.js";import"../core/shaderLibrary/ShaderOutput.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import"../core/shaderLibrary/hud/AlignPixel.glsl.js";import"../core/shaderLibrary/hud/HUD.glsl.js";import"../core/shaderLibrary/output/DepthConversion.glsl.js";import"../core/shaderLibrary/output/OutputHighlight.glsl.js";import"../core/shaderLibrary/shading/PositionOutsideClipSpace.js";import"../core/shaderLibrary/shading/VisualVariables.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import"../core/shaderModules/Float2PassUniform.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/FloatPassUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/IntegerPassUniform.js";import"../core/shaderModules/Texture2DBindUniform.js";import"../core/shaderModules/Texture2DPassUniform.js";import"../effects/focusArea/FocusArea.js";import"./alphaCutoff.glsl.js";import"./OutputColorHighlightOLID.glsl.js";import"../../../webgl/ShaderBuilder.js";export{a as anchorPosition,b as build}from"../../../../chunks/HUDMaterial.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../core/libs/gl-matrix-2/math/vec2.js";import"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/hud/AlignPixel.glsl.js";import"../core/shaderLibrary/hud/HUD.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import"../core/shaderModules/
|
|
2
|
+
import"../../../../core/libs/gl-matrix-2/math/vec2.js";import"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/hud/AlignPixel.glsl.js";import"../core/shaderLibrary/hud/HUD.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import"../core/shaderModules/Float2PassUniform.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/FloatPassUniform.js";import"../core/shaderModules/glsl.js";import"./OutputColorHighlightOLID.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build}from"../../../../chunks/LineCallout.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import"../core/shaderLibrary/attributes/VertexColor.glsl.js";import"../core/shaderLibrary/shading/VisualVariables.glsl.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/FloatBindUniform.js";import"../core/shaderModules/glsl.js";import"./OutputColorHighlightOLID.glsl.js";import"./PatternTextureBuffer.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build}from"../../../../chunks/Pattern.glsl.js";
|
|
2
|
+
import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import"../core/shaderLibrary/attributes/VertexColor.glsl.js";import"../core/shaderLibrary/shading/VisualVariables.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/FloatBindUniform.js";import"../core/shaderModules/glsl.js";import"./lineUniforms.js";import"./OutputColorHighlightOLID.glsl.js";import"./PatternTextureBuffer.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build}from"../../../../chunks/Pattern.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../core/shaderLibrary/Offset.glsl.js";import"../core/shaderLibrary/ShaderOutput.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js";import"../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import"../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import"../core/shaderLibrary/attributes/VerticalOffset.glsl.js";import"../core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js";import"../core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js";import"../core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/
|
|
2
|
+
import"../core/shaderLibrary/Offset.glsl.js";import"../core/shaderLibrary/ShaderOutput.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js";import"../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import"../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import"../core/shaderLibrary/attributes/VerticalOffset.glsl.js";import"../core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js";import"../core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js";import"../core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/lightingUniforms.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js";import"../core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import"../core/shaderLibrary/shading/readShadow.glsl.js";import"../core/shaderLibrary/shading/TextureTransformUV.glsl.js";import"../core/shaderLibrary/shading/VisualVariables.glsl.js";import"../core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float3PassUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Texture2DPassUniform.js";import"../effects/snowcover/SnowCover.glsl.js";import"./OutputColorHighlightOLID.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build}from"../../../../chunks/RealisticTree.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js";import"../core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js";import"../core/shaderLibrary/shading/LineStipple.glsl.js";import"../core/shaderLibrary/shading/MarkerSizing.glsl.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/PiUtils.glsl.js";import"../core/shaderLibrary/shading/PositionOutsideClipSpace.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/NoPerspective.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/
|
|
2
|
+
import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js";import"../core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js";import"../core/shaderLibrary/shading/LineStipple.glsl.js";import"../core/shaderLibrary/shading/MarkerSizing.glsl.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/PiUtils.glsl.js";import"../core/shaderLibrary/shading/PositionOutsideClipSpace.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/ColorConversion.glsl.js";import"../core/shaderLibrary/util/NoPerspective.glsl.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float4PassUniform.js";import"../core/shaderModules/FloatPassUniform.js";import"../core/shaderModules/glsl.js";import"./alphaCutoff.glsl.js";import"./animatedAlpha.glsl.js";import"./lineUniforms.js";import"./OutputColorHighlightOLID.glsl.js";import"./RibbonLineTextureBuffer.glsl.js";import"../../../webgl/ShaderBuilder.js";export{b as build,n as numRoundJoinSubdivisions}from"../../../../chunks/RibbonLine.glsl.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{smoothstep as t}from"../../../../core/mathUtils.js";import{set as n}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{squaredLength as i}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{radiusModifier as a}from"../../../../geometry/ellipsoidUtils.js";import{moon as o,mars as s,earth as c}from"../../../../geometry/support/Ellipsoid.js";import{
|
|
2
|
+
import{__decorate as e}from"tslib";import{smoothstep as t}from"../../../../core/mathUtils.js";import{set as n}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{squaredLength as i}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{radiusModifier as a}from"../../../../geometry/ellipsoidUtils.js";import{moon as o,mars as s,earth as c}from"../../../../geometry/support/Ellipsoid.js";import{cameraPosition as l}from"../core/shaderLibrary/util/cameraUniforms.js";import{Float2BindUniform as u}from"../core/shaderModules/Float2BindUniform.js";import{glsl as d}from"../core/shaderModules/glsl.js";import{parameter as f,ShaderTechniqueConfiguration as p}from"../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{SphereIntersect as m}from"./SphereIntersect.glsl.js";class h extends p{constructor(){super(...arguments),this.ellipsoidMode=1}}e([f({count:4})],h.prototype,`ellipsoidMode`,void 0);function g(e,r){e.fragment.uniforms.add(new u(`cameraHeights`,e=>{let o=e.camera,s=i(o.eye),c=Math.sqrt(s),l=v(r)*a,u=s-l*l,d=t(b,x,c-l);return d=Math.min(d,.98),n(_,d,u)}),l),e.fragment.include(m),e.fragment.code.add(d`float sphereDepthInterpolate(vec3 worldRay, vec3 viewRay, float currentLinearDepth) {
|
|
3
3
|
vec2 rayPlanetIntersect = sphereIntersect(cameraPosition, worldRay, cameraHeights[1]);
|
|
4
4
|
bool hitsPlanet = (rayPlanetIntersect.x <= rayPlanetIntersect.y) && rayPlanetIntersect.x > 0.0;
|
|
5
5
|
if (hitsPlanet) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../core/libs/gl-matrix-2/math/mat4.js";import"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import"../../../../core/libs/gl-matrix-2/math/vec3.js";import"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import"../core/shaderLibrary/ForwardLinearDepth.glsl.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import"../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import"../core/shaderLibrary/attributes/VertexTangent.glsl.js";import"../core/shaderLibrary/output/OutputDepth.glsl.js";import"../core/shaderLibrary/output/OutputHighlight.glsl.js";import"../core/shaderLibrary/output/OutputHighlightOverlay.js";import"../core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/
|
|
2
|
+
import"../../../../core/libs/gl-matrix-2/math/mat4.js";import"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import"../../../../core/libs/gl-matrix-2/math/vec3.js";import"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import"../core/shaderLibrary/bindUniforms.js";import"../core/shaderLibrary/ForwardLinearDepth.glsl.js";import"../core/shaderLibrary/Slice.glsl.js";import"../core/shaderLibrary/Transform.glsl.js";import"../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import"../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import"../core/shaderLibrary/attributes/VertexTangent.glsl.js";import"../core/shaderLibrary/output/OutputDepth.glsl.js";import"../core/shaderLibrary/output/OutputHighlight.glsl.js";import"../core/shaderLibrary/output/OutputHighlightOverlay.js";import"../core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import"../core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import"../core/shaderLibrary/shading/lightingUniforms.js";import"../core/shaderLibrary/shading/NormalUtils.glsl.js";import"../core/shaderLibrary/shading/readShadow.glsl.js";import"../core/shaderLibrary/terrain/Overlay.glsl.js";import"../core/shaderLibrary/terrain/TerrainTexture.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/View.glsl.js";import"../core/shaderModules/Float3BindUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Matrix4DrawUniform.js";import"./alphaCutoff.glsl.js";import"./OutputColorHighlightOLID.glsl.js";import"../../../webgl/ShaderBuilder.js";export{T as TerrainPassParameters,b as build}from"../../../../chunks/Terrain.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../core/libs/gl-matrix-2/math/mat4.js";import"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import"../core/shaderLibrary/ScreenSpacePass.glsl.js";import"../core/shaderLibrary/output/ReadDepth.glsl.js";import"../core/shaderLibrary/shading/PiUtils.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/LocalFromScreenSpace.glsl.js";import"../core/shaderModules/Float2DrawUniform.js";import"../core/shaderModules/Float3DrawUniform.js";import"../core/shaderModules/FloatDrawUniform.js";import"../core/shaderModules/FloatsDrawUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/IntegerDrawUniform.js";import"../core/shaderModules/Matrix4BindUniform.js";import"../core/shaderModules/Matrix4sDrawUniform.js";import"../core/shaderModules/
|
|
2
|
+
import"../../../../core/libs/gl-matrix-2/math/mat4.js";import"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import"../core/shaderLibrary/bindUniforms.js";import"../core/shaderLibrary/ScreenSpacePass.glsl.js";import"../core/shaderLibrary/output/ReadDepth.glsl.js";import"../core/shaderLibrary/shading/PiUtils.glsl.js";import"../core/shaderLibrary/util/cameraUniforms.js";import"../core/shaderLibrary/util/LocalFromScreenSpace.glsl.js";import"../core/shaderModules/Float2DrawUniform.js";import"../core/shaderModules/Float3DrawUniform.js";import"../core/shaderModules/FloatDrawUniform.js";import"../core/shaderModules/FloatsDrawUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/IntegerDrawUniform.js";import"../core/shaderModules/Matrix4BindUniform.js";import"../core/shaderModules/Matrix4sDrawUniform.js";import"../core/shaderModules/Texture2DDrawUniform.js";import"../core/shaderModules/Texture2DPassUniform.js";import"../../../webgl/NoParameters.js";import"../../../webgl/ShaderBuilder.js";export{a as ViewshedDrawParameters,V as ViewshedPassParameters,c as build}from"../../../../chunks/Viewshed.glsl.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{FloatBindUniform as e}from"../core/shaderModules/FloatBindUniform.js";const t=new e(`planarDistanceToScreenRatio`,e=>1/e.screenToPlanarDistanceRatio),n=new e(`groundMetersToScreenRatio`,e=>1/(e.screenToPlanarDistanceRatio*e.planarDistanceToGroundRatio));export{n as groundMetersToScreenRatio,t as planarDistanceToScreenRatio};
|
package/views/DOMContainer.d.ts
CHANGED
|
@@ -20,15 +20,24 @@ export interface DOMContainerProperties extends Partial<Pick<DOMContainer, "aria
|
|
|
20
20
|
*/
|
|
21
21
|
container?: HTMLDivElement | string | null;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* Enables the keyboard shortcut for showing the focus region. Applications should enable
|
|
24
|
+
* this only when they handle focus-region selection. When false, the shortcut does not change
|
|
25
|
+
* focus-region visibility.
|
|
26
|
+
*
|
|
27
|
+
* @default false
|
|
28
|
+
* @since 5.2
|
|
29
|
+
*/
|
|
30
|
+
focusRegionShortcutEnabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates whether the [focusRegion](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegion) is visible. Set this property to `true` to show the centered focus region, or `false` to hide it.
|
|
33
|
+
* When [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegionShortcutEnabled) is `true`, visibility can also be toggled by pressing the `Shift` + `Alt`/`Option` + `O` keyboard shortcut when the view is in focus.
|
|
25
34
|
*
|
|
26
35
|
* @default false
|
|
27
36
|
* @since 5.2
|
|
28
37
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegion)
|
|
29
38
|
* @see [focus-region-select](https://developers.arcgis.com/javascript/latest/references/core/views/View/#event-focus-region-select)
|
|
30
39
|
*/
|
|
31
|
-
|
|
40
|
+
focusRegionVisible?: boolean;
|
|
32
41
|
/**
|
|
33
42
|
* Exposes the default widgets available in the view and allows you to toggle them on
|
|
34
43
|
* and off. See [DefaultUI](https://developers.arcgis.com/javascript/latest/references/core/views/ui/DefaultUI/) for more details.
|
|
@@ -117,31 +126,40 @@ export abstract class DOMContainer {
|
|
|
117
126
|
*/
|
|
118
127
|
get focused(): boolean;
|
|
119
128
|
/**
|
|
120
|
-
* The screen rectangle of the active focus region, or `null` when [
|
|
129
|
+
* The screen rectangle of the active focus region, or `null` when [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegionVisible) is `false`.
|
|
121
130
|
* This screen rectangle represents the area of the view that is currently in focus and can be used with methods that require a screen rectangle as input, such as `hitTest()`.
|
|
122
131
|
*
|
|
123
132
|
* | Action | Keyboard Shortcut / Property |
|
|
124
133
|
* |--------|----------------------------|
|
|
125
|
-
* | Enable or disable focus region |
|
|
134
|
+
* | Enable or disable focus region | When [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegionShortcutEnabled) is `true`, use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view is in focus. Alternatively, set [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegionVisible) to `true` or `false`. |
|
|
126
135
|
* | Resize focus region | Use the `Shift` + `Alt`/`Option` + Up/Down arrow keys while the focus region is enabled. |
|
|
127
136
|
*
|
|
128
137
|
* To know when this focus region is selected, listen for the [focus-region-select](https://developers.arcgis.com/javascript/latest/references/core/views/View/#event-focus-region-select) event.
|
|
129
138
|
*
|
|
130
139
|
* @since 5.2
|
|
131
|
-
* @see [
|
|
140
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegionVisible)
|
|
132
141
|
* @see [focus-region-select](https://developers.arcgis.com/javascript/latest/references/core/views/View/#event-focus-region-select)
|
|
133
142
|
*/
|
|
134
143
|
get focusRegion(): ScreenRect | null;
|
|
135
144
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
145
|
+
* Enables the keyboard shortcut for showing the focus region. Applications should enable
|
|
146
|
+
* this only when they handle focus-region selection. When false, the shortcut does not change
|
|
147
|
+
* focus-region visibility.
|
|
148
|
+
*
|
|
149
|
+
* @default false
|
|
150
|
+
* @since 5.2
|
|
151
|
+
*/
|
|
152
|
+
accessor focusRegionShortcutEnabled: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Indicates whether the [focusRegion](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegion) is visible. Set this property to `true` to show the centered focus region, or `false` to hide it.
|
|
155
|
+
* When [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegionShortcutEnabled) is `true`, visibility can also be toggled by pressing the `Shift` + `Alt`/`Option` + `O` keyboard shortcut when the view is in focus.
|
|
138
156
|
*
|
|
139
157
|
* @default false
|
|
140
158
|
* @since 5.2
|
|
141
159
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/core/views/DOMContainer/#focusRegion)
|
|
142
160
|
* @see [focus-region-select](https://developers.arcgis.com/javascript/latest/references/core/views/View/#event-focus-region-select)
|
|
143
161
|
*/
|
|
144
|
-
accessor
|
|
162
|
+
accessor focusRegionVisible: boolean;
|
|
145
163
|
/**
|
|
146
164
|
* The height of the view in pixels read from the view container element.
|
|
147
165
|
*
|
package/views/DOMContainer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{byId as t,reparent as n}from"../core/domUtils.js";import{on as r}from"../core/events.js";import{makeHandle as i}from"../core/handleUtils.js";import a from"../core/Logger.js";import{destroyMaybe as o,removeMaybe as s}from"../core/maybe.js";import{watch as c,initial as l,syncAndInitial as u}from"../core/reactiveUtils.js";import{addFrameTask as d}from"../core/scheduling.js";import{property as f,subclass as p}from"../core/accessorSupport/decorators.js";import{Attribution as m}from"./Attribution.js";import h from"./overlay/FocusRegionOverlayItem.js";import g from"./overlay/ViewOverlay.js";const _=[0,0];function v(e){let t=(e.ownerDocument||window.document).defaultView,n=e.getBoundingClientRect();return _[0]=n.left+(t?.pageXOffset??0),_[1]=n.top+(t?.pageYOffset??0),_}function y(e){e&&(e.textContent=``,e.parentNode&&e.parentNode.removeChild(e))}const b=process.env.NODE_ENV===`test`,x=b?0:16,S=b?0:750,C=b?0:512,w={left:0,top:0,right:0,bottom:0},T={toggle:`KeyO`,resizeLarger:`ArrowUp`,resizeSmaller:`ArrowDown`,select:new Set([`Enter`,`Space`])},E=_=>{let b=_,E=class extends b{constructor(...e){super(...e),this._freqInfo={freq:x,time:S},this._overlayRenderTaskHandle=null,this._focusRegionOverlayItem=new h,this.aria={},this.attributionMode=null,this.height=0,this.
|
|
2
|
+
import{__decorate as e}from"tslib";import{byId as t,reparent as n}from"../core/domUtils.js";import{on as r}from"../core/events.js";import{makeHandle as i}from"../core/handleUtils.js";import a from"../core/Logger.js";import{destroyMaybe as o,removeMaybe as s}from"../core/maybe.js";import{watch as c,initial as l,syncAndInitial as u}from"../core/reactiveUtils.js";import{addFrameTask as d}from"../core/scheduling.js";import{property as f,subclass as p}from"../core/accessorSupport/decorators.js";import{Attribution as m}from"./Attribution.js";import h from"./overlay/FocusRegionOverlayItem.js";import g from"./overlay/ViewOverlay.js";const _=[0,0];function v(e){let t=(e.ownerDocument||window.document).defaultView,n=e.getBoundingClientRect();return _[0]=n.left+(t?.pageXOffset??0),_[1]=n.top+(t?.pageYOffset??0),_}function y(e){e&&(e.textContent=``,e.parentNode&&e.parentNode.removeChild(e))}const b=process.env.NODE_ENV===`test`,x=b?0:16,S=b?0:750,C=b?0:512,w={left:0,top:0,right:0,bottom:0},T={toggle:`KeyO`,resizeLarger:`ArrowUp`,resizeSmaller:`ArrowDown`,select:new Set([`Enter`,`Space`])},E=_=>{let b=_,E=class extends b{constructor(...e){super(...e),this._freqInfo={freq:x,time:S},this._overlayRenderTaskHandle=null,this._focusRegionOverlayItem=new h,this.aria={},this.attributionMode=null,this.height=0,this.focusRegionVisible=!1,this.focusRegionShortcutEnabled=!1,this.messagesCommon=null,this.overlay=null,this.position=null,this.resizing=!1,this.root=null,this.surface=null,this.suspended=!0,this.userContent=null,this.width=0,this.widthBreakpoint=null,this.addHandles([c(()=>[this.focusRegionVisible,this.overlay,this.ready],()=>this._syncFocusRegionOverlayItemVisibility(this.focusRegionVisible&&this.ready),{initial:!0}),c(()=>this.cursor,e=>{let{surface:t}=this;t&&t.setAttribute(`data-cursor`,e)}),c(()=>this.navigating,e=>{let{surface:t}=this;t&&t.setAttribute(`data-navigating`,e.toString())}),c(()=>[this.aria,this.surface],()=>this._updateAria(),{initial:!0}),c(()=>{let{left:e,top:t,right:n,bottom:r}=this.padding??w;return[this.width,this.height,e,t,n,r]},([e,t,n,r,i,a])=>{let{_focusRegionOverlayItem:o}=this;o.backgroundHeight=t,o.backgroundWidth=e,o.padding={left:n,top:r,right:i,bottom:a},o.updateBoxSize()})])}initialize(){let e=this;this.addHandles([c(()=>this.ui,(e,t)=>this._handleUIChange(e,t),l),e.on(`focus`,()=>this.notifyChange(`focused`)),e.on(`blur`,()=>this.notifyChange(`focused`)),e.on(`key-down`,t=>{let{shiftKey:n,altKey:r,code:i,defaultPrevented:a}=t.native,{toggle:o,resizeLarger:s,resizeSmaller:c,select:l}=T,u=this.focusRegionVisible&&n&&r&&(i===s||i===c);if(!t.repeat||u){if(!a&&n&&r&&i===o&&this.focusRegionShortcutEnabled)this._toggleFocusRegion(),t.preventDefault();else if(!a&&u){let{_focusRegionOverlayItem:e}=this;e.resizeBoxSize(i===s?50:-50),t.preventDefault(),t.native.stopPropagation(),t.stopPropagation()}else!a&&this.focusRegionVisible&&l.has(i)&&this._selectFocusRegion(t,e)}})])}destroy(){this.destroyed||(this.focusRegionVisible=!1,this._syncFocusRegionOverlayItemVisibility(!1),this.ui?.destroy(),this.container=null)}get attributionHeight(){return this._attribution?.height??0}get container(){return this._get(`container`)??null}set container(e){let r=this._get(`container`),i=t(e);if(!i&&typeof e==`string`&&a.getLogger(this).error(`#container`,`element with id '${e}' not found`),r===i)return;if(this._stopMeasuring(),this.removeHandles(`container`),r&&(r.classList.remove(`esri-view`),this._overlayRenderTaskHandle&&=(this._overlayRenderTaskHandle.remove(),null),this.overlay&&(this.overlay.destroy(),this._set(`overlay`,null)),this._attribution=o(this._attribution),this.root&&(y(this.root),this._set(`root`,null)),this.userContent&&(n(this.userContent,r),y(this.userContent),this._set(`userContent`,null))),!i){this._set(`width`,0),this._set(`height`,0),this._set(`position`,null),this._set(`suspended`,!0),this._set(`surface`,null),this._set(`container`,null);return}i.classList.add(`esri-view`);let f=document.createElement(`div`);f.className=`esri-view-user-storage`,n(i,f),i.appendChild(f),this._set(`userContent`,f);let p=document.createElement(`div`);p.className=`esri-view-root`,i.insertBefore(p,i.firstChild),this._set(`root`,p);let h=document.createElement(`div`);h.className=`esri-view-surface`,h.setAttribute(`role`,`application`),h.tabIndex=0,p.appendChild(h),this._set(`surface`,h);let _=new g;p.appendChild(_.surface),this._set(`overlay`,_),this._syncFocusRegionOverlayItemVisibility(!1),this.addHandles(c(()=>_.needsRender,e=>{this._overlayRenderTaskHandle=e&&!this._overlayRenderTaskHandle?d({render:()=>this.overlay?.render()}):s(this._overlayRenderTaskHandle)},l),`container`),this.addHandles([c(()=>({visible:this.attributionVisible,items:this.attributionItems,mode:this.attributionMode}),({visible:e,items:t,mode:n})=>{e?(this._attribution||=new m({attributionItems:this.attributionItems,mode:this.attributionMode}),this._attribution.appendBefore(p,this.ui?.container??null),this._attribution.attributionItems=t,this._attribution.mode=n):this._attribution=o(this._attribution)},u)],`container`),this.forceDOMReadyCycle(),this._set(`container`,i),this._startMeasuring()}get focused(){let e=document.activeElement===this.surface;return document.hasFocus()&&e}get focusRegion(){return this.focusRegionVisible?this._focusRegionOverlayItem.getScreenRect():null}get size(){return[this.width,this.height]}get ui(){return this._get(`ui`)}set ui(e){let t=this._get(`ui`);t!==e&&t?.destroy(),this._set(`ui`,e)}blur(){this.surface?.blur()}focus(){this.surface?.focus()}pageToContainer(e,t,n){let r=this.position;return e-=r?r[0]:0,t-=r?r[1]:0,n?(n[0]=e,n[1]=t):n=[e,t],n}containerToPage(e,t,n){let r=this.position;return e+=r?r[0]:0,t+=r?r[1]:0,n?(n[0]=e,n[1]=t):n=[e,t],n}_updateAria(){let{surface:e,aria:t}=this;e&&(e.ariaLabelledByElements=t?.labelledByElements??null,e.ariaDescribedByElements=t?.describedByElements??null,e.ariaLabel=t?.label??null,e.ariaDescription=t?.description??null)}_selectFocusRegion(e,t){let n=this._makeFocusRegionSelectEvent(e);t.emit(`focus-region-select`,n),e.preventDefault()}_makeFocusRegionSelectEvent(e){let t={type:`focus-region-select`,native:e.native,defaultPrevented:!1,preventDefault:()=>{t.defaultPrevented=!0},stopPropagation:()=>{e.stopPropagation()}};return t}_toggleFocusRegion(){this.focusRegionVisible=!this.focusRegionVisible}_updateFocusRegionOverlayItem(){let{_focusRegionOverlayItem:e}=this;e.backgroundHeight=this.height,e.backgroundWidth=this.width,e.padding=this.padding??w,e.updateBoxSize()}_syncFocusRegionOverlayItemVisibility(e){let{_focusRegionOverlayItem:t,overlay:n}=this,r=e;t.visible=r,n&&(n.removeItem(t),r&&(this._updateFocusRegionOverlayItem(),n.addItem(t)))}_handleUIChange(e,t){this.removeHandles(`ui`),t&&t!==e&&t.destroy(),e&&(e.view=this,this.addHandles(c(()=>this.root,t=>{if(!t)e.container=null;else{let n=document.createElement(`div`);t.insertBefore(n,this._attribution?.surface??null),e.container=n}},l),`ui`)),this._set(`ui`,e)}_stopMeasuring(){this.removeHandles(`measuring`),this._get(`resizing`)&&this._set(`resizing`,!1)}_startMeasuring(){let e=this._freqInfo;e.freq=x,e.time=S;let t=d({prepare:e=>{let n=this._measure(),r=this._freqInfo;r.time+=e.deltaTime,n&&(r.freq=x,this._get(`resizing`)||this._set(`resizing`,!0)),!(r.time<r.freq)&&(r.time=0,r.freq=this._position()||n?x:Math.min(S,r.freq*2),!n&&r.freq>=C&&(t.pause(),this._get(`resizing`)&&this._set(`resizing`,!1)))}}),n=new ResizeObserver(n=>{e.freq=x,e.time=S,t.resume()});this.container!=null&&n.observe(this.container);let a=i(()=>n.disconnect());this.addHandles([r(window,`resize`,()=>{e.freq=x,e.time=S,t.resume()}),a,t],`measuring`),this._measure(),this._position()}_measure(){let e=this.container,t=e?e.clientWidth:0,n=e?e.clientHeight:0;if(t===0||n===0)return this.suspended||this._set(`suspended`,!0),!1;let r=this.width,i=this.height;return t===r&&n===i?(this.suspended&&this._set(`suspended`,!1),!1):(this._set(`width`,t),this._set(`height`,n),this.suspended&&this._set(`suspended`,!1),this.emit(`resize`,{oldWidth:r,oldHeight:i,width:t,height:n}),!0)}_position(){let e=this.container,t=this.position,n=e&&v(e);return n&&(!t||n[0]!==t[0]||n[1]!==t[1])?(this._set(`position`,[n[0],n[1]]),!0):!1}forceDOMReadyCycle(){}};return e([f()],E.prototype,`_attribution`,void 0),e([f()],E.prototype,`aria`,void 0),e([f()],E.prototype,`attributionHeight`,null),e([f()],E.prototype,`attributionMode`,void 0),e([f()],E.prototype,`container`,null),e([f({readOnly:!0})],E.prototype,`focused`,null),e([f({readOnly:!0})],E.prototype,`height`,void 0),e([f()],E.prototype,`focusRegionVisible`,void 0),e([f()],E.prototype,`focusRegionShortcutEnabled`,void 0),e([f()],E.prototype,`focusRegion`,null),e([f()],E.prototype,`messagesCommon`,void 0),e([f({type:g})],E.prototype,`overlay`,void 0),e([f({readOnly:!0})],E.prototype,`position`,void 0),e([f({readOnly:!0})],E.prototype,`resizing`,void 0),e([f({readOnly:!0})],E.prototype,`root`,void 0),e([f({value:null,readOnly:!0})],E.prototype,`size`,null),e([f({readOnly:!0})],E.prototype,`surface`,void 0),e([f({readOnly:!0})],E.prototype,`suspended`,void 0),e([f({nonNullable:!0})],E.prototype,`ui`,null),e([f({readOnly:!0})],E.prototype,`userContent`,void 0),e([f({readOnly:!0})],E.prototype,`width`,void 0),e([f()],E.prototype,`widthBreakpoint`,void 0),E=e([p(`esri.views.DOMContainer`)],E),E};export{E as DOMContainer};
|
package/views/PopupView.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export interface PopupViewProperties extends Partial<Pick<PopupView, "popupEnabl
|
|
|
17
17
|
* when the user clicks on the view and [popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popupEnabled) is `true`, when the [openPopup](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#openPopup) method is called,
|
|
18
18
|
* or when some widgets need the popup, such as [Search](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/). If [popup](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popup) is `null`, the popup instance will not be created.
|
|
19
19
|
*
|
|
20
|
+
* @deprecated since version 5.2. Use the `popupElement` on the [Map](/references/map-components/components/arcgis-map/#popupElement), [Scene](/references/map-components/components/arcgis-scene/#popupElement), or [Link Chart](/references/map-components/components/arcgis-link-chart/#popupElement) components instead.
|
|
20
21
|
* @see [popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popupEnabled)
|
|
21
22
|
* @see [openPopup()](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#openPopup)
|
|
22
23
|
* @see [Loading the Popup](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#loading-the-popup)
|
|
@@ -57,6 +58,7 @@ export abstract class PopupView {
|
|
|
57
58
|
* when the user clicks on the view and [popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popupEnabled) is `true`, when the [openPopup](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#openPopup) method is called,
|
|
58
59
|
* or when some widgets need the popup, such as [Search](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/). If [popup](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popup) is `null`, the popup instance will not be created.
|
|
59
60
|
*
|
|
61
|
+
* @deprecated since version 5.2. Use the `popupElement` on the [Map](/references/map-components/components/arcgis-map/#popupElement), [Scene](/references/map-components/components/arcgis-scene/#popupElement), or [Link Chart](/references/map-components/components/arcgis-link-chart/#popupElement) components instead.
|
|
60
62
|
* @see [popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popupEnabled)
|
|
61
63
|
* @see [openPopup()](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#openPopup)
|
|
62
64
|
* @see [Loading the Popup](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#loading-the-popup)
|
|
@@ -79,6 +81,7 @@ export abstract class PopupView {
|
|
|
79
81
|
* view.popup = null;
|
|
80
82
|
*/
|
|
81
83
|
get popup(): Popup | null | undefined;
|
|
84
|
+
/** @deprecated */
|
|
82
85
|
set popup(value: Popup | PopupProperties | null | undefined);
|
|
83
86
|
/**
|
|
84
87
|
* Controls whether the popup opens when users click on the view.
|
|
@@ -90,6 +93,7 @@ export abstract class PopupView {
|
|
|
90
93
|
* When `false`, the click event is ignored and [popup](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popup) is not created for features but will open for other
|
|
91
94
|
* scenarios that use a popup, such as displaying Search results.
|
|
92
95
|
*
|
|
96
|
+
* @deprecated since version 5.2. Use the `popupDisabled` property on the [Map](/references/map-components/components/arcgis-map/#popupDisabled), [Scene](/references/map-components/components/arcgis-scene/#popupDisabled), or [Link Chart](/references/map-components/components/arcgis-link-chart/#popupDisabled) components instead.
|
|
93
97
|
* @default true
|
|
94
98
|
* @since 4.27
|
|
95
99
|
* @see [popup](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popup)
|
|
@@ -109,6 +113,7 @@ export abstract class PopupView {
|
|
|
109
113
|
/**
|
|
110
114
|
* Closes the popup.
|
|
111
115
|
*
|
|
116
|
+
* @deprecated since version 5.2. Use the `closePopup()` method on the [Map](/references/map-components/components/arcgis-map/#closePopup), [Scene](/references/map-components/components/arcgis-scene/#closePopup), or [Link Chart](/references/map-components/components/arcgis-link-chart/#closePopup) components instead.
|
|
112
117
|
* @since 4.27
|
|
113
118
|
* @see [popup](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#popup)
|
|
114
119
|
* @see [openPopup()](https://developers.arcgis.com/javascript/latest/references/core/views/PopupView/#openPopup)
|
|
@@ -201,6 +206,7 @@ export abstract class PopupView {
|
|
|
201
206
|
* > the view's size constraints in [dockOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#dockOptions) are met or the [location](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#location)
|
|
202
207
|
* > property is set to a geometry.
|
|
203
208
|
*
|
|
209
|
+
* @deprecated since version 5.2. Use the `openPopup()` method on the [Map](/references/map-components/components/arcgis-map/#openPopup), [Scene](/references/map-components/components/arcgis-scene/#openPopup), or [Link Chart](/references/map-components/components/arcgis-link-chart/#openPopup) components instead.
|
|
204
210
|
* @param options - Defines the location and content of the popup when opened.
|
|
205
211
|
* @returns Resolves when the popup is opened. Calling `openPopup()` or `closePopup()` again rejects the Promise.
|
|
206
212
|
* @since 4.27
|