@arcgis/core 6.0.0-next.36 → 6.0.0-next.38
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/analysis/DimensionAnalysis.js +1 -1
- package/analysis/DimensionSimpleStyle.js +1 -1
- package/analysis/LengthDimension.js +1 -1
- package/analysis/LineOfSightAnalysis.js +1 -1
- package/analysis/LineOfSightAnalysisTarget.js +1 -1
- package/analysis/Viewshed.js +1 -1
- package/analysis/ViewshedAnalysis.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{0202eb8c2b2865f99981.js → 00311d1b18d5952a014b.js} +1 -1
- package/assets/esri/core/workers/chunks/{9503eedfdda55fc5adab.js → 091ec4fe83038f3558f4.js} +1 -1
- package/assets/esri/core/workers/chunks/0b21d0e2e5a91c34a108.js +1 -0
- package/assets/esri/core/workers/chunks/{322b22a5d54e404bebd5.js → 0c893837f67829757df7.js} +1 -1
- package/assets/esri/core/workers/chunks/123541f79be7adff0818.js +1 -0
- package/assets/esri/core/workers/chunks/{155861fbd0e5fc2db80c.js → 1a91443970d64a59521d.js} +1 -1
- package/assets/esri/core/workers/chunks/1e37337f47f45d6d8005.js +1 -0
- package/assets/esri/core/workers/chunks/{4e5405134d079bdf9b7a.js → 1f76f6dcdae9f55389cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{f717005e14a7e9141df7.js → 2050c844b5a29b1df28a.js} +1 -1
- package/assets/esri/core/workers/chunks/2c3612379111457c3221.js +1 -0
- package/assets/esri/core/workers/chunks/2d16b5a44f840147e882.js +1 -0
- package/assets/esri/core/workers/chunks/{d9a240a3c6bf85124474.js → 342a97974a78007b25e0.js} +1 -1
- package/assets/esri/core/workers/chunks/34467f7d84baffd772a3.js +1 -0
- package/assets/esri/core/workers/chunks/396299c22994c502e41c.js +1 -0
- package/assets/esri/core/workers/chunks/{03daf6f235c6edef6268.js → 398ec098fffe6abceedd.js} +1 -1
- package/assets/esri/core/workers/chunks/3b32a24488b3068f0cb7.js +1 -0
- package/assets/esri/core/workers/chunks/3b5e9e0b180dc10491ec.js +1 -0
- package/assets/esri/core/workers/chunks/{4d18b48d4a282a0f341c.js → 427d929dc7f89b0a1ea9.js} +1 -1
- package/assets/esri/core/workers/chunks/432728c557be5dfa26b5.js +1 -0
- package/assets/esri/core/workers/chunks/46969f379623810b2eca.js +1 -0
- package/assets/esri/core/workers/chunks/46edd6c9ed6701e6b975.js +1 -0
- package/assets/esri/core/workers/chunks/{8b0d5551978ab0aac0d1.js → 520f499d79fa71f262c7.js} +1 -1
- package/assets/esri/core/workers/chunks/5473409fee59db80f87d.js +1 -0
- package/assets/esri/core/workers/chunks/553a8bf5bc5c56d1bcaf.js +1 -0
- package/assets/esri/core/workers/chunks/{2211ff0a1f1ae8100231.js → 585ae43c7bcb86a26762.js} +1 -1
- package/assets/esri/core/workers/chunks/58716a3a6106a1b0fb9d.js +1 -0
- package/assets/esri/core/workers/chunks/{aa6ee2aa4ff6e6d41efb.js → 5882f349f3771868e67f.js} +1 -1
- package/assets/esri/core/workers/chunks/592b5db1459c02cf6a0c.js +1 -0
- package/assets/esri/core/workers/chunks/{1b17f5f720f6cf3f6d73.js → 5be386b3af867b19ff39.js} +1 -1
- package/assets/esri/core/workers/chunks/{ea81f9d71b0842a4be26.js → 5e48898cebb6dbaf09b5.js} +1 -1
- package/assets/esri/core/workers/chunks/6a21dc13a465757ba007.js +1 -0
- package/assets/esri/core/workers/chunks/{139e753d95cfc9470e74.js → 6a65fc1a2931230fe994.js} +1 -1
- package/assets/esri/core/workers/chunks/{3e406043a374ee17475b.js → 6f2e7e663229b223b4df.js} +1 -1
- package/assets/esri/core/workers/chunks/{379db67f78161ebd5468.js → 7023651ed6398dcf8efb.js} +1 -1
- package/assets/esri/core/workers/chunks/{90360c0bd053d3e3fd77.js → 7027a0e7bfabb3bb7fc2.js} +1 -1
- package/assets/esri/core/workers/chunks/76e80381fa6d1e084796.js +1 -0
- package/assets/esri/core/workers/chunks/78818c2a898444f7e890.js +1 -0
- package/assets/esri/core/workers/chunks/{40c2674dae73f0942751.js → 7d497df6e13162156342.js} +1 -1
- package/assets/esri/core/workers/chunks/{3b380e64566a6cce59e2.js → 7e0ed6e8f7b77e43f628.js} +1 -1
- package/assets/esri/core/workers/chunks/8c3779de09291170497f.js +1 -0
- package/assets/esri/core/workers/chunks/8e391b5b82429f39791e.js +1 -0
- package/assets/esri/core/workers/chunks/947f3a1cad976bba9738.js +1 -0
- package/assets/esri/core/workers/chunks/{59a1b637d2c107504a04.js → 966204d6dedc8149c3e9.js} +1 -1
- package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +1 -0
- package/assets/esri/core/workers/chunks/{d3369ffed19f4c264dcd.js → 9ab0735e86cf8932bf9d.js} +1 -1
- package/assets/esri/core/workers/chunks/ab0ea4042f4e13874aed.js +1 -0
- package/assets/esri/core/workers/chunks/ab98ade3257360015d6c.js +1 -0
- package/assets/esri/core/workers/chunks/ac107079342251a984dd.js +1 -0
- package/assets/esri/core/workers/chunks/{572aec57593a08b8045b.js → b15a8d4322f3b7819d2f.js} +1 -1
- package/assets/esri/core/workers/chunks/{552c36b40e5a5ec117fb.js → b472c0a21ae29e653f7d.js} +1 -1
- package/assets/esri/core/workers/chunks/b90271ce38522bcf813b.js +1 -0
- package/assets/esri/core/workers/chunks/ba91df9835cdea7698a9.js +1 -0
- package/assets/esri/core/workers/chunks/bdd76a0b6c14e7fb6984.js +1 -0
- package/assets/esri/core/workers/chunks/bfe13ac9fa1aafb190a1.js +1 -0
- package/assets/esri/core/workers/chunks/{f372f4eb5527238c46f5.js → c31830ee897d5a7f2582.js} +1 -1
- package/assets/esri/core/workers/chunks/c48d97c38e821be17dc5.js +1 -0
- package/assets/esri/core/workers/chunks/{0a508e25ec05363e1f04.js → c7ad62f54d2abe1d17a0.js} +1 -1
- package/assets/esri/core/workers/chunks/cb1642ea8b66231cbfb5.js +1 -0
- package/assets/esri/core/workers/chunks/ce0274847ccce6a1ac53.js +1 -0
- package/assets/esri/core/workers/chunks/cf21b217b13770757cb8.js +1 -0
- package/assets/esri/core/workers/chunks/cf2e5f827cea7d7319ce.js +1 -0
- package/assets/esri/core/workers/chunks/d42a4f47843e075c56a8.js +1 -0
- package/assets/esri/core/workers/chunks/dae2036faa28dade2119.js +1 -0
- package/assets/esri/core/workers/chunks/e2430bc3a1edeb5c3266.js +1 -0
- package/assets/esri/core/workers/chunks/e9457a67befc61e11095.js +1 -0
- package/assets/esri/core/workers/chunks/f06ef153e106b26a6748.js +1 -0
- package/assets/esri/core/workers/chunks/faae3c43048b42341536.js +1 -0
- package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +1 -0
- package/assets/esri/core/workers/chunks/fd967a9f3cf0e2890dbb.js +1 -0
- package/chunks/Clouds.glsl.js +7 -11
- package/chunks/h.js +2 -0
- package/chunks/projector.js +2 -0
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/sanitizerUtils.js +1 -1
- package/form/FormTemplate.js +1 -1
- package/form/elements/Element.js +1 -1
- package/form/elements/FieldElement.js +1 -1
- package/geometry/ellipsoidUtils.js +4 -4
- package/geometry/support/frustumPlanes.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/triangle.js +1 -1
- package/kernel.js +1 -1
- package/layers/BaseElevationLayer.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/GraphicsLayer.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.d.ts +2 -0
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
- package/layers/geospatialPDF/support/datumUtils.js +2 -0
- package/layers/geospatialPDF/support/ellipsoidUtils.js +2 -0
- package/layers/geospatialPDF/support/geographicProjectionUtils.js +2 -0
- package/layers/geospatialPDF/support/parameterUtils.js +2 -0
- package/layers/geospatialPDF/support/projectedProjectionUtils.js +3 -0
- package/layers/geospatialPDF/support/projectionToSpatialReference.js +2 -0
- package/layers/geospatialPDF/support/statePlaneUtils.js +2 -0
- package/layers/geospatialPDF/support/unitUtils.js +2 -0
- package/layers/geospatialPDF/support/validateProjectionUtils.js +2 -0
- package/layers/graphics/sources/support/clientSideDefaults.js +2 -2
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/save/imageryUtils.js +1 -1
- package/layers/save/mediaLayerUtils.js +1 -1
- package/layers/save/streamLayerUtils.js +1 -1
- package/layers/support/ControlPoint.js +1 -1
- package/layers/support/ControlPointsGeoreference.js +1 -1
- package/layers/support/DimensionalDefinition.js +1 -1
- package/layers/support/ElevationQuery.js +1 -1
- package/layers/support/LabelClass.js +1 -1
- package/layers/support/LabelExpressionInfo.js +1 -1
- package/layers/support/MediaElementBase.js +1 -1
- package/layers/support/MosaicRule.js +1 -1
- package/layers/support/MultidimensionalSubset.js +1 -1
- package/layers/support/RasterBandInfo.js +1 -1
- package/layers/support/RasterFunction.js +1 -1
- package/layers/support/RasterFunctionTemplate.js +1 -1
- package/layers/support/RasterInfo.js +1 -1
- package/layers/support/RasterSensorInfo.js +1 -1
- package/layers/support/RasterStorageInfo.js +1 -1
- package/layers/support/VideoElement.js +1 -1
- package/layers/support/layersLoader.js +1 -1
- package/layers/video/VideoController.js +3 -3
- package/layers/video/types.d.ts +12 -0
- package/legend/ActiveLayerInfo.d.ts +5 -1
- package/legend/ActiveLayerInfo.js +1 -1
- package/libs/maquette-advanced-projector/projector.js +1 -1
- package/linkChart/LayoutSettings.js +1 -1
- package/linkChart/RootedLayoutSettings.js +1 -1
- package/package.json +3 -3
- package/renderers/FlowRenderer.js +1 -1
- package/renderers/RasterColormapRenderer.js +1 -1
- package/renderers/RasterShadedReliefRenderer.js +1 -1
- package/renderers/RasterStretchRenderer.js +1 -1
- package/renderers/VectorFieldRenderer.js +1 -1
- package/renderers/support/ColormapInfo.js +1 -1
- package/renderers/support/RasterPresetRenderer.js +1 -1
- package/renderers/support/rasterRendererHelper.js +1 -1
- package/rest/knowledgeGraph/GraphApplyEdits.js +1 -1
- package/rest/support/BaseImageMeasureParameters.js +1 -1
- package/rest/support/BaseImageMeasureResult.js +1 -1
- package/rest/support/FindImagesParameters.js +1 -1
- package/rest/support/FindImagesResult.js +1 -1
- package/rest/support/ImageAngleParameters.js +1 -1
- package/rest/support/ImageAngleResult.js +1 -1
- package/rest/support/ImageAreaParameters.js +1 -1
- package/rest/support/ImageAreaResult.js +1 -1
- package/rest/support/ImageBoundaryParameters.js +1 -1
- package/rest/support/ImageBoundaryResult.js +1 -1
- package/rest/support/ImageDistanceParameters.js +1 -1
- package/rest/support/ImageDistanceResult.js +1 -1
- package/rest/support/ImageGPSInfoParameters.js +1 -1
- package/rest/support/ImageGPSInfoResult.js +1 -1
- package/rest/support/ImageHeightParameters.js +1 -1
- package/rest/support/ImageHeightResult.js +1 -1
- package/rest/support/ImageHistogramParameters.js +1 -1
- package/rest/support/ImageIdentifyParameters.js +1 -1
- package/rest/support/ImageIdentifyResult.js +1 -1
- package/rest/support/ImagePixelLocationParameters.js +1 -1
- package/rest/support/ImagePixelLocationResult.js +1 -1
- package/rest/support/ImagePointParameters.js +1 -1
- package/rest/support/ImagePointResult.js +1 -1
- package/rest/support/ImageSample.js +1 -1
- package/rest/support/ImageSampleParameters.js +1 -1
- package/rest/support/ImageSampleResult.js +1 -1
- package/rest/support/ImageToMapMultirayParameters.js +1 -1
- package/rest/support/ImageToMapParameters.js +1 -1
- package/rest/support/ImageUrlParameters.js +1 -1
- package/rest/support/ImageUrlResult.js +1 -1
- package/rest/support/ImageVolumeParameters.js +1 -1
- package/rest/support/ImageVolumeResult.js +1 -1
- package/rest/support/MapToImageParameters.js +1 -1
- package/rest/support/MeasureAreaFromImageResult.js +1 -1
- package/rest/support/MeasureFromImageParameters.js +1 -1
- package/rest/support/MeasureLengthFromImageResult.js +1 -1
- package/symbols/support/cimSymbolUtils.js +1 -1
- package/symbols/support/renderUtils.js +1 -1
- package/views/2d/ViewState.d.ts +3 -3
- package/views/2d/ViewState.js +1 -1
- package/views/2d/ViewStateManager.js +1 -1
- package/views/2d/engine/Bitmap.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/CollisionJob.js +1 -1
- package/views/2d/engine/vectorTiles/style/geoJSONVectorTileUtils.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
- package/views/2d/engine/webgl/animations/store/AnimationStore.js +1 -1
- package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
- package/views/2d/engine/webgl/collisions/LabelStore.js +1 -1
- package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/blend/BlendTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityResources.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTexture.js +1 -1
- package/views/2d/engine/webgl/textureUtils.js +1 -1
- package/views/2d/engine/webgl/util/IntervalMatcher.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/webglDeps.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
- package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/engineContent/marker.js +1 -1
- package/views/3d/support/flow/StreamlineResources3D.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
- package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTileBuilder.js +2 -0
- package/views/3d/support/gaussianSplatting/GaussianTileLifecycle.js +2 -0
- package/views/3d/support/gaussianSplatting/formatConstants.js +2 -0
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/terrain/tileUtils.js +1 -1
- package/views/3d/webgl/RenderNode.d.ts +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +15 -11
- package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +19 -9
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
- package/views/3d/webgl-engine/lib/AttributeView.js +1 -1
- package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/DDSUtil.js +1 -1
- package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBufferView.js +1 -1
- package/views/3d/webgl-engine/lib/VerticesView.js +2 -0
- package/views/3d/webgl-engine/lib/attributeViewUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/glUtil3D.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/materials/internal/lineMarkerBufferUtils.js +2 -0
- package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +2 -0
- package/views/3d/webgl-engine/materials/renderers/VaoRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/stippleTextureRepository.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/hudMaterialLayouts.js +2 -0
- package/views/3d/webgl-engine/shaders/lineMarkerLayouts.js +2 -0
- package/views/draw/support/ManagedTooltipField.js +1 -1
- package/views/overlay/LineOverlayItem.js +1 -1
- package/views/overlay/TextOverlayItem.js +1 -1
- package/views/overlay/ViewOverlay.js +1 -1
- package/views/support/GroundElevationSampler.js +1 -1
- package/views/support/HighlightOptions.d.ts +2 -2
- package/views/support/HighlightOptions.js +1 -1
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/support/imageReprojection.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/Util.js +1 -1
- package/views/webgl/rasterUtils.js +1 -1
- package/views/webgl/testSVGPremultipliedAlpha.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/Legend/styles/support/univariateUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/ScaleRangeSlider/types.d.ts +3 -3
- package/assets/esri/core/workers/chunks/01f55004d64309f8538b.js +0 -1
- package/assets/esri/core/workers/chunks/039d9bc5b5015012f811.js +0 -1
- package/assets/esri/core/workers/chunks/08140725277de5d2e41a.js +0 -1
- package/assets/esri/core/workers/chunks/0d99bfb75dcb9fa29080.js +0 -1
- package/assets/esri/core/workers/chunks/144bad0c2415c345736a.js +0 -1
- package/assets/esri/core/workers/chunks/165ca7a97b611c8f26c4.js +0 -1
- package/assets/esri/core/workers/chunks/16cda273927ab0a39544.js +0 -1
- package/assets/esri/core/workers/chunks/1989410a618865f02dec.js +0 -1
- package/assets/esri/core/workers/chunks/29c610ce1c81ebb84a6b.js +0 -1
- package/assets/esri/core/workers/chunks/3223f9fbc76ba9ef8d13.js +0 -1
- package/assets/esri/core/workers/chunks/338d800d4efcc91cead1.js +0 -1
- package/assets/esri/core/workers/chunks/3415531224f8494d79ca.js +0 -1
- package/assets/esri/core/workers/chunks/3fdcc383bbd9cf0d274c.js +0 -1
- package/assets/esri/core/workers/chunks/46c290108a90518ef695.js +0 -1
- package/assets/esri/core/workers/chunks/48b8b57f559a53c6c513.js +0 -1
- package/assets/esri/core/workers/chunks/4a979fce1c971b614a18.js +0 -1
- package/assets/esri/core/workers/chunks/59a88dd53f8806bbec06.js +0 -1
- package/assets/esri/core/workers/chunks/5aeb5e18514644fe2cf9.js +0 -1
- package/assets/esri/core/workers/chunks/5bd1414220e42cb8ebcf.js +0 -1
- package/assets/esri/core/workers/chunks/5d781c2c6204cffffd0d.js +0 -1
- package/assets/esri/core/workers/chunks/6edc13a426e00bb93a9b.js +0 -1
- package/assets/esri/core/workers/chunks/723df53cfa0189837d01.js +0 -1
- package/assets/esri/core/workers/chunks/7400b8c454b47ee4fb3c.js +0 -1
- package/assets/esri/core/workers/chunks/7862abd24fb5c3b12e6b.js +0 -1
- package/assets/esri/core/workers/chunks/796c6195b6bf59dcc9bd.js +0 -1
- package/assets/esri/core/workers/chunks/7af4edc6e87d27b9d467.js +0 -1
- package/assets/esri/core/workers/chunks/81bcc495e6eaf2cf7474.js +0 -1
- package/assets/esri/core/workers/chunks/934e1f2153e6fad6ed23.js +0 -1
- package/assets/esri/core/workers/chunks/990e96139b5a1dccb061.js +0 -1
- package/assets/esri/core/workers/chunks/a607541959169741a943.js +0 -1
- package/assets/esri/core/workers/chunks/aa779896fd9e5c341349.js +0 -1
- package/assets/esri/core/workers/chunks/c131e0dd180a4c10e12e.js +0 -1
- package/assets/esri/core/workers/chunks/c7adb7b77721c75891f4.js +0 -1
- package/assets/esri/core/workers/chunks/cd55cad81accf51d2989.js +0 -1
- package/assets/esri/core/workers/chunks/ce324dde6d7daea33638.js +0 -1
- package/assets/esri/core/workers/chunks/d3412518a7b518860fbb.js +0 -1
- package/assets/esri/core/workers/chunks/dac69c0047488fdf986d.js +0 -1
- package/assets/esri/core/workers/chunks/dba5f44c4e4a3f075df2.js +0 -1
- package/assets/esri/core/workers/chunks/e67ea2f1714e5abeae44.js +0 -1
- package/assets/esri/core/workers/chunks/e8fb2ba7b7a4f0916325.js +0 -1
- package/assets/esri/core/workers/chunks/f10c883eb26330e3421c.js +0 -1
- package/assets/esri/core/workers/chunks/f3b4159c0722df8ffe13.js +0 -1
- package/assets/esri/core/workers/chunks/f75eec2cbc541eec9712.js +0 -1
- package/layers/geospatialPDF/projectionToWKTUtils.js +0 -3
- package/libs/maquette/cache.js +0 -2
- package/libs/maquette/dom.js +0 -2
- package/libs/maquette/h.js +0 -2
- package/libs/maquette/index.js +0 -2
- package/libs/maquette/mapping.js +0 -2
- package/libs/maquette/projection.js +0 -2
- package/libs/maquette/projector.js +0 -2
- package/libs/maquette/utilities/window-performance-projector-logger.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../PopupTemplate.js";import n from"../../core/Error.js";import{clone as r}from"../../core/lang.js";import i from"../../core/Logger.js";import{MultiOriginJSONSupportMixin as a}from"../../core/MultiOriginJSONSupport.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";import"../../core/workers/workers.js";import ee from"../../form/FormTemplate.js";import c from"../../geometry/Extent.js";import te from"../../geometry/Point.js";import ne from"../../geometry/Polygon.js";import re from"../../geometry/Polyline.js";import{initializeProjection as ie,project as l}from"../../geometry/projectionUtils.js";import ae from"../../geometry/SpatialReference.js";import{wgs84 as u}from"../../geometry/support/spatialReferenceUtils.js";import{featureGeometryTypeKebabDictionary as d}from"../../geometry/support/typeUtils.js";import oe from"../../graphic/KnowledgeGraphGraphicOrigin.js";import se from"../../graphic/LinkChartGraphicOrigin.js";import ce from"../Layer.js";import le from"../graphics/data/FeatureStore.js";import{QueryEngine as ue}from"../graphics/data/QueryEngine.js";import{createDrawingInfo as f}from"../graphics/sources/support/clientSideDefaults.js";import{systemOidFieldName as p,systemAggregationCountFieldName as m,systemIsSpatialFieldName as h,systemLayoutGeometryFieldName as g,systemOriginIdFieldName as de,systemDestinationIdFieldName as fe}from"./constants.js";import{KnowledgeGraphSublayerBase as _}from"./KnowledgeGraphSublayerBase.js";import{createCapabilitiesFromKnowledgeGraph as v,createDefaultKGSLFormTemplate as y,getDisplayLabelProperty as b,getLinkChartDefaultLabelingInfo as x,getMapDefaultLabelingInfo as S,getKGSublayerSymbolColor as C,getDefaultLCRelationshipSublayerSymbol as w,createDefaultKGSLFeatureTemplates as T,convertLayerEditsToGraphEdits as E,convertGraphEditsResultToFeatureEdits as D}from"./layerUtils.js";import{BlendLayer as O,blendModeProperty as k,effectProperty as A}from"../mixins/BlendLayer.js";import{DisplayFilteredLayer as j,displayFilterEnabledProperty as M,displayFilterInfoProperty as N}from"../mixins/DisplayFilteredLayer.js";import{FeatureEffectLayer as P,featureEffectProperty as F}from"../mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as I}from"../mixins/FeatureReductionLayer.js";import{OrderedLayer as L,orderByProperty as R}from"../mixins/OrderedLayer.js";import{RefreshableLayer as z}from"../mixins/RefreshableLayer.js";import{ScaleRangeLayer as B}from"../mixins/ScaleRangeLayer.js";import{TemporalLayer as V,useViewTimeProperty as pe}from"../mixins/TemporalLayer.js";import{legendEnabled as me,maxScale as he,minScale as ge,opacity as _e,popupEnabled as ve}from"../support/commonProperties.js";import{featureReductionProperty as ye}from"../support/featureReductionUtils.js";import be from"../support/FeatureTemplate.js";import H from"../support/Field.js";import{fixRendererFields as xe,fixTimeInfoFields as Se}from"../support/fieldUtils.js";import Ce from"../support/LabelClass.js";import{reader as we}from"../support/labelingInfo.js";import Te from"../support/TimeInfo.js";import Ee from"../../renderers/SimpleRenderer.js";import{fromJSON as U}from"../../renderers/support/jsonUtils.js";import{rendererTypes as De}from"../../renderers/support/typeUtils.js";import{executeApplyEdits as Oe}from"../../rest/knowledgeGraphService.js";import ke from"../../rest/support/FeatureSet.js";import W from"../../rest/support/Query.js";import{createPopupTemplate as Ae}from"../../support/popupUtils.js";import je from"../../symbols/support/ElevationInfo.js";import{applyColorToSymbol as G}from"../../symbols/support/utils.js";import Me from"../../core/workers/RemoteClient.js";import{writer as K}from"../../core/accessorSupport/decorators/writer.js";function q(e){if(!e.json)return e;e.json.write=J(e.json.write);let t=e.json.origins;if(!t)return e;let n;for(n in t){let e=t[n];e&&(e.write=J(e.write))}return e}function J(e){return typeof e==`object`&&e?(e.enabled!==!1&&(e.overridePolicy=Ne(e)),e):e===!0?Y():e}function Ne(e){let{target:t,writer:n,overridePolicy:r,...i}=e;return function(e,t){let n=X.call(this,e,t);return n.enabled?{...i,...n}:n}}function Y(){return{overridePolicy:X}}function X(e,t){let n=!!this.geometryType,r={enabled:n};return n&&(r={...r,...Z.call(this,e,t)}),r}function Z(e,t){return{ignoreOrigin:this.originIdOf(t)>0}}function Q(e,t){return{...Z.call(this,e,t),allowNull:this.originIdOf(t)>=3}}let $=class extends _(j(I(P(O(L(V(B(z(a(ce)))))))))){constructor(e){super(e),this.blendMode=`normal`,this.charts=null,this.definitionExpression=null,this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=p,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then(()=>{let e=new MessageChannel;return new Me(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{let n=W.fromJSON(e);return this.queryFeaturesJSON(n,t)}}}),[e.port2]})},this.type=`knowledge-graph-sublayer`,this.useViewTime=!0,this.visible=!0}get capabilities(){return this.parent?this.parent.sublayerCapabilities:v(null)}get isTable(){return this.parentCompositeLayer?.type!==`link-chart`&&this.geometryFieldName==null}get defaultPopupTemplate(){return this.createPopupTemplate()}get editingEnabled(){return this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome(`editingEnabled`,e)}get effectiveCapabilities(){let e=r(this.capabilities),{operations:t,editing:n}=e;return this.userHasUpdateItemPrivileges&&(t.supportsAdd=t.supportsDelete=t.supportsEditing=t.supportsQuery=t.supportsUpdate=n.supportsDeleteByOthers=n.supportsGeometryUpdate=n.supportsUpdateByOthers=!0),this.userHasFullEditingPrivileges&&t.supportsEditing&&(t.supportsAdd=t.supportsDelete=t.supportsUpdate=n.supportsGeometryUpdate=!0),e}get effectiveEditingEnabled(){return this.userHasUpdateItemPrivileges||this.editingEnabled}set featureReduction(e){let t=this._normalizeFeatureReduction(e);this._set(`featureReduction`,t)}get fields(){let e=[],t=new Map;for(let e of this.parent?.knowledgeGraph.dataModel.domains??[])t.set(e.name,e);return this.objectType?.properties?.forEach(n=>{let r=n.fieldType===`esriFieldTypeOID`?`esriFieldTypeInteger`:n.fieldType,i=H.fromJSON({name:n.name,type:r,alias:n.alias,defaultValue:n.defaultValue,editable:n.editable,nullable:n.nullable,domain:n.domain&&t.has(n.domain)?t.get(n.domain).toJSON():void 0});e.push(i)}),e.push(H.fromJSON({name:this.objectIdField,type:`esriFieldTypeString`,alias:this.objectIdField,editable:!1}),H.fromJSON({name:m,type:`esriFieldTypeInteger`,alias:m,editable:!1}),H.fromJSON({name:h,type:`esriFieldTypeInteger`,alias:h,editable:!1})),e}get formTemplate(){return this._isOverridden(`formTemplate`)?this._get(`formTemplate`):y(this)}set formTemplate(e){this._overrideIfSome(`formTemplate`,e)}get geometryType(){if(this.parentCompositeLayer?.type===`link-chart`)return this.graphType===`relationship`?`polyline`:`point`;let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.geometryType;return!e||e===`esriGeometryNull`?null:d.fromJSON(e)}get geometryFieldName(){return this.parentCompositeLayer?.type===`link-chart`?g:this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name??null}get graphicOrigin(){if(!this.parent)return null;switch(this.parent.type){case`knowledge-graph`:return new oe(this.parent,this);case`link-chart`:return new se(this.parent,this)}}get graphTypeName(){return this.objectType?.name}set graphTypeName(e){this._set(`graphTypeName`,e)}get hasM(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasM??!1}get hasZ(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasZ??!1}set labelingInfo(e){this._set(`labelingInfo`,e)}get labelingInfo(){if(this._isOverridden(`labelingInfo`))return this._get(`labelingInfo`);if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;let e=this.objectType.properties?b(this.objectType.properties):`ESRI__ID`;return this.parentCompositeLayer.type===`link-chart`?x(this.graphType,this.graphTypeName,e):S(this.graphTypeName,this.geometryType,e)}set renderer(e){xe(e,this.fieldsIndex),this._set(`renderer`,e)}get renderer(){if(this._isOverridden(`renderer`))return this._get(`renderer`);let e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map(e=>e.name).indexOf(this.graphTypeName),n=C(t);if(this.parentCompositeLayer?.type===`link-chart`){if(this.graphType===`relationship`)return new Ee({type:`simple`,symbol:w(n)});let e=U(f(d.toJSON(`point`)).renderer);return G(e.symbol,n),e}let r=U(f(d.toJSON(this.geometryType)).renderer);return G(r.symbol,n),r}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??ae.WGS84}get templates(){return this._isOverridden(`templates`)?this._get(`templates`):T(this)}set templates(e){this._overrideIfSome(`templates`,e)}set timeInfo(e){this._set(`timeInfo`,e)}get dateFieldsTimeZone(){return this.parentCompositeLayer?.dateFieldsTimeZone}get title(){return this._isOverridden(`title`)?this._get(`title`):this.graphTypeName}set title(e){this._set(`title`,e)}writeTitle(e,t){t.title=e??`Layer`}get userHasEditingPrivileges(){return!this.parent||this.parent.userHasEditingPrivileges}get userHasFullEditingPrivileges(){return this.parent?this.parent.userHasFullEditingPrivileges:!1}get userHasUpdateItemPrivileges(){return this.parent?this.parent.userHasUpdateItemPrivileges:!1}createPopupTemplate(e){return Ae(this,e)}createQuery(){return new W({where:`1=1`,outFields:[`*`]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fields.find(t=>t.name===e)?.domain||null}async queryFeatures(e,t){await this.load();let{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e),a=this.graphicOrigin,o=ke.fromJSON(await r.executeQuery(this._createQueryEngineQueryJSON(n,i),t?.signal));return o.features.forEach(e=>{e.sourceLayer=this,e.origin=a}),o}async queryFeaturesJSON(e,t){await this.load();let{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e);return await r.executeQuery(this._createQueryEngineQueryJSON(n,i),t?.signal)}async queryFeatureCount(e,t){await this.load();let{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e);return r.executeQueryForCount(this._createQueryEngineQueryJSON(n,i),t?.signal)}async queryExtent(e={},t){await this.load();let n={...e,returnGeometry:!0},{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:a}=await this._setupQueryObjects(n),o=await i.executeQueryForExtent(this._createQueryEngineQueryJSON(r,a),t?.signal),s;return s=o.extent?.xmin!=null&&o.extent?.xmax!=null&&o.extent?.ymin!=null&&o.extent?.ymax!=null?new c(o.extent):new c,{count:o.count,extent:s}}async queryObjectIds(e,t){await this.load();let n=W.from(e),r;if(!this.parentCompositeLayer)i.getLogger(this).warn(`Attempting to query for object IDs with no features failed because the parent composite layer is missing or not yet loaded.`),r=this.loadQueryEngine([]);else if(this.parentCompositeLayer.type===`link-chart`&&this._cachedQueryEngine)r=this._cachedQueryEngine;else{let{features:e,cypherTranslationApplied:i}=await this.parentCompositeLayer.dataManager.getData(n,this,this.parentCompositeLayer,t);return r=this.loadQueryEngine(e),await r.executeQueryForIds(this._createQueryEngineQueryJSON(n,i),t?.signal)}return await r.executeQueryForIds(this._createQueryEngineQueryJSON(n,!1),t?.signal)}async applyEdits(e){if(!this.parentCompositeLayer?.dataManager.knowledgeGraph)throw new n(`knowledge-graph-sublayer:no-knowledge-graph`,`ApplyEdits cannot be executed because the parent does not have a Knowledge Graph model. This is usually caused by the layer not yet being loaded`);let t=await E(e,this,this.parentCompositeLayer);t.options={cascadeDelete:!0,cascadeProvenanceDelete:this.parent?.knowledgeGraph.serviceDefinition.supportsProvenance?!0:void 0};let r=await Oe(this.parentCompositeLayer.dataManager.knowledgeGraph,t),i=D(r,this.graphTypeName),a={addedFeatures:i.addFeatureResults,updatedFeatures:i.updateFeatureResults,deletedFeatures:i.deleteFeatureResults,addedAttachments:i.addAttachmentResults,deletedAttachments:i.deleteAttachmentResults,updatedAttachments:i.updateAttachmentResults,exceededTransferLimit:!1,historicMoment:new Date,edits:void 0};return this.emit(`edits`,a),this.emit(`apply-edits`,{result:Promise.resolve(a)}),this.parentCompositeLayer.type===`link-chart`&&await this.parentCompositeLayer.refreshLinkChartCache([...a.addedFeatures.map(e=>e.globalId),...a.updatedFeatures.map(e=>e.globalId),...a.deletedFeatures.map(e=>e.globalId)]),i}loadQueryEngine(e){let t=new le({geometryType:d.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),n=new ue({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:d.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:`object-id`,fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return n.featureStore.addMany(e),n}async refreshCachedQueryEngine(){if(!this.parentCompositeLayer){i.getLogger(this).warn(`Attempting to refresh the cached query engine with no features failed because the parent composite layer is missing or not yet loaded.`),this._cachedQueryEngine=this.loadQueryEngine([]);return}let{features:e}=await this.parentCompositeLayer.dataManager.getData(new W({where:`1=1`,outFields:[p]}),this,this.parentCompositeLayer);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then(()=>Se(this.timeInfo,this.fieldsIndex))),Promise.resolve(this)}_createQueryEngineQueryJSON(e,t){let n=e.toJSON();return t&&delete n.resultOffset,n}async _setupQueryObjects(e,t){let n=W.from(e),r=n.geometry;if(r&&!r.spatialReference?.isWGS84&&(await ie(r.spatialReference,u),n.geometry=r instanceof ne||r instanceof re||r instanceof te?l(r,u):l(r.extent,u)),!this.parentCompositeLayer)return i.getLogger(this).warn(`Attempting to execute a query with no features failed because the parent composite layer is missing or not yet loaded.`),{resolvedQuery:n,queryEngine:this.loadQueryEngine([]),cypherTranslationApplied:!1};if(this.parentCompositeLayer.type===`link-chart`&&this._cachedQueryEngine)return{resolvedQuery:n,queryEngine:this._cachedQueryEngine,cypherTranslationApplied:!1};let{features:a,cypherTranslationApplied:o}=await this.parentCompositeLayer.dataManager.getData(n,this,this.parentCompositeLayer,t);return{resolvedQuery:n,queryEngine:this.loadQueryEngine(a),cypherTranslationApplied:o}}};e([o(q(r(k)))],$.prototype,`blendMode`,void 0),e([o({readOnly:!0})],$.prototype,`capabilities`,null),e([o()],$.prototype,`isTable`,null),e([o({json:{origins:{"web-scene":{write:!1}},write:Y()}})],$.prototype,`charts`,void 0),e([o({readOnly:!0})],$.prototype,`defaultPopupTemplate`,null),e([o({type:String,json:{origins:{service:{read:!1}},name:`layerDefinition.definitionExpression`,write:{ignoreOrigin:!0}}})],$.prototype,`definitionExpression`,void 0),e([o(q(r(M)))],$.prototype,`displayFilterEnabled`,void 0),e([o(q(r(N)))],$.prototype,`displayFilterInfo`,void 0),e([o()],$.prototype,`editingEnabled`,null),e([o(q(r(A)))],$.prototype,`effect`,void 0),e([o({readOnly:!0})],$.prototype,`effectiveCapabilities`,null),e([o({readOnly:!0})],$.prototype,`effectiveEditingEnabled`,null),e([o({type:je})],$.prototype,`elevationInfo`,void 0),e([o(q(r(F)))],$.prototype,`featureEffect`,void 0),e([o(q(r(ye)))],$.prototype,`featureReduction`,null),e([o()],$.prototype,`fields`,null),e([o({type:ee})],$.prototype,`formTemplate`,null),e([o()],$.prototype,`geometryType`,null),e([o()],$.prototype,`geometryFieldName`,null),e([o({readOnly:!0})],$.prototype,`graphicOrigin`,null),e([o({type:[`entity`,`relationship`],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],$.prototype,`graphType`,void 0),e([o({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],$.prototype,`graphTypeName`,null),e([o()],$.prototype,`hasM`,null),e([o()],$.prototype,`hasZ`,null),e([o({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],$.prototype,`id`,void 0),e([o({type:Boolean,value:!0,nonNullable:!0,json:{name:`showLabels`,default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],$.prototype,`labelsVisible`,void 0),e([o({type:[Ce],json:{name:`layerDefinition.drawingInfo.labelingInfo`,read:Pe,write:Y()}})],$.prototype,`labelingInfo`,null),e([o({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case`link-chart`:t.layerType=`LinkChartSubLayer`;break;case`knowledge-graph`:t.layerType=this.geometryType?`KnowledgeGraphSubLayer`:`KnowledgeGraphSubTable`}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],$.prototype,`layerType`,void 0),e([o(q(r(me)))],$.prototype,`legendEnabled`,void 0),e([o(q(r(he)))],$.prototype,`maxScale`,void 0),e([o(q(r(ge)))],$.prototype,`minScale`,void 0),e([o()],$.prototype,`objectIdField`,void 0),e([o()],$.prototype,`objectType`,void 0),e([o(q(r(_e)))],$.prototype,`opacity`,void 0),e([o(q(r(R)))],$.prototype,`orderBy`,void 0),e([o({clonable:!1})],$.prototype,`parent`,void 0),e([o()],$.prototype,`parentCompositeLayer`,void 0),e([o(q(r(ve)))],$.prototype,`popupEnabled`,void 0),e([o({type:t,json:{name:`popupInfo`,write:{ignoreOrigin:!0}}})],$.prototype,`popupTemplate`,void 0),e([o({type:Number,json:{write:{overridePolicy:Z}}})],$.prototype,`refreshInterval`,void 0),e([o({types:De,json:{name:`layerDefinition.drawingInfo.renderer`,write:Y()}})],$.prototype,`renderer`,null),e([o()],$.prototype,`source`,void 0),e([o()],$.prototype,`spatialReference`,null),e([o({type:be})],$.prototype,`templates`,null),e([o({type:Te,json:{name:`layerDefinition.timeInfo`,write:{overridePolicy:Q},origins:{"web-document":{name:`layerDefinition.timeInfo`,read:!0,write:{overridePolicy:Q}},"portal-item":{name:`layerDefinition.timeInfo`,read:!0,write:{overridePolicy:Q}}}}})],$.prototype,`timeInfo`,null),e([o({readOnly:!0})],$.prototype,`dateFieldsTimeZone`,null),e([o({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],$.prototype,`title`,null),e([K(`title`)],$.prototype,`writeTitle`,null),e([o({json:{read:!1}})],$.prototype,`type`,void 0),e([o(q(r(pe)))],$.prototype,`useViewTime`,void 0),e([o({readOnly:!0})],$.prototype,`userHasEditingPrivileges`,null),e([o({readOnly:!0})],$.prototype,`userHasFullEditingPrivileges`,null),e([o({readOnly:!0})],$.prototype,`userHasUpdateItemPrivileges`,null),e([o({type:Boolean,json:{name:`visibility`,write:Y()}})],$.prototype,`visible`,void 0),$=e([s(`esri.layers.knowledgeGraph.KnowledgeGraphSublayer`)],$);function Pe(e,t,n){let r=[[`ESRI__AGGREGATION_COUNT`,m],[`ESRI__ORIGIN_ID`,de],[`ESRI__DESTINATION_ID`,fe],[`ESRI__LAYOUT_GEOMETRY`,g]];try{for(let t of e)for(let[e,n]of r)t.labelExpression=t.labelExpression?.replaceAll(e,n),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,n))}catch(e){i.getLogger(this).warn(`Error updating labelingInfo`,e)}return we.call(this,e,t,n)}export{$ as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../PopupTemplate.js";import n from"../../core/Error.js";import{clone as r}from"../../core/lang.js";import i from"../../core/Logger.js";import{MultiOriginJSONSupportMixin as a}from"../../core/MultiOriginJSONSupport.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";import"../../core/workers/workers.js";import ee from"../../form/FormTemplate.js";import c from"../../geometry/Extent.js";import te from"../../geometry/Point.js";import ne from"../../geometry/Polygon.js";import re from"../../geometry/Polyline.js";import{initializeProjection as ie,project as l}from"../../geometry/projectionUtils.js";import ae from"../../geometry/SpatialReference.js";import{wgs84 as u}from"../../geometry/support/spatialReferenceUtils.js";import{featureGeometryTypeKebabDictionary as d}from"../../geometry/support/typeUtils.js";import oe from"../../graphic/KnowledgeGraphGraphicOrigin.js";import se from"../../graphic/LinkChartGraphicOrigin.js";import ce from"../Layer.js";import le from"../graphics/data/FeatureStore.js";import{QueryEngine as ue}from"../graphics/data/QueryEngine.js";import{createDrawingInfo as f}from"../graphics/sources/support/clientSideDefaults.js";import{systemOidFieldName as p,systemAggregationCountFieldName as m,systemIsSpatialFieldName as h,systemLayoutGeometryFieldName as g,systemOriginIdFieldName as de,systemDestinationIdFieldName as fe}from"./constants.js";import{KnowledgeGraphSublayerBase as _}from"./KnowledgeGraphSublayerBase.js";import{createCapabilitiesFromKnowledgeGraph as v,createDefaultKGSLFormTemplate as y,getDisplayLabelProperty as b,getLinkChartDefaultLabelingInfo as x,getMapDefaultLabelingInfo as S,getKGSublayerSymbolColor as C,getDefaultLCRelationshipSublayerSymbol as w,createDefaultKGSLFeatureTemplates as T,convertLayerEditsToGraphEdits as E,convertGraphEditsResultToFeatureEdits as D}from"./layerUtils.js";import{BlendLayer as O,blendModeProperty as k,effectProperty as A}from"../mixins/BlendLayer.js";import{DisplayFilteredLayer as j,displayFilterEnabledProperty as M,displayFilterInfoProperty as N}from"../mixins/DisplayFilteredLayer.js";import{FeatureEffectLayer as P,featureEffectProperty as F}from"../mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as I}from"../mixins/FeatureReductionLayer.js";import{OrderedLayer as L,orderByProperty as R}from"../mixins/OrderedLayer.js";import{RefreshableLayer as z}from"../mixins/RefreshableLayer.js";import{ScaleRangeLayer as B}from"../mixins/ScaleRangeLayer.js";import{TemporalLayer as V,useViewTimeProperty as pe}from"../mixins/TemporalLayer.js";import{legendEnabled as me,maxScale as he,minScale as ge,opacity as _e,popupEnabled as ve}from"../support/commonProperties.js";import{featureReductionProperty as ye}from"../support/featureReductionUtils.js";import be from"../support/FeatureTemplate.js";import H from"../support/Field.js";import{fixRendererFields as xe,fixTimeInfoFields as Se}from"../support/fieldUtils.js";import Ce from"../support/LabelClass.js";import{reader as we}from"../support/labelingInfo.js";import Te from"../support/TimeInfo.js";import Ee from"../../renderers/SimpleRenderer.js";import{fromJSON as U}from"../../renderers/support/jsonUtils.js";import{rendererTypes as De}from"../../renderers/support/typeUtils.js";import{executeApplyEdits as Oe}from"../../rest/knowledgeGraphService.js";import ke from"../../rest/support/FeatureSet.js";import W from"../../rest/support/Query.js";import{createPopupTemplate as Ae}from"../../support/popupUtils.js";import je from"../../symbols/support/ElevationInfo.js";import{applyColorToSymbol as G}from"../../symbols/support/utils.js";import Me from"../../core/workers/RemoteClient.js";import{writer as K}from"../../core/accessorSupport/decorators/writer.js";function q(e){if(!e.json)return e;e.json.write=J(e.json.write);let t=e.json.origins;if(!t)return e;let n;for(n in t){let e=t[n];e&&(e.write=J(e.write))}return e}function J(e){return typeof e==`object`&&e?(e.enabled!==!1&&(e.overridePolicy=Ne(e)),e):e===!0?Y():e}function Ne(e){let{target:t,writer:n,overridePolicy:r,...i}=e;return function(e,t){let n=X.call(this,e,t);return n.enabled?{...i,...n}:n}}function Y(){return{overridePolicy:X}}function X(e,t){let n=!!this.geometryType,r={enabled:n};return n&&(r={...r,...Z.call(this,e,t)}),r}function Z(e,t){return{ignoreOrigin:this.originIdOf(t)>0}}function Q(e,t){return{...Z.call(this,e,t),allowNull:this.originIdOf(t)>=3}}let $=class extends _(j(I(P(O(L(V(B(z(a(ce)))))))))){constructor(e){super(e),this.blendMode=`normal`,this.charts=null,this.definitionExpression=null,this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=p,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then(()=>{let e=new MessageChannel;return new Me(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{let n=W.fromJSON(e);return this.queryFeaturesJSON(n,t)}}}),[e.port2]})},this.type=`knowledge-graph-sublayer`,this.useViewTime=!0,this.visible=!0}get capabilities(){return this.parent?this.parent.sublayerCapabilities:v(null)}get isTable(){return this.parentCompositeLayer?.type!==`link-chart`&&this.geometryFieldName==null}get defaultPopupTemplate(){return this.createPopupTemplate()}get editingEnabled(){return this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome(`editingEnabled`,e)}get effectiveCapabilities(){let e=r(this.capabilities),{operations:t,editing:n}=e;return this.userHasUpdateItemPrivileges&&(t.supportsAdd=t.supportsDelete=t.supportsEditing=t.supportsQuery=t.supportsUpdate=n.supportsDeleteByOthers=n.supportsGeometryUpdate=n.supportsUpdateByOthers=!0),this.userHasFullEditingPrivileges&&t.supportsEditing&&(t.supportsAdd=t.supportsDelete=t.supportsUpdate=n.supportsGeometryUpdate=!0),e}get effectiveEditingEnabled(){return this.userHasUpdateItemPrivileges||this.editingEnabled}set featureReduction(e){let t=this._normalizeFeatureReduction(e);this._set(`featureReduction`,t)}get fields(){let e=[],t=new Map;for(let e of this.parent?.knowledgeGraph.dataModel.domains??[])t.set(e.name,e);return this.objectType?.properties?.forEach(n=>{let r=n.fieldType===`esriFieldTypeOID`?`esriFieldTypeInteger`:n.fieldType,i=H.fromJSON({name:n.name,type:r,alias:n.alias,defaultValue:n.defaultValue,editable:n.editable,nullable:n.nullable,domain:n.domain&&t.has(n.domain)?t.get(n.domain).toJSON():void 0});e.push(i)}),e.push(H.fromJSON({name:this.objectIdField,type:`esriFieldTypeString`,alias:this.objectIdField,editable:!1}),H.fromJSON({name:m,type:`esriFieldTypeInteger`,alias:m,editable:!1}),H.fromJSON({name:h,type:`esriFieldTypeInteger`,alias:h,editable:!1})),e}get formTemplate(){return this._isOverridden(`formTemplate`)?this._get(`formTemplate`):y(this)}set formTemplate(e){this._overrideIfSome(`formTemplate`,e)}get geometryType(){if(this.parentCompositeLayer?.type===`link-chart`)return this.graphType===`relationship`?`polyline`:`point`;let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.geometryType;return!e||e===`esriGeometryNull`?null:d.fromJSON(e)}get geometryFieldName(){return this.parentCompositeLayer?.type===`link-chart`?g:this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name??null}get graphicOrigin(){if(!this.parent)return null;switch(this.parent.type){case`knowledge-graph`:return new oe(this.parent,this);case`link-chart`:return new se(this.parent,this)}}get graphTypeName(){return this.objectType?.name}set graphTypeName(e){this._set(`graphTypeName`,e)}get hasM(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasM??!1}get hasZ(){let e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name)?.name;return(e?this.objectType?.properties?.[e]:null)?.hasZ??!1}set labelingInfo(e){this._set(`labelingInfo`,e)}get labelingInfo(){if(this._isOverridden(`labelingInfo`))return this._get(`labelingInfo`);if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;let e=this.objectType.properties?b(this.objectType.properties):`ESRI__ID`;return this.parentCompositeLayer.type===`link-chart`?x(this.graphType,this.graphTypeName,e):S(this.graphTypeName,this.geometryType,e)}set renderer(e){xe(e,this.fieldsIndex),this._set(`renderer`,e)}get renderer(){if(this._isOverridden(`renderer`))return this._get(`renderer`);let e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map(e=>e.name).indexOf(this.graphTypeName),n=C(t);if(this.parentCompositeLayer?.type===`link-chart`){if(this.graphType===`relationship`)return new Ee({type:`simple`,symbol:w(n)});let e=U(f(d.toJSON(`point`)).renderer);return G(e.symbol,n),e}let r=U(f(d.toJSON(this.geometryType)).renderer);return G(r.symbol,n),r}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??ae.WGS84}get templates(){return this._isOverridden(`templates`)?this._get(`templates`):T(this)}set templates(e){this._overrideIfSome(`templates`,e)}set timeInfo(e){this._set(`timeInfo`,e)}get dateFieldsTimeZone(){return this.parentCompositeLayer?.dateFieldsTimeZone}get title(){return this._isOverridden(`title`)?this._get(`title`):this.graphTypeName}set title(e){this._set(`title`,e)}writeTitle(e,t){t.title=e??`Layer`}get userHasEditingPrivileges(){return!this.parent||this.parent.userHasEditingPrivileges}get userHasFullEditingPrivileges(){return this.parent?this.parent.userHasFullEditingPrivileges:!1}get userHasUpdateItemPrivileges(){return this.parent?this.parent.userHasUpdateItemPrivileges:!1}createPopupTemplate(e){return Ae(this,e)}createQuery(){return new W({where:`1=1`,outFields:[`*`]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fields.find(t=>t.name===e)?.domain||null}async queryFeatures(e,t){await this.load();let{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e),a=this.graphicOrigin,o=ke.fromJSON(await r.executeQuery(this._createQueryEngineQueryJSON(n,i),t?.signal));return o.features.forEach(e=>{e.sourceLayer=this,e.origin=a}),o}async queryFeaturesJSON(e,t){await this.load();let{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e);return await r.executeQuery(this._createQueryEngineQueryJSON(n,i),t?.signal)}async queryFeatureCount(e,t){await this.load();let{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e);return r.executeQueryForCount(this._createQueryEngineQueryJSON(n,i),t?.signal)}async queryExtent(e={},t){await this.load();let n={...e,returnGeometry:!0},{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:a}=await this._setupQueryObjects(n),o=await i.executeQueryForExtent(this._createQueryEngineQueryJSON(r,a),t?.signal),s;return s=o.extent?.xmin!=null&&o.extent?.xmax!=null&&o.extent?.ymin!=null&&o.extent?.ymax!=null?new c(o.extent):new c,{count:o.count,extent:s}}async queryObjectIds(e,t){await this.load();let n=W.from(e),r;if(!this.parentCompositeLayer)i.getLogger(this).warn(`Attempting to query for object IDs with no features failed because the parent composite layer is missing or not yet loaded.`),r=this.loadQueryEngine([]);else if(this.parentCompositeLayer.type===`link-chart`&&this._cachedQueryEngine)r=this._cachedQueryEngine;else{let{features:e,cypherTranslationApplied:i}=await this.parentCompositeLayer.dataManager.getData(n,this,this.parentCompositeLayer,t);return r=this.loadQueryEngine(e),await r.executeQueryForIds(this._createQueryEngineQueryJSON(n,i),t?.signal)}return await r.executeQueryForIds(this._createQueryEngineQueryJSON(n,!1),t?.signal)}async applyEdits(e){if(!this.parentCompositeLayer?.dataManager.knowledgeGraph)throw new n(`knowledge-graph-sublayer:no-knowledge-graph`,`ApplyEdits cannot be executed because the parent does not have a Knowledge Graph model. This is usually caused by the layer not yet being loaded`);let t=await E(e,this,this.parentCompositeLayer);t.options={cascadeDelete:!0,cascadeProvenanceDelete:this.parent?.knowledgeGraph.serviceDefinition.supportsProvenance?!0:void 0};let r=await Oe(this.parentCompositeLayer.dataManager.knowledgeGraph,t),i=D(r,this.graphTypeName),a={addedFeatures:i.addFeatureResults,updatedFeatures:i.updateFeatureResults,deletedFeatures:i.deleteFeatureResults,addedAttachments:i.addAttachmentResults,deletedAttachments:i.deleteAttachmentResults,updatedAttachments:i.updateAttachmentResults,exceededTransferLimit:!1,historicMoment:new Date,edits:void 0};return this.emit(`edits`,a),this.emit(`apply-edits`,{result:Promise.resolve(a)}),this.parentCompositeLayer.type===`link-chart`&&await this.parentCompositeLayer.refreshLinkChartCache([...a.addedFeatures.map(e=>e.globalId),...a.updatedFeatures.map(e=>e.globalId),...a.deletedFeatures.map(e=>e.globalId)]),i}loadQueryEngine(e){let t=new le({geometryType:d.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),n=new ue({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:d.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:`object-id`,fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return n.featureStore.addMany(e),n}async refreshCachedQueryEngine(){if(!this.parentCompositeLayer){i.getLogger(this).warn(`Attempting to refresh the cached query engine with no features failed because the parent composite layer is missing or not yet loaded.`),this._cachedQueryEngine=this.loadQueryEngine([]);return}let{features:e}=await this.parentCompositeLayer.dataManager.getData(new W({where:`1=1`,outFields:[p]}),this,this.parentCompositeLayer);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then(()=>Se(this.timeInfo,this.fieldsIndex))),Promise.resolve(this)}_createQueryEngineQueryJSON(e,t){let n=e.toJSON();return t&&delete n.resultOffset,n}async _setupQueryObjects(e,t){let n=W.from(e),r=n.geometry;if(r&&!r.spatialReference?.isWGS84&&(await ie(r.spatialReference,u),n.geometry=r instanceof ne||r instanceof re||r instanceof te?l(r,u):l(r.extent,u)),!this.parentCompositeLayer)return i.getLogger(this).warn(`Attempting to execute a query with no features failed because the parent composite layer is missing or not yet loaded.`),{resolvedQuery:n,queryEngine:this.loadQueryEngine([]),cypherTranslationApplied:!1};if(this.parentCompositeLayer.type===`link-chart`&&this._cachedQueryEngine)return{resolvedQuery:n,queryEngine:this._cachedQueryEngine,cypherTranslationApplied:!1};let{features:a,cypherTranslationApplied:o}=await this.parentCompositeLayer.dataManager.getData(n,this,this.parentCompositeLayer,t);return{resolvedQuery:n,queryEngine:this.loadQueryEngine(a),cypherTranslationApplied:o}}};e([o(q(r(k)))],$.prototype,`blendMode`,void 0),e([o({readOnly:!0})],$.prototype,`capabilities`,null),e([o()],$.prototype,`isTable`,null),e([o({json:{origins:{"web-scene":{write:!1}},write:Y()}})],$.prototype,`charts`,void 0),e([o({readOnly:!0})],$.prototype,`defaultPopupTemplate`,null),e([o({type:String,json:{origins:{service:{read:!1}},name:`layerDefinition.definitionExpression`,write:{ignoreOrigin:!0}}})],$.prototype,`definitionExpression`,void 0),e([o(q(r(M)))],$.prototype,`displayFilterEnabled`,void 0),e([o(q(r(N)))],$.prototype,`displayFilterInfo`,void 0),e([o()],$.prototype,`editingEnabled`,null),e([o(q(r(A)))],$.prototype,`effect`,void 0),e([o({readOnly:!0})],$.prototype,`effectiveCapabilities`,null),e([o({readOnly:!0})],$.prototype,`effectiveEditingEnabled`,null),e([o({type:je})],$.prototype,`elevationInfo`,void 0),e([o(q(r(F)))],$.prototype,`featureEffect`,void 0),e([o(q(r(ye)))],$.prototype,`featureReduction`,null),e([o()],$.prototype,`fields`,null),e([o({type:ee})],$.prototype,`formTemplate`,null),e([o()],$.prototype,`geometryType`,null),e([o()],$.prototype,`geometryFieldName`,null),e([o({readOnly:!0})],$.prototype,`graphicOrigin`,null),e([o({type:[`entity`,`relationship`],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],$.prototype,`graphType`,void 0),e([o({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],$.prototype,`graphTypeName`,null),e([o()],$.prototype,`hasM`,null),e([o()],$.prototype,`hasZ`,null),e([o({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],$.prototype,`id`,void 0),e([o({type:Boolean,value:!0,nonNullable:!0,json:{name:`showLabels`,default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],$.prototype,`labelsVisible`,void 0),e([o({type:[Ce],json:{name:`layerDefinition.drawingInfo.labelingInfo`,read:Fe,write:Y()}})],$.prototype,`labelingInfo`,null),e([o({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case`link-chart`:t.layerType=`LinkChartSubLayer`;break;case`knowledge-graph`:t.layerType=this.geometryType?`KnowledgeGraphSubLayer`:`KnowledgeGraphSubTable`}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],$.prototype,`layerType`,void 0),e([o(q(r(me)))],$.prototype,`legendEnabled`,void 0),e([o(q(r(he)))],$.prototype,`maxScale`,void 0),e([o(q(r(ge)))],$.prototype,`minScale`,void 0),e([o()],$.prototype,`objectIdField`,void 0),e([o()],$.prototype,`objectType`,void 0),e([o(q(r(_e)))],$.prototype,`opacity`,void 0),e([o(q(r(R)))],$.prototype,`orderBy`,void 0),e([o({clonable:!1})],$.prototype,`parent`,void 0),e([o()],$.prototype,`parentCompositeLayer`,void 0),e([o(q(r(ve)))],$.prototype,`popupEnabled`,void 0),e([o({type:t,json:{name:`popupInfo`,write:{ignoreOrigin:!0}}})],$.prototype,`popupTemplate`,void 0),e([o({type:Number,json:{write:{overridePolicy:Z}}})],$.prototype,`refreshInterval`,void 0),e([o({types:De,json:{name:`layerDefinition.drawingInfo.renderer`,write:Y()}})],$.prototype,`renderer`,null),e([o()],$.prototype,`source`,void 0),e([o()],$.prototype,`spatialReference`,null),e([o({type:be})],$.prototype,`templates`,null),e([o({type:Te,json:{name:`layerDefinition.timeInfo`,write:{overridePolicy:Q},origins:{"web-document":{name:`layerDefinition.timeInfo`,read:!0,write:{overridePolicy:Q}},"portal-item":{name:`layerDefinition.timeInfo`,read:!0,write:{overridePolicy:Q}}}}})],$.prototype,`timeInfo`,null),e([o({readOnly:!0})],$.prototype,`dateFieldsTimeZone`,null),e([o({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],$.prototype,`title`,null),e([K(`title`)],$.prototype,`writeTitle`,null),e([o({json:{read:!1}})],$.prototype,`type`,void 0),e([o(q(r(pe)))],$.prototype,`useViewTime`,void 0),e([o({readOnly:!0})],$.prototype,`userHasEditingPrivileges`,null),e([o({readOnly:!0})],$.prototype,`userHasFullEditingPrivileges`,null),e([o({readOnly:!0})],$.prototype,`userHasUpdateItemPrivileges`,null),e([o({type:Boolean,json:{name:`visibility`,write:Y()}})],$.prototype,`visible`,void 0),$=e([s(`esri.layers.knowledgeGraph.KnowledgeGraphSublayer`)],$);const Pe=$;function Fe(e,t,n){let r=[[`ESRI__AGGREGATION_COUNT`,m],[`ESRI__ORIGIN_ID`,de],[`ESRI__DESTINATION_ID`,fe],[`ESRI__LAYOUT_GEOMETRY`,g]];try{for(let t of e)for(let[e,n]of r)t.labelExpression=t.labelExpression?.replaceAll(e,n),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,n))}catch(e){i.getLogger(this).warn(`Error updating labelingInfo`,e)}return we.call(this,e,t,n)}export{Pe as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"../../request.js";import t from"../../core/Error.js";import n from"../../core/Logger.js";import{makeAbsolute as r,addQueryParameters as i,urlToObject as a}from"../../core/urlUtils.js";import o from"../../geometry/SpatialReference.js";import{wgs84 as s}from"../../geometry/support/spatialReferenceUtils.js";import{project as c}from"../../geometry/support/webMercatorUtils.js";import{
|
|
2
|
+
import e from"../../request.js";import t from"../../core/Error.js";import n from"../../core/Logger.js";import{makeAbsolute as r,addQueryParameters as i,urlToObject as a}from"../../core/urlUtils.js";import o from"../../geometry/SpatialReference.js";import{wgs84 as s}from"../../geometry/support/spatialReferenceUtils.js";import{project as c}from"../../geometry/support/webMercatorUtils.js";import{convertToGeometry as l,convertFromGeometry as u,convertToFeatureSet as d}from"../graphics/featureConversionUtils.js";import f from"../graphics/OptimizedFeatureSet.js";import{createOptimizedFeatures as p,validateGeoJSON as m,inferLayerProperties as h}from"../graphics/sources/geojson/geojson.js";import{createDrawingInfo as g}from"../graphics/sources/support/clientSideDefaults.js";import{mixAttributes as _}from"../graphics/sources/support/sourceUtils.js";import v from"../support/FieldsIndex.js";import{kebabDict as y}from"../support/fieldType.js";import{utc as b}from"../../time/constants.js";const x=()=>n.getLogger(`esri.layers.ogc.ogcFeatureUtils`),S=`startindex`,C=new Set([S,`offset`]),w=`http://www.opengis.net/def/crs/`,T=`${w}OGC/1.3/CRS84`;async function E(n,a,o={},s=5){let{links:c}=n,l=U(c);if(!l)throw new t(`ogc-feature-layer:missing-items-page`,`Missing items url`);let{apiKey:u,customParameters:d,signal:f}=o,p=r(l.href,n.landingPage.url),_={limit:s,...d,token:u},C=i(p,_),{data:w}=await e(C,{signal:f,headers:{accept:`application/geo+json`}}),T=K(C,s,w.links)??S;m(w);let E=w.numberMatched,D=h(w,{geometryType:a.geometryType}),O=a.fields||D.fields||[],k=a.hasZ==null?D.hasZ:a.hasZ,A=D.geometryType,j=a.objectIdField||D.objectIdFieldName||`OBJECTID`,M=a.timeInfo,N=O.find(({name:e})=>e===j);if(N)N.editable=!1,N.nullable=!1;else{if(!D.objectIdFieldType)throw new t(`ogc-feature-layer:missing-feature-id`,`Collection geojson require a feature id as a unique identifier`);O.unshift({name:j,alias:j,type:D.objectIdFieldType===`number`?`esriFieldTypeOID`:`esriFieldTypeString`,editable:!1,nullable:!1})}if(j!==D.objectIdFieldName){let e=O.find(({name:e})=>e===D.objectIdFieldName);e&&(e.type=`esriFieldTypeInteger`)}O===D.fields&&D.unknownFields.length>0&&x().warn({name:`ogc-feature-layer:unknown-field-types`,message:`Some fields types couldn't be inferred from the features and were dropped`,details:{unknownFields:D.unknownFields}});for(let e of O){if(e.name??=e.alias,e.alias??=e.name,e.type!==`esriFieldTypeOID`&&e.type!==`esriFieldTypeGlobalID`&&(e.editable??=!0,e.nullable??=!0),!e.name)throw new t(`ogc-feature-layer:invalid-field-name`,`field name is missing`,{field:e});if(!y.jsonValues.includes(e.type))throw new t(`ogc-feature-layer:invalid-field-type`,`invalid type for field "${e.name}"`,{field:e})}if(M){let e=new v(O);if(M.startTimeField){let t=e.get(M.startTimeField);t?(M.startTimeField=t.name,t.type=`esriFieldTypeDate`):M.startTimeField=null}if(M.endTimeField){let t=e.get(M.endTimeField);t?(M.endTimeField=t.name,t.type=`esriFieldTypeDate`):M.endTimeField=null}if(M.trackIdField){let t=e.get(M.trackIdField);t?M.trackIdField=t.name:(M.trackIdField=null,x().warn({name:`ogc-feature-layer:invalid-timeInfo-trackIdField`,message:`trackIdField is missing`,details:{timeInfo:M}}))}M.timeReference||={timeZoneIANA:b},!M.startTimeField&&!M.endTimeField&&(x().warn({name:`ogc-feature-layer:invalid-timeInfo`,message:`startTimeField and endTimeField are missing`,details:{timeInfo:M}}),M=void 0)}return{drawingInfo:A?g(A):null,extent:H(n),geometryType:A,fields:O,hasZ:!!k,objectIdField:j,paginationParameter:T,timeInfo:M,featureCount:E}}async function D(n,i={}){let{links:a,url:o}=n,s=V(a);if(!s)throw new t(`ogc-feature-layer:missing-collections-page`,`Missing collections url`);let{apiKey:c,customParameters:l,signal:u}=i,d=r(s.href,o),{data:f}=await e(d,{signal:u,headers:{accept:`application/json`},query:{...l,token:c}});for(let e of f.collections)e.landingPage=n;return f}async function O(n,i={}){let{links:a,url:o}=n,s=B(a);if(!s)throw new t(`ogc-feature-layer:missing-conformance-page`,`Missing conformance url`);let{apiKey:c,customParameters:l,signal:u}=i,d=r(s.href,o),{data:f}=await e(d,{signal:u,headers:{accept:`application/json`},query:{...l,token:c}});return f}async function k(t,n={}){let{apiKey:r,customParameters:i,signal:a}=n,{data:o}=await e(t,{signal:a,headers:{accept:`application/json`},query:{...i,token:r}});return o.url=t,o}async function A(t,n={}){let{links:i,url:a}=t,o=W(i,`service-desc`,`application/vnd.oai.openapi+json;version=3.0`);if(!o)return x().warn(`ogc-feature-layer:missing-openapi-page`,`The OGC API-Features server does not have an OpenAPI page.`),null;let{apiKey:s,customParameters:c,signal:l}=n,u=r(o.href,a),{data:d}=await e(u,{signal:l,headers:{accept:`application/vnd.oai.openapi+json;version=3.0`},query:{...c,token:s}});return d}function j(e){let t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e)?.groups;if(!t)return null;let{authority:n,code:r}=t;switch(n.toLowerCase()){case`ogc`:switch(r.toLowerCase()){case`crs27`:return o.GCS_NAD_1927.wkid;case`crs83`:return 4269;case`crs84`:case`crs84h`:return o.WGS84.wkid;default:return null}case`esri`:case`epsg`:{let e=Number.parseInt(r,10);return Number.isNaN(e)?null:e}default:return null}}async function M(e,t,n){let r=await N(e,t,n);return d(r)}async function N(n,i,a){let{collection:{links:d,landingPage:{url:m}},layerDefinition:h,maxRecordCount:g,queryParameters:{apiKey:y,customParameters:b},spatialReference:x,supportedCrs:S}=n,C=U(d);if(!C)throw new t(`ogc-feature-layer:missing-items-page`,`Missing items url`);let{geometry:w,num:T,start:E,timeExtent:D,where:O}=i;if(i.objectIds)throw new t(`ogc-feature-layer:query-by-objectids-not-supported`,`Queries with object ids are not supported`);let k=o.fromJSON(x),A=i.outSpatialReference??k,j=A.isWGS84?null:F(A,S),M=z(w,S),N=L(D),P=R(O),I=T??(E==null?g:10),B=E===0?void 0:E,{fields:V,geometryType:H,hasZ:W,objectIdField:K,paginationParameter:q}=h,J=r(C.href,m),{data:Y}=await e(J,{...a,query:{...b,...M,crs:j,datetime:N,query:P,limit:I,[q]:B,token:y},headers:{accept:`application/geo+json`}}),X=p(Y,{geometryType:H,hasZ:W,objectIdField:K}),Z=X.length===I&&!!G(Y.links??[]),Q=new v(V);for(let e of X){let t={};_(Q,t,e.attributes,!0);for(let e of Q.fields)e.nullable&&!(e.name in t)&&(t[e.name]=null);t[K]=e.attributes[K],e.attributes=t}if(!j&&A.isWebMercator){for(let e of X)if(e.geometry!=null&&H!=null){let t=l(e.geometry,H,W,!1);t.spatialReference=o.WGS84,e.geometry=u(c(t,A))}}for(let e of X)e.objectId=e.attributes[K];let ee=j||!j&&A.isWebMercator?A.toJSON():s,$=new f;return $.exceededTransferLimit=Z,$.features=X,$.fields=V,$.geometryType=H,$.hasZ=W,$.spatialReference=ee,$}function P(e){return e!=null&&e.type===`extent`}function F(e,t){let{isWebMercator:n,wkid:r,latestWkid:i}=e;if(!r&&!i)return null;let a=n?t[3857]??t[102100]??t[102113]??t[900913]:r&&t[r]||i&&t[i];return a?`${w}${a}`:null}function I(e){if(!e)return``;let{xmin:t,ymin:n,xmax:r,ymax:i}=e;return`${t},${n},${r},${i}`}function L(e){if(!e)return null;let{start:t,end:n}=e;return`${t==null?`..`:t.toISOString()}/${n==null?`..`:n.toISOString()}`}function R(e){return!e||e===`1=1`?null:e}function z(e,t){if(!P(e))return null;let{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:I(e)};let r=F(n,t);return r==null?n.isWebMercator?{bbox:I(c(e,o.WGS84))}:null:{bbox:I(e),"bbox-crs":r}}function B(e){return W(e,`conformance`,`application/json`)??W(e,`http://www.opengis.net/def/rel/ogc/1.0/conformance`,`application/json`)}function V(e){return W(e,`data`,`application/json`)??W(e,`http://www.opengis.net/def/rel/ogc/1.0/data`,`application/json`)}function H(e){let t=e.extent?.spatial;if(!t)return null;let n=t.bbox[0],r=n.length===4,[i,a]=n,s=r?void 0:n[2];return{xmin:i,ymin:a,xmax:r?n[2]:n[3],ymax:r?n[3]:n[4],zmin:s,zmax:r?void 0:n[5],spatialReference:o.WGS84.toJSON()}}function U(e){return W(e,`items`,`application/geo+json`,`http://www.opengis.net/def/profile/OGC/0/rfc7946`)??W(e,`http://www.opengis.net/def/rel/ogc/1.0/items`,`application/geo+json`,`http://www.opengis.net/def/profile/OGC/0/rfc7946`)}function W(e,t,n,r){return r?e.find(({rel:e,type:i,profile:a})=>e===t&&i===n&&a?.some(e=>e.toLowerCase()===r.toLowerCase()))??e.find(({rel:e,type:r,profile:i})=>e===t&&r===n&&!i):e.find(({rel:e,type:r})=>e===t&&r===n)??e.find(({rel:e,type:n})=>e===t&&!n)}function G(e){return W(e,`next`,`application/geo+json`)}function K(e,t,n){if(!n)return;let r=G(n),i=a(r?.href)?.query;if(!i)return;let o=a(e).query,s=Object.keys(o??{});return Object.entries(i).filter(([e])=>!s.includes(e)).find(([e,n])=>C.has(e.toLowerCase())&&Number.parseInt(n,10)===t)?.[0]}export{T as crsDefault,w as crsPrefix,E as getCollectionDefinition,U as getItemsLink,D as getServerCollectionsPage,O as getServerConformance,k as getServerLandingPage,A as getServerOpenApi,j as getSpatialReferenceWkid,M as queryFeatureSetJSON,N as queryOptimizedFeatureSet};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{getPrimaryRasters as e}from"../raster/datasets/datasetUtils.js";import{saveAs as t,save as n}from"./utils.js";import{getWGS84ExtentForItem as r,removeTypeKeyword as i,
|
|
2
|
+
import{getPrimaryRasters as e}from"../raster/datasets/datasetUtils.js";import{saveAs as t,save as n}from"./utils.js";import{getWGS84ExtentForItem as r,removeTypeKeyword as i,typeKeyword as a,toggleTypeKeyword as o}from"../../portal/support/portalItemUtils.js";const s=`Image Service`;function c(t){if(t.type===`imagery`||t.type===`wcs`)return{isValid:!0};let{raster:n}=t,r=e(n)[0];return{isValid:r?.datasetFormat===`RasterTileServer`&&(r.tileType===`Raster`||r.tileType===`Map`),errorMessage:`imagery tile layer should be created from a tiled image service.`}}function l(e){let t=e.layerJSON;return Promise.resolve(t&&Object.keys(t).length?t:null)}function u(e,t){o(t,a.CHARTS,!!e.charts?.length)}async function d(e,t){let{parsedUrl:n,title:s,fullExtent:c}=e;t.url=n.path,t.title||=s;try{t.extent=await r(c)}catch{t.extent=void 0}i(t,a.METADATA),o(t,a.TILED_IMAGERY,e.type===`imagery-tile`),o(t,a.CHARTS,!!e.charts?.length)}async function f(e,t){let r=e.type===`imagery`?`imagery-layer-save`:e.type===`imagery-tile`?`imagery-tile-layer-save`:`wcs-layer-save`,i={layer:e,itemType:e.type===`wcs`?`WCS`:s,validateLayer:c,createItemData:l,errorNamePrefix:r,setItemProperties:u};return n(i,t)}async function p(e,n,r){let i=e.type===`imagery`?`imagery-layer-save-as`:e.type===`imagery-tile`?`imagery-tile-layer-save-as`:`wcs-layer-save-as`,a={layer:e,itemType:e.type===`wcs`?`WCS`:s,validateLayer:c,createItemData:l,errorNamePrefix:i,newItem:n,setItemProperties:d};return t(a,r)}export{f as save,p as saveAs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{saveAs as e,save as t}from"./utils.js";import{createForItemWrite as n}from"../../portal/support/jsonContext.js";import{removeTypeKeyword as r,
|
|
2
|
+
import{saveAs as e,save as t}from"./utils.js";import{createForItemWrite as n}from"../../portal/support/jsonContext.js";import{removeTypeKeyword as r,typeKeyword as i,getWGS84ExtentForItem as a}from"../../portal/support/portalItemUtils.js";import{saveResources as o}from"../../webdoc/support/resourceUtils.js";const s=`Media Layer`,c=[`media-layer:unsupported-source`];function l(e){return{isValid:e.type===`media`,errorMessage:`Layer.type should be 'media'`}}function u(e){return n(e,`portal-item`,{withResources:!0})}function d(e){return Promise.resolve(e.layerJSON)}async function f(e,t){t.extent=e.fullExtent?await a(e.fullExtent):null}async function p(e,t){t.title||=e.title,await f(e,t),r(t,i.METADATA)}async function m(e,n){return t({layer:e,itemType:s,validateLayer:l,createJSONContext:e=>u(e),createItemData:d,errorNamePrefix:`media-layer-save`,supplementalUnsupportedErrors:c,setItemProperties:f,saveResources:(t,n)=>o(e.resourceReferences,n)},n)}async function h(t,n,r){return e({layer:t,itemType:s,validateLayer:l,createJSONContext:e=>u(e),createItemData:d,errorNamePrefix:`media-layer-save-as`,supplementalUnsupportedErrors:c,newItem:n,setItemProperties:p,saveResources:(e,n)=>o(t.resourceReferences,n)},r)}export{m as save,h as saveAs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{saveAs as e,save as t}from"./utils.js";import{getWGS84ExtentForItem as n,removeTypeKeyword as r,
|
|
2
|
+
import{saveAs as e,save as t}from"./utils.js";import{getWGS84ExtentForItem as n,removeTypeKeyword as r,typeKeyword as i,addTypeKeyword as a}from"../../portal/support/portalItemUtils.js";const o=`Stream Service`;function s(e){return{isValid:e.type===`stream`&&!!e.url&&!e.webSocketUrl,errorMessage:`Stream layer should be created using a url to a stream service`}}function c(e){let t=e.layerJSON;return Promise.resolve(t&&Object.keys(t).length?t:null)}async function l(e,t){let{parsedUrl:o,title:s,fullExtent:c}=e;t.url=o.path,t.title||=s,t.extent=null,c!=null&&(t.extent=await n(c)),r(t,i.METADATA),a(t,i.SINGLE_LAYER)}async function u(e,n){return t({layer:e,itemType:o,additionalItemType:`Feed`,validateLayer:s,createItemData:c,errorNamePrefix:`stream-layer-save`},n)}async function d(t,n,r){return e({layer:t,itemType:o,validateLayer:s,createItemData:c,errorNamePrefix:`stream-layer-save-as`,newItem:n,setItemProperties:l},r)}export{u as save,d as saveAs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{Clonable as t}from"../../core/Clonable.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/Point.js";let a=class extends t{constructor(e){super(e),this.sourcePoint=null,this.mapPoint=null}};e([n()],a.prototype,`sourcePoint`,void 0),e([n({type:i})],a.prototype,`mapPoint`,void 0),a=e([r(`esri.layers.support.ControlPoint`)],a);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{Clonable as t}from"../../core/Clonable.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/Point.js";let a=class extends t{constructor(e){super(e),this.sourcePoint=null,this.mapPoint=null}};e([n()],a.prototype,`sourcePoint`,void 0),e([n({type:i})],a.prototype,`mapPoint`,void 0),a=e([r(`esri.layers.support.ControlPoint`)],a);const o=a;export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{Clonable as t}from"../../core/Clonable.js";import n from"../../core/Error.js";import{JSONSupportMixin as r,JSONSupport as i}from"../../core/JSONSupport.js";import a from"../../core/Logger.js";import{transformProjective as o,getProjectiveTransform as s}from"../../core/perspectiveUtils.js";import{createScreenPoint as c}from"../../core/screenUtils.js";import{property as l,subclass as u}from"../../core/accessorSupport/decorators.js";import{invert as d}from"../../core/libs/gl-matrix-2/math/mat3.js";import{fromValues as f,create as p}from"../../core/libs/gl-matrix-2/factories/mat3f64.js";import{set as m,
|
|
2
|
+
import{__decorate as e}from"tslib";import{Clonable as t}from"../../core/Clonable.js";import n from"../../core/Error.js";import{JSONSupportMixin as r,JSONSupport as i}from"../../core/JSONSupport.js";import a from"../../core/Logger.js";import{transformProjective as o,getProjectiveTransform as s}from"../../core/perspectiveUtils.js";import{createScreenPoint as c}from"../../core/screenUtils.js";import{property as l,subclass as u}from"../../core/accessorSupport/decorators.js";import{invert as d}from"../../core/libs/gl-matrix-2/math/mat3.js";import{fromValues as f,create as p}from"../../core/libs/gl-matrix-2/factories/mat3f64.js";import{set as m,rotate as h,lerp as g}from"../../core/libs/gl-matrix-2/math/vec2.js";import{create as _,fromValues as v}from"../../core/libs/gl-matrix-2/factories/vec2f64.js";import y from"../../geometry/Point.js";import b from"../../geometry/Polygon.js";import{projectOrLoad as x}from"../../geometry/projectionUtils.js";import S from"../../geometry/SpatialReference.js";import C from"./ControlPoint.js";import{GeoreferenceBaseMixin as w}from"./GeoreferenceBaseMixin.js";import{reader as T}from"../../core/accessorSupport/decorators/reader.js";import{writer as E}from"../../core/accessorSupport/decorators/writer.js";const D=p(),O=_();let k=class extends i{};e([l({type:Number,json:{write:{isRequired:!0}}})],k.prototype,`x`,void 0),e([l({type:Number,json:{write:{isRequired:!0}}})],k.prototype,`y`,void 0),k=e([u(`esri.layers.support.ControlPointsGeoreference.ControlPointJSONType`)],k);let A=class extends r(w(t)){constructor(e){super(e),this.height=0,this.type=`control-points`,this.width=0}get controlPoints(){return this._get(`controlPoints`)??null}set controlPoints(e){this._set(`controlPoints`,e)}readControlPoints(e,t){let n=S.fromJSON(t.spatialReference),r=f(...t.coefficients,1);return e.map(e=>(m(O,e.x,e.y),o(O,O,r),{sourcePoint:e,mapPoint:new y({x:O[0],y:O[1],spatialReference:n})}))}writeControlPoints(e,t,r,i){if(this.transform==null){let e=new n(`web-document-write:invalid-georeference`,`Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.`,{layer:i?.layer,georeference:this});i?.messages?i.messages.push(e):a.getLogger(this).error(e.name,e.message)}else e!=null&&j(e[0])&&(t.controlPoints=e.map(e=>{let t=e.sourcePoint;return{x:t.x,y:t.y}}),t.spatialReference=e[0].mapPoint.spatialReference.toJSON(),t.coefficients=this.transform.slice(0,8))}get coords(){if(this.controlPoints==null)return null;let e=this._updateTransform(D);if(e==null||!j(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return Y(e,this.width,this.height,t)}set coords(e){if(this.controlPoints==null||!j(this.controlPoints[0]))return;let t=this.controlPoints[0].mapPoint.spatialReference;if(e=this.projectOrWarn(e,t),e==null)return;let{width:n,height:r}=this,{rings:[[i,a,s,l]]}=e,u=new C({sourcePoint:c(0,r),mapPoint:new y({x:i[0],y:i[1],spatialReference:t})}),d=new C({sourcePoint:c(0,0),mapPoint:new y({x:a[0],y:a[1],spatialReference:t})}),f=new C({sourcePoint:c(n,0),mapPoint:new y({x:s[0],y:s[1],spatialReference:t})}),p=new C({sourcePoint:c(n,r),mapPoint:new y({x:l[0],y:l[1],spatialReference:t})});j(u)&&j(d)&&j(f)&&j(p)&&(W(D,u,d,f,p),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>(m(O,e.x,e.y),o(O,O,D),{sourcePoint:e,mapPoint:new y({x:O[0],y:O[1],spatialReference:t})})))}get inverseTransform(){return this.transform==null?null:d(p(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(e==null||this.transform==null||this.controlPoints==null||!j(this.controlPoints[0]))return null;m(O,e.x,e.y);let t=this.controlPoints[0].mapPoint.spatialReference;return o(O,O,this.transform),new y({x:O[0],y:O[1],spatialReference:t})}toSource(e){if(e==null||this.inverseTransform==null||this.controlPoints==null||!j(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),e=x(e,t).geometry,e==null?null:(m(O,e.x,e.y),o(O,O,this.inverseTransform),c(O[0],O[1]))}toSourceNormalized(e){let t=this.toSource(e);return t!=null&&(t.x/=this.width,t.y/=this.height),t}_updateTransform(e){let{controlPoints:t,width:n,height:r}=this;if(t==null||!(n>0)||!(r>0))return null;let[i,a,o,s]=t;if(!j(i))return null;let c=i.mapPoint.spatialReference,l=this._projectControlPoint(a,c),u=this._projectControlPoint(o,c),d=this._projectControlPoint(s,c);if(!l.valid||!u.valid||!d.valid||!j(l.controlPoint))return null;e??=p();let f=null;return f=j(u.controlPoint)&&j(d.controlPoint)?W(e,i,l.controlPoint,u.controlPoint,d.controlPoint):j(u.controlPoint)?U(e,i,l.controlPoint,u.controlPoint):H(e,i,l.controlPoint),f.every(e=>e===0)?null:f}_projectControlPoint(e,t){if(!j(e))return{valid:!0,controlPoint:e};let{sourcePoint:n,mapPoint:r}=e,{geometry:i,pending:o}=x(r,t);return o?{valid:!1,controlPoint:null}:!o&&!i?(a.getLogger(this).warn(`map point could not be projected to the spatial reference`,{georeference:this,controlPoint:e,sourceSpatialReference:r.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null}):{valid:!0,controlPoint:new C({sourcePoint:n,mapPoint:i})}}};e([l({type:[C],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[k],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:S,isRequired:!0}}}}})],A.prototype,`controlPoints`,null),e([T(`controlPoints`)],A.prototype,`readControlPoints`,null),e([E(`controlPoints`)],A.prototype,`writeControlPoints`,null),e([l({clonable:!1})],A.prototype,`coords`,null),e([l({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],A.prototype,`height`,void 0),e([l({readOnly:!0})],A.prototype,`inverseTransform`,null),e([l({readOnly:!0})],A.prototype,`transform`,null),e([l({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],A.prototype,`width`,void 0),A=e([u(`esri.layers.support.ControlPointsGeoreference`)],A);function j(e){return e?.sourcePoint!=null&&e.mapPoint!=null}const M=_(),N=_(),P=_(),F=_(),I=_(),L=_(),R=_(),z=_(),B=Math.PI/2;function V(e,t,n){m(e,n.sourcePoint.x,n.sourcePoint.y),m(t,n.mapPoint.x,n.mapPoint.y)}function H(e,t,n){return V(M,I,t),V(N,L,n),h(P,N,M,B),h(F,M,N,B),h(R,L,I,-B),h(z,I,L,-B),J(e,M,N,P,F,I,L,R,z)}function U(e,t,n,r){return V(M,I,t),V(N,L,n),V(P,R,r),g(F,M,N,.5),h(F,P,F,Math.PI),g(z,I,L,.5),h(z,R,z,Math.PI),J(e,M,N,P,F,I,L,R,z)}function W(e,t,n,r,i){return V(M,I,t),V(N,L,n),V(P,R,r),V(F,z,i),J(e,M,N,P,F,I,L,R,z)}const G=Array(8).fill(0),K=Array(8).fill(0);function q(e,t,n,r,i){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=r[0],e[5]=r[1],e[6]=i[0],e[7]=i[1],e}function J(e,t,n,r,i,a,o,c,l){return s(e,q(G,t,n,r,i),q(K,a,o,c,l))}function Y(e,t,n,r){let i=v(0,n),a=v(0,0),s=v(t,0),c=v(t,n);return o(i,i,e),o(a,a,e),o(s,s,e),o(c,c,e),new b({rings:[[i,a,s,c,i]],spatialReference:r})}const X=A;export{X as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as n}from"../../core/lang.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{types as a}from"../../core/accessorSupport/ensureType.js";var o;let s=o=class extends t{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new o({variableName:this.variableName,dimensionName:this.dimensionName,values:n(this.values),isSlice:this.isSlice})}};e([r({type:String,json:{write:!0}})],s.prototype,`variableName`,void 0),e([r({type:String,json:{write:!0}})],s.prototype,`dimensionName`,void 0),e([r({type:a.array(a.oneOf([a.native(Number),a.array(a.native(Number))])),json:{write:!0}})],s.prototype,`values`,void 0),e([r({type:Boolean,json:{write:!0}})],s.prototype,`isSlice`,void 0),s=o=e([i(`esri.layers.support.DimensionalDefinition`)],s);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as n}from"../../core/lang.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{types as a}from"../../core/accessorSupport/ensureType.js";var o;let s=o=class extends t{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new o({variableName:this.variableName,dimensionName:this.dimensionName,values:n(this.values),isSlice:this.isSlice})}};e([r({type:String,json:{write:!0}})],s.prototype,`variableName`,void 0),e([r({type:String,json:{write:!0}})],s.prototype,`dimensionName`,void 0),e([r({type:a.array(a.oneOf([a.native(Number),a.array(a.native(Number))])),json:{write:!0}})],s.prototype,`values`,void 0),e([r({type:Boolean,json:{write:!0}})],s.prototype,`isSlice`,void 0),s=o=e([i(`esri.layers.support.DimensionalDefinition`)],s);const c=s;export{c as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{result as e}from"../../core/asyncUtils.js";import t from"../../core/Error.js";import
|
|
2
|
+
import{result as e}from"../../core/asyncUtils.js";import t from"../../core/Error.js";import{assertIsSome as n}from"../../core/maybe.js";import{whenOrAbort as r,throwIfAbortError as i}from"../../core/promiseUtils.js";import{getMetersPerUnitForSR as a}from"../../core/units.js";import{initializeProjection as o,project as s}from"../../geometry/projectionUtils.js";import{fromExtent as c}from"../../geometry/support/aaBoundingRect.js";import{GeometryQueryContext as l,ExtentQueryContext as u,isTileInfoTilemapCache as d,getLods as f}from"./ElevationQueryContext.js";import{ElevationTile as p}from"./ElevationTile.js";import m from"./ElevationTileData.js";import{GeometryDescriptor as h}from"./GeometryDescriptor.js";import{TileElevationSampler as g}from"./TileElevationSampler.js";import{TileKey as _}from"./TileKey.js";async function v(e,n,r){if(e=r?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice(),!e.length)throw new t(H,`Elevation queries require at least one elevation layer to fetch tiles from`);let i=h.fromGeometry(n),a={...j,...r,returnSampleInfo:!0},o=await y(e.pop(),i,a),s=await w(e,o,a);return s.geometry=s.geometry.export(),r?.returnSampleInfo||delete s.sampleInfo,s}async function y(e,n,r){if(!e)throw new t(H,`Elevation queries require an elevation layer to fetch tiles from`);if(!n||!(n instanceof h)&&n.type!==`point`&&n.type!==`multipoint`&&n.type!==`polyline`)throw new t(`elevation-query:invalid-geometry`,`Only point, polyline and multipoint geometries can be used to query elevation`);return e.queryElevationForGround(n,{...j,...r})}async function b(e,t,n){let{view:r,...i}={...j,...n},a=i.signal,o=new l(e,t.spatialReference,i);return await e.load({signal:a}),await M(o,t,a),await T(o,a),await L(o,a),z(o),B(o,a)}async function x(e,n,r){if(e=Array.isArray(e)?e:[e],e=r?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice(),e.length===0)throw new t(H,`Elevation queries require at least one elevation layer to fetch tiles from`);if(!n||n.type!==`extent`)throw new t(`elevation-query:invalid-extent`,`Invalid or undefined extent`);let i={...j,...r,returnSampleInfo:!0},a=S(e[e.length-1],n,i);if(e.length===1)return a;let o=await a;return C(e,n,o,i)}async function S(e,t,n,r){let i=n.signal;await e.load({signal:i});let a=t.spatialReference,c=e.tileInfo.spatialReference;a.equals(c)||(await o([{source:a,dest:c}],{signal:i}),t=s(t,c));let l=new u(e,t,n,r);await T(l,i),await L(l,i);let d=l.elevationTiles,f=l.layer.tileInfo,p=l.parameters.noDataValue;return new g({noDataValue:p,tiles:d,tileInfo:f})}async function C(e,t,n,r){if(e.pop(),!e.length)return n;let i=n.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>c(e.extent)),a=await S(e[e.length-1],t,r,i);if(a.samplers.length===0)return n;let o=n.samplers.concat(a.samplers),s=r.noDataValue;return C(e,t,new g({samplers:o,noDataValue:s}),r)}async function w(e,t,r){let i=t.geometry.coordinates,a=t.sampleInfo;n(a);let o=[],s=[];for(let t=0;t<i.length;t++)a[t].demResolution<0&&e.length&&(o.push(i[t]),s.push(t));let c=e.pop();if(c==null||o.length===0)return t;let l=await y(c,t.geometry.clone(o),r),u=l.sampleInfo;if(!u)throw Error(`no sampleInfo`);return s.forEach((e,t)=>{i[e].z=l.geometry.coordinates[t].z,a[e].demResolution=u[t].demResolution,a[e].source=u[t].source}),w(e,t,r)}async function T(e,n){e.type===`geometry`&&N(e);let r=e.parameters.demResolution;if(typeof r==`number`)F(e,r);else if(r===`finest-contiguous`)await E(e,n);else if(r===`auto`)await O(e,n);else throw new t(`elevation-query:invalid-dem-resolution`,`Invalid dem resolution value '${r}', expected a number, "finest-contiguous" or "auto"`)}async function E(e,t){let{tileInfo:n,tilemapCache:r}=e.layer;await D(e,A(n,r,e.parameters.minDemResolution),t)}async function D(e,n,a){let o=e.layer;if(e.selectTilesAtLOD(n),n<0)return;let s=o.tilemapCache,c=e.getTilesToFetch();try{if(s&&!d(s))await r(Promise.all(c.map(e=>s.fetchAvailability(e.level,e.row,e.col,{signal:a}))),a);else if(await L(e,a),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new t(`elevation-query:has-unavailable-tiles`,`Some elevation tiles are unavailable`)}catch(t){i(t),await D(e,n-1,a)}}async function O(t,n){I(t),R(t);let a=t.layer.tilemapCache;if(!a||d(a))return k(t,n);let o=t.getTilesToFetch(),s={},c=o.map(async t=>{let r=new _(0,0,0),o=await e(a.fetchAvailabilityUpsample(t.level,t.row,t.col,r,{signal:n}));o.ok===!1?i(o.error):t.id!=null&&(s[t.id]=r)});await r(Promise.all(c),n),t.remapTiles(s)}async function k(e,t){let n=e.layer.tileInfo;await L(e,t);let r=!1;e.forEachTileToFetch((e,t)=>{n.upsampleTile(e)?r=!0:t()}),r&&await k(e,t)}function A(e,t,n=0){let r=f(e,t),i=r.length-1;if(n>0){let t=n/a(e.spatialReference),o=r.findIndex(e=>e.resolution<t);o===0?i=0:o>0&&(i=o-1)}return i}const j={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:`auto`,minDemResolution:0,signal:null};async function M(e,n,r){let i,a=e.layer.tileInfo.spatialReference;if(n instanceof h?i=await n.project(a,r):(await o([{source:n.spatialReference,dest:a}],{signal:r}),i=s(n,a)),!i)throw new t(`elevation-query:spatial-reference-mismatch`,`Cannot query elevation in '${n.spatialReference.wkid}' on an elevation service in '${a.wkid}'`);e.geometry=h.fromGeometry(i)}function N(e){if(e.layer.fullExtent==null)return;let t=new p(new _(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;let n=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{let r=e.x,i=e.y;(r<n.xmin||r>n.xmax||i<n.ymin||i>n.ymax)&&(e.elevationTile=t)})}function P(e,t){let{tileInfo:n,tilemapCache:r}=e.layer,i=t/a(n.spatialReference),o=f(n,r),s=o[0],c=0;for(let e=1;e<o.length;e++){let t=o[e];Math.abs(t.resolution-i)<Math.abs(s.resolution-i)&&(s=t,c=e)}return c}function F(e,t){let n=P(e,t);e.selectTilesAtLOD(n)}function I(e){let{tileInfo:t,tilemapCache:n}=e.layer,r=A(t,n,e.parameters.minDemResolution);e.selectTilesAtLOD(r,e.parameters.maximumAutoTileRequests)}async function L(e,t){let n=e.getTilesToFetch(),i={},a=e.parameters.cache,o=e.parameters.noDataValue,s={noDataValue:o,signal:t},c=n.map(async t=>{if(t.id==null)return;let n=`${e.layer.uid}:${t.id}:${o}`,r=a?.get(n)??m.from(await e.layer.fetchTile(t.level,t.row,t.col,s));a?.put(n,r),i[t.id]=new p(t,r)});await r(Promise.allSettled(c),t),e.populateElevationTiles(i)}function R(e){let t=e.layer.tileInfo,n=0,r={},i=e=>{e.id!=null&&(e.id in r?r[e.id]++:(r[e.id]=1,n++))},a=e=>{if(e.id==null)return;let t=r[e.id];t===1?(delete r[e.id],n--):r[e.id]=t-1};e.forEachTileToFetch(i,a);let o=!0;for(;o&&(o=!1,e.forEachTileToFetch(r=>{n<=e.parameters.maximumAutoTileRequests||(a(r),t.upsampleTile(r)&&(o=!0),i(r))},a),o););}function z(e){e.geometry.coordinates.forEach(t=>{let n=t.elevationTile,r=e.parameters.noDataValue;if(n){let e=n.sample(t.x,t.y);e==null?t.elevationTile=null:r=e}t.z=r})}async function B(e,t){let r=await e.geometry.project(e.outSpatialReference,t);n(r);let i={geometry:r.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(i.sampleInfo=V(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),i}function V(e){let t=e.layer.tileInfo,n=a(t.spatialReference);return e.geometry.coordinates.map(r=>{let i=-1;r.elevationTile&&r.elevationTile!==e.outsideExtentTile&&(i=t.lodAt(r.elevationTile.key.level).resolution*n);let a=i===-1?void 0:e.layer;return{demResolution:i,source:a}})}const H=`elevation-query:invalid-layer`;export{H as InvalidLayerError,x as createSampler,j as defaultOptions,A as getFinestLodIndex,y as query,v as queryAll,b as queryElevationFromTiles};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import"../../core/has.js";import{JSONMap as t}from"../../core/jsonMap.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{clone as r}from"../../core/lang.js";import{toPt as i}from"../../core/screenUtils.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import{createTypeReader as s}from"../../core/accessorSupport/extensions/serializableProperty/reader.js";import c from"./LabelExpressionInfo.js";import{templateStringToSql as l,getSingleFieldArcadeExpression as u,getLabelExpression as d,getLabelExpressionArcade as f,getLabelExpressionSingleField as p,LabelClassSymbol as m}from"./labelUtils.js";import{isSceneServiceLayer as h}from"./layerUtils.js";import{defaultTextSymbol2D as g}from"../../symbols/support/defaults.js";import{writeLabelSymbol as _}from"../../symbols/support/jsonUtils.js";import{symbolTypesLabel3D as v,symbolTypesLabel as y}from"../../symbols/support/typeUtils.js";import{reader as b}from"../../core/accessorSupport/decorators/reader.js";import{writer as x}from"../../core/accessorSupport/decorators/writer.js";var S,C;const w=new t({esriServerPointLabelPlacementAboveCenter:`above-center`,esriServerPointLabelPlacementAboveLeft:`above-left`,esriServerPointLabelPlacementAboveRight:`above-right`,esriServerPointLabelPlacementBelowCenter:`below-center`,esriServerPointLabelPlacementBelowLeft:`below-left`,esriServerPointLabelPlacementBelowRight:`below-right`,esriServerPointLabelPlacementCenterCenter:`center-center`,esriServerPointLabelPlacementCenterLeft:`center-left`,esriServerPointLabelPlacementCenterRight:`center-right`,esriServerLinePlacementAboveAfter:`above-after`,esriServerLinePlacementAboveAlong:`above-along`,esriServerLinePlacementAboveBefore:`above-before`,esriServerLinePlacementAboveStart:`above-start`,esriServerLinePlacementAboveEnd:`above-end`,esriServerLinePlacementBelowAfter:`below-after`,esriServerLinePlacementBelowAlong:`below-along`,esriServerLinePlacementBelowBefore:`below-before`,esriServerLinePlacementBelowStart:`below-start`,esriServerLinePlacementBelowEnd:`below-end`,esriServerLinePlacementCenterAfter:`center-after`,esriServerLinePlacementCenterAlong:`center-along`,esriServerLinePlacementCenterBefore:`center-before`,esriServerLinePlacementCenterStart:`center-start`,esriServerLinePlacementCenterEnd:`center-end`,esriServerPolygonPlacementAlwaysHorizontal:`always-horizontal`},{ignoreUnknown:!0});function T(e,t,n){return{enabled:!h(n?.layer)}}function E(e){return!e||e.origin!==`service`&&e.layer?.type!==`map-image`}function D(e){return e?.type===`map-image`}function O(e){return D(e)?!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling:!1}function k(e){return E(e)||O(e?.layer)}let A=class extends n{static{S=m}static{C=this}static evaluateWhere(e,t){let n=(e,t,n)=>{switch(t){case`=`:return e==n;case`<>`:return e!=n;case`>`:return e>n;case`>=`:return e>=n;case`<`:return e<n;case`<=`:return e<=n}return!1};try{if(e==null)return!0;let r=e.split(` `);if(r.length===3)return n(t[r[0]],r[1],r[2]);if(r.length===7){let e=n(t[r[0]],r[1],r[2]),i=r[3],a=n(t[r[4]],r[5],r[6]);switch(i){case`AND`:return e&&a;case`OR`:return e||a}}return!1}catch{}}constructor(e){super(e),this[S]=!0,this.type=`label`,this.name=null,this.allowOverrun=!1,this.deconflictionStrategy=`static`,this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition=`curved`,this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=g,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let n=t.labelExpressionInfo;if(!(n&&(n.value||n.expression)))return e}writeLabelExpression(e,t,n){if(this.labelExpressionInfo){if(this.labelExpressionInfo.value!=null)e=l(this.labelExpressionInfo.value);else if(this.labelExpressionInfo.expression!=null){let t=u(this.labelExpressionInfo.expression);t&&(e=`[`+t+`]`)}}e!=null&&(t[n]=e)}writeLabelExpressionInfo(e,t,n,r){if(e==null&&this.labelExpression!=null&&E(r))e=new c({expression:this.getLabelExpressionArcade()});else if(!e)return;let i=e.toJSON(r);i.expression&&(t[n]=i)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get(`repeatLabelDistance`)}set repeatLabelDistance(e){this._set(`repeatLabelDistance`,e)}getLabelExpression(){return d(this)}getLabelExpressionArcade(){return f(this)}getLabelExpressionSingleField(){return p(this)}hash(){return JSON.stringify(this)}clone(){return new C({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:r(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:r(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};e([a({type:String,json:{write:!0}})],A.prototype,`name`,void 0),e([a({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:T}}}}})],A.prototype,`allowOverrun`,void 0),e([a({type:String,json:{write:!0,default:`static`,origins:{"web-scene":{write:!1},"portal-item":{default:`static`,write:{overridePolicy:T}}}}})],A.prototype,`deconflictionStrategy`,void 0),e([a({type:String,json:{write:{overridePolicy(e,t,n){return this.labelExpressionInfo&&n?.origin===`service`&&O(n.layer)?{enabled:!1}:{allowNull:!0}}}}})],A.prototype,`labelExpression`,void 0),e([b(`labelExpression`)],A.prototype,`readLabelExpression`,null),e([x(`labelExpression`)],A.prototype,`writeLabelExpression`,null),e([a({type:c,json:{write:{overridePolicy(e,t,n){return k(n)?{allowNull:!0}:{enabled:!1}}}}})],A.prototype,`labelExpressionInfo`,void 0),e([x(`labelExpressionInfo`)],A.prototype,`writeLabelExpressionInfo`,null),e([a({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],A.prototype,`labelPlacement`,void 0),e([a({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],A.prototype,`offsetDistance`,void 0),e([a({type:[`curved`,`parallel`],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],A.prototype,`labelPosition`,void 0),e([a({type:Number})],A.prototype,`maxScale`,void 0),e([x(`maxScale`)],A.prototype,`writeMaxScale`,null),e([a({type:Number})],A.prototype,`minScale`,void 0),e([x(`minScale`)],A.prototype,`writeMinScale`,null),e([a({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:T}}}}})],A.prototype,`repeatLabel`,void 0),e([a({type:Number,cast:i,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:T}}}}})],A.prototype,`repeatLabelDistance`,null),e([a({types:y,json:{types:y,origins:{"portal-item":{types:y,read:{reader:s({types:y})},default:null},"web-scene":{types:v,read:{reader:s({types:v})},write:_,default:null}},write:_,default:null}})],A.prototype,`symbol`,void 0),e([a({type:Boolean,json:{write:!0}})],A.prototype,`useCodedValues`,void 0),e([a({type:String,json:{write:!0}})],A.prototype,`where`,void 0),A=C=e([o(`esri.layers.support.LabelClass`)],A);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import"../../core/has.js";import{JSONMap as t}from"../../core/jsonMap.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{clone as r}from"../../core/lang.js";import{toPt as i}from"../../core/screenUtils.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import{createTypeReader as s}from"../../core/accessorSupport/extensions/serializableProperty/reader.js";import c from"./LabelExpressionInfo.js";import{templateStringToSql as l,getSingleFieldArcadeExpression as u,getLabelExpression as d,getLabelExpressionArcade as f,getLabelExpressionSingleField as p,LabelClassSymbol as m}from"./labelUtils.js";import{isSceneServiceLayer as h}from"./layerUtils.js";import{defaultTextSymbol2D as g}from"../../symbols/support/defaults.js";import{writeLabelSymbol as _}from"../../symbols/support/jsonUtils.js";import{symbolTypesLabel3D as v,symbolTypesLabel as y}from"../../symbols/support/typeUtils.js";import{reader as b}from"../../core/accessorSupport/decorators/reader.js";import{writer as x}from"../../core/accessorSupport/decorators/writer.js";var S,C;const w=new t({esriServerPointLabelPlacementAboveCenter:`above-center`,esriServerPointLabelPlacementAboveLeft:`above-left`,esriServerPointLabelPlacementAboveRight:`above-right`,esriServerPointLabelPlacementBelowCenter:`below-center`,esriServerPointLabelPlacementBelowLeft:`below-left`,esriServerPointLabelPlacementBelowRight:`below-right`,esriServerPointLabelPlacementCenterCenter:`center-center`,esriServerPointLabelPlacementCenterLeft:`center-left`,esriServerPointLabelPlacementCenterRight:`center-right`,esriServerLinePlacementAboveAfter:`above-after`,esriServerLinePlacementAboveAlong:`above-along`,esriServerLinePlacementAboveBefore:`above-before`,esriServerLinePlacementAboveStart:`above-start`,esriServerLinePlacementAboveEnd:`above-end`,esriServerLinePlacementBelowAfter:`below-after`,esriServerLinePlacementBelowAlong:`below-along`,esriServerLinePlacementBelowBefore:`below-before`,esriServerLinePlacementBelowStart:`below-start`,esriServerLinePlacementBelowEnd:`below-end`,esriServerLinePlacementCenterAfter:`center-after`,esriServerLinePlacementCenterAlong:`center-along`,esriServerLinePlacementCenterBefore:`center-before`,esriServerLinePlacementCenterStart:`center-start`,esriServerLinePlacementCenterEnd:`center-end`,esriServerPolygonPlacementAlwaysHorizontal:`always-horizontal`},{ignoreUnknown:!0});function T(e,t,n){return{enabled:!h(n?.layer)}}function E(e){return!e||e.origin!==`service`&&e.layer?.type!==`map-image`}function D(e){return e?.type===`map-image`}function O(e){return D(e)?!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling:!1}function k(e){return E(e)||O(e?.layer)}let A=class extends n{static{S=m}static{C=this}static evaluateWhere(e,t){let n=(e,t,n)=>{switch(t){case`=`:return e==n;case`<>`:return e!=n;case`>`:return e>n;case`>=`:return e>=n;case`<`:return e<n;case`<=`:return e<=n}return!1};try{if(e==null)return!0;let r=e.split(` `);if(r.length===3)return n(t[r[0]],r[1],r[2]);if(r.length===7){let e=n(t[r[0]],r[1],r[2]),i=r[3],a=n(t[r[4]],r[5],r[6]);switch(i){case`AND`:return e&&a;case`OR`:return e||a}}return!1}catch{}}constructor(e){super(e),this[S]=!0,this.type=`label`,this.name=null,this.allowOverrun=!1,this.deconflictionStrategy=`static`,this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition=`curved`,this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=g,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let n=t.labelExpressionInfo;if(!(n&&(n.value||n.expression)))return e}writeLabelExpression(e,t,n){if(this.labelExpressionInfo){if(this.labelExpressionInfo.value!=null)e=l(this.labelExpressionInfo.value);else if(this.labelExpressionInfo.expression!=null){let t=u(this.labelExpressionInfo.expression);t&&(e=`[`+t+`]`)}}e!=null&&(t[n]=e)}writeLabelExpressionInfo(e,t,n,r){if(e==null&&this.labelExpression!=null&&E(r))e=new c({expression:this.getLabelExpressionArcade()});else if(!e)return;let i=e.toJSON(r);i.expression&&(t[n]=i)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get(`repeatLabelDistance`)}set repeatLabelDistance(e){this._set(`repeatLabelDistance`,e)}getLabelExpression(){return d(this)}getLabelExpressionArcade(){return f(this)}getLabelExpressionSingleField(){return p(this)}hash(){return JSON.stringify(this)}clone(){return new C({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:r(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:r(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};e([a({type:String,json:{write:!0}})],A.prototype,`name`,void 0),e([a({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:T}}}}})],A.prototype,`allowOverrun`,void 0),e([a({type:String,json:{write:!0,default:`static`,origins:{"web-scene":{write:!1},"portal-item":{default:`static`,write:{overridePolicy:T}}}}})],A.prototype,`deconflictionStrategy`,void 0),e([a({type:String,json:{write:{overridePolicy(e,t,n){return this.labelExpressionInfo&&n?.origin===`service`&&O(n.layer)?{enabled:!1}:{allowNull:!0}}}}})],A.prototype,`labelExpression`,void 0),e([b(`labelExpression`)],A.prototype,`readLabelExpression`,null),e([x(`labelExpression`)],A.prototype,`writeLabelExpression`,null),e([a({type:c,json:{write:{overridePolicy(e,t,n){return k(n)?{allowNull:!0}:{enabled:!1}}}}})],A.prototype,`labelExpressionInfo`,void 0),e([x(`labelExpressionInfo`)],A.prototype,`writeLabelExpressionInfo`,null),e([a({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],A.prototype,`labelPlacement`,void 0),e([a({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],A.prototype,`offsetDistance`,void 0),e([a({type:[`curved`,`parallel`],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],A.prototype,`labelPosition`,void 0),e([a({type:Number})],A.prototype,`maxScale`,void 0),e([x(`maxScale`)],A.prototype,`writeMaxScale`,null),e([a({type:Number})],A.prototype,`minScale`,void 0),e([x(`minScale`)],A.prototype,`writeMinScale`,null),e([a({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:T}}}}})],A.prototype,`repeatLabel`,void 0),e([a({type:Number,cast:i,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:T}}}}})],A.prototype,`repeatLabelDistance`,null),e([a({types:y,json:{types:y,origins:{"portal-item":{types:y,read:{reader:s({types:y})},default:null},"web-scene":{types:v,read:{reader:s({types:v})},write:_,default:null}},write:_,default:null}})],A.prototype,`symbol`,void 0),e([a({type:Boolean,json:{write:!0}})],A.prototype,`useCodedValues`,void 0),e([a({type:String,json:{write:!0}})],A.prototype,`where`,void 0),A=C=e([o(`esri.layers.support.LabelClass`)],A);const j=A;export{j as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{convertTemplatedStringToArcade as i}from"./labelUtils.js";import{reader as a}from"../../core/accessorSupport/decorators/reader.js";import{writer as o}from"../../core/accessorSupport/decorators/writer.js";var s;let c=class extends t{static{s=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?i(t.value):e}writeExpression(e,t,n){this.value!=null&&(e=i(this.value)),e!=null&&(t[n]=e)}clone(){return new s({name:this.name,expression:this.expression,title:this.title,value:this.value})}};e([n({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,`name`,void 0),e([n({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,`expression`,void 0),e([a(`expression`,[`expression`,`value`])],c.prototype,`readExpression`,null),e([o(`expression`)],c.prototype,`writeExpression`,null),e([n({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,`title`,void 0),e([n({json:{read:!1,write:!1}})],c.prototype,`value`,void 0),c=s=e([r(`esri.layers.support.LabelExpressionInfo`)],c);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{convertTemplatedStringToArcade as i}from"./labelUtils.js";import{reader as a}from"../../core/accessorSupport/decorators/reader.js";import{writer as o}from"../../core/accessorSupport/decorators/writer.js";var s;let c=class extends t{static{s=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?i(t.value):e}writeExpression(e,t,n){this.value!=null&&(e=i(this.value)),e!=null&&(t[n]=e)}clone(){return new s({name:this.name,expression:this.expression,title:this.title,value:this.value})}};e([n({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,`name`,void 0),e([n({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,`expression`,void 0),e([a(`expression`,[`expression`,`value`])],c.prototype,`readExpression`,null),e([o(`expression`)],c.prototype,`writeExpression`,null),e([n({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,`title`,void 0),e([n({json:{read:!1,write:!1}})],c.prototype,`value`,void 0),c=s=e([r(`esri.layers.support.LabelExpressionInfo`)],c);const l=c;export{l as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{Loadable as t}from"../../core/Loadable.js";import n from"../../core/Logger.js";import{MultiOriginJSONSupportMixin as r}from"../../core/MultiOriginJSONSupport.js";import{NumericIdentifiableMixin as i}from"../../core/NumericIdentifiable.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import s from"./ControlPointsGeoreference.js";import{
|
|
2
|
+
import{__decorate as e}from"tslib";import{Loadable as t}from"../../core/Loadable.js";import n from"../../core/Logger.js";import{MultiOriginJSONSupportMixin as r}from"../../core/MultiOriginJSONSupport.js";import{NumericIdentifiableMixin as i}from"../../core/NumericIdentifiable.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import s from"./ControlPointsGeoreference.js";import{mediaGeoreferenceProperty as c,toControlPointsGeoreference as l}from"./mediaUtils.js";import{addPropertyUnsupportedError as u}from"../../webdoc/support/unsupportedErrors.js";import{reader as d}from"../../core/accessorSupport/decorators/reader.js";import{writer as f}from"../../core/accessorSupport/decorators/writer.js";let p=class extends i(r(t)){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return s.fromJSON(e)}writeGeoreference(e,t,r,i){let a=i?.resources?.pendingOperations,o=()=>{let a=l(this.georeference,this.contentWidth,this.contentHeight);if(a){if(e.type!==`control-points`&&n.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${e.type}' has been automatically converted.`),a.controlPoints?.length!==4){u(i,`ControlPointsGeoreference.controlPoints`,`only 'control-points' georeference with 4 control points may be persisted.`);return}t[r]=a.write({},i)}};e.type!==`control-points`&&!this.loaded&&a?(t[r]={},a.push(this.load().then(o))):o()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){let{georeference:t,contentWidth:n,contentHeight:r}=this;if(e==null||t==null||n===0||r===0)return null;let i=t.toSourceNormalized(e);return i==null?null:(i.x*=n,i.y*=r,i)}};e([a(c)],p.prototype,`georeference`,void 0),e([d(`georeference`)],p.prototype,`readGeoreference`,null),e([f(`georeference`)],p.prototype,`writeGeoreference`,null),e([a({json:{read:!1,write:!1}})],p.prototype,`opacity`,void 0),p=e([o(`esri.layers.support.MediaElementBase`)],p);const m=p;export{m as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{strict as t}from"../../core/jsonMap.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{clone as r}from"../../core/lang.js";import{property as i,cast as a,subclass as o}from"../../core/accessorSupport/decorators.js";import{Integer as s}from"../../core/accessorSupport/ensureType.js";import c from"../../geometry/Point.js";import l from"./DimensionalDefinition.js";import u from"./RasterFunction.js";import{reader as d}from"../../core/accessorSupport/decorators/reader.js";import{writer as f}from"../../core/accessorSupport/decorators/writer.js";var p;const m=t()({MT_FIRST:`first`,MT_LAST:`last`,MT_MIN:`min`,MT_MAX:`max`,MT_MEAN:`mean`,MT_BLEND:`blend`,MT_SUM:`sum`}),h=t()({esriMosaicNone:`none`,esriMosaicCenter:`center`,esriMosaicNadir:`nadir`,esriMosaicViewpoint:`viewpoint`,esriMosaicAttribute:`attribute`,esriMosaicLockRaster:`lock-raster`,esriMosaicNorthwest:`northwest`,esriMosaicSeamline:`seamline`});function g(e){let t;switch(e?e.toLowerCase().replace(`esrimosaic`,``):``){case`byattribute`:case`attribute`:t=`esriMosaicAttribute`;break;case`lockraster`:t=`esriMosaicLockRaster`;break;case`center`:t=`esriMosaicCenter`;break;case`northwest`:t=`esriMosaicNorthwest`;break;case`nadir`:t=`esriMosaicNadir`;break;case`viewpoint`:t=`esriMosaicViewpoint`;break;case`seamline`:t=`esriMosaicSeamline`;break;case`none`:t=`esriMosaicNone`;break;default:t=`esriMosaicNone`}return h.fromJSON(t)}let _=p=class extends n{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method=`none`,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=`first`,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return t.ascending==null?t.sortAscending==null||t.sortAscending:t.ascending}readMethod(e,t){return g(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,n){e!=null&&(e=e.filter(({variableName:e,dimensionName:t})=>e&&e!==`*`||t),e.length&&(t[n]=e.map(e=>e.toJSON())))}readOperation(e,t){let n=t.mosaicOperation,r=t.mosaicOperator?.toLowerCase(),i=n||(r?m.toJSON(r):null);return m.fromJSON(i)||`first`}castSortValue(e){return e==null||typeof e==`string`||typeof e==`number`?e:`${e}`}clone(){return new p({ascending:this.ascending,itemRasterFunction:r(this.itemRasterFunction),lockRasterIds:r(this.lockRasterIds),method:this.method,multidimensionalDefinition:r(this.multidimensionalDefinition),objectIds:r(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:r(this.viewpoint),where:this.where})}};e([i({type:Boolean,json:{write:!0}})],_.prototype,`ascending`,void 0),e([d(`ascending`,[`ascending`,`sortAscending`])],_.prototype,`readAscending`,null),e([i({type:u,json:{name:`itemRenderingRule`,write:!0}})],_.prototype,`itemRasterFunction`,void 0),e([i({type:[s],json:{write:{overridePolicy(){return{enabled:this.method===`lock-raster`}}}}})],_.prototype,`lockRasterIds`,void 0),e([i({type:h.apiValues,json:{type:h.jsonValues,write:{target:`mosaicMethod`,writer:h.write,isRequired:!0}}})],_.prototype,`method`,void 0),e([d(`method`,[`mosaicMethod`,`defaultMosaicMethod`])],_.prototype,`readMethod`,null),e([i({type:[l],json:{write:!0}})],_.prototype,`multidimensionalDefinition`,void 0),e([f(`multidimensionalDefinition`)],_.prototype,`writeMultidimensionalDefinition`,null),e([i({type:[s],json:{name:`fids`,write:!0}})],_.prototype,`objectIds`,void 0),e([i({type:m.apiValues,json:{type:m.jsonValues,read:{reader:m.read},write:{target:`mosaicOperation`,writer:m.write}}})],_.prototype,`operation`,void 0),e([d(`operation`,[`mosaicOperation`,`mosaicOperator`])],_.prototype,`readOperation`,null),e([i({type:String,json:{write:{overridePolicy(){return{enabled:this.method===`attribute`}}}}})],_.prototype,`sortField`,void 0),e([i({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:this.method===`attribute`,allowNull:!0}}}}})],_.prototype,`sortValue`,void 0),e([a(`sortValue`)],_.prototype,`castSortValue`,null),e([i({type:c,json:{write:!0}})],_.prototype,`viewpoint`,void 0),e([i({type:String,json:{write:!0}})],_.prototype,`where`,void 0),_=p=e([o(`esri.layers.support.MosaicRule`)],_);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{strict as t}from"../../core/jsonMap.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{clone as r}from"../../core/lang.js";import{property as i,cast as a,subclass as o}from"../../core/accessorSupport/decorators.js";import{Integer as s}from"../../core/accessorSupport/ensureType.js";import c from"../../geometry/Point.js";import l from"./DimensionalDefinition.js";import u from"./RasterFunction.js";import{reader as d}from"../../core/accessorSupport/decorators/reader.js";import{writer as f}from"../../core/accessorSupport/decorators/writer.js";var p;const m=t()({MT_FIRST:`first`,MT_LAST:`last`,MT_MIN:`min`,MT_MAX:`max`,MT_MEAN:`mean`,MT_BLEND:`blend`,MT_SUM:`sum`}),h=t()({esriMosaicNone:`none`,esriMosaicCenter:`center`,esriMosaicNadir:`nadir`,esriMosaicViewpoint:`viewpoint`,esriMosaicAttribute:`attribute`,esriMosaicLockRaster:`lock-raster`,esriMosaicNorthwest:`northwest`,esriMosaicSeamline:`seamline`});function g(e){let t;switch(e?e.toLowerCase().replace(`esrimosaic`,``):``){case`byattribute`:case`attribute`:t=`esriMosaicAttribute`;break;case`lockraster`:t=`esriMosaicLockRaster`;break;case`center`:t=`esriMosaicCenter`;break;case`northwest`:t=`esriMosaicNorthwest`;break;case`nadir`:t=`esriMosaicNadir`;break;case`viewpoint`:t=`esriMosaicViewpoint`;break;case`seamline`:t=`esriMosaicSeamline`;break;case`none`:t=`esriMosaicNone`;break;default:t=`esriMosaicNone`}return h.fromJSON(t)}let _=p=class extends n{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method=`none`,this.multidimensionalDefinition=null,this.objectIds=null,this.operation=`first`,this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return t.ascending==null?t.sortAscending==null||t.sortAscending:t.ascending}readMethod(e,t){return g(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,n){e!=null&&(e=e.filter(({variableName:e,dimensionName:t})=>e&&e!==`*`||t),e.length&&(t[n]=e.map(e=>e.toJSON())))}readOperation(e,t){let n=t.mosaicOperation,r=t.mosaicOperator?.toLowerCase(),i=n||(r?m.toJSON(r):null);return m.fromJSON(i)||`first`}castSortValue(e){return e==null||typeof e==`string`||typeof e==`number`?e:`${e}`}clone(){return new p({ascending:this.ascending,itemRasterFunction:r(this.itemRasterFunction),lockRasterIds:r(this.lockRasterIds),method:this.method,multidimensionalDefinition:r(this.multidimensionalDefinition),objectIds:r(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:r(this.viewpoint),where:this.where})}};e([i({type:Boolean,json:{write:!0}})],_.prototype,`ascending`,void 0),e([d(`ascending`,[`ascending`,`sortAscending`])],_.prototype,`readAscending`,null),e([i({type:u,json:{name:`itemRenderingRule`,write:!0}})],_.prototype,`itemRasterFunction`,void 0),e([i({type:[s],json:{write:{overridePolicy(){return{enabled:this.method===`lock-raster`}}}}})],_.prototype,`lockRasterIds`,void 0),e([i({type:h.apiValues,json:{type:h.jsonValues,write:{target:`mosaicMethod`,writer:h.write,isRequired:!0}}})],_.prototype,`method`,void 0),e([d(`method`,[`mosaicMethod`,`defaultMosaicMethod`])],_.prototype,`readMethod`,null),e([i({type:[l],json:{write:!0}})],_.prototype,`multidimensionalDefinition`,void 0),e([f(`multidimensionalDefinition`)],_.prototype,`writeMultidimensionalDefinition`,null),e([i({type:[s],json:{name:`fids`,write:!0}})],_.prototype,`objectIds`,void 0),e([i({type:m.apiValues,json:{type:m.jsonValues,read:{reader:m.read},write:{target:`mosaicOperation`,writer:m.write}}})],_.prototype,`operation`,void 0),e([d(`operation`,[`mosaicOperation`,`mosaicOperator`])],_.prototype,`readOperation`,null),e([i({type:String,json:{write:{overridePolicy(){return{enabled:this.method===`attribute`}}}}})],_.prototype,`sortField`,void 0),e([i({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:this.method===`attribute`,allowNull:!0}}}}})],_.prototype,`sortValue`,void 0),e([a(`sortValue`)],_.prototype,`castSortValue`,null),e([i({type:c,json:{write:!0}})],_.prototype,`viewpoint`,void 0),e([i({type:String,json:{write:!0}})],_.prototype,`where`,void 0),_=p=e([o(`esri.layers.support.MosaicRule`)],_);const v=_;export{v as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/Extent.js";import a from"../../geometry/Geometry.js";import o from"../../geometry/Polygon.js";import{fromJSON as s}from"../../geometry/support/jsonUtils.js";import c from"./DimensionalDefinition.js";var l;const u={base:a,key:`type`,typeMap:{extent:i,polygon:o}};let d=l=class extends t{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){let{subsetDefinitions:e}=this;if(e==null||e.length===0)return[];let t=new Map;e.forEach(e=>{if(!e.dimensionName)return;let n,r;if(Array.isArray(e.values[0])){let t=e.values;n=t[0][0],r=t[e.values.length-1][1]}else{let t=e.values;n=t[0],r=t[e.values.length-1]}if(t.has(e.dimensionName)){let i=t.get(e.dimensionName);i[0]=Math.min(n,i[0]),i[1]=Math.max(r,i[1])}else t.set(e.dimensionName,[n,r])});let n=[];for(let e of t)n.push({name:e[0],extent:e[1]});return n}get variables(){let{subsetDefinitions:e}=this;if(e==null||e.length===0)return[];let t=new Set;return e.forEach(e=>{e.variableName&&t.add(e.variableName)}),[...t]}clone(){let e=this.subsetDefinitions?.map(e=>e.clone()),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new l({areaOfInterest:t,subsetDefinitions:e})}};e([n({types:u,json:{read:s,write:!0}})],d.prototype,`areaOfInterest`,void 0),e([n({readOnly:!0})],d.prototype,`dimensions`,null),e([n({readOnly:!0})],d.prototype,`variables`,null),e([n({type:[c],json:{write:!0}})],d.prototype,`subsetDefinitions`,void 0),d=l=e([r(`esri.layers.support.MultidimensionalSubset`)],d);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/Extent.js";import a from"../../geometry/Geometry.js";import o from"../../geometry/Polygon.js";import{fromJSON as s}from"../../geometry/support/jsonUtils.js";import c from"./DimensionalDefinition.js";var l;const u={base:a,key:`type`,typeMap:{extent:i,polygon:o}};let d=l=class extends t{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){let{subsetDefinitions:e}=this;if(e==null||e.length===0)return[];let t=new Map;e.forEach(e=>{if(!e.dimensionName)return;let n,r;if(Array.isArray(e.values[0])){let t=e.values;n=t[0][0],r=t[e.values.length-1][1]}else{let t=e.values;n=t[0],r=t[e.values.length-1]}if(t.has(e.dimensionName)){let i=t.get(e.dimensionName);i[0]=Math.min(n,i[0]),i[1]=Math.max(r,i[1])}else t.set(e.dimensionName,[n,r])});let n=[];for(let e of t)n.push({name:e[0],extent:e[1]});return n}get variables(){let{subsetDefinitions:e}=this;if(e==null||e.length===0)return[];let t=new Set;return e.forEach(e=>{e.variableName&&t.add(e.variableName)}),[...t]}clone(){let e=this.subsetDefinitions?.map(e=>e.clone()),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new l({areaOfInterest:t,subsetDefinitions:e})}};e([n({types:u,json:{read:s,write:!0}})],d.prototype,`areaOfInterest`,void 0),e([n({readOnly:!0})],d.prototype,`dimensions`,null),e([n({readOnly:!0})],d.prototype,`variables`,null),e([n({type:[c],json:{write:!0}})],d.prototype,`subsetDefinitions`,void 0),d=l=e([r(`esri.layers.support.MultidimensionalSubset`)],d);const f=d;export{f as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";var i;function a(e){return e=Number(e),isNaN(e)?void 0:e}let o=class extends t{static{i=this}constructor(e){super(e),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new i({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};e([n({json:{name:`BandName`,write:!0}})],o.prototype,`name`,void 0),e([n({json:{read:{source:[`WavelengthMin`,`Wavelength`,`WAVELENGTH`],reader:(e,t)=>a(t.WavelengthMin??t.Wavelength??t.WAVELENGTH)},write:{target:`WavelengthMin`}}})],o.prototype,`minWavelength`,void 0),e([n({json:{name:`WavelengthMax`,read:{reader:a},write:!0}})],o.prototype,`maxWavelength`,void 0),e([n({json:{name:`RadianceBias`,read:{reader:a},write:!0}})],o.prototype,`radianceBias`,void 0),e([n({json:{name:`RadianceGain`,read:{reader:a},write:!0}})],o.prototype,`radianceGain`,void 0),e([n({json:{name:`ReflectanceBias`,read:{reader:a},write:!0}})],o.prototype,`reflectanceBias`,void 0),e([n({json:{name:`ReflectanceGain`,read:{reader:a},write:!0}})],o.prototype,`reflectanceGain`,void 0),e([n({json:{name:`SolarIrradiance`,read:{reader:a},write:!0}})],o.prototype,`solarIrradiance`,void 0),o=i=e([r(`esri.layers.support.RasterBandInfo`)],o);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";var i;function a(e){return e=Number(e),isNaN(e)?void 0:e}let o=class extends t{static{i=this}constructor(e){super(e),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new i({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};e([n({json:{name:`BandName`,write:!0}})],o.prototype,`name`,void 0),e([n({json:{read:{source:[`WavelengthMin`,`Wavelength`,`WAVELENGTH`],reader:(e,t)=>a(t.WavelengthMin??t.Wavelength??t.WAVELENGTH)},write:{target:`WavelengthMin`}}})],o.prototype,`minWavelength`,void 0),e([n({json:{name:`WavelengthMax`,read:{reader:a},write:!0}})],o.prototype,`maxWavelength`,void 0),e([n({json:{name:`RadianceBias`,read:{reader:a},write:!0}})],o.prototype,`radianceBias`,void 0),e([n({json:{name:`RadianceGain`,read:{reader:a},write:!0}})],o.prototype,`radianceGain`,void 0),e([n({json:{name:`ReflectanceBias`,read:{reader:a},write:!0}})],o.prototype,`reflectanceBias`,void 0),e([n({json:{name:`ReflectanceGain`,read:{reader:a},write:!0}})],o.prototype,`reflectanceGain`,void 0),e([n({json:{name:`SolarIrradiance`,read:{reader:a},write:!0}})],o.prototype,`solarIrradiance`,void 0),o=i=e([r(`esri.layers.support.RasterBandInfo`)],o);const s=o;export{s as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as n}from"../../core/lang.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"./RasterFunctionTemplate.js";import{reader as o}from"../../core/accessorSupport/decorators/reader.js";import{writer as s}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as c}from"../../core/accessorSupport/decorators/enumeration.js";var l;const u=new Set([`raster`,`raster2`,`dem`,`fillraster`]),d=new Set([`rasters`]),f=e=>e?.rasterFunction?y.fromJSON(e):e,p=e=>e&&e instanceof y?e.toJSON():e,m=e=>e?.functionName&&!e.declaredClass,h=e=>m(e)?new y(e):e,g=e=>{if(e==null)return null;e=n(e);let t={};for(let n of Object.keys(e))t[n]=u.has(n.toLowerCase())?f(e[n]):d.has(n.toLowerCase())&&Array.isArray(e[n])?e[n].map(f):e[n];return t},_=e=>e?a.fromJSON({type:`RasterFunctionTemplate`,...e}):void 0,v={types:{key:`type`,base:null,typeMap:{RasterFunctionTemplate:a}},json:{write:!0,name:`rasterFunctionDefinition`,read:_}};let y=l=class extends t{constructor(e){super(e),this.functionName=null,this.outputPixelType=`unknown`,this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){let t=Object.keys(e);if(t.some(t=>u.has(t.toLowerCase())&&m(e[t]))||t.some(t=>d.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some(e=>m(e)))){e=n(e);for(let n of t)u.has(n.toLowerCase())?e[n]=h(e[n]):d.has(n.toLowerCase())&&Array.isArray(e[n])&&(e[n]=e[n].map(e=>h(e)))}}this._set(`functionArguments`,e)}readFunctionArguments(e){return g(e)}writeFunctionArguments(e,t,n){let r={};for(let t of Object.keys(e))r[t]=u.has(t.toLowerCase())?p(e[t]):d.has(t.toLowerCase())&&Array.isArray(e[t])?e[t].map(p):p(e[t]);t[n]=r}readFunctionName(e,t){let n=t.rasterFunctionInfos;return t.name||(n?.length&&n[0].name!==`None`?n[0].name:t.rasterFunction||t.rasterFunctionDefinition?.name)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=_(e)}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes(`"type":"ClipFunction"`):JSON.stringify(this).includes(`"rasterFunction":"Clip"`)}clone(){return new l({functionName:this.functionName,functionArguments:n(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:n(this.rasterFunctionDefinition)})}};e([r({json:{type:Object,name:`rasterFunctionArguments`}})],y.prototype,`functionArguments`,null),e([o(`functionArguments`)],y.prototype,`readFunctionArguments`,null),e([s(`functionArguments`)],y.prototype,`writeFunctionArguments`,null),e([r({json:{type:String,write:{target:`rasterFunction`}}})],y.prototype,`functionName`,void 0),e([o(`functionName`,[`rasterFunction`,`rasterFunctionInfos`,`rasterFunctionDefinition`])],y.prototype,`readFunctionName`,null),e([c({C128:`c128`,C64:`c64`,F32:`f32`,F64:`f64`,S16:`s16`,S32:`s32`,S8:`s8`,U1:`u1`,U16:`u16`,U2:`u2`,U32:`u32`,U4:`u4`,U8:`u8`,UNKNOWN:`unknown`},{ignoreUnknown:!1,default:`unknown`})],y.prototype,`outputPixelType`,void 0),e([r({type:String,json:{read:!0,write:!0}})],y.prototype,`variableName`,void 0),e([r()],y.prototype,`rasterFunctionDefinition`,null),e([r(v)],y.prototype,`functionDefinition`,void 0),e([r()],y.prototype,`hasClipFunction`,null),y=l=e([i(`esri.layers.support.RasterFunction`)],y);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as n}from"../../core/lang.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"./RasterFunctionTemplate.js";import{reader as o}from"../../core/accessorSupport/decorators/reader.js";import{writer as s}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as c}from"../../core/accessorSupport/decorators/enumeration.js";var l;const u=new Set([`raster`,`raster2`,`dem`,`fillraster`]),d=new Set([`rasters`]),f=e=>e?.rasterFunction?y.fromJSON(e):e,p=e=>e&&e instanceof y?e.toJSON():e,m=e=>e?.functionName&&!e.declaredClass,h=e=>m(e)?new y(e):e,g=e=>{if(e==null)return null;e=n(e);let t={};for(let n of Object.keys(e))t[n]=u.has(n.toLowerCase())?f(e[n]):d.has(n.toLowerCase())&&Array.isArray(e[n])?e[n].map(f):e[n];return t},_=e=>e?a.fromJSON({type:`RasterFunctionTemplate`,...e}):void 0,v={types:{key:`type`,base:null,typeMap:{RasterFunctionTemplate:a}},json:{write:!0,name:`rasterFunctionDefinition`,read:_}};let y=l=class extends t{constructor(e){super(e),this.functionName=null,this.outputPixelType=`unknown`,this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){let t=Object.keys(e);if(t.some(t=>u.has(t.toLowerCase())&&m(e[t]))||t.some(t=>d.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some(e=>m(e)))){e=n(e);for(let n of t)u.has(n.toLowerCase())?e[n]=h(e[n]):d.has(n.toLowerCase())&&Array.isArray(e[n])&&(e[n]=e[n].map(e=>h(e)))}}this._set(`functionArguments`,e)}readFunctionArguments(e){return g(e)}writeFunctionArguments(e,t,n){let r={};for(let t of Object.keys(e))r[t]=u.has(t.toLowerCase())?p(e[t]):d.has(t.toLowerCase())&&Array.isArray(e[t])?e[t].map(p):p(e[t]);t[n]=r}readFunctionName(e,t){let n=t.rasterFunctionInfos;return t.name||(n?.length&&n[0].name!==`None`?n[0].name:t.rasterFunction||t.rasterFunctionDefinition?.name)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=_(e)}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes(`"type":"ClipFunction"`):JSON.stringify(this).includes(`"rasterFunction":"Clip"`)}clone(){return new l({functionName:this.functionName,functionArguments:n(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:n(this.rasterFunctionDefinition)})}};e([r({json:{type:Object,name:`rasterFunctionArguments`}})],y.prototype,`functionArguments`,null),e([o(`functionArguments`)],y.prototype,`readFunctionArguments`,null),e([s(`functionArguments`)],y.prototype,`writeFunctionArguments`,null),e([r({json:{type:String,write:{target:`rasterFunction`}}})],y.prototype,`functionName`,void 0),e([o(`functionName`,[`rasterFunction`,`rasterFunctionInfos`,`rasterFunctionDefinition`])],y.prototype,`readFunctionName`,null),e([c({C128:`c128`,C64:`c64`,F32:`f32`,F64:`f64`,S16:`s16`,S32:`s32`,S8:`s8`,U1:`u1`,U16:`u16`,U2:`u2`,U32:`u32`,U4:`u4`,U8:`u8`,UNKNOWN:`unknown`},{ignoreUnknown:!1,default:`unknown`})],y.prototype,`outputPixelType`,void 0),e([r({type:String,json:{read:!0,write:!0}})],y.prototype,`variableName`,void 0),e([r()],y.prototype,`rasterFunctionDefinition`,null),e([r(v)],y.prototype,`functionDefinition`,void 0),e([r()],y.prototype,`hasClipFunction`,null),y=l=e([i(`esri.layers.support.RasterFunction`)],y);const b=y;export{b as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{Integer as a}from"../../core/accessorSupport/ensureType.js";import o from"./RasterFunctionInfo.js";import s from"./RasterFunctionProperties.js";const c=new t({0:`mosaic`,1:`item`,2:`item-group`},{useNumericKeys:!0});let l=class extends n{constructor(){super(...arguments),this.description=``,this.functionType=`mosaic`,this.type=`RasterFunctionTemplate`}};e([r({type:[String],json:{write:!0}})],l.prototype,`aliases`,void 0),e([r({type:Object,json:{write:{isRequired:!0}}})],l.prototype,`arguments`,void 0),e([r({type:String,json:{write:{isRequired:!0}}})],l.prototype,`description`,void 0),e([r({type:o,json:{write:{isRequired:!0},name:`function`}})],l.prototype,`functionInfo`,void 0),e([r({type:c.apiValues,json:{type:[0,1,2],read:c.read,write:{writer:c.write,isRequired:!0}}})],l.prototype,`functionType`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`group`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`help`,void 0),e([r({type:Number,json:{type:a,write:!0,name:`_object_id`}})],l.prototype,`id`,void 0),e([r({type:String,json:{write:{isRequired:!0}}})],l.prototype,`name`,void 0),e([r({type:String,json:{write:!0,name:`definition`}})],l.prototype,`queryDefinition`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`tag`,void 0),e([r({type:s,json:{write:!0}})],l.prototype,`properties`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`thumbnail`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`thumbnailEx`,void 0),e([r({json:{type:[`RasterFunctionTemplate`],write:!0}})],l.prototype,`type`,void 0),l=e([i(`esri.layers.support.RasterFunctionTemplate`)],l);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONMap as t}from"../../core/jsonMap.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{Integer as a}from"../../core/accessorSupport/ensureType.js";import o from"./RasterFunctionInfo.js";import s from"./RasterFunctionProperties.js";const c=new t({0:`mosaic`,1:`item`,2:`item-group`},{useNumericKeys:!0});let l=class extends n{constructor(){super(...arguments),this.description=``,this.functionType=`mosaic`,this.type=`RasterFunctionTemplate`}};e([r({type:[String],json:{write:!0}})],l.prototype,`aliases`,void 0),e([r({type:Object,json:{write:{isRequired:!0}}})],l.prototype,`arguments`,void 0),e([r({type:String,json:{write:{isRequired:!0}}})],l.prototype,`description`,void 0),e([r({type:o,json:{write:{isRequired:!0},name:`function`}})],l.prototype,`functionInfo`,void 0),e([r({type:c.apiValues,json:{type:[0,1,2],read:c.read,write:{writer:c.write,isRequired:!0}}})],l.prototype,`functionType`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`group`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`help`,void 0),e([r({type:Number,json:{type:a,write:!0,name:`_object_id`}})],l.prototype,`id`,void 0),e([r({type:String,json:{write:{isRequired:!0}}})],l.prototype,`name`,void 0),e([r({type:String,json:{write:!0,name:`definition`}})],l.prototype,`queryDefinition`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`tag`,void 0),e([r({type:s,json:{write:!0}})],l.prototype,`properties`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`thumbnail`,void 0),e([r({type:String,json:{write:!0}})],l.prototype,`thumbnailEx`,void 0),e([r({json:{type:[`RasterFunctionTemplate`],write:!0}})],l.prototype,`type`,void 0),l=e([i(`esri.layers.support.RasterFunctionTemplate`)],l);const u=l;export{u as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as n}from"../../core/lang.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/Extent.js";import o from"../../geometry/SpatialReference.js";import s from"./RasterBandInfo.js";import{pixelTypeKebabDict as c}from"./rasterEnums.js";import l from"./RasterSensorInfo.js";import u from"./RasterStorageInfo.js";var d;let f=class extends t{static{d=this}constructor(e){super(e),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get bandInfos(){let e=this.keyProperties.BandProperties,{bandCount:t}=this;if(!e?.length||e.length<t){let e=[];for(let n=1;n<=t;n++)e.push(new s({name:`band_`+n}));return e}let n=e.map(e=>s.fromJSON(e));for(let e=0;e<n.length;e++)n[e].name=n[e].name||`band_`+(e+1);return n}get dataType(){let e=this.keyProperties?.DataType?.toLowerCase()??`generic`;return e===`stdtime`?`standard-time`:e}get nativeExtent(){return this._get(`nativeExtent`)||this.extent}set nativeExtent(e){e&&this._set(`nativeExtent`,e)}get nativePixelSize(){if(this.transform==null||!this.transform.affectsPixelSize)return this.pixelSize;let e=this.nativeExtent;return{x:e.width/this.width,y:e.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return l.fromJSON(this.keyProperties)}clone(){return new d({attributeTable:n(this.attributeTable),bandCount:this.bandCount,colormap:n(this.colormap),extent:n(this.extent),format:this.format,height:this.height,width:this.width,histograms:n(this.histograms),keyProperties:n(this.keyProperties),multidimensionalInfo:n(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:n(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:n(this.spatialReference),statistics:n(this.statistics),storageInfo:n(this.storageInfo),transform:n(this.transform)})}};e([r({json:{write:!0}})],f.prototype,`attributeTable`,void 0),e([r({json:{write:!0}})],f.prototype,`bandCount`,void 0),e([r({readOnly:!0})],f.prototype,`bandInfos`,null),e([r({json:{write:!0}})],f.prototype,`colormap`,void 0),e([r({type:String,readOnly:!0})],f.prototype,`dataType`,null),e([r({type:a,json:{write:!0}})],f.prototype,`extent`,void 0),e([r({type:a,json:{write:!0}})],f.prototype,`nativeExtent`,null),e([r({json:{write:!0}})],f.prototype,`nativePixelSize`,null),e([r({json:{write:!0}})],f.prototype,`format`,void 0),e([r({json:{write:!0}})],f.prototype,`height`,void 0),e([r({json:{write:!0}})],f.prototype,`width`,void 0),e([r({json:{write:!0}})],f.prototype,`hasMultidimensionalTranspose`,null),e([r({json:{write:!0}})],f.prototype,`histograms`,void 0),e([r({json:{write:!0}})],f.prototype,`keyProperties`,void 0),e([r({json:{write:!0}})],f.prototype,`multidimensionalInfo`,void 0),e([r({json:{write:!0}})],f.prototype,`noDataValue`,void 0),e([r({json:{write:!0}})],f.prototype,`pixelSize`,void 0),e([r({type:c.apiValues,json:{write:!0}})],f.prototype,`pixelType`,void 0),e([r()],f.prototype,`isPseudoSpatialReference`,void 0),e([r({readOnly:!0})],f.prototype,`sensorInfo`,null),e([r({type:o,json:{write:!0}})],f.prototype,`spatialReference`,void 0),e([r({json:{write:!0}})],f.prototype,`statistics`,void 0),e([r({type:u,json:{write:!0}})],f.prototype,`storageInfo`,void 0),e([r({json:{write:!0}})],f.prototype,`transform`,void 0),f=d=e([i(`esri.layers.support.RasterInfo`)],f);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as n}from"../../core/lang.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/Extent.js";import o from"../../geometry/SpatialReference.js";import s from"./RasterBandInfo.js";import{pixelTypeKebabDict as c}from"./rasterEnums.js";import l from"./RasterSensorInfo.js";import u from"./RasterStorageInfo.js";var d;let f=class extends t{static{d=this}constructor(e){super(e),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get bandInfos(){let e=this.keyProperties.BandProperties,{bandCount:t}=this;if(!e?.length||e.length<t){let e=[];for(let n=1;n<=t;n++)e.push(new s({name:`band_`+n}));return e}let n=e.map(e=>s.fromJSON(e));for(let e=0;e<n.length;e++)n[e].name=n[e].name||`band_`+(e+1);return n}get dataType(){let e=this.keyProperties?.DataType?.toLowerCase()??`generic`;return e===`stdtime`?`standard-time`:e}get nativeExtent(){return this._get(`nativeExtent`)||this.extent}set nativeExtent(e){e&&this._set(`nativeExtent`,e)}get nativePixelSize(){if(this.transform==null||!this.transform.affectsPixelSize)return this.pixelSize;let e=this.nativeExtent;return{x:e.width/this.width,y:e.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return l.fromJSON(this.keyProperties)}clone(){return new d({attributeTable:n(this.attributeTable),bandCount:this.bandCount,colormap:n(this.colormap),extent:n(this.extent),format:this.format,height:this.height,width:this.width,histograms:n(this.histograms),keyProperties:n(this.keyProperties),multidimensionalInfo:n(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:n(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:n(this.spatialReference),statistics:n(this.statistics),storageInfo:n(this.storageInfo),transform:n(this.transform)})}};e([r({json:{write:!0}})],f.prototype,`attributeTable`,void 0),e([r({json:{write:!0}})],f.prototype,`bandCount`,void 0),e([r({readOnly:!0})],f.prototype,`bandInfos`,null),e([r({json:{write:!0}})],f.prototype,`colormap`,void 0),e([r({type:String,readOnly:!0})],f.prototype,`dataType`,null),e([r({type:a,json:{write:!0}})],f.prototype,`extent`,void 0),e([r({type:a,json:{write:!0}})],f.prototype,`nativeExtent`,null),e([r({json:{write:!0}})],f.prototype,`nativePixelSize`,null),e([r({json:{write:!0}})],f.prototype,`format`,void 0),e([r({json:{write:!0}})],f.prototype,`height`,void 0),e([r({json:{write:!0}})],f.prototype,`width`,void 0),e([r({json:{write:!0}})],f.prototype,`hasMultidimensionalTranspose`,null),e([r({json:{write:!0}})],f.prototype,`histograms`,void 0),e([r({json:{write:!0}})],f.prototype,`keyProperties`,void 0),e([r({json:{write:!0}})],f.prototype,`multidimensionalInfo`,void 0),e([r({json:{write:!0}})],f.prototype,`noDataValue`,void 0),e([r({json:{write:!0}})],f.prototype,`pixelSize`,void 0),e([r({type:c.apiValues,json:{write:!0}})],f.prototype,`pixelType`,void 0),e([r()],f.prototype,`isPseudoSpatialReference`,void 0),e([r({readOnly:!0})],f.prototype,`sensorInfo`,null),e([r({type:o,json:{write:!0}})],f.prototype,`spatialReference`,void 0),e([r({json:{write:!0}})],f.prototype,`statistics`,void 0),e([r({type:u,json:{write:!0}})],f.prototype,`storageInfo`,void 0),e([r({json:{write:!0}})],f.prototype,`transform`,void 0),f=d=e([i(`esri.layers.support.RasterInfo`)],f);const p=f;export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{reader as i}from"../../core/accessorSupport/decorators/reader.js";import{writer as a}from"../../core/accessorSupport/decorators/writer.js";var o;function s(e){return e=Number(e),isNaN(e)?void 0:e}let c=class extends t{static{o=this}constructor(e){super(e),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(e){return new Date(e)}writeAcquisitionDate(e,t){t.AcquisitionDate=e.getTime()}clone(){return new o({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};e([n({type:Date,json:{name:`AcquisitionDate`,write:!0}})],c.prototype,`acquisitionDate`,void 0),e([i(`acquisitionDate`)],c.prototype,`readAcquisitionDate`,null),e([a(`acquisitionDate`)],c.prototype,`writeAcquisitionDate`,null),e([n({json:{name:`CloudCover`,read:{reader:s},write:!0}})],c.prototype,`cloudCover`,void 0),e([n({json:{name:`ProductName`,write:!0}})],c.prototype,`productName`,void 0),e([n({json:{name:`SensorName`,write:!0}})],c.prototype,`sensorName`,void 0),e([n({json:{name:`SensorAzimuth`,read:{reader:s},write:!0}})],c.prototype,`sensorAzimuth`,void 0),e([n({json:{name:`SensorElevation`,read:{reader:s},write:!0}})],c.prototype,`sensorElevation`,void 0),e([n({json:{name:`SunAzimuth`,read:{reader:s},write:!0}})],c.prototype,`sunAzimuth`,void 0),e([n({json:{name:`SunElevation`,read:{reader:s},write:!0}})],c.prototype,`sunElevation`,void 0),c=o=e([r(`esri.layers.support.RasterSensorInfo`)],c);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{reader as i}from"../../core/accessorSupport/decorators/reader.js";import{writer as a}from"../../core/accessorSupport/decorators/writer.js";var o;function s(e){return e=Number(e),isNaN(e)?void 0:e}let c=class extends t{static{o=this}constructor(e){super(e),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(e){return new Date(e)}writeAcquisitionDate(e,t){t.AcquisitionDate=e.getTime()}clone(){return new o({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};e([n({type:Date,json:{name:`AcquisitionDate`,write:!0}})],c.prototype,`acquisitionDate`,void 0),e([i(`acquisitionDate`)],c.prototype,`readAcquisitionDate`,null),e([a(`acquisitionDate`)],c.prototype,`writeAcquisitionDate`,null),e([n({json:{name:`CloudCover`,read:{reader:s},write:!0}})],c.prototype,`cloudCover`,void 0),e([n({json:{name:`ProductName`,write:!0}})],c.prototype,`productName`,void 0),e([n({json:{name:`SensorName`,write:!0}})],c.prototype,`sensorName`,void 0),e([n({json:{name:`SensorAzimuth`,read:{reader:s},write:!0}})],c.prototype,`sensorAzimuth`,void 0),e([n({json:{name:`SensorElevation`,read:{reader:s},write:!0}})],c.prototype,`sensorElevation`,void 0),e([n({json:{name:`SunAzimuth`,read:{reader:s},write:!0}})],c.prototype,`sunAzimuth`,void 0),e([n({json:{name:`SunElevation`,read:{reader:s},write:!0}})],c.prototype,`sunElevation`,void 0),c=o=e([r(`esri.layers.support.RasterSensorInfo`)],c);const l=c;export{l as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as n}from"../../core/lang.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/Point.js";var o;let s=class extends t{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isBsqTile=!1,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}static{o=this}clone(){return new o({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:n(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:n(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isBsqTile:this.isBsqTile,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:n(this.tileInfo),transposeInfo:n(this.transposeInfo),blockBoundary:n(this.blockBoundary)})}};e([r({type:Number,json:{write:!0}})],s.prototype,`blockWidth`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`blockHeight`,void 0),e([r({type:String,json:{write:!0}})],s.prototype,`compression`,void 0),e([r({type:a,json:{write:!0}})],s.prototype,`origin`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`firstPyramidLevel`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`maximumPyramidLevel`,void 0),e([r({json:{write:!0}})],s.prototype,`pyramidResolutions`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`pyramidScalingFactor`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`pyramidBlockWidth`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`pyramidBlockHeight`,void 0),e([r({json:{write:!0}})],s.prototype,`isBsqTile`,void 0),e([r({type:Boolean,json:{write:!0}})],s.prototype,`isVirtualTileInfo`,void 0),e([r({json:{write:!0}})],s.prototype,`tileInfo`,void 0),e([r()],s.prototype,`transposeInfo`,void 0),e([r({json:{write:!0}})],s.prototype,`blockBoundary`,void 0),s=o=e([i(`esri.layers.support.RasterStorageInfo`)],s);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{clone as n}from"../../core/lang.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/Point.js";var o;let s=class extends t{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isBsqTile=!1,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}static{o=this}clone(){return new o({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:n(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:n(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isBsqTile:this.isBsqTile,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:n(this.tileInfo),transposeInfo:n(this.transposeInfo),blockBoundary:n(this.blockBoundary)})}};e([r({type:Number,json:{write:!0}})],s.prototype,`blockWidth`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`blockHeight`,void 0),e([r({type:String,json:{write:!0}})],s.prototype,`compression`,void 0),e([r({type:a,json:{write:!0}})],s.prototype,`origin`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`firstPyramidLevel`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`maximumPyramidLevel`,void 0),e([r({json:{write:!0}})],s.prototype,`pyramidResolutions`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`pyramidScalingFactor`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`pyramidBlockWidth`,void 0),e([r({type:Number,json:{write:!0}})],s.prototype,`pyramidBlockHeight`,void 0),e([r({json:{write:!0}})],s.prototype,`isBsqTile`,void 0),e([r({type:Boolean,json:{write:!0}})],s.prototype,`isVirtualTileInfo`,void 0),e([r({json:{write:!0}})],s.prototype,`tileInfo`,void 0),e([r()],s.prototype,`transposeInfo`,void 0),e([r({json:{write:!0}})],s.prototype,`blockBoundary`,void 0),s=o=e([i(`esri.layers.support.RasterStorageInfo`)],s);const c=s;export{c as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../request.js";import n from"../../core/Error.js";import r from"../../core/Logger.js";import{clamp as i}from"../../core/mathUtils.js";import{renderingSanitizer as a}from"../../core/sanitizerUtils.js";import{makeAbsolute as o,isAbsolute as s,getProxyRule as c,addProxy as l,isBlobProtocol as u,isDataProtocol as d}from"../../core/urlUtils.js";import{property as f,subclass as p}from"../../core/accessorSupport/decorators.js";import m from"./MediaElementBase.js";import{mediaElementUrlProperty as h,mediaTypeProperty as g}from"./mediaUtils.js";import{whenVideoPlayable as _}from"./videoUtils.js";import{VideoElementSymbol as v}from"../../support/mediaLayerUtils.js";import{i as y}from"../../chunks/persistableUrlUtils.js";import{writer as b}from"../../core/accessorSupport/decorators/writer.js";var x;const S=Symbol(`canplay`);let C=class extends m{static{x=v}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type=`video`,this[x]=!0}load(){let e=this.video;return typeof e==`string`?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{let t=document.createElement(`video`);return t.src=a.sanitizeUrl(o(e)),t.crossOrigin=`anonymous`,t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set(`content`,t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set(`content`,e)})):this.addResolvingPromise(Promise.reject(new n(`video-element:invalid-video-type`,`Invalid video type`,{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;let t=i(e,0,this.content.duration);`fastSeek`in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){this.loadStatus===`not-loaded`?this._set(`video`,e):r.getLogger(this).error(`#video`,`video cannot be changed after the element is loaded.`)}writeVideo(e,t,r,i){if(!e){i?.messages&&i.messages.push(new n(`video-element:unsupported-video`,`video source is missing`));return}let a=
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../request.js";import n from"../../core/Error.js";import r from"../../core/Logger.js";import{clamp as i}from"../../core/mathUtils.js";import{renderingSanitizer as a}from"../../core/sanitizerUtils.js";import{makeAbsolute as o,isAbsolute as s,getProxyRule as c,addProxy as l,isBlobProtocol as u,isDataProtocol as d}from"../../core/urlUtils.js";import{property as f,subclass as p}from"../../core/accessorSupport/decorators.js";import m from"./MediaElementBase.js";import{mediaElementUrlProperty as h,mediaTypeProperty as g}from"./mediaUtils.js";import{whenVideoPlayable as _}from"./videoUtils.js";import{VideoElementSymbol as v}from"../../support/mediaLayerUtils.js";import{i as y}from"../../chunks/persistableUrlUtils.js";import{writer as b}from"../../core/accessorSupport/decorators/writer.js";var x;const S=Symbol(`canplay`);let C=class extends m{static{x=v}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type=`video`,this[x]=!0}load(){let e=this.video;return typeof e==`string`?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{let t=document.createElement(`video`);return t.src=a.sanitizeUrl(o(e)),t.crossOrigin=`anonymous`,t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set(`content`,t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set(`content`,e)})):this.addResolvingPromise(Promise.reject(new n(`video-element:invalid-video-type`,`Invalid video type`,{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;let t=i(e,0,this.content.duration);`fastSeek`in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){this.loadStatus===`not-loaded`?this._set(`video`,e):r.getLogger(this).error(`#video`,`video cannot be changed after the element is loaded.`)}writeVideo(e,t,r,i){if(!e){i?.messages&&i.messages.push(new n(`video-element:unsupported-video`,`video source is missing`));return}let a=T(e)?e:null;if(!a){i?.messages&&i.messages.push(new n(`video-element:unsupported-video`,`video source must be an absolute url`));return}!s(a)&&i?.blockedRelativeUrls&&i.blockedRelativeUrls.push(a);let c=o(a);y(c)?i?.messages&&i.messages.push(new n(`video-element:unsupported-video`,`video source cannot be an item resource`)):t[r]=c}async _preProcessVideoUrl(e){if(c(e))return l(e);try{return await t(e,{method:`head`}),e}catch{try{return l(e,!0)}catch{return e}}}async _loadVideo(e){e.crossOrigin!==`anonymous`&&(e.crossOrigin=`anonymous`,u(e.src)||(e.src=e.src));try{await _(e,e=>this.addHandles(e,S)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(S)}}};e([f()],C.prototype,`autoplay`,void 0),e([f({readOnly:!0})],C.prototype,`content`,void 0),e([f({readOnly:!0})],C.prototype,`contentWidth`,null),e([f({readOnly:!0})],C.prototype,`contentHeight`,null),e([f({type:Number})],C.prototype,`currentTime`,null),e([f({type:Number})],C.prototype,`duration`,null),e([f(h)],C.prototype,`video`,null),e([b(`video`)],C.prototype,`writeVideo`,null),e([f(g)],C.prototype,`type`,void 0),C=e([p(`esri.layers.support.VideoElement`)],C);const w=C;function T(e){return typeof e==`string`&&!d(e)&&!u(e)}export{w as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
const e={AnnotationFeatureLayer:
|
|
2
|
+
const e={AnnotationFeatureLayer:t(()=>import(`../AnnotationFeatureLayer.js`)),BingMapsLayer:t(()=>import(`../BingMapsLayer.js`)),BuildingSceneLayer:t(()=>import(`../BuildingSceneLayer.js`)),CSVLayer:t(()=>import(`../CSVLayer.js`)),CatalogLayer:t(()=>import(`../CatalogLayer.js`)),DimensionFeatureLayer:t(()=>import(`../DimensionFeatureLayer.js`)),DimensionLayer:t(()=>import(`../DimensionLayer.js`)),ElevationLayer:t(()=>import(`../ElevationLayer.js`)),FeatureLayer:t(()=>import(`../FeatureLayer.js`)),GaussianSplatLayer:t(()=>import(`../GaussianSplatLayer.js`)),GeoJSONLayer:t(()=>import(`../GeoJSONLayer.js`)),GeoRSSLayer:t(()=>import(`../GeoRSSLayer.js`)),GroupLayer:t(()=>import(`../GroupLayer.js`)),ImageryLayer:t(()=>import(`../ImageryLayer.js`)),ImageryTileLayer:t(()=>import(`../ImageryTileLayer.js`)),IntegratedMesh3DTilesLayer:t(()=>import(`../IntegratedMesh3DTilesLayer.js`)),IntegratedMeshLayer:t(()=>import(`../IntegratedMeshLayer.js`)),KMLLayer:t(()=>import(`../KMLLayer.js`)),KnowledgeGraphLayer:t(()=>import(`../KnowledgeGraphLayer.js`)),LineOfSightLayer:t(()=>import(`../LineOfSightLayer.js`)),LinkChartLayer:t(()=>import(`../LinkChartLayer.js`)),MapImageLayer:t(()=>import(`../MapImageLayer.js`)),MapNotesLayer:t(()=>import(`../MapNotesLayer.js`)),MediaLayer:t(()=>import(`../MediaLayer.js`)),OGCFeatureLayer:t(()=>import(`../OGCFeatureLayer.js`)),OpenStreetMapLayer:t(()=>import(`../OpenStreetMapLayer.js`)),OrientedImageryLayer:t(()=>import(`../OrientedImageryLayer.js`)),ParquetLayer:t(()=>import(`../ParquetLayer.js`)),PointCloudLayer:t(()=>import(`../PointCloudLayer.js`)),RouteLayer:t(()=>import(`../RouteLayer.js`)),SceneLayer:t(()=>import(`../SceneLayer.js`)),SketchLayer:t(()=>import(`../SketchLayer.js`)),StreamLayer:t(()=>import(`../StreamLayer.js`)),SubtypeGroupLayer:t(()=>import(`../SubtypeGroupLayer.js`)),TileLayer:t(()=>import(`../TileLayer.js`)),UnknownLayer:t(()=>import(`../UnknownLayer.js`)),UnsupportedLayer:t(()=>import(`../UnsupportedLayer.js`)),VectorTileLayer:t(()=>import(`../VectorTileLayer.js`)),VideoLayer:t(()=>import(`../VideoLayer.js`)),ViewshedLayer:t(()=>import(`../ViewshedLayer.js`)),VoxelLayer:t(()=>import(`../VoxelLayer.js`)),WCSLayer:t(()=>import(`../WCSLayer.js`)),WFSLayer:t(()=>import(`../WFSLayer.js`)),WMSLayer:t(()=>import(`../WMSLayer.js`)),WMTSLayer:t(()=>import(`../WMTSLayer.js`)),WebTileLayer:t(()=>import(`../WebTileLayer.js`))};function t(e){let t=null;return async()=>(await(t??=e().catch(e=>{throw t=null,e}))).default}export{e as layersLoaderMap};
|