@arcgis/core 4.32.0-next.20250204 → 4.32.0-next.20250206
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/assets/components/assets/icon/dualImageArea16.json +1 -0
- package/assets/components/assets/icon/dualImageArea24.json +1 -0
- package/assets/components/assets/icon/dualImageArea32.json +1 -0
- package/assets/components/assets/icon/dualImageDistance16.json +1 -0
- package/assets/components/assets/icon/dualImageDistance24.json +1 -0
- package/assets/components/assets/icon/dualImageDistance32.json +1 -0
- package/assets/components/assets/icon/dualImageLocation16.json +1 -0
- package/assets/components/assets/icon/dualImageLocation24.json +1 -0
- package/assets/components/assets/icon/dualImageLocation32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{24a86c52c8bdd0b5eb4d.js → 09a99c556089c166d1f8.js} +1 -1
- package/assets/esri/core/workers/chunks/0a8e388e96af44deeabb.js +1 -0
- package/assets/esri/core/workers/chunks/15f850c9a1154fc57e5a.js +1 -0
- package/assets/esri/core/workers/chunks/{9b4f471fcd8a3b5e089f.js → 192569dfa7c0ea8dd864.js} +1 -1
- package/assets/esri/core/workers/chunks/24e47f748f0e4f815c6e.js +1 -0
- package/assets/esri/core/workers/chunks/28374a64790342e1b5ae.js +1 -0
- package/assets/esri/core/workers/chunks/{ad215219e5eef8598745.js → 28dbbfc44cc2bdcd221d.js} +1 -1
- package/assets/esri/core/workers/chunks/{6d5bfcc7856cafe7b043.js → 2d62b44385b2b7882b72.js} +2 -2
- package/assets/esri/core/workers/chunks/{6d5bfcc7856cafe7b043.js.LICENSE.txt → 2d62b44385b2b7882b72.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{72cf9192292e5c85c6df.js → 32d3657dcae89b740f8b.js} +2 -2
- package/assets/esri/core/workers/chunks/{72cf9192292e5c85c6df.js.LICENSE.txt → 32d3657dcae89b740f8b.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/333091ab2e267652ed56.js +1 -0
- package/assets/esri/core/workers/chunks/354531dc2f0dea2ad96f.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/35e4af82a08b4eadbfab.js +1 -0
- package/assets/esri/core/workers/chunks/38cd7745b8ef1b8b6196.js +1 -0
- package/assets/esri/core/workers/chunks/{8a1e4f65fc81aba7a704.js → 4122d10bc910e888eee1.js} +1 -1
- package/assets/esri/core/workers/chunks/433576983754f690bcc7.js +1 -0
- package/assets/esri/core/workers/chunks/459af0c3d62c3ed11c19.js +1 -0
- package/assets/esri/core/workers/chunks/{b1269b51cef3e11c85e3.js → 48ecc5a74fecbb2b9c6f.js} +1 -1
- package/assets/esri/core/workers/chunks/53810519ff5922b42cd2.js +1 -0
- package/assets/esri/core/workers/chunks/594d923400fd74881833.js +1 -0
- package/assets/esri/core/workers/chunks/{7a0415db78c68d31733f.js → 6039da57a2adedd3b83f.js} +1 -1
- package/assets/esri/core/workers/chunks/6fa4e80da3a7499a952c.js +1 -0
- package/assets/esri/core/workers/chunks/73d03c208242778e67bf.js +1 -0
- package/assets/esri/core/workers/chunks/77764ca90bdd13ee2167.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{723a9fba144e2fa6d017.js → 7cb09e58bcc537ec1f7a.js} +1 -1
- package/assets/esri/core/workers/chunks/842db06ce62758fab1e7.js +1 -0
- package/assets/esri/core/workers/chunks/8c32cee395da0a7b9a8e.js +1 -0
- package/assets/esri/core/workers/chunks/94490937dca566fe2640.js +1 -0
- package/assets/esri/core/workers/chunks/9a2d7c98fa0c4f8a9fd5.js +314 -0
- package/assets/esri/core/workers/chunks/{610b33b7291cffcc4e5d.js → a42ae5d5e5f66d120b4d.js} +1 -1
- package/assets/esri/core/workers/chunks/a5e9ea13e844a62b2a7f.js +1 -0
- package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/b43d88b6e7dc4ab13599.js +1 -0
- package/assets/esri/core/workers/chunks/c7b6f237efaab333459e.js +1 -0
- package/assets/esri/core/workers/chunks/d29c3bf29fcd7fa31f1a.js +1 -0
- package/assets/esri/core/workers/chunks/d339dee99c4820b63f39.js +1 -0
- package/assets/esri/core/workers/chunks/{9c5c6ecaf5be24279fa5.js → ddc30044f61a2c2df3fe.js} +1 -1
- package/assets/esri/core/workers/chunks/de1f3c4b8000c2d73013.js +1 -0
- package/assets/esri/core/workers/chunks/e4b3f2d5c43518b0cde7.js +1 -0
- package/assets/esri/core/workers/chunks/e5e3b6d00d27b5bb354f.js +1 -0
- package/assets/esri/core/workers/chunks/ef6279f5c63ab1e88c71.js +1 -0
- package/assets/esri/core/workers/chunks/{0711d3ad4d403bcfdcad.js → f117a89d1f4001a1f9f0.js} +1 -1
- package/assets/esri/core/workers/chunks/f60e301de6517553672f.js +2 -0
- package/assets/esri/core/workers/chunks/{1a2e1a414e651e988435.js.LICENSE.txt → f60e301de6517553672f.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/f9e48205178a5a804d38.js +1 -0
- package/assets/esri/themes/base/widgets/_Directions.scss +15 -6
- 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/ColorMaterial.glsl.js +4 -5
- package/chunks/HUDMaterial.glsl.js +6 -6
- package/chunks/Pattern.glsl.js +1 -1
- package/chunks/WaterSurface.glsl.js +2 -2
- package/geometry/operators/projectOperator.js +1 -1
- package/geometry/operators/shapePreservingProjectOperator.js +1 -1
- package/geometry/support/meshUtils/elevation.js +1 -1
- package/interfaces.d.ts +97 -49
- package/layers/Layer.js +1 -1
- package/layers/graphics/data/FeatureStore.js +1 -1
- package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/layers/ogc/wcsUtils.js +1 -1
- package/layers/support/RasterFunctionTemplate.js +1 -1
- package/layers/support/rasterDatasets/WCSRaster.js +1 -1
- package/layers/support/rasterDatasets/multipartParser.js +1 -1
- package/layers/support/rasterDatasets/wcsCapabilitiesParser.js +1 -1
- package/layers/support/rasterFunctionUtils.d.ts +2 -1
- package/layers/support/rasterFunctionUtils.js +1 -1
- package/layers/support/rasterFunctions/creators/createDataManagementFunctions.js +1 -1
- package/package.json +2 -2
- package/rest/support/ImageSampleParameters.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/GraphicsLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/support/util.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/LayerViewManager.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileCache.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
- package/widgets/Attachments/AttachmentsViewModel.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/assets/esri/core/workers/chunks/08f76c75758a29158b13.js +0 -314
- package/assets/esri/core/workers/chunks/1a2e1a414e651e988435.js +0 -2
- package/assets/esri/core/workers/chunks/287362f9af132fafe4de.js +0 -1
- package/assets/esri/core/workers/chunks/2ea5e5e6c4660a06b516.js +0 -1
- package/assets/esri/core/workers/chunks/380d37ceb8cf52bad190.js +0 -1
- package/assets/esri/core/workers/chunks/3984bf01f055fc42bfbf.js +0 -1
- package/assets/esri/core/workers/chunks/39e38aab86dcee3f79be.js +0 -1
- package/assets/esri/core/workers/chunks/41cd1a5c99ab3bbd1fb4.js +0 -1
- package/assets/esri/core/workers/chunks/4263eee3247aaf4e64bf.js +0 -1
- package/assets/esri/core/workers/chunks/5e7f16b312077ca8c18d.js +0 -1
- package/assets/esri/core/workers/chunks/69d307758262e5d7a32e.js +0 -1
- package/assets/esri/core/workers/chunks/6ef2514a6b7bbfb8e37d.js +0 -1
- package/assets/esri/core/workers/chunks/7e4d72279cc599b7029c.js +0 -1
- package/assets/esri/core/workers/chunks/82d26884127ed772cc4b.js +0 -1
- package/assets/esri/core/workers/chunks/8438fba57e82e4cc7c11.js +0 -1
- package/assets/esri/core/workers/chunks/858b191c078d04232342.js +0 -1
- package/assets/esri/core/workers/chunks/91d2bdfa6e34c10b7f50.js +0 -1
- package/assets/esri/core/workers/chunks/92155d112ebb6a4c6c6e.js +0 -1
- package/assets/esri/core/workers/chunks/991e0f619f1f81f94d56.js +0 -1
- package/assets/esri/core/workers/chunks/9a27824d94df702e6e28.js +0 -1
- package/assets/esri/core/workers/chunks/b33122adfd1fb68f7c0f.js +0 -1
- package/assets/esri/core/workers/chunks/bbbe5d6cb8b737811c84.js +0 -1
- package/assets/esri/core/workers/chunks/bf26f58210755875748c.js +0 -1
- package/assets/esri/core/workers/chunks/d175953337fa655dc6b0.js +0 -1
- package/assets/esri/core/workers/chunks/d8c762ca94e3a11b125d.js +0 -1
- package/assets/esri/core/workers/chunks/dbc447413ab40a79ba87.js +0 -1
- package/assets/esri/core/workers/chunks/e26dc0c1654316bb1558.js +0 -1
- package/assets/esri/core/workers/chunks/e410a09650530d7aad10.js +0 -1
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{SliceDraw as e}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as r}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{ObjectAndLayerIdColor as o}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{VertexColor as i}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{terrainDepthTest as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js";import{VisualVariables as s}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{ColorConversion as t}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as d}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as n}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{glsl as a}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{VertexAttribute as g}from"../views/3d/webgl-engine/lib/VertexAttribute.js";import{outputColorHighlightOID as v}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js";import{ShaderBuilder as
|
|
5
|
+
import{SliceDraw as e}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as r}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{ObjectAndLayerIdColor as o}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{VertexColor as i}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{terrainDepthTest as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js";import{VisualVariables as s}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{ColorConversion as t}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as d}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as n}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{glsl as a}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{VertexAttribute as g}from"../views/3d/webgl-engine/lib/VertexAttribute.js";import{outputColorHighlightOID as v}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js";import{ShaderBuilder as b}from"../views/webgl/ShaderBuilder.js";function c(c){const m=new b,{vertex:u,fragment:w,attributes:p,varyings:f}=m,{vvColor:h,hasVertexColors:C}=c;return d(u,c),m.include(r,c),m.include(i,c),m.include(s,c),m.include(o,c),w.include(e,c),m.include(v,c),m.include(l,c),p.add(g.POSITION,"vec3"),h&&p.add(g.COLORFEATUREATTRIBUTE,"float"),C||f.add("vColor","vec4"),f.add("vpos","vec3"),u.uniforms.add(new n("uColor",(e=>e.color))),u.main.add(a`
|
|
6
6
|
vpos = position;
|
|
7
7
|
forwardNormalizedVertexColor();
|
|
8
8
|
forwardObjectAndLayerIdColor();
|
|
9
9
|
|
|
10
|
-
${
|
|
10
|
+
${C?"vColor *= uColor;":h?"vColor = uColor * interpolateVVColor(colorFeatureAttribute);":"vColor = uColor;"}
|
|
11
11
|
forwardViewPosDepth((view * vec4(vpos, 1.0)).xyz);
|
|
12
|
-
gl_Position = transformPosition(proj, view, vpos);`),
|
|
12
|
+
gl_Position = transformPosition(proj, view, vpos);`),w.include(t),w.main.add(a`discardBySlice(vpos);
|
|
13
13
|
discardByTerrainDepth();
|
|
14
|
-
|
|
15
|
-
outputColorHighlightOID(fColor, vpos);`),b}const b=Object.freeze(Object.defineProperty({__proto__:null,build:m},Symbol.toStringTag,{value:"Module"}));export{b as C,m as b};
|
|
14
|
+
outputColorHighlightOID(vColor, vpos);`),m}const m=Object.freeze(Object.defineProperty({__proto__:null,build:c},Symbol.toStringTag,{value:"Module"}));export{m as C,c as b};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{set as e,copy as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as i}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{ZEROS as r,fromValues as l}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{earth as t}from"../geometry/support/Ellipsoid.js";import{ShaderOutput as a}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{RejectBySlice as s}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{ObjectAndLayerIdColor as n}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{AlignPixel as c}from"../views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js";import{HUD as d}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js";import{HUDOcclusionPass as u}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js";import{HUDVisibility as p}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js";import{OutputHighlight as f}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{VisualVariables as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{ColorConversion as m}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{RgbaFloatEncoding as v}from"../views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{ScreenSizePerspective as b,addScreenSizePerspective as h,addScreenSizePerspectiveAlignment as w}from"../views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import{addPixelRatio as x}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float2PassUniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4BindUniform as P}from"../views/3d/webgl-engine/core/shaderModules/Float4BindUniform.js";import{Float4DrawUniform as z}from"../views/3d/webgl-engine/core/shaderModules/Float4DrawUniform.js";import{Float4PassUniform as
|
|
5
|
+
import{set as e,copy as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as i}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{ZEROS as r,fromValues as l}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{earth as t}from"../geometry/support/Ellipsoid.js";import{ShaderOutput as a}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{RejectBySlice as s}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{ObjectAndLayerIdColor as n}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{AlignPixel as c}from"../views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js";import{HUD as d}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js";import{HUDOcclusionPass as u}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js";import{HUDVisibility as p}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js";import{OutputHighlight as f}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{VisualVariables as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{ColorConversion as m}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{RgbaFloatEncoding as v}from"../views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{ScreenSizePerspective as b,addScreenSizePerspective as h,addScreenSizePerspectiveAlignment as w}from"../views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import{addPixelRatio as x}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float2PassUniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4BindUniform as P}from"../views/3d/webgl-engine/core/shaderModules/Float4BindUniform.js";import{Float4DrawUniform as z}from"../views/3d/webgl-engine/core/shaderModules/Float4DrawUniform.js";import{Float4PassUniform as j}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatBindUniform as S}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as y}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as A,If as O}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DBindUniform as $}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as F}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{OITPass as D}from"../views/3d/webgl-engine/lib/OITPass.js";import{VertexAttribute as T}from"../views/3d/webgl-engine/lib/VertexAttribute.js";import{ShaderBuilder as L}from"../views/webgl/ShaderBuilder.js";import{alphaCutoff as B}from"../webscene/support/AlphaCutoff.js";function E(o){const i=new L,E=o.signedDistanceFieldEnabled;i.include(d,o),i.vertex.include(s,o);const{occlusionPass:H,output:V,oitPass:_}=o;if(H)return i.include(u,o),i;const{vertex:I,fragment:q}=i;i.include(b),i.include(g,o),i.include(n,o),i.include(p),q.include(v),q.include(m),i.varyings.add("vcolor","vec4"),i.varyings.add("vtc","vec2"),i.varyings.add("vsize","vec2");const k=V===a.Highlight,G=k&&o.occlusionTestEnabled;G&&i.varyings.add("voccluded","float"),I.uniforms.add(new P("viewport",(e=>e.camera.fullViewport)),new C("screenOffset",((o,i)=>e(R,2*o.screenOffset[0]*i.camera.pixelRatio,2*o.screenOffset[1]*i.camera.pixelRatio))),new C("anchorPosition",(e=>U(e))),new j("materialColor",(e=>e.color)),new y("materialRotation",(e=>e.rotation))),x(I),E&&(I.uniforms.add(new j("outlineColor",(e=>e.outlineColor))),q.uniforms.add(new j("outlineColor",(e=>M(e)?e.outlineColor:r)),new y("outlineSize",(e=>M(e)?e.outlineSize:0)))),o.horizonCullingEnabled&&I.uniforms.add(new z("pointDistanceSphere",((e,o)=>{const i=o.camera.eye,r=e.origin;return l(r[0]-i[0],r[1]-i[1],r[2]-i[2],t.radius)}))),o.pixelSnappingEnabled&&I.include(c),o.hasScreenSizePerspective&&(h(I),w(I)),o.debugDrawLabelBorder&&i.varyings.add("debugBorderCoords","vec4"),i.attributes.add(T.UV0,"vec2"),i.attributes.add(T.COLOR,"vec4"),i.attributes.add(T.SIZE,"vec2"),i.attributes.add(T.ROTATION,"float"),i.attributes.add(T.FEATUREATTRIBUTE,"vec4"),I.code.add(o.horizonCullingEnabled?A`bool behindHorizon(vec3 posModel) {
|
|
6
6
|
vec3 camToEarthCenter = pointDistanceSphere.xyz - localOrigin;
|
|
7
7
|
vec3 camToPos = pointDistanceSphere.xyz + posModel;
|
|
8
8
|
float earthRadius = pointDistanceSphere.w;
|
|
@@ -68,7 +68,7 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
|
|
|
68
68
|
${N}
|
|
69
69
|
${o.vvColor?"vcolor = interpolateVVColor(featureAttribute.y) * materialColor;":"vcolor = color / 255.0 * materialColor;"}
|
|
70
70
|
|
|
71
|
-
${O(
|
|
71
|
+
${O(V===a.ObjectAndLayerIdColor,A`vcolor.a = 1.0;`)}
|
|
72
72
|
|
|
73
73
|
bool alphaDiscard = vcolor.a < ${A.float(B)};
|
|
74
74
|
${O(E,`alphaDiscard = alphaDiscard && outlineColor.a < ${A.float(B)};`)}
|
|
@@ -85,7 +85,7 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
|
|
|
85
85
|
|
|
86
86
|
${O(o.debugDrawLabelBorder,A`debugBorderCoords = vec4(uv01, 1.5 / combinedSize);`)}
|
|
87
87
|
vsize = inputSize;
|
|
88
|
-
`),q.uniforms.add(new
|
|
88
|
+
`),q.uniforms.add(new F("tex",(e=>e.texture))),o.occludedFragmentFade&&(q.uniforms.add(new $("depthMap",(e=>e.mainDepth))),q.uniforms.add(new S("occludedOpacity",(e=>e.hudOccludedFragmentOpacity))));const J=o.debugDrawLabelBorder?A`(isBorder > 0.0 ? 0.0 : ${A.float(B)})`:A.float(B),K=A`
|
|
89
89
|
${O(o.debugDrawLabelBorder,A`float isBorder = float(any(lessThan(debugBorderCoords.xy, debugBorderCoords.zw)) || any(greaterThan(debugBorderCoords.xy, 1.0 - debugBorderCoords.zw)));`)}
|
|
90
90
|
|
|
91
91
|
${O(o.sampleSignedDistanceFieldTexelCenter,A`
|
|
@@ -156,12 +156,12 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
|
|
|
156
156
|
`)}
|
|
157
157
|
|
|
158
158
|
${O(!k&&o.debugDrawLabelBorder,A`fragColor = mix(fragColor, vec4(1.0, 0.0, 1.0, 1.0), isBorder * 0.5);`)}
|
|
159
|
-
`;switch(
|
|
159
|
+
`;switch(V){case a.Color:case a.ColorEmission:i.outputs.add("fragColor","vec4",0),V===a.ColorEmission&&i.outputs.add("fragEmission","vec4",1),_===D.ColorAlpha&&i.outputs.add("fragAlpha","float",V===a.ColorEmission?2:1),q.main.add(A`
|
|
160
160
|
${K}
|
|
161
161
|
${O(_===D.FrontFace,A`fragColor.rgb /= fragColor.a;`)}
|
|
162
|
-
${O(
|
|
162
|
+
${O(V===a.ColorEmission,A`fragEmission = vec4(0.0);`)}
|
|
163
163
|
${O(_===D.ColorAlpha,A`fragAlpha = fragColor.a;`)}`);break;case a.ObjectAndLayerIdColor:q.main.add(A`
|
|
164
164
|
${K}
|
|
165
165
|
outputObjectAndLayerIdColor();`);break;case a.Highlight:i.include(f,o),q.main.add(A`
|
|
166
166
|
${K}
|
|
167
|
-
outputHighlight(${O(G,A`voccluded == 1.0`,A`false`)});`)}return i}function
|
|
167
|
+
outputHighlight(${O(G,A`voccluded == 1.0`,A`false`)});`)}return i}function M(e){return e.outlineColor[3]>0&&e.outlineSize>0}function U(e){return e.textureIsSignedDistanceField?H(e.anchorPosition,e.distanceFieldBoundingBox,R):o(R,e.anchorPosition),R}function H(o,i,r){e(r,o[0]*(i[2]-i[0])+i[0],o[1]*(i[3]-i[1])+i[1])}const R=i(),V=Object.freeze(Object.defineProperty({__proto__:null,build:E,calculateAnchorPosition:U},Symbol.toStringTag,{value:"Module"}));export{V as H,E as b,U as c};
|
package/chunks/Pattern.glsl.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{ShaderOutput as e}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as o}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as r}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{ObjectAndLayerIdColor as t}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{VertexColor as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{terrainDepthTest as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js";import{VisualVariables as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{ColorConversion as n}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as c,addCameraPosition as d}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as s}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatBindUniform as v}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{glsl as g}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{VertexAttribute as p}from"../views/3d/webgl-engine/lib/VertexAttribute.js";import{Style as m}from"../views/3d/webgl-engine/materials/PatternStyle.js";import{outputColorHighlightOID as f}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js";import{ShaderBuilder as u}from"../views/webgl/ShaderBuilder.js";const w=.70710678118,b=w,h=.08715574274,y=10,S=1;function j(j){const C=new u,{vertex:T,fragment:P,attributes:R,varyings:V}=C,D=j.output===e.Highlight;c(T,j),C.include(r,j),C.include(a,j),C.include(l,j),C.include(t,j),C.fragment.include(o,j),C.include(f,j),C.include(i,j),j.draped?T.uniforms.add(new v("worldToScreenRatio",(e=>1/e.screenToPCSRatio))):R.add(p.BOUNDINGRECT,"mat3"),R.add(p.POSITION,"vec3"),R.add(p.UVMAPSPACE,"vec4"),j.vvColor&&R.add(p.COLORFEATUREATTRIBUTE,"float"),V.add("vColor","vec4"),V.add("vpos","vec3"),V.add("vuv","vec2"),T.uniforms.add(new s("uColor",(e=>e.color)));const O=j.style===m.ForwardDiagonal||j.style===m.BackwardDiagonal||j.style===m.DiagonalCross;return O&&T.code.add(g`
|
|
5
|
+
import{ShaderOutput as e}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as o}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as r}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{ObjectAndLayerIdColor as t}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{VertexColor as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{terrainDepthTest as i}from"../views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js";import{VisualVariables as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{ColorConversion as n}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as c,addCameraPosition as d}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float4PassUniform as s}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatBindUniform as v}from"../views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js";import{glsl as g}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{VertexAttribute as p}from"../views/3d/webgl-engine/lib/VertexAttribute.js";import{Style as m}from"../views/3d/webgl-engine/materials/PatternStyle.js";import{outputColorHighlightOID as f}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js";import{ShaderBuilder as u}from"../views/webgl/ShaderBuilder.js";const w=.70710678118,b=w,h=.08715574274,y=10,S=1;function j(j){const C=new u,{vertex:T,fragment:P,attributes:R,varyings:V}=C,D=j.output===e.Highlight;c(T,j),C.include(r,j),C.include(a,j),C.include(l,j),C.include(t,j),C.fragment.include(o,j),C.include(f,j),C.include(i,j),j.draped?T.uniforms.add(new v("worldToScreenRatio",(e=>1/e.screenToPCSRatio))):R.add(p.BOUNDINGRECT,"mat3"),R.add(p.POSITION,"vec3"),R.add(p.UVMAPSPACE,"vec4"),j.vvColor&&R.add(p.COLORFEATUREATTRIBUTE,"float"),j.hasVertexColors||V.add("vColor","vec4"),V.add("vpos","vec3"),V.add("vuv","vec2"),T.uniforms.add(new s("uColor",(e=>e.color)));const O=j.style===m.ForwardDiagonal||j.style===m.BackwardDiagonal||j.style===m.DiagonalCross;return O&&T.code.add(g`
|
|
6
6
|
const mat2 rotate45 = mat2(${g.float(w)}, ${g.float(-.70710678118)},
|
|
7
7
|
${g.float(b)}, ${g.float(w)});
|
|
8
8
|
`),j.draped||(d(T,j),T.uniforms.add(new v("worldToScreenPerDistanceRatio",(e=>1/e.camera.perScreenPixelRatio))),T.code.add(g`vec3 projectPointToLineSegment(vec3 center, vec3 halfVector, vec3 point) {
|
|
@@ -25,7 +25,7 @@ import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/
|
|
|
25
25
|
forwardViewPosDepth((view * vec4(vpos, 1.0)).xyz);
|
|
26
26
|
|
|
27
27
|
gl_Position = transformPosition(proj, view, vpos);
|
|
28
|
-
forwardLinearDepth();`)),S.include(c,O),O.output){case i.Color:case i.ColorEmission:S.include(t,{pbrMode:m.Disabled,lightingSphericalHarmonicsOrder:2}),S.include(w),S.include(v,O),S.include(p,O),S.fragment.include(o,O),S.include(C,O),N.uniforms.add(z,new y("timeElapsed",(e=>e
|
|
28
|
+
forwardLinearDepth();`)),S.include(c,O),O.output){case i.Color:case i.ColorEmission:S.include(t,{pbrMode:m.Disabled,lightingSphericalHarmonicsOrder:2}),S.include(w),S.include(v,O),S.include(p,O),S.fragment.include(o,O),S.include(C,O),N.include(u),h(N,O),l(N),d(N),N.uniforms.add(z,new y("timeElapsed",(({timeElapsed:e})=>e)),D.uniforms.get("view"),D.uniforms.get("localOrigin")).main.add(j`
|
|
29
29
|
discardBySlice(vpos);
|
|
30
30
|
discardByTerrainDepth();
|
|
31
31
|
vec3 localUp = vnormal;
|
|
@@ -51,7 +51,7 @@ import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/
|
|
|
51
51
|
vuv = uv0;
|
|
52
52
|
vpos = position;
|
|
53
53
|
|
|
54
|
-
gl_Position = transformPosition(proj, view, vpos);`),N.uniforms.add(new y("timeElapsed",(e=>e
|
|
54
|
+
gl_Position = transformPosition(proj, view, vpos);`),N.uniforms.add(new y("timeElapsed",(({timeElapsed:e})=>e))).main.add(j`discardBySlice(vpos);
|
|
55
55
|
vec4 tangentNormalFoam = getSurfaceNormalAndFoam(vuv, timeElapsed);
|
|
56
56
|
tangentNormalFoam.xyz = normalize(tangentNormalFoam.xyz);
|
|
57
57
|
fragColor = vec4((tangentNormalFoam.xyz + vec3(1.0)) * 0.5, tangentNormalFoam.w);`);break;case i.Highlight:S.include(n,O),S.varyings.add("vpos","vec3"),D.uniforms.add(z),D.main.add(j`
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{isSome as e}from"../../core/arrayUtils.js";import{load as r,supportsCurves as t,execute as o,executeMany as n,isLoaded as a}from"./gx/operatorProject.js";let s,i,c,m,f,p,u,l,h,j,x;function T(){return!!i&&a()}async function g(){if(!T()){const[e,o,n,a]=await Promise.all([import("./support/apiConverter.js"),import("../../chunks/ProjectionTransformation.js").then((e=>e.aI)).then((({CompositeGeographicTransformation:e})=>e)),import("../../chunks/ProjectionTransformation.js").then((e=>e.aJ)).then((({create:e,createFromWKT:r})=>({create:e,createFromWKT:r}))),import("../../chunks/ProjectionTransformation.js").then((e=>e.aK)).then((({createEx:e,createFromAoi:r})=>({createEx:e,createFromAoi:r}))),r()]);s=e.fromExtent,i=e.fromGeometry,c=e.fromSpatialReference,m=e.getSpatialReference,f=e.toGeometry,p=o,u=n.create,l=n.createFromWKT,h=a.createEx,j=a.createFromAoi,x=t()}}function E(e,r,t={}){const n=F(m(e),r,t);return f(o(i(e),n),r)}function k(r,t,o={}){const a=r.map(i),s=F(m(r),t,o);return n(a,s).map((e=>f(e,t))).filter(e)}function F(e,r,t={}){let o;if(t?.geographicTransformation){const e=t.geographicTransformation.steps.map((e=>e.wkid?u(e.wkid,e.isInverse):l(e.wkt,e.isInverse)));o=new p(e,null,
|
|
5
|
+
import{isSome as e}from"../../core/arrayUtils.js";import{load as r,supportsCurves as t,execute as o,executeMany as n,isLoaded as a}from"./gx/operatorProject.js";let s,i,c,m,f,p,u,l,h,j,x;function T(){return!!i&&a()}async function g(){if(!T()){const[e,o,n,a]=await Promise.all([import("./support/apiConverter.js"),import("../../chunks/ProjectionTransformation.js").then((e=>e.aI)).then((({CompositeGeographicTransformation:e})=>e)),import("../../chunks/ProjectionTransformation.js").then((e=>e.aJ)).then((({create:e,createFromWKT:r})=>({create:e,createFromWKT:r}))),import("../../chunks/ProjectionTransformation.js").then((e=>e.aK)).then((({createEx:e,createFromAoi:r})=>({createEx:e,createFromAoi:r}))),r()]);s=e.fromExtent,i=e.fromGeometry,c=e.fromSpatialReference,m=e.getSpatialReference,f=e.toGeometry,p=o,u=n.create,l=n.createFromWKT,h=a.createEx,j=a.createFromAoi,x=t()}}function E(e,r,t={}){const n=F(m(e),r,t);return f(o(i(e),n),r)}function k(r,t,o={}){const a=r.map(i),s=F(m(r),t,o);return n(a,s).map((e=>f(e,t))).filter(e)}function F(e,r,t={}){let o;const n=c(e),a=c(r);if(t?.geographicTransformation){const e=t.geographicTransformation.steps.map((e=>e.wkid?u(e.wkid,e.isInverse):l(e.wkt,e.isInverse)));o=new p(e,null,n,a)}else if(t?.areaOfInterestExtent)return j(n,a,s(t.areaOfInterestExtent).asEnvelope2D());return h(n,a,o)}export{E as execute,k as executeMany,T as isLoaded,g as load,x as supportsCurves};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{isSome as e}from"../../core/arrayUtils.js";import{load as r,supportsCurves as t,execute as n,executeMany as o,isLoaded as a}from"./gx/operatorShapePreservingProject.js";let i,s,c,m,p,f,u,
|
|
5
|
+
import{isSome as e}from"../../core/arrayUtils.js";import{load as r,supportsCurves as t,execute as n,executeMany as o,isLoaded as a}from"./gx/operatorShapePreservingProject.js";let i,s,c,m,p,f,u,h,g,l,x;function T(){return!!s&&a()}async function j(){if(!T()){const[e,n,o,a]=await Promise.all([import("./support/apiConverter.js"),import("../../chunks/ProjectionTransformation.js").then((e=>e.aI)).then((({CompositeGeographicTransformation:e})=>e)),import("../../chunks/ProjectionTransformation.js").then((e=>e.aJ)).then((({create:e,createFromWKT:r})=>({create:e,createFromWKT:r}))),import("../../chunks/ProjectionTransformation.js").then((e=>e.aK)).then((({createEx:e,createFromAoi:r})=>({createEx:e,createFromAoi:r}))),r()]);i=e.fromExtent,s=e.fromGeometry,c=e.fromSpatialReference,m=e.getSpatialReference,p=e.toGeometry,f=n,u=o.create,h=o.createFromWKT,g=a.createEx,l=a.createFromAoi,x=t()}}function I(e,r,t={}){const o=E(m(e),r,t),a=t?.maxDeviationInSrTo??0,i=t?.minSegmentLengthInDegrees??0;return p(n(s(e),o,i,a),r)}function v(r,t,n={}){const a=r.map(s),i=E(m(r),t,n),c=n?.maxDeviationInSrTo??0;return o(a,i,n?.minSegmentLengthInDegrees??0,c).map((e=>p(e,t))).filter(e)}function E(e,r,t={}){let n;const o=c(e),a=c(r);if(t?.geographicTransformation){const e=t.geographicTransformation.steps.map((e=>e.wkid?u(e.wkid,e.isInverse):h(e.wkt,e.isInverse)));n=new f(e,null,o,a)}else if(t?.areaOfInterestExtent)return l(o,a,i(t.areaOfInterestExtent).asEnvelope2D());return g(o,a,n)}export{I as execute,v as executeMany,T as isLoaded,j as load,x as supportsCurves};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../../../core/Logger.js";import{getMetersPerUnitForSR as t}from"../../../core/unitUtils.js";import o from"../../Mesh.js";import n from"../../Point.js";import{project as r}from"../../projection.js";import
|
|
5
|
+
import e from"../../../core/Logger.js";import{getMetersPerUnitForSR as t}from"../../../core/unitUtils.js";import o from"../../Mesh.js";import n from"../../Point.js";import{project as r}from"../../projection.js";import i from"../MeshComponent.js";import{MeshVertexAttributes as a}from"../MeshVertexAttributes.js";import{isGround as s}from"../../../support/groundInstanceUtils.js";async function l(t,o,n){let r;if(u(t)||s(t)){const e=await c(t);return r=await e.createElevationSampler(o,{demResolution:n?.demResolution??"finest-contiguous"}),m(r,o,{material:n?.material})}return"string"==typeof n?.demResolution?(e.getLogger("esri.geometry.support.meshUtils.elevation").error("create()","demResolution must be a number when used directly with a sampler"),null):m(t,o,{material:n?.material,demResolution:n?.demResolution})}function m(e,n,s){const l=t(n.spatialReference),m=(s?.demResolution??e.demResolution.min)/l,c=Math.round(n.width/m),u=Math.round(n.height/m),f=c+1,d=u+1,h=new Float64Array(f*d*3),R=new Float32Array(f*d*2);let w=0,y=0;const g=new Uint32Array(c*u*2*3);let j=0,v=0;const A=!e.spatialReference.equals(n.spatialReference);p.spatialReference=n.spatialReference;const{xmin:x,ymin:b,height:M,width:U}=n;for(let t=0;t<d;t++){const o=b+M*(t/u);for(let n=0;n<f;n++){const i=x+U*(n/c);if(h[w++]=i,h[w++]=o,A){p.x=i,p.y=o;const t=r(p,e.spatialReference);h[w++]=e.elevationAt(t.x,t.y)??0}else h[w++]=e.elevationAt(i,o)??0;const a=n/c,s=t/u;R[y++]=a,R[y++]=s,t!==u&&n!==c&&(g[v++]=j+1,g[v++]=j+f+1,g[v++]=j+f,g[v++]=j,g[v++]=j+1,g[v++]=j+f),j++}}return new o({vertexAttributes:new a({position:h,uv:R}),components:[new i({faces:g,shading:"smooth",material:s?.material??null})],spatialReference:n.spatialReference})}async function c(e){return u(e)?e.load():(await e.load(),await Promise.allSettled(e.layers.items.map((e=>e.load()))),e)}function u(e){return"type"in e&&("elevation"===e.type||"base-elevation"===e.type)}const p=new n;export{l as create};
|
package/interfaces.d.ts
CHANGED
|
@@ -23918,15 +23918,6 @@ declare namespace __esri {
|
|
|
23918
23918
|
}
|
|
23919
23919
|
|
|
23920
23920
|
export class Layer {
|
|
23921
|
-
/**
|
|
23922
|
-
* Called by the views, such as {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html MapView} and
|
|
23923
|
-
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}, when the layer is added to the
|
|
23924
|
-
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers Map.layers} collection and a layer view must
|
|
23925
|
-
* be created for it.
|
|
23926
|
-
*
|
|
23927
|
-
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#createLayerView Read more...}
|
|
23928
|
-
*/
|
|
23929
|
-
createLayerView: CreateLayerView | nullish;
|
|
23930
23921
|
/**
|
|
23931
23922
|
* The unique ID assigned to the layer.
|
|
23932
23923
|
*
|
|
@@ -24090,6 +24081,19 @@ declare namespace __esri {
|
|
|
24090
24081
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#cancelLoad Read more...}
|
|
24091
24082
|
*/
|
|
24092
24083
|
cancelLoad(): void;
|
|
24084
|
+
/**
|
|
24085
|
+
* Called by the views, such as {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html MapView} and
|
|
24086
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}, when the layer is added to the
|
|
24087
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers Map.layers} collection and a layer view must
|
|
24088
|
+
* be created for it.
|
|
24089
|
+
*
|
|
24090
|
+
* @param view The parent view.
|
|
24091
|
+
* @param options An object specifying additional options. See the object specification table below for the required properties of this object.
|
|
24092
|
+
* @param options.signal A signal to abort the creation of the layerview.
|
|
24093
|
+
*
|
|
24094
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#createLayerView Read more...}
|
|
24095
|
+
*/
|
|
24096
|
+
createLayerView(view: any, options?: LayerCreateLayerViewOptions): Promise<LayerView>;
|
|
24093
24097
|
/**
|
|
24094
24098
|
* Destroys the layer and any associated resources (including its {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#portalItem portalItem}, if it is a property on the layer).
|
|
24095
24099
|
*
|
|
@@ -24183,15 +24187,6 @@ declare namespace __esri {
|
|
|
24183
24187
|
}
|
|
24184
24188
|
|
|
24185
24189
|
interface LayerProperties extends LoadableProperties {
|
|
24186
|
-
/**
|
|
24187
|
-
* Called by the views, such as {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html MapView} and
|
|
24188
|
-
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}, when the layer is added to the
|
|
24189
|
-
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers Map.layers} collection and a layer view must
|
|
24190
|
-
* be created for it.
|
|
24191
|
-
*
|
|
24192
|
-
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#createLayerView Read more...}
|
|
24193
|
-
*/
|
|
24194
|
-
createLayerView?: CreateLayerView | nullish;
|
|
24195
24190
|
/**
|
|
24196
24191
|
* The full extent of the layer.
|
|
24197
24192
|
*
|
|
@@ -24242,7 +24237,9 @@ declare namespace __esri {
|
|
|
24242
24237
|
visible?: boolean;
|
|
24243
24238
|
}
|
|
24244
24239
|
|
|
24245
|
-
export
|
|
24240
|
+
export interface LayerCreateLayerViewOptions {
|
|
24241
|
+
signal?: AbortSignal | nullish;
|
|
24242
|
+
}
|
|
24246
24243
|
|
|
24247
24244
|
export interface LayerFromArcGISServerUrlParams {
|
|
24248
24245
|
url: string;
|
|
@@ -36672,6 +36669,7 @@ declare namespace __esri {
|
|
|
36672
36669
|
* @param parameters The clip parameters object has the following properties.
|
|
36673
36670
|
* @param parameters.geometry An extent or a polygon geometry to define the clip shape.
|
|
36674
36671
|
* @param parameters.keepOutside When `false`, the imagery within the clip geometry will be kept in the output. When `true`, imagery outside of the clip geometry will be kept and the imagery inside the clip geometry will be discarded.
|
|
36672
|
+
* @param parameters.raster The input raster. Default is the image service.
|
|
36675
36673
|
* @param parameters.outputPixelType The output pixel type.
|
|
36676
36674
|
*
|
|
36677
36675
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#clip Read more...}
|
|
@@ -36690,6 +36688,7 @@ declare namespace __esri {
|
|
|
36690
36688
|
*
|
|
36691
36689
|
* @param parameters The parameters object has the following properties.
|
|
36692
36690
|
* @param parameters.raster The input raster. Default is the image service.
|
|
36691
|
+
* @param parameters.outputPixelType The output pixel type, default is u8.
|
|
36693
36692
|
*
|
|
36694
36693
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#colormapToRGB Read more...}
|
|
36695
36694
|
*/
|
|
@@ -36701,9 +36700,9 @@ declare namespace __esri {
|
|
|
36701
36700
|
* @param parameters.rasters The input raster. Default is the image service.
|
|
36702
36701
|
* @param parameters.outputPixelType The output pixel type, default is unknown.
|
|
36703
36702
|
*
|
|
36704
|
-
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#
|
|
36703
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#compositeBand Read more...}
|
|
36705
36704
|
*/
|
|
36706
|
-
|
|
36705
|
+
compositeBand(parameters: rasterFunctionUtilsCompositeBandParameters): RasterFunction;
|
|
36707
36706
|
/**
|
|
36708
36707
|
* Creates a raster function that sets the truthy pixels (value is not 0) to the pixel value from a true raster, and falsy pixels (value is 0) to the pixel value of the false raster.
|
|
36709
36708
|
*
|
|
@@ -36821,6 +36820,7 @@ declare namespace __esri {
|
|
|
36821
36820
|
*
|
|
36822
36821
|
* @param parameters The grayscale parameters object has the following properties.
|
|
36823
36822
|
* @param parameters.weights The weights applied to each input band. Weights are often applied because some bands have variable importance depending on the application.
|
|
36823
|
+
* @param parameters.raster The input raster. Default is the image service.
|
|
36824
36824
|
* @param parameters.outputPixelType The output pixel type, default is unknown.
|
|
36825
36825
|
*
|
|
36826
36826
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#grayscale Read more...}
|
|
@@ -36922,7 +36922,7 @@ declare namespace __esri {
|
|
|
36922
36922
|
* @param parameters The parameters object has the following properties.
|
|
36923
36923
|
* @param parameters.includedRanges The included values for each band. Each band is specified using a range [from, to].
|
|
36924
36924
|
* @param parameters.noDataValues The nodata values for each band.
|
|
36925
|
-
* @param parameters.noDataInterpretation Result is no data if all bands are nodata when match-all is specified, any if any band is nodata when match-any is specified.
|
|
36925
|
+
* @param parameters.noDataInterpretation Result is no data if all bands are nodata when match-all is specified, any if any band is nodata when match-any is specified. Default is match-any.
|
|
36926
36926
|
* @param parameters.raster The input raster. Default is the image service.
|
|
36927
36927
|
* @param parameters.outputPixelType The output pixel type, default is unknown.
|
|
36928
36928
|
*
|
|
@@ -37045,6 +37045,7 @@ declare namespace __esri {
|
|
|
37045
37045
|
* @param parameters The parameters object has the following properties.
|
|
37046
37046
|
* @param parameters.slopeType The slope type
|
|
37047
37047
|
* @param parameters.zFactor A ratio of z unit / xy unit, with optional exaggeration factored in.
|
|
37048
|
+
* @param parameters.scalingType The slope result is scaled dynamically by adjusting the zFactor. Default is none.
|
|
37048
37049
|
* @param parameters.pixelSizePower Pixel size factor accounts for changes in scale as the viewer zooms in and out on the map display. It controls the rate at which the zFactor changes. This parameter is only valid when the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#scalingType scalingType} is `adjusted`.
|
|
37049
37050
|
* @param parameters.pixelSizeZFactor Pixel Size Power accounts for the altitude changes (or scale) as the viewer zooms in and out on the map display. It is the exponent applied to the pixel size term in the equation that controls the rate at which the zFactor changes to avoid significant loss of relief. This parameter is only valid when the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#scalingType scalingType} is `adjusted`.
|
|
37050
37051
|
* @param parameters.removeEdgeEffect Remove edge effect when true
|
|
@@ -37112,6 +37113,20 @@ declare namespace __esri {
|
|
|
37112
37113
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#stretchMinMax Read more...}
|
|
37113
37114
|
*/
|
|
37114
37115
|
stretchMinMax(parameters: rasterFunctionUtilsStretchMinMaxParameters): RasterFunction;
|
|
37116
|
+
/**
|
|
37117
|
+
* Creates a Stretch function without a specific stretch method.
|
|
37118
|
+
*
|
|
37119
|
+
* @param parameters The parameters object has the following properties.
|
|
37120
|
+
* @param parameters.outputMin The minimum output value. Default is 0.
|
|
37121
|
+
* @param parameters.outputMax The maximum output value. Default is 255.
|
|
37122
|
+
* @param parameters.useGamma When true, gamma stretch is applied.
|
|
37123
|
+
* @param parameters.gamma The gamma values used for each band, needed when useGamma is true.
|
|
37124
|
+
* @param parameters.raster The input raster. Default is the image service.
|
|
37125
|
+
* @param parameters.outputPixelType The output pixel type, default is unknown.
|
|
37126
|
+
*
|
|
37127
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-rasterFunctionUtils.html#stretchNone Read more...}
|
|
37128
|
+
*/
|
|
37129
|
+
stretchNone(parameters: rasterFunctionUtilsStretchNoneParameters): RasterFunction;
|
|
37115
37130
|
/**
|
|
37116
37131
|
* Creates a Stretch function using percent-clip stretch type.
|
|
37117
37132
|
*
|
|
@@ -37388,7 +37403,14 @@ declare namespace __esri {
|
|
|
37388
37403
|
| "yellow-to-green-to-dark-blue"
|
|
37389
37404
|
| "yellow-to-red"
|
|
37390
37405
|
| "yellow-green-bright"
|
|
37391
|
-
| "yellow-green-light-to-dark"
|
|
37406
|
+
| "yellow-green-light-to-dark"
|
|
37407
|
+
| "hillshade"
|
|
37408
|
+
| "gray"
|
|
37409
|
+
| "elevation"
|
|
37410
|
+
| "ndvi"
|
|
37411
|
+
| "ndvi2"
|
|
37412
|
+
| "ndvi3"
|
|
37413
|
+
| "random";
|
|
37392
37414
|
raster?: RasterPrimaryArgument;
|
|
37393
37415
|
outputPixelType?: OutputPixelType;
|
|
37394
37416
|
}
|
|
@@ -37597,7 +37619,7 @@ declare namespace __esri {
|
|
|
37597
37619
|
}
|
|
37598
37620
|
|
|
37599
37621
|
export interface rasterFunctionUtilsBandArithmeticSultanParameters {
|
|
37600
|
-
bandIds: [number, number, number, number, number
|
|
37622
|
+
bandIds: [number, number, number, number, number];
|
|
37601
37623
|
raster?: RasterPrimaryArgument;
|
|
37602
37624
|
outputPixelType?: OutputPixelType;
|
|
37603
37625
|
}
|
|
@@ -37639,14 +37661,16 @@ declare namespace __esri {
|
|
|
37639
37661
|
export interface rasterFunctionUtilsClipParameters {
|
|
37640
37662
|
geometry: Polygon | Extent;
|
|
37641
37663
|
keepOutside?: boolean;
|
|
37664
|
+
raster?: RasterPrimaryArgument;
|
|
37642
37665
|
outputPixelType?: OutputPixelType;
|
|
37643
37666
|
}
|
|
37644
37667
|
|
|
37645
37668
|
export interface rasterFunctionUtilsColormapToRGBParameters {
|
|
37646
37669
|
raster?: RasterPrimaryArgument;
|
|
37670
|
+
outputPixelType?: OutputPixelType;
|
|
37647
37671
|
}
|
|
37648
37672
|
|
|
37649
|
-
export interface
|
|
37673
|
+
export interface rasterFunctionUtilsCompositeBandParameters {
|
|
37650
37674
|
rasters: RasterArgument[];
|
|
37651
37675
|
outputPixelType?: OutputPixelType;
|
|
37652
37676
|
}
|
|
@@ -37667,6 +37691,7 @@ declare namespace __esri {
|
|
|
37667
37691
|
|
|
37668
37692
|
export interface rasterFunctionUtilsGrayscaleParameters {
|
|
37669
37693
|
weights: number[];
|
|
37694
|
+
raster?: RasterPrimaryArgument;
|
|
37670
37695
|
outputPixelType?: OutputPixelType;
|
|
37671
37696
|
}
|
|
37672
37697
|
|
|
@@ -37684,9 +37709,9 @@ declare namespace __esri {
|
|
|
37684
37709
|
}
|
|
37685
37710
|
|
|
37686
37711
|
export interface rasterFunctionUtilsMaskParameters {
|
|
37687
|
-
includedRanges
|
|
37688
|
-
noDataValues
|
|
37689
|
-
noDataInterpretation
|
|
37712
|
+
includedRanges?: [number, number][];
|
|
37713
|
+
noDataValues?: number[][];
|
|
37714
|
+
noDataInterpretation?: "match-any" | "match-all";
|
|
37690
37715
|
raster?: RasterPrimaryArgument;
|
|
37691
37716
|
outputPixelType?: OutputPixelType;
|
|
37692
37717
|
}
|
|
@@ -37701,6 +37726,7 @@ declare namespace __esri {
|
|
|
37701
37726
|
export interface rasterFunctionUtilsSlopeParameters {
|
|
37702
37727
|
slopeType: "degree" | "percent-rise";
|
|
37703
37728
|
zFactor: number;
|
|
37729
|
+
scalingType?: "none" | "adjusted";
|
|
37704
37730
|
pixelSizePower?: number;
|
|
37705
37731
|
pixelSizeZFactor?: number;
|
|
37706
37732
|
removeEdgeEffect?: boolean;
|
|
@@ -37735,6 +37761,15 @@ declare namespace __esri {
|
|
|
37735
37761
|
outputPixelType?: OutputPixelType;
|
|
37736
37762
|
}
|
|
37737
37763
|
|
|
37764
|
+
export interface rasterFunctionUtilsStretchNoneParameters {
|
|
37765
|
+
outputMin?: number;
|
|
37766
|
+
outputMax?: number;
|
|
37767
|
+
useGamma?: boolean;
|
|
37768
|
+
gamma?: number[];
|
|
37769
|
+
raster?: RasterPrimaryArgument;
|
|
37770
|
+
outputPixelType?: OutputPixelType;
|
|
37771
|
+
}
|
|
37772
|
+
|
|
37738
37773
|
export interface rasterFunctionUtilsStretchPercentClipParameters {
|
|
37739
37774
|
minPercent: number;
|
|
37740
37775
|
maxPercent: number;
|
|
@@ -70372,8 +70407,8 @@ declare namespace __esri {
|
|
|
70372
70407
|
*
|
|
70373
70408
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#mosaicRule Read more...}
|
|
70374
70409
|
*/
|
|
70375
|
-
get mosaicRule(): MosaicRule;
|
|
70376
|
-
set mosaicRule(value: MosaicRuleProperties);
|
|
70410
|
+
get mosaicRule(): MosaicRule | nullish;
|
|
70411
|
+
set mosaicRule(value: MosaicRuleProperties | nullish);
|
|
70377
70412
|
/**
|
|
70378
70413
|
* Specifies the pixel level being identified on the x and y axis.
|
|
70379
70414
|
*
|
|
@@ -70441,7 +70476,7 @@ declare namespace __esri {
|
|
|
70441
70476
|
*
|
|
70442
70477
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#mosaicRule Read more...}
|
|
70443
70478
|
*/
|
|
70444
|
-
mosaicRule?: MosaicRuleProperties;
|
|
70479
|
+
mosaicRule?: MosaicRuleProperties | nullish;
|
|
70445
70480
|
/**
|
|
70446
70481
|
* Specifies the pixel level being identified on the x and y axis.
|
|
70447
70482
|
*
|
|
@@ -70560,8 +70595,8 @@ declare namespace __esri {
|
|
|
70560
70595
|
*
|
|
70561
70596
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#location Read more...}
|
|
70562
70597
|
*/
|
|
70563
|
-
get location(): Point
|
|
70564
|
-
set location(value: PointProperties
|
|
70598
|
+
get location(): Point;
|
|
70599
|
+
set location(value: PointProperties);
|
|
70565
70600
|
/**
|
|
70566
70601
|
* Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
|
|
70567
70602
|
*
|
|
@@ -70598,7 +70633,7 @@ declare namespace __esri {
|
|
|
70598
70633
|
*
|
|
70599
70634
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#location Read more...}
|
|
70600
70635
|
*/
|
|
70601
|
-
location?: PointProperties
|
|
70636
|
+
location?: PointProperties;
|
|
70602
70637
|
/**
|
|
70603
70638
|
* The identify property name.
|
|
70604
70639
|
*
|
|
@@ -70988,8 +71023,8 @@ declare namespace __esri {
|
|
|
70988
71023
|
*
|
|
70989
71024
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationParameters.html#geometries Read more...}
|
|
70990
71025
|
*/
|
|
70991
|
-
get geometries(): Point[]
|
|
70992
|
-
set geometries(value: PointProperties[]
|
|
71026
|
+
get geometries(): Point[];
|
|
71027
|
+
set geometries(value: PointProperties[]);
|
|
70993
71028
|
/**
|
|
70994
71029
|
* Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
|
|
70995
71030
|
*
|
|
@@ -71014,7 +71049,7 @@ declare namespace __esri {
|
|
|
71014
71049
|
*
|
|
71015
71050
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationParameters.html#geometries Read more...}
|
|
71016
71051
|
*/
|
|
71017
|
-
geometries?: PointProperties[]
|
|
71052
|
+
geometries?: PointProperties[];
|
|
71018
71053
|
/**
|
|
71019
71054
|
* The rasterId of a raster catalog in the image service.
|
|
71020
71055
|
*
|
|
@@ -71161,7 +71196,7 @@ declare namespace __esri {
|
|
|
71161
71196
|
*
|
|
71162
71197
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#locationId Read more...}
|
|
71163
71198
|
*/
|
|
71164
|
-
locationId: number
|
|
71199
|
+
locationId: number;
|
|
71165
71200
|
/**
|
|
71166
71201
|
* The pixel value associated with the sampled location.
|
|
71167
71202
|
*
|
|
@@ -71179,7 +71214,7 @@ declare namespace __esri {
|
|
|
71179
71214
|
*
|
|
71180
71215
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#resolution Read more...}
|
|
71181
71216
|
*/
|
|
71182
|
-
resolution: number
|
|
71217
|
+
resolution: number;
|
|
71183
71218
|
/**
|
|
71184
71219
|
* The {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#getSamples getSamples}
|
|
71185
71220
|
* method on {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html ImageryLayer} returns
|
|
@@ -71193,8 +71228,8 @@ declare namespace __esri {
|
|
|
71193
71228
|
*
|
|
71194
71229
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#location Read more...}
|
|
71195
71230
|
*/
|
|
71196
|
-
get location(): Point
|
|
71197
|
-
set location(value: PointProperties
|
|
71231
|
+
get location(): Point;
|
|
71232
|
+
set location(value: PointProperties);
|
|
71198
71233
|
/**
|
|
71199
71234
|
* Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
|
|
71200
71235
|
*
|
|
@@ -71225,13 +71260,13 @@ declare namespace __esri {
|
|
|
71225
71260
|
*
|
|
71226
71261
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#location Read more...}
|
|
71227
71262
|
*/
|
|
71228
|
-
location?: PointProperties
|
|
71263
|
+
location?: PointProperties;
|
|
71229
71264
|
/**
|
|
71230
71265
|
* The location id.
|
|
71231
71266
|
*
|
|
71232
71267
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#locationId Read more...}
|
|
71233
71268
|
*/
|
|
71234
|
-
locationId?: number
|
|
71269
|
+
locationId?: number;
|
|
71235
71270
|
/**
|
|
71236
71271
|
* The pixel value associated with the sampled location.
|
|
71237
71272
|
*
|
|
@@ -71249,7 +71284,7 @@ declare namespace __esri {
|
|
|
71249
71284
|
*
|
|
71250
71285
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#resolution Read more...}
|
|
71251
71286
|
*/
|
|
71252
|
-
resolution?: number
|
|
71287
|
+
resolution?: number;
|
|
71253
71288
|
}
|
|
71254
71289
|
|
|
71255
71290
|
export interface ImageSampleParameters extends Accessor, JSONSupport {
|
|
@@ -71323,8 +71358,8 @@ declare namespace __esri {
|
|
|
71323
71358
|
*
|
|
71324
71359
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#locations Read more...}
|
|
71325
71360
|
*/
|
|
71326
|
-
get locations(): Point[];
|
|
71327
|
-
set locations(value: PointProperties[]);
|
|
71361
|
+
get locations(): Point[] | nullish;
|
|
71362
|
+
set locations(value: PointProperties[] | nullish);
|
|
71328
71363
|
/**
|
|
71329
71364
|
* Specifies the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html mosaic rule} defining the image sort order and selection.
|
|
71330
71365
|
*
|
|
@@ -71387,7 +71422,7 @@ declare namespace __esri {
|
|
|
71387
71422
|
*
|
|
71388
71423
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#locations Read more...}
|
|
71389
71424
|
*/
|
|
71390
|
-
locations?: PointProperties[];
|
|
71425
|
+
locations?: PointProperties[] | nullish;
|
|
71391
71426
|
/**
|
|
71392
71427
|
* Specifies the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html mosaic rule} defining the image sort order and selection.
|
|
71393
71428
|
*
|
|
@@ -71491,7 +71526,7 @@ declare namespace __esri {
|
|
|
71491
71526
|
*
|
|
71492
71527
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageToMapMultirayParameters.html#rasterIds Read more...}
|
|
71493
71528
|
*/
|
|
71494
|
-
rasterIds: number[]
|
|
71529
|
+
rasterIds: number[];
|
|
71495
71530
|
/**
|
|
71496
71531
|
* Input parameters for the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#imageToMapMultiray ImageryLayer.imageToMapMultiray()}
|
|
71497
71532
|
* or {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#imageToMapMultiray imageService.imageToMapMultiray()} methods.
|
|
@@ -71563,7 +71598,7 @@ declare namespace __esri {
|
|
|
71563
71598
|
*
|
|
71564
71599
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageToMapMultirayParameters.html#rasterIds Read more...}
|
|
71565
71600
|
*/
|
|
71566
|
-
rasterIds?: number[]
|
|
71601
|
+
rasterIds?: number[];
|
|
71567
71602
|
}
|
|
71568
71603
|
|
|
71569
71604
|
export class ImageToMapParameters extends JSONSupport {
|
|
@@ -103347,6 +103382,13 @@ declare namespace __esri {
|
|
|
103347
103382
|
*/
|
|
103348
103383
|
get graphic(): Graphic | nullish;
|
|
103349
103384
|
set graphic(value: GraphicProperties | nullish);
|
|
103385
|
+
/**
|
|
103386
|
+
* An array of {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-AttachmentsOrderByInfo.html AttachmentsOrderByInfo} indicating the display order for the attachments, and whether they should be sorted in ascending `asc` or descending `desc` order.
|
|
103387
|
+
*
|
|
103388
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#orderByFields Read more...}
|
|
103389
|
+
*/
|
|
103390
|
+
get orderByFields(): AttachmentsOrderByInfo[] | nullish;
|
|
103391
|
+
set orderByFields(value: AttachmentsOrderByInfoProperties[] | nullish);
|
|
103350
103392
|
/**
|
|
103351
103393
|
* Queries for the attachments on a feature.
|
|
103352
103394
|
*
|
|
@@ -103380,6 +103422,12 @@ declare namespace __esri {
|
|
|
103380
103422
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#mode Read more...}
|
|
103381
103423
|
*/
|
|
103382
103424
|
mode?: "view" | "add" | "edit";
|
|
103425
|
+
/**
|
|
103426
|
+
* An array of {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-AttachmentsOrderByInfo.html AttachmentsOrderByInfo} indicating the display order for the attachments, and whether they should be sorted in ascending `asc` or descending `desc` order.
|
|
103427
|
+
*
|
|
103428
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#orderByFields Read more...}
|
|
103429
|
+
*/
|
|
103430
|
+
orderByFields?: AttachmentsOrderByInfoProperties[] | nullish;
|
|
103383
103431
|
}
|
|
103384
103432
|
|
|
103385
103433
|
/**
|
package/layers/Layer.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{_ as
|
|
5
|
+
import{_ as e}from"../chunks/tslib.es6.js";import t from"../request.js";import r from"../core/Error.js";import o from"../core/Evented.js";import i from"../core/Identifiable.js";import s from"../core/Loadable.js";import a from"../core/Logger.js";import{isAbortError as l}from"../core/promiseUtils.js";import{urlToObject as n}from"../core/urlUtils.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as y}from"../core/accessorSupport/decorators/subclass.js";import d from"../geometry/Extent.js";import c from"../geometry/SpatialReference.js";import{fromPortalItem as u}from"./support/fromPortalItem.js";import m from"../time/TimeExtent.js";let b=0,h=class extends(o.EventedMixin(i.IdentifiableMixin(s))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d(-180,-90,180,90,c.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=c.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await import("./support/arcgisLayers.js")).fromUrl(t)}static fromPortalItem(e){return u(e)}initialize(){this.when().catch((e=>{l(e)||a.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return n(this.url)}createLayerView(e,t){return Promise.reject(new r("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e){return(await t(e,{query:{f:"json"},responseType:"json"})).data}throw new r("layer:no-attribution-data","Layer does not have attribution data")}};e([p({type:String})],h.prototype,"attributionDataUrl",void 0),e([p({readOnly:!0})],h.prototype,"effectiveVisible",null),e([p({type:d})],h.prototype,"fullExtent",void 0),e([p({readOnly:!0})],h.prototype,"hasAttributionData",null),e([p({type:String,clonable:!1})],h.prototype,"id",void 0),e([p({type:Boolean,nonNullable:!0})],h.prototype,"legendEnabled",void 0),e([p({type:["show","hide","hide-children"]})],h.prototype,"listMode",void 0),e([p({type:Number,range:{min:0,max:1},nonNullable:!0})],h.prototype,"opacity",void 0),e([p({clonable:!1})],h.prototype,"parent",void 0),e([p({readOnly:!0})],h.prototype,"parsedUrl",null),e([p({type:Boolean,readOnly:!0})],h.prototype,"persistenceEnabled",void 0),e([p({type:Boolean})],h.prototype,"popupEnabled",void 0),e([p({type:Boolean})],h.prototype,"attributionVisible",void 0),e([p({type:c})],h.prototype,"spatialReference",void 0),e([p({type:String})],h.prototype,"title",void 0),e([p({readOnly:!0,json:{read:!1}})],h.prototype,"type",void 0),e([p()],h.prototype,"url",void 0),e([p({type:m})],h.prototype,"visibilityTimeExtent",void 0),e([p({type:Boolean,nonNullable:!0})],h.prototype,"visible",void 0),h=e([y("esri.layers.Layer")],h);const f=h;export{f as default};
|