@arcgis/core 6.0.0-next.37 → 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/{9503eedfdda55fc5adab.js → 091ec4fe83038f3558f4.js} +1 -1
- 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/2d16b5a44f840147e882.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/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/{1b17f5f720f6cf3f6d73.js → 5be386b3af867b19ff39.js} +1 -1
- package/assets/esri/core/workers/chunks/{ea81f9d71b0842a4be26.js → 5e48898cebb6dbaf09b5.js} +1 -1
- 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/76e80381fa6d1e084796.js +1 -0
- 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/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/bdd76a0b6c14e7fb6984.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/cf21b217b13770757cb8.js +1 -0
- package/assets/esri/core/workers/chunks/d42a4f47843e075c56a8.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/fd967a9f3cf0e2890dbb.js +1 -0
- package/chunks/h.js +2 -0
- package/chunks/projector.js +2 -0
- package/config.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/GraphicsLayer.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/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/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/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 +2 -2
- 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/vectorTiles/decluttering/CollisionJob.js +1 -1
- package/views/2d/engine/vectorTiles/style/geoJSONVectorTileUtils.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/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/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.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/util/IntervalMatcher.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.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/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTileLifecycle.js +2 -0
- 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/tileUtils.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/WeatherFader.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/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.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/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/materials/internal/lineMarkerBufferUtils.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/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/webgl/Util.js +1 -1
- package/views/webgl/textureUtils.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/assets/esri/core/workers/chunks/01f55004d64309f8538b.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/1989410a618865f02dec.js +0 -1
- package/assets/esri/core/workers/chunks/2f9072563194026e320e.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/59a88dd53f8806bbec06.js +0 -1
- package/assets/esri/core/workers/chunks/5aeb5e18514644fe2cf9.js +0 -1
- package/assets/esri/core/workers/chunks/6edc13a426e00bb93a9b.js +0 -1
- package/assets/esri/core/workers/chunks/7862abd24fb5c3b12e6b.js +0 -1
- package/assets/esri/core/workers/chunks/8a3dfe997712dc2ddead.js +0 -1
- package/assets/esri/core/workers/chunks/8f82a0a6747f673a2a7e.js +0 -1
- package/assets/esri/core/workers/chunks/934e1f2153e6fad6ed23.js +0 -1
- package/assets/esri/core/workers/chunks/b25a05c58b0fd0f6ac60.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/eed4b90494a54f8b337b.js +0 -1
- package/assets/esri/core/workers/chunks/f10c883eb26330e3421c.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{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";let i=class extends t{constructor(e){super(e),this.name=null,this.sensorName=null}};e([n({type:String,json:{read:!0,write:!0}})],i.prototype,`name`,void 0),e([n({type:String,json:{read:!0,write:!0}})],i.prototype,`sensorName`,void 0),i=e([r(`esri.rest.support.BaseImageMeasureResult`)],i);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";let i=class extends t{constructor(e){super(e),this.name=null,this.sensorName=null}};e([n({type:String,json:{read:!0,write:!0}})],i.prototype,`name`,void 0),e([n({type:String,json:{read:!0,write:!0}})],i.prototype,`sensorName`,void 0),i=e([r(`esri.rest.support.BaseImageMeasureResult`)],i);const a=i;export{a 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{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/Point.js";let o=class extends t(n){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};e([r({type:a,json:{read:!0}})],o.prototype,`fromGeometry`,void 0),e([r({type:a,json:{read:!0,write:!0}})],o.prototype,`toGeometry`,void 0),e([r({json:{write:!0}})],o.prototype,`objectIds`,void 0),e([r({type:String,json:{write:!0}})],o.prototype,`where`,void 0),e([r({type:Number,json:{write:!0}})],o.prototype,`maxCount`,void 0),o=e([i(`esri.rest.support.FindImagesParameters`)],o);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/Point.js";let o=class extends t(n){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};e([r({type:a,json:{read:!0}})],o.prototype,`fromGeometry`,void 0),e([r({type:a,json:{read:!0,write:!0}})],o.prototype,`toGeometry`,void 0),e([r({json:{write:!0}})],o.prototype,`objectIds`,void 0),e([r({type:String,json:{write:!0}})],o.prototype,`where`,void 0),e([r({type:Number,json:{write:!0}})],o.prototype,`maxCount`,void 0),o=e([i(`esri.rest.support.FindImagesParameters`)],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{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"./ImageInspectionInfo.js";let a=class extends t{constructor(e){super(e),this.images=null}};e([n({type:[i],json:{write:!0}})],a.prototype,`images`,void 0),a=e([r(`esri.rest.support.FindImagesResult`)],a);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"./ImageInspectionInfo.js";let a=class extends t{constructor(e){super(e),this.images=null}};e([n({type:[i],json:{write:!0}})],a.prototype,`images`,void 0),a=e([r(`esri.rest.support.FindImagesResult`)],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{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{Integer as a}from"../../core/accessorSupport/ensureType.js";import o from"../../geometry/Point.js";import s from"../../geometry/SpatialReference.js";var c;let l=c=class extends t{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new c(n({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};e([r({type:[String],json:{name:`angleName`,write:!0}})],l.prototype,`angleNames`,void 0),e([r({type:o,json:{write:!0}})],l.prototype,`point`,void 0),e([r({type:s,json:{write:!0}})],l.prototype,`spatialReference`,void 0),e([r({type:a,json:{write:!0}})],l.prototype,`rasterId`,void 0),l=c=e([i(`esri.rest.support.ImageAngleParameters`)],l);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{Integer as a}from"../../core/accessorSupport/ensureType.js";import o from"../../geometry/Point.js";import s from"../../geometry/SpatialReference.js";var c;let l=c=class extends t{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new c(n({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};e([r({type:[String],json:{name:`angleName`,write:!0}})],l.prototype,`angleNames`,void 0),e([r({type:o,json:{write:!0}})],l.prototype,`point`,void 0),e([r({type:s,json:{write:!0}})],l.prototype,`spatialReference`,void 0),e([r({type:a,json:{write:!0}})],l.prototype,`rasterId`,void 0),l=c=e([i(`esri.rest.support.ImageAngleParameters`)],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{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/SpatialReference.js";let a=class extends t{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};e([n({type:Number,json:{write:!0}})],a.prototype,`north`,void 0),e([n({type:Number,json:{write:!0}})],a.prototype,`up`,void 0),e([n({type:i,json:{write:!0}})],a.prototype,`spatialReference`,void 0),a=e([r(`esri.rest.support.ImageAngleResult`)],a);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/SpatialReference.js";let a=class extends t{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};e([n({type:Number,json:{write:!0}})],a.prototype,`north`,void 0),e([n({type:Number,json:{write:!0}})],a.prototype,`up`,void 0),e([n({type:i,json:{write:!0}})],a.prototype,`spatialReference`,void 0),a=e([r(`esri.rest.support.ImageAngleResult`)],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{clone as t}from"../../core/lang.js";import{lengthUnitsJSONMap as n,areaUnitsJSONMap as r}from"../../core/units.js";import{property as i,subclass as a}from"../../core/accessorSupport/decorators.js";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import c from"./BaseImageMeasureParameters.js";import{measureOperationJSONMap as l}from"./imageMeasureUtils.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";var d;let f=d=class extends c{constructor(e){super(e),this.type=`area-perimeter`,this.geometry=null,this.is3D=!1,this.linearUnit=`meters`,this.areaUnit=`square-meters`}writeGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]=e.toJSON())}get measureOperation(){return this.is3D?`area-and-perimeter-3D`:`area-and-perimeter`}clone(){return new d(t({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};e([i({types:s,json:{name:`fromGeometry`,read:!0,write:!0}})],f.prototype,`geometry`,void 0),e([u(`geometry`)],f.prototype,`writeGeometry`,null),e([i({type:l.apiValues,json:{write:l.write}})],f.prototype,`measureOperation`,null),e([i({json:{read:!0}})],f.prototype,`is3D`,void 0),e([i({type:String,json:{read:n.read,write:n.write}})],f.prototype,`linearUnit`,void 0),e([i({type:String,json:{read:r.read,write:r.write}})],f.prototype,`areaUnit`,void 0),f=d=e([a(`esri.rest.support.ImageAreaParameters`)],f);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{clone as t}from"../../core/lang.js";import{lengthUnitsJSONMap as n,areaUnitsJSONMap as r}from"../../core/units.js";import{property as i,subclass as a}from"../../core/accessorSupport/decorators.js";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import c from"./BaseImageMeasureParameters.js";import{measureOperationJSONMap as l}from"./imageMeasureUtils.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";var d;let f=d=class extends c{constructor(e){super(e),this.type=`area-perimeter`,this.geometry=null,this.is3D=!1,this.linearUnit=`meters`,this.areaUnit=`square-meters`}writeGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]=e.toJSON())}get measureOperation(){return this.is3D?`area-and-perimeter-3D`:`area-and-perimeter`}clone(){return new d(t({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};e([i({types:s,json:{name:`fromGeometry`,read:!0,write:!0}})],f.prototype,`geometry`,void 0),e([u(`geometry`)],f.prototype,`writeGeometry`,null),e([i({type:l.apiValues,json:{write:l.write}})],f.prototype,`measureOperation`,null),e([i({json:{read:!0}})],f.prototype,`is3D`,void 0),e([i({type:String,json:{read:n.read,write:n.write}})],f.prototype,`linearUnit`,void 0),e([i({type:String,json:{read:r.read,write:r.write}})],f.prototype,`areaUnit`,void 0),f=d=e([a(`esri.rest.support.ImageAreaParameters`)],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{property as t,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"./BaseImageMeasureResult.js";import i from"./ImageMeasureResultAreaValue.js";import a from"./ImageMeasureResultLengthValue.js";let o=class extends r{constructor(e){super(e),this.area=null,this.perimeter=null}};e([t({type:i,json:{read:!0,write:!0}})],o.prototype,`area`,void 0),e([t({type:a,json:{read:!0,write:!0}})],o.prototype,`perimeter`,void 0),o=e([n(`esri.rest.support.ImageAreaResult`)],o);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"./BaseImageMeasureResult.js";import i from"./ImageMeasureResultAreaValue.js";import a from"./ImageMeasureResultLengthValue.js";let o=class extends r{constructor(e){super(e),this.area=null,this.perimeter=null}};e([t({type:i,json:{read:!0,write:!0}})],o.prototype,`area`,void 0),e([t({type:a,json:{read:!0,write:!0}})],o.prototype,`perimeter`,void 0),o=e([n(`esri.rest.support.ImageAreaResult`)],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{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/SpatialReference.js";let o=class extends t(n){constructor(e){super(e),this.outSpatialReference=null}};e([r({type:a,json:{name:`outSR`,write:!0}})],o.prototype,`outSpatialReference`,void 0),o=e([i(`esri.rest.support.ImageBoundaryParameters`)],o);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/SpatialReference.js";let o=class extends t(n){constructor(e){super(e),this.outSpatialReference=null}};e([r({type:a,json:{name:`outSR`,write:!0}})],o.prototype,`outSpatialReference`,void 0),o=e([i(`esri.rest.support.ImageBoundaryParameters`)],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{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/Extent.js";import a from"../../geometry/Polygon.js";import{geometryTypes as o}from"../../geometry/support/typeUtils.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";let c=class extends t{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return e==null?null:e.rings?a.fromJSON(e):i.fromJSON(e)}};e([n({type:Number,json:{write:!0}})],c.prototype,`area`,void 0),e([n({types:o,json:{name:`shape`,write:!0}})],c.prototype,`geometry`,void 0),e([s(`geometry`)],c.prototype,`readGeometry`,null),c=e([r(`esri.rest.support.ImageBoundaryResult`)],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 i from"../../geometry/Extent.js";import a from"../../geometry/Polygon.js";import{geometryTypes as o}from"../../geometry/support/typeUtils.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";let c=class extends t{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return e==null?null:e.rings?a.fromJSON(e):i.fromJSON(e)}};e([n({type:Number,json:{write:!0}})],c.prototype,`area`,void 0),e([n({types:o,json:{name:`shape`,write:!0}})],c.prototype,`geometry`,void 0),e([s(`geometry`)],c.prototype,`readGeometry`,null),c=e([r(`esri.rest.support.ImageBoundaryResult`)],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{clone as t}from"../../core/lang.js";import{lengthUnitsJSONMap as n,angleUnitsJSONMap as r}from"../../core/units.js";import{property as i,subclass as a}from"../../core/accessorSupport/decorators.js";import o from"../../geometry/Point.js";import{getJsonType as s}from"../../geometry/support/jsonTypeUtils.js";import c from"./BaseImageMeasureParameters.js";import{measureOperationJSONMap as l}from"./imageMeasureUtils.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";var d;let f=d=class extends c{constructor(e){super(e),this.type=`distance-angle`,this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit=`meters`,this.angularUnit=`degrees`}writeFromGeometry(e,t,n){e!=null&&(t.geometryType=s(e),t[n]=e.toJSON())}get measureOperation(){return this.is3D?`distance-and-angle-3D`:`distance-and-angle`}clone(){return new d(t({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};e([i({type:o,json:{read:!0,write:!0}})],f.prototype,`fromGeometry`,void 0),e([u(`fromGeometry`)],f.prototype,`writeFromGeometry`,null),e([i({type:o,json:{read:!0,write:!0}})],f.prototype,`toGeometry`,void 0),e([i({type:l.apiValues,json:{write:l.write}})],f.prototype,`measureOperation`,null),e([i({json:{read:!0}})],f.prototype,`is3D`,void 0),e([i({type:String,json:{read:n.read,write:n.write}})],f.prototype,`linearUnit`,void 0),e([i({type:String,json:{read:r.read,write:r.write}})],f.prototype,`angularUnit`,void 0),f=d=e([a(`esri.rest.support.ImageDistanceParameters`)],f);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{clone as t}from"../../core/lang.js";import{lengthUnitsJSONMap as n,angleUnitsJSONMap as r}from"../../core/units.js";import{property as i,subclass as a}from"../../core/accessorSupport/decorators.js";import o from"../../geometry/Point.js";import{getJsonType as s}from"../../geometry/support/jsonTypeUtils.js";import c from"./BaseImageMeasureParameters.js";import{measureOperationJSONMap as l}from"./imageMeasureUtils.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";var d;let f=d=class extends c{constructor(e){super(e),this.type=`distance-angle`,this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit=`meters`,this.angularUnit=`degrees`}writeFromGeometry(e,t,n){e!=null&&(t.geometryType=s(e),t[n]=e.toJSON())}get measureOperation(){return this.is3D?`distance-and-angle-3D`:`distance-and-angle`}clone(){return new d(t({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};e([i({type:o,json:{read:!0,write:!0}})],f.prototype,`fromGeometry`,void 0),e([u(`fromGeometry`)],f.prototype,`writeFromGeometry`,null),e([i({type:o,json:{read:!0,write:!0}})],f.prototype,`toGeometry`,void 0),e([i({type:l.apiValues,json:{write:l.write}})],f.prototype,`measureOperation`,null),e([i({json:{read:!0}})],f.prototype,`is3D`,void 0),e([i({type:String,json:{read:n.read,write:n.write}})],f.prototype,`linearUnit`,void 0),e([i({type:String,json:{read:r.read,write:r.write}})],f.prototype,`angularUnit`,void 0),f=d=e([a(`esri.rest.support.ImageDistanceParameters`)],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{property as t,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"./BaseImageMeasureResult.js";import i from"./ImageMeasureResultAngleValue.js";import a from"./ImageMeasureResultLengthValue.js";let o=class extends r{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};e([t({type:a,json:{read:!0,write:!0}})],o.prototype,`distance`,void 0),e([t({type:i,json:{read:!0,write:!0}})],o.prototype,`azimuthAngle`,void 0),e([t({type:i,json:{read:!0,write:!0}})],o.prototype,`elevationAngle`,void 0),o=e([n(`esri.rest.support.ImageDistanceResult`)],o);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"./BaseImageMeasureResult.js";import i from"./ImageMeasureResultAngleValue.js";import a from"./ImageMeasureResultLengthValue.js";let o=class extends r{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};e([t({type:a,json:{read:!0,write:!0}})],o.prototype,`distance`,void 0),e([t({type:i,json:{read:!0,write:!0}})],o.prototype,`azimuthAngle`,void 0),e([t({type:i,json:{read:!0,write:!0}})],o.prototype,`elevationAngle`,void 0),o=e([n(`esri.rest.support.ImageDistanceResult`)],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{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{getJsonType as a}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as o}from"../../geometry/support/jsonUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import{spatialRelKebabDict as c}from"./spatialRelationships.js";import l from"../../time/TimeExtent.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as d}from"../../core/accessorSupport/decorators/enumeration.js";let f=class extends t(n){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship=`intersects`,this.timeExtent=null,this.where=null}writeGeometry(e,t,n){e!=null&&(t.geometryType=a(e),t[n]=JSON.stringify(e.toJSON()))}};e([r({types:s,json:{read:o,write:!0}})],f.prototype,`geometry`,void 0),e([u(`geometry`)],f.prototype,`writeGeometry`,null),e([r({json:{write:!0}})],f.prototype,`objectIds`,void 0),e([d(c,{ignoreUnknown:!1,name:`spatialRel`})],f.prototype,`spatialRelationship`,void 0),e([r({type:l,json:{name:`time`,write:!0}})],f.prototype,`timeExtent`,void 0),e([r({type:String,json:{write:!0}})],f.prototype,`where`,void 0),f=e([i(`esri.rest.support.ImageGPSInfoParameters`)],f);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{getJsonType as a}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as o}from"../../geometry/support/jsonUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import{spatialRelKebabDict as c}from"./spatialRelationships.js";import l from"../../time/TimeExtent.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as d}from"../../core/accessorSupport/decorators/enumeration.js";let f=class extends t(n){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship=`intersects`,this.timeExtent=null,this.where=null}writeGeometry(e,t,n){e!=null&&(t.geometryType=a(e),t[n]=JSON.stringify(e.toJSON()))}};e([r({types:s,json:{read:o,write:!0}})],f.prototype,`geometry`,void 0),e([u(`geometry`)],f.prototype,`writeGeometry`,null),e([r({json:{write:!0}})],f.prototype,`objectIds`,void 0),e([d(c,{ignoreUnknown:!1,name:`spatialRel`})],f.prototype,`spatialRelationship`,void 0),e([r({type:l,json:{name:`time`,write:!0}})],f.prototype,`timeExtent`,void 0),e([r({type:String,json:{write:!0}})],f.prototype,`where`,void 0),f=e([i(`esri.rest.support.ImageGPSInfoParameters`)],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 i from"./CameraInfo.js";import a from"./ImageGPSInfo.js";let o=class extends t{constructor(e){super(e),this.images=null,this.cameras=null}};e([n({type:[a],json:{write:!0}})],o.prototype,`images`,void 0),e([n({type:[i],json:{write:!0}})],o.prototype,`cameras`,void 0),o=e([r(`esri.rest.support.ImageGPSInfoResult`)],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";import i from"./CameraInfo.js";import a from"./ImageGPSInfo.js";let o=class extends t{constructor(e){super(e),this.images=null,this.cameras=null}};e([n({type:[a],json:{write:!0}})],o.prototype,`images`,void 0),e([n({type:[i],json:{write:!0}})],o.prototype,`cameras`,void 0),o=e([r(`esri.rest.support.ImageGPSInfoResult`)],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{clone as t}from"../../core/lang.js";import{lengthUnitsJSONMap as n}from"../../core/units.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/Point.js";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import s from"./BaseImageMeasureParameters.js";import{measureOperationJSONMap as c}from"./imageMeasureUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";var u;let d=u=class extends s{constructor(e){super(e),this.type=`height`,this.fromGeometry=null,this.toGeometry=null,this.operationType=`base-and-top`,this.linearUnit=`meters`}writeFromGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new u(t({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};e([r({type:a,json:{read:!0}})],d.prototype,`fromGeometry`,void 0),e([l(`fromGeometry`)],d.prototype,`writeFromGeometry`,null),e([r({type:a,json:{read:!0,write:!0}})],d.prototype,`toGeometry`,void 0),e([r({type:c.apiValues,json:{write:c.write}})],d.prototype,`measureOperation`,null),e([r({json:{read:!0}})],d.prototype,`operationType`,void 0),e([r({type:String,json:{read:n.read,write:n.write}})],d.prototype,`linearUnit`,void 0),d=u=e([i(`esri.rest.support.ImageHeightParameters`)],d);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{clone as t}from"../../core/lang.js";import{lengthUnitsJSONMap as n}from"../../core/units.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/Point.js";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import s from"./BaseImageMeasureParameters.js";import{measureOperationJSONMap as c}from"./imageMeasureUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";var u;let d=u=class extends s{constructor(e){super(e),this.type=`height`,this.fromGeometry=null,this.toGeometry=null,this.operationType=`base-and-top`,this.linearUnit=`meters`}writeFromGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new u(t({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};e([r({type:a,json:{read:!0}})],d.prototype,`fromGeometry`,void 0),e([l(`fromGeometry`)],d.prototype,`writeFromGeometry`,null),e([r({type:a,json:{read:!0,write:!0}})],d.prototype,`toGeometry`,void 0),e([r({type:c.apiValues,json:{write:c.write}})],d.prototype,`measureOperation`,null),e([r({json:{read:!0}})],d.prototype,`operationType`,void 0),e([r({type:String,json:{read:n.read,write:n.write}})],d.prototype,`linearUnit`,void 0),d=u=e([i(`esri.rest.support.ImageHeightParameters`)],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{property as t,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"./BaseImageMeasureResult.js";import i from"./ImageMeasureResultLengthValue.js";let a=class extends r{constructor(e){super(e),this.height=null}};e([t({type:i,json:{read:!0,write:!0}})],a.prototype,`height`,void 0),a=e([n(`esri.rest.support.ImageHeightResult`)],a);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"./BaseImageMeasureResult.js";import i from"./ImageMeasureResultLengthValue.js";let a=class extends r{constructor(e){super(e),this.height=null}};e([t({type:i,json:{read:!0,write:!0}})],a.prototype,`height`,void 0),a=e([n(`esri.rest.support.ImageHeightResult`)],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{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";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as s}from"../../geometry/support/jsonUtils.js";import{geometryTypes as c}from"../../geometry/support/typeUtils.js";import l from"../../layers/support/MosaicRule.js";import u from"../../layers/support/RasterFunction.js";import d from"../../time/TimeExtent.js";import{writer as f}from"../../core/accessorSupport/decorators/writer.js";var p;let m=p=class extends t{constructor(e){super(e),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]=e.toJSON())}clone(){return new p(n({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};e([r({types:c,json:{read:s}})],m.prototype,`geometry`,void 0),e([f(`geometry`)],m.prototype,`writeGeometry`,null),e([r({type:l,json:{write:!0}})],m.prototype,`mosaicRule`,void 0),e([r({type:u,json:{write:!0,name:`renderingRule`}})],m.prototype,`rasterFunction`,void 0),e([r({type:a,json:{write:!0}})],m.prototype,`pixelSize`,void 0),e([r({json:{write:!0}})],m.prototype,`raster`,void 0),e([r({type:d,json:{read:{source:`time`},write:{target:`time`}}})],m.prototype,`timeExtent`,void 0),m=p=e([i(`esri.rest.support.ImageHistogramParameters`)],m);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";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as s}from"../../geometry/support/jsonUtils.js";import{geometryTypes as c}from"../../geometry/support/typeUtils.js";import l from"../../layers/support/MosaicRule.js";import u from"../../layers/support/RasterFunction.js";import d from"../../time/TimeExtent.js";import{writer as f}from"../../core/accessorSupport/decorators/writer.js";var p;let m=p=class extends t{constructor(e){super(e),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]=e.toJSON())}clone(){return new p(n({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};e([r({types:c,json:{read:s}})],m.prototype,`geometry`,void 0),e([f(`geometry`)],m.prototype,`writeGeometry`,null),e([r({type:l,json:{write:!0}})],m.prototype,`mosaicRule`,void 0),e([r({type:u,json:{write:!0,name:`renderingRule`}})],m.prototype,`rasterFunction`,void 0),e([r({type:a,json:{write:!0}})],m.prototype,`pixelSize`,void 0),e([r({json:{write:!0}})],m.prototype,`raster`,void 0),e([r({type:d,json:{read:{source:`time`},write:{target:`time`}}})],m.prototype,`timeExtent`,void 0),m=p=e([i(`esri.rest.support.ImageHistogramParameters`)],m);const h=m;export{h 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";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import c from"../../layers/support/MosaicRule.js";import l from"../../layers/support/RasterFunction.js";import u from"../../time/TimeExtent.js";import{writer as d}from"../../core/accessorSupport/decorators/writer.js";var f;let p=f=class extends t{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=c.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set(`mosaicRule`,t)}writeMosaicRule(e,t,n){e!=null&&(t[n]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=l.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set(`rasterFunction`,t)}writeRasterFunction(e,t,n){e!=null&&(t[n]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[n]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,n){e!=null&&(t[n]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,n){e!=null&&(t[n]=JSON.stringify(e))}writeTimeExtent(e,t,n){if(e!=null){let r=e.start==null?null:e.start.getTime(),i=e.end==null?null:e.end.getTime();t[n]=r==null?null:i==null?`${r}`:`${r},${i}`}}clone(){return new f(n({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};e([r({types:s,json:{write:!0}})],p.prototype,`geometry`,void 0),e([d(`geometry`)],p.prototype,`writeGeometry`,null),e([r({type:c,json:{write:!0}})],p.prototype,`mosaicRule`,null),e([d(`mosaicRule`)],p.prototype,`writeMosaicRule`,null),e([r({type:l,json:{write:!0,name:`renderingRule`}})],p.prototype,`rasterFunction`,null),e([d(`rasterFunction`)],p.prototype,`writeRasterFunction`,null),e([r({type:[l],json:{write:!0,name:`renderingRules`}})],p.prototype,`rasterFunctions`,void 0),e([d(`rasterFunctions`)],p.prototype,`writeRasterFunctions`,null),e([r({type:a,json:{write:!0}})],p.prototype,`pixelSize`,void 0),e([d(`pixelSize`)],p.prototype,`writePixelSize`,null),e([r({type:Boolean,json:{write:!0}})],p.prototype,`returnGeometry`,void 0),e([r({type:Boolean,json:{write:!0}})],p.prototype,`returnCatalogItems`,void 0),e([r({type:Boolean,json:{write:!0}})],p.prototype,`returnPixelValues`,void 0),e([r({type:Number,json:{write:!0}})],p.prototype,`maxItemCount`,void 0),e([r({type:u,json:{write:{target:`time`}}})],p.prototype,`timeExtent`,void 0),e([d(`timeExtent`)],p.prototype,`writeTimeExtent`,null),e([r({json:{write:!0}})],p.prototype,`raster`,void 0),e([r({json:{write:!0}})],p.prototype,`viewId`,void 0),e([r({type:Boolean,json:{write:!0}})],p.prototype,`processAsMultidimensional`,void 0),p=f=e([i(`esri.rest.support.ImageIdentifyParameters`)],p);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";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import c from"../../layers/support/MosaicRule.js";import l from"../../layers/support/RasterFunction.js";import u from"../../time/TimeExtent.js";import{writer as d}from"../../core/accessorSupport/decorators/writer.js";var f;let p=f=class extends t{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=c.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set(`mosaicRule`,t)}writeMosaicRule(e,t,n){e!=null&&(t[n]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=l.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set(`rasterFunction`,t)}writeRasterFunction(e,t,n){e!=null&&(t[n]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[n]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,n){e!=null&&(t[n]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,n){e!=null&&(t[n]=JSON.stringify(e))}writeTimeExtent(e,t,n){if(e!=null){let r=e.start==null?null:e.start.getTime(),i=e.end==null?null:e.end.getTime();t[n]=r==null?null:i==null?`${r}`:`${r},${i}`}}clone(){return new f(n({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};e([r({types:s,json:{write:!0}})],p.prototype,`geometry`,void 0),e([d(`geometry`)],p.prototype,`writeGeometry`,null),e([r({type:c,json:{write:!0}})],p.prototype,`mosaicRule`,null),e([d(`mosaicRule`)],p.prototype,`writeMosaicRule`,null),e([r({type:l,json:{write:!0,name:`renderingRule`}})],p.prototype,`rasterFunction`,null),e([d(`rasterFunction`)],p.prototype,`writeRasterFunction`,null),e([r({type:[l],json:{write:!0,name:`renderingRules`}})],p.prototype,`rasterFunctions`,void 0),e([d(`rasterFunctions`)],p.prototype,`writeRasterFunctions`,null),e([r({type:a,json:{write:!0}})],p.prototype,`pixelSize`,void 0),e([d(`pixelSize`)],p.prototype,`writePixelSize`,null),e([r({type:Boolean,json:{write:!0}})],p.prototype,`returnGeometry`,void 0),e([r({type:Boolean,json:{write:!0}})],p.prototype,`returnCatalogItems`,void 0),e([r({type:Boolean,json:{write:!0}})],p.prototype,`returnPixelValues`,void 0),e([r({type:Number,json:{write:!0}})],p.prototype,`maxItemCount`,void 0),e([r({type:u,json:{write:{target:`time`}}})],p.prototype,`timeExtent`,void 0),e([d(`timeExtent`)],p.prototype,`writeTimeExtent`,null),e([r({json:{write:!0}})],p.prototype,`raster`,void 0),e([r({json:{write:!0}})],p.prototype,`viewId`,void 0),e([r({type:Boolean,json:{write:!0}})],p.prototype,`processAsMultidimensional`,void 0),p=f=e([i(`esri.rest.support.ImageIdentifyParameters`)],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{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/Point.js";import a from"./FeatureSet.js";let o=class extends t{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};e([n({json:{write:!0}})],o.prototype,`catalogItemVisibilities`,void 0),e([n({type:a,json:{write:!0}})],o.prototype,`catalogItems`,void 0),e([n({type:i,json:{write:!0}})],o.prototype,`location`,void 0),e([n({json:{write:!0}})],o.prototype,`name`,void 0),e([n({json:{write:!0}})],o.prototype,`objectId`,void 0),e([n({json:{write:!0}})],o.prototype,`processedValues`,void 0),e([n({json:{write:!0}})],o.prototype,`properties`,void 0),e([n({json:{write:!0}})],o.prototype,`value`,void 0),o=e([r(`esri.rest.support.ImageIdentifyResult`)],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";import i from"../../geometry/Point.js";import a from"./FeatureSet.js";let o=class extends t{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};e([n({json:{write:!0}})],o.prototype,`catalogItemVisibilities`,void 0),e([n({type:a,json:{write:!0}})],o.prototype,`catalogItems`,void 0),e([n({type:i,json:{write:!0}})],o.prototype,`location`,void 0),e([n({json:{write:!0}})],o.prototype,`name`,void 0),e([n({json:{write:!0}})],o.prototype,`objectId`,void 0),e([n({json:{write:!0}})],o.prototype,`processedValues`,void 0),e([n({json:{write:!0}})],o.prototype,`properties`,void 0),e([n({json:{write:!0}})],o.prototype,`value`,void 0),o=e([r(`esri.rest.support.ImageIdentifyResult`)],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{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{Integer as i}from"../../core/accessorSupport/ensureType.js";import a from"../../geometry/Point.js";import{writer as o}from"../../core/accessorSupport/decorators/writer.js";var s;let c=s=class extends t{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,n){t.geometries={geometryType:`esriGeometryPoint`,geometries:e.map(e=>e.toJSON())}}clone(){return new s({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};e([n({type:[a],json:{write:!0}})],c.prototype,`geometries`,void 0),e([o(`geometries`)],c.prototype,`writeGeometry`,null),e([n({type:i,json:{write:!0}})],c.prototype,`rasterId`,void 0),c=s=e([r(`esri.rest.support.ImagePixelLocationParameters`)],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{Integer as i}from"../../core/accessorSupport/ensureType.js";import a from"../../geometry/Point.js";import{writer as o}from"../../core/accessorSupport/decorators/writer.js";var s;let c=s=class extends t{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,n){t.geometries={geometryType:`esriGeometryPoint`,geometries:e.map(e=>e.toJSON())}}clone(){return new s({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};e([n({type:[a],json:{write:!0}})],c.prototype,`geometries`,void 0),e([o(`geometries`)],c.prototype,`writeGeometry`,null),e([n({type:i,json:{write:!0}})],c.prototype,`rasterId`,void 0),c=s=e([r(`esri.rest.support.ImagePixelLocationParameters`)],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{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";let i=class extends t{constructor(e){super(e),this.geometries=null}};e([n({json:{write:!0}})],i.prototype,`geometries`,void 0),i=e([r(`esri.rest.support.ImagePixelLocationResult`)],i);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";let i=class extends t{constructor(e){super(e),this.geometries=null}};e([n({json:{write:!0}})],i.prototype,`geometries`,void 0),i=e([r(`esri.rest.support.ImagePixelLocationResult`)],i);const a=i;export{a 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{clone as t}from"../../core/lang.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{getJsonType as i}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as a}from"../../geometry/support/jsonUtils.js";import{geometryTypes as o}from"../../geometry/support/typeUtils.js";import s from"./BaseImageMeasureParameters.js";import{measureOperationJSONMap as c}from"./imageMeasureUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";var u;let d=u=class extends s{constructor(e){super(e),this.type=`point`,this.geometry=null,this.is3D=!1}writeGeometry(e,t,n){e!=null&&(t.geometryType=i(e),t[n]=e.toJSON())}get measureOperation(){let{is3D:e,geometry:t}=this;return t.type===`point`?e?`point-3D`:`point`:e?`centroid-3D`:`centroid`}clone(){return new u(t({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};e([n({types:o,json:{name:`fromGeometry`,read:a}})],d.prototype,`geometry`,void 0),e([l(`geometry`)],d.prototype,`writeGeometry`,null),e([n({type:c.apiValues,json:{read:c.read,write:c.write}})],d.prototype,`measureOperation`,null),e([n({json:{read:!0}})],d.prototype,`is3D`,void 0),d=u=e([r(`esri.rest.support.ImagePointParameters`)],d);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{clone as t}from"../../core/lang.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{getJsonType as i}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as a}from"../../geometry/support/jsonUtils.js";import{geometryTypes as o}from"../../geometry/support/typeUtils.js";import s from"./BaseImageMeasureParameters.js";import{measureOperationJSONMap as c}from"./imageMeasureUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";var u;let d=u=class extends s{constructor(e){super(e),this.type=`point`,this.geometry=null,this.is3D=!1}writeGeometry(e,t,n){e!=null&&(t.geometryType=i(e),t[n]=e.toJSON())}get measureOperation(){let{is3D:e,geometry:t}=this;return t.type===`point`?e?`point-3D`:`point`:e?`centroid-3D`:`centroid`}clone(){return new u(t({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};e([n({types:o,json:{name:`fromGeometry`,read:a}})],d.prototype,`geometry`,void 0),e([l(`geometry`)],d.prototype,`writeGeometry`,null),e([n({type:c.apiValues,json:{read:c.read,write:c.write}})],d.prototype,`measureOperation`,null),e([n({json:{read:!0}})],d.prototype,`is3D`,void 0),d=u=e([r(`esri.rest.support.ImagePointParameters`)],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{property as t,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"../../geometry/Point.js";import i from"./BaseImageMeasureResult.js";let a=class extends i{constructor(e){super(e),this.point=null}};e([t({type:r,json:{name:`point.value`,read:!0,write:!0}})],a.prototype,`point`,void 0),a=e([n(`esri.rest.support.ImagePointResult`)],a);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../core/accessorSupport/decorators.js";import r from"../../geometry/Point.js";import i from"./BaseImageMeasureResult.js";let a=class extends i{constructor(e){super(e),this.point=null}};e([t({type:r,json:{name:`point.value`,read:!0,write:!0}})],a.prototype,`point`,void 0),a=e([n(`esri.rest.support.ImagePointResult`)],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{JSONSupport as t}from"../../core/JSONSupport.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.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};e([n({json:{write:!0}})],a.prototype,`attributes`,void 0),e([n({type:i,json:{write:!0}})],a.prototype,`location`,void 0),e([n({json:{write:!0}})],a.prototype,`locationId`,void 0),e([n({json:{write:!0}})],a.prototype,`rasterId`,void 0),e([n({json:{write:!0}})],a.prototype,`resolution`,void 0),e([n({json:{write:!0}})],a.prototype,`pixelValue`,void 0),a=e([r(`esri.rest.support.ImageSample`)],a);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/Point.js";let a=class extends t{constructor(e){super(e),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};e([n({json:{write:!0}})],a.prototype,`attributes`,void 0),e([n({type:i,json:{write:!0}})],a.prototype,`location`,void 0),e([n({json:{write:!0}})],a.prototype,`locationId`,void 0),e([n({json:{write:!0}})],a.prototype,`rasterId`,void 0),e([n({json:{write:!0}})],a.prototype,`resolution`,void 0),e([n({json:{write:!0}})],a.prototype,`pixelValue`,void 0),a=e([r(`esri.rest.support.ImageSample`)],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{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/Multipoint.js";import o from"../../geometry/Point.js";import{getJsonType as s}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as c}from"../../geometry/support/jsonUtils.js";import{geometryTypes as l}from"../../geometry/support/typeUtils.js";import u from"../../layers/support/MosaicRule.js";import{interpolationKebab as d}from"../../layers/support/rasterEnums.js";import f from"../../time/TimeExtent.js";import{writer as p}from"../../core/accessorSupport/decorators/writer.js";var m;let h=m=class extends t{constructor(e){super(e),this.geometry=null,this.interpolation=`nearest`,this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.raster=void 0,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,n){e!=null&&(t.geometryType=s(e),t[n]=e.toJSON())}set locations(e){if(e?.length){let t=new a({spatialReference:e[0].spatialReference,points:e.map(({x:e,y:t})=>[e,t])});this._set(`locations`,e),this.geometry=t}}clone(){return new m(n({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};e([r({types:l,json:{read:c}})],h.prototype,`geometry`,void 0),e([p(`geometry`)],h.prototype,`writeGeometry`,null),e([r({type:[o]})],h.prototype,`locations`,null),e([r({type:String,json:{type:d.jsonValues,read:d.read,write:d.write}})],h.prototype,`interpolation`,void 0),e([r({type:u,json:{write:!0}})],h.prototype,`mosaicRule`,void 0),e([r({type:[String],json:{write:!0}})],h.prototype,`outFields`,void 0),e([r({type:o,json:{write:!0}})],h.prototype,`pixelSize`,void 0),e([r({type:String,json:{write:!0}})],h.prototype,`raster`,void 0),e([r({type:Boolean,json:{write:!0}})],h.prototype,`returnFirstValueOnly`,void 0),e([r({type:Number,json:{write:!0}})],h.prototype,`sampleDistance`,void 0),e([r({type:Number,json:{write:!0}})],h.prototype,`sampleCount`,void 0),e([r({type:Number,json:{write:!0}})],h.prototype,`sliceId`,void 0),e([r({type:f,json:{read:{source:`time`},write:{target:`time`}}})],h.prototype,`timeExtent`,void 0),h=m=e([i(`esri.rest.support.ImageSampleParameters`)],h);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/Multipoint.js";import o from"../../geometry/Point.js";import{getJsonType as s}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as c}from"../../geometry/support/jsonUtils.js";import{geometryTypes as l}from"../../geometry/support/typeUtils.js";import u from"../../layers/support/MosaicRule.js";import{interpolationKebab as d}from"../../layers/support/rasterEnums.js";import f from"../../time/TimeExtent.js";import{writer as p}from"../../core/accessorSupport/decorators/writer.js";var m;let h=m=class extends t{constructor(e){super(e),this.geometry=null,this.interpolation=`nearest`,this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.raster=void 0,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,n){e!=null&&(t.geometryType=s(e),t[n]=e.toJSON())}set locations(e){if(e?.length){let t=new a({spatialReference:e[0].spatialReference,points:e.map(({x:e,y:t})=>[e,t])});this._set(`locations`,e),this.geometry=t}}clone(){return new m(n({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};e([r({types:l,json:{read:c}})],h.prototype,`geometry`,void 0),e([p(`geometry`)],h.prototype,`writeGeometry`,null),e([r({type:[o]})],h.prototype,`locations`,null),e([r({type:String,json:{type:d.jsonValues,read:d.read,write:d.write}})],h.prototype,`interpolation`,void 0),e([r({type:u,json:{write:!0}})],h.prototype,`mosaicRule`,void 0),e([r({type:[String],json:{write:!0}})],h.prototype,`outFields`,void 0),e([r({type:o,json:{write:!0}})],h.prototype,`pixelSize`,void 0),e([r({type:String,json:{write:!0}})],h.prototype,`raster`,void 0),e([r({type:Boolean,json:{write:!0}})],h.prototype,`returnFirstValueOnly`,void 0),e([r({type:Number,json:{write:!0}})],h.prototype,`sampleDistance`,void 0),e([r({type:Number,json:{write:!0}})],h.prototype,`sampleCount`,void 0),e([r({type:Number,json:{write:!0}})],h.prototype,`sliceId`,void 0),e([r({type:f,json:{read:{source:`time`},write:{target:`time`}}})],h.prototype,`timeExtent`,void 0),h=m=e([i(`esri.rest.support.ImageSampleParameters`)],h);const g=h;export{g 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"./ImageSample.js";let a=class extends t{constructor(e){super(e),this.samples=[]}};e([n({type:[i],json:{write:!0}})],a.prototype,`samples`,void 0),a=e([r(`esri.rest.support.ImageSampleResult`)],a);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"./ImageSample.js";let a=class extends t{constructor(e){super(e),this.samples=[]}};e([n({type:[i],json:{write:!0}})],a.prototype,`samples`,void 0),a=e([r(`esri.rest.support.ImageSampleResult`)],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{ClonableMixin as t}from"../../core/Clonable.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"../../geometry/SpatialReference.js";import{getJsonType as s}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as c}from"../../geometry/support/typeUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";let u=class extends t(n){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,n){t.geometries=e?.length?{geometryType:s(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};e([r({types:[c]})],u.prototype,`geometries`,void 0),e([l(`geometries`)],u.prototype,`writeGeometries`,null),e([r({type:[a],json:{write:!0}})],u.prototype,`rasterIds`,void 0),e([r({type:o,json:{name:`outSR`,write:!0}})],u.prototype,`outSpatialReference`,void 0),u=e([i(`esri.rest.support.ImageToMapMultirayParameters`)],u);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.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"../../geometry/SpatialReference.js";import{getJsonType as s}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as c}from"../../geometry/support/typeUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";let u=class extends t(n){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,n){t.geometries=e?.length?{geometryType:s(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};e([r({types:[c]})],u.prototype,`geometries`,void 0),e([l(`geometries`)],u.prototype,`writeGeometries`,null),e([r({type:[a],json:{write:!0}})],u.prototype,`rasterIds`,void 0),e([r({type:o,json:{name:`outSR`,write:!0}})],u.prototype,`outSpatialReference`,void 0),u=e([i(`esri.rest.support.ImageToMapMultirayParameters`)],u);const d=u;export{d 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{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/SpatialReference.js";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as s}from"../../geometry/support/jsonUtils.js";import{geometryTypes as c}from"../../geometry/support/typeUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";let u=class extends t(n){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]={...e.toJSON(),spatialReference:void 0})}};e([r({types:c,json:{read:s,write:!0}})],u.prototype,`geometry`,void 0),e([l(`geometry`)],u.prototype,`writeGeometry`,null),e([r({json:{write:!0}})],u.prototype,`rasterId`,void 0),e([r({type:a,json:{name:`outSR`,write:!0}})],u.prototype,`outSpatialReference`,void 0),e([r({json:{name:`options.DOff`,write:!0}})],u.prototype,`depthOffset`,void 0),e([r({json:{name:`options.Adjust`,write:!0}})],u.prototype,`adjust`,void 0),u=e([i(`esri.rest.support.ImageToMapParameters`)],u);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import a from"../../geometry/SpatialReference.js";import{getJsonType as o}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as s}from"../../geometry/support/jsonUtils.js";import{geometryTypes as c}from"../../geometry/support/typeUtils.js";import{writer as l}from"../../core/accessorSupport/decorators/writer.js";let u=class extends t(n){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,n){e!=null&&(t.geometryType=o(e),t[n]={...e.toJSON(),spatialReference:void 0})}};e([r({types:c,json:{read:s,write:!0}})],u.prototype,`geometry`,void 0),e([l(`geometry`)],u.prototype,`writeGeometry`,null),e([r({json:{write:!0}})],u.prototype,`rasterId`,void 0),e([r({type:a,json:{name:`outSR`,write:!0}})],u.prototype,`outSpatialReference`,void 0),e([r({json:{name:`options.DOff`,write:!0}})],u.prototype,`depthOffset`,void 0),e([r({json:{name:`options.Adjust`,write:!0}})],u.prototype,`adjust`,void 0),u=e([i(`esri.rest.support.ImageToMapParameters`)],u);const d=u;export{d 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{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";let a=class extends t(n){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};e([r({type:String,json:{name:`uri`,write:!0}})],a.prototype,`referenceUri`,void 0),e([r({type:Number,json:{write:!0}})],a.prototype,`rasterId`,void 0),a=e([i(`esri.rest.support.ImageUrlParameters`)],a);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";let a=class extends t(n){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};e([r({type:String,json:{name:`uri`,write:!0}})],a.prototype,`referenceUri`,void 0),e([r({type:Number,json:{write:!0}})],a.prototype,`rasterId`,void 0),a=e([i(`esri.rest.support.ImageUrlParameters`)],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{JSONSupport as t}from"../../core/JSONSupport.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";let i=class extends t{constructor(e){super(e),this.url=null}};e([n({json:{name:`imageURL`,write:!0}})],i.prototype,`url`,void 0),i=e([r(`esri.rest.support.ImageUrlResult`)],i);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";let i=class extends t{constructor(e){super(e),this.url=null}};e([n({json:{name:`imageURL`,write:!0}})],i.prototype,`url`,void 0),i=e([r(`esri.rest.support.ImageUrlResult`)],i);const a=i;export{a 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{ClonableMixin as t}from"../../core/Clonable.js";import{JSONMap as n}from"../../core/jsonMap.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{property as i,subclass as a}from"../../core/accessorSupport/decorators.js";import o from"../../geometry/Point.js";import{getJsonType as s}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as c}from"../../geometry/support/typeUtils.js";import l from"../../layers/support/MosaicRule.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";const d=new n({0:`constant`,1:`plane`,2:`minimum`,3:`maximum`,4:`average`},{useNumericKeys:!0});let f=class extends t(r){constructor(e){super(e),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType=`plane`}writeGeometries(e,t,n){e?.length&&(t.geometryType=s(e[0]),t.geometries=e.map(e=>e.toJSON()))}};e([i({types:[c]})],f.prototype,`geometries`,void 0),e([u(`geometries`)],f.prototype,`writeGeometries`,null),e([i({type:l,json:{write:!0}})],f.prototype,`mosaicRule`,void 0),e([i({type:o,json:{write:!0}})],f.prototype,`pixelSize`,void 0),e([i({json:{write:!0}})],f.prototype,`constantZ`,void 0),e([i({type:d.apiValues,json:{read:d.read,write:d.write}})],f.prototype,`baseType`,void 0),f=e([a(`esri.rest.support.ImageVolumeParameters`)],f);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONMap as n}from"../../core/jsonMap.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{property as i,subclass as a}from"../../core/accessorSupport/decorators.js";import o from"../../geometry/Point.js";import{getJsonType as s}from"../../geometry/support/jsonTypeUtils.js";import{geometryTypes as c}from"../../geometry/support/typeUtils.js";import l from"../../layers/support/MosaicRule.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";const d=new n({0:`constant`,1:`plane`,2:`minimum`,3:`maximum`,4:`average`},{useNumericKeys:!0});let f=class extends t(r){constructor(e){super(e),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType=`plane`}writeGeometries(e,t,n){e?.length&&(t.geometryType=s(e[0]),t.geometries=e.map(e=>e.toJSON()))}};e([i({types:[c]})],f.prototype,`geometries`,void 0),e([u(`geometries`)],f.prototype,`writeGeometries`,null),e([i({type:l,json:{write:!0}})],f.prototype,`mosaicRule`,void 0),e([i({type:o,json:{write:!0}})],f.prototype,`pixelSize`,void 0),e([i({json:{write:!0}})],f.prototype,`constantZ`,void 0),e([i({type:d.apiValues,json:{read:d.read,write:d.write}})],f.prototype,`baseType`,void 0),f=e([a(`esri.rest.support.ImageVolumeParameters`)],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 i from"./ImageVolume.js";let a=class extends t{constructor(e){super(e),this.volumes=[]}};e([n({type:[i],json:{write:!0}})],a.prototype,`volumes`,void 0),a=e([r(`esri.rest.support.ImageVolumeResult`)],a);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"./ImageVolume.js";let a=class extends t{constructor(e){super(e),this.volumes=[]}};e([n({type:[i],json:{write:!0}})],a.prototype,`volumes`,void 0),a=e([r(`esri.rest.support.ImageVolumeResult`)],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{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{getJsonType as a}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as o}from"../../geometry/support/jsonUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import{writer as c}from"../../core/accessorSupport/decorators/writer.js";let l=class extends t(n){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,n){e!=null&&(t.geometryType=a(e),t[n]=JSON.stringify(e))}};e([r({types:s,json:{read:o,write:!0}})],l.prototype,`geometry`,void 0),e([c(`geometry`)],l.prototype,`writeGeometry`,null),e([r({json:{write:!0}})],l.prototype,`rasterId`,void 0),e([r({json:{name:`options.VisibleOnly`,write:!0}})],l.prototype,`visibleOnly`,void 0),l=e([i(`esri.rest.support.MapToImageParameters`)],l);export{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{getJsonType as a}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as o}from"../../geometry/support/jsonUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import{writer as c}from"../../core/accessorSupport/decorators/writer.js";let l=class extends t(n){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,n){e!=null&&(t.geometryType=a(e),t[n]=JSON.stringify(e))}};e([r({types:s,json:{read:o,write:!0}})],l.prototype,`geometry`,void 0),e([c(`geometry`)],l.prototype,`writeGeometry`,null),e([r({json:{write:!0}})],l.prototype,`rasterId`,void 0),e([r({json:{name:`options.VisibleOnly`,write:!0}})],l.prototype,`visibleOnly`,void 0),l=e([i(`esri.rest.support.MapToImageParameters`)],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{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import i from"../../geometry/Point.js";import{fromJSON as a}from"../../geometry/support/jsonUtils.js";import{geometryTypes as o}from"../../geometry/support/typeUtils.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";let c=class extends t{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),i.fromJSON(e)}};e([n({types:o,json:{name:`Shape`,read:a,write:!0}})],c.prototype,`geometry`,void 0),e([n({json:{name:`Length`,write:!0}})],c.prototype,`length`,void 0),e([n({json:{name:`Area`,write:!0}})],c.prototype,`area`,void 0),e([n({type:i,json:{name:`Center`,write:!0}})],c.prototype,`center`,void 0),e([s(`center`)],c.prototype,`readCenter`,null),c=e([r(`esri.rest.support.MeasureAreaFromImageResult`)],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 i from"../../geometry/Point.js";import{fromJSON as a}from"../../geometry/support/jsonUtils.js";import{geometryTypes as o}from"../../geometry/support/typeUtils.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";let c=class extends t{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),i.fromJSON(e)}};e([n({types:o,json:{name:`Shape`,read:a,write:!0}})],c.prototype,`geometry`,void 0),e([n({json:{name:`Length`,write:!0}})],c.prototype,`length`,void 0),e([n({json:{name:`Area`,write:!0}})],c.prototype,`area`,void 0),e([n({type:i,json:{name:`Center`,write:!0}})],c.prototype,`center`,void 0),e([s(`center`)],c.prototype,`readCenter`,null),c=e([r(`esri.rest.support.MeasureAreaFromImageResult`)],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{getJsonType as a}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as o}from"../../geometry/support/jsonUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import{writer as c}from"../../core/accessorSupport/decorators/writer.js";var l;let u=l=class extends t{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,n){e!=null&&(t.geometryType=a(e),t[n]={...e.toJSON(),spatialReference:void 0})}clone(){let e=n({geometry:this.geometry,rasterId:this.rasterId});return new l(e)}};e([r({types:s,json:{name:`fromGeometry`,read:o,write:!0}})],u.prototype,`geometry`,void 0),e([c(`geometry`)],u.prototype,`writeGeometry`,null),e([r({json:{write:!0}})],u.prototype,`rasterId`,void 0),u=l=e([i(`esri.rest.support.MeasureFromImageParameters`)],u);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{getJsonType as a}from"../../geometry/support/jsonTypeUtils.js";import{fromJSON as o}from"../../geometry/support/jsonUtils.js";import{geometryTypes as s}from"../../geometry/support/typeUtils.js";import{writer as c}from"../../core/accessorSupport/decorators/writer.js";var l;let u=l=class extends t{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,n){e!=null&&(t.geometryType=a(e),t[n]={...e.toJSON(),spatialReference:void 0})}clone(){let e=n({geometry:this.geometry,rasterId:this.rasterId});return new l(e)}};e([r({types:s,json:{name:`fromGeometry`,read:o,write:!0}})],u.prototype,`geometry`,void 0),e([c(`geometry`)],u.prototype,`writeGeometry`,null),e([r({json:{write:!0}})],u.prototype,`rasterId`,void 0),u=l=e([i(`esri.rest.support.MeasureFromImageParameters`)],u);const d=u;export{d 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{fromJSON as i}from"../../geometry/support/jsonUtils.js";import{geometryTypes as a}from"../../geometry/support/typeUtils.js";let o=class extends t{constructor(e){super(e),this.geometry=null,this.length=null}};e([n({types:a,json:{name:`Shape`,read:i,write:!0}})],o.prototype,`geometry`,void 0),e([n({json:{name:`Length`,write:!0}})],o.prototype,`length`,void 0),o=e([r(`esri.rest.support.MeasureLengthFromImageResult`)],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";import{fromJSON as i}from"../../geometry/support/jsonUtils.js";import{geometryTypes as a}from"../../geometry/support/typeUtils.js";let o=class extends t{constructor(e){super(e),this.geometry=null,this.length=null}};e([n({types:a,json:{name:`Shape`,read:i,write:!0}})],o.prototype,`geometry`,void 0),e([n({json:{name:`Length`,write:!0}})],o.prototype,`length`,void 0),o=e([r(`esri.rest.support.MeasureLengthFromImageResult`)],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 e from"../../Color.js";import{toCIMSymbolJSON as t,
|
|
2
|
+
import e from"../../Color.js";import{toCIMSymbolJSON as t,isCIMMarker as n,isCIMStroke as r,isCIMFill as i,isPrivateGeometricEffect as a,isCIMMarkerStrokePlacement as o,normalizeAlpha as s}from"../cim/utils.js";function c(e){let a=t(e);if(a?.type===`CIMTextSymbol`)return a.height??0;let o=0;if(a?.symbolLayers)for(let e of a.symbolLayers)n(e)&&e.size!=null&&e.size>o?o=e.size:r(e)&&e.width!=null&&e.width>o?o=e.width:i(e);return o}function l(e,n,r){if(!e)return;let i=t(e),a=c(e);a===0?u(i,n):d(i,n/a,!1,r)}function u(e,t){if(e){if(e.type===`CIMTextSymbol`)e.height=t;else if(e.symbolLayers)for(let n of e.symbolLayers)switch(n.type){case`CIMPictureMarker`:case`CIMVectorMarker`:n.size=t;break;case`CIMPictureStroke`:case`CIMSolidStroke`:case`CIMGradientStroke`:n.width=t}}}function d(e,t,n,r){if(e){if(e.type===`CIMTextSymbol`)e.height!=null&&(e.height*=t);else{if(n&&e.effects)for(let n of e.effects)m(n,t);if(e.symbolLayers)for(let n of e.symbolLayers){switch(n.type){case`CIMPictureMarker`:case`CIMVectorMarker`:f(n,t,r);break;case`CIMPictureStroke`:case`CIMSolidStroke`:case`CIMGradientStroke`:!r?.preserveOutlineWidth&&n.width&&(n.width*=t);break;case`CIMPictureFill`:n.height&&(n.height*=t),n.offsetX&&(n.offsetX*=t),n.offsetY&&(n.offsetY*=t);break;case`CIMHatchFill`:d(n.lineSymbol,t,!0,{...r,preserveOutlineWidth:!1}),n.offsetX&&(n.offsetX*=t),n.offsetY&&(n.offsetY*=t),n.separation&&(n.separation*=t)}if(n.effects)for(let e of n.effects)m(e,t)}}}}function f(e,t,n){if(e&&(e.markerPlacement&&p(e.markerPlacement,t),e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.anchorPoint&&e.anchorPointUnits===`Absolute`&&(e.anchorPoint={x:e.anchorPoint.x*t,y:e.anchorPoint.y*t}),e.size=e.size==null?0:e.size*t,e.type===`CIMVectorMarker`&&e.markerGraphics))for(let r of e.markerGraphics)e.scaleSymbolsProportionally||d(r.symbol,t,!0,n)}function p(e,t){switch(o(e)&&e.offset&&(e.offset*=t),e.type){case`CIMMarkerPlacementAlongLineRandomSize`:case`CIMMarkerPlacementAlongLineSameSize`:e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case`CIMMarkerPlacementAlongLineVariableSize`:e.maxRandomOffset&&(e.maxRandomOffset*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case`CIMMarkerPlacementOnLine`:e.startPointOffset&&(e.startPointOffset*=t);break;case`CIMMarkerPlacementAtExtremities`:e.offsetAlongLine&&(e.offsetAlongLine*=t);break;case`CIMMarkerPlacementAtMeasuredUnits`:break;case`CIMMarkerPlacementOnVertices`:break;case`CIMMarkerPlacementAtRatioPositions`:e.beginPosition&&(e.beginPosition*=t),e.endPosition&&(e.endPosition*=t);break;case`CIMMarkerPlacementPolygonCenter`:e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case`CIMMarkerPlacementInsidePolygon`:e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.stepX&&(e.stepX*=t),e.stepY&&(e.stepY*=t)}}function m(e,t){if(!a(e))switch(e.type){case`CIMGeometricEffectArrow`:case`CIMGeometricEffectDonut`:e.width&&(e.width*=t);break;case`CIMGeometricEffectBuffer`:e.size&&(e.size*=t);break;case`CIMGeometricEffectCut`:e.beginCut&&(e.beginCut*=t),e.endCut&&(e.endCut*=t),e.middleCut&&(e.middleCut*=t);break;case`CIMGeometricEffectDashes`:e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.dashTemplate&&e.dashTemplate.length&&(e.dashTemplate=e.dashTemplate.map(e=>e*t));break;case`CIMGeometricEffectExtension`:case`CIMGeometricEffectJog`:case`CIMGeometricEffectRadial`:e.length&&(e.length*=t);break;case`CIMGeometricEffectMove`:e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case`CIMGeometricEffectOffset`:case`CIMGeometricEffectOffsetTangent`:e.offset&&(e.offset*=t);break;case`CIMGeometricEffectRegularPolygon`:e.radius&&(e.radius*=t);break;case`CIMGeometricEffectTaperedPolygon`:e.fromWidth&&(e.fromWidth*=t),e.length&&(e.length*=t),e.toWidth&&(e.toWidth*=t);break;case`CIMGeometricEffectWave`:e.amplitude&&(e.amplitude*=t),e.period&&(e.period*=t)}}function h(n){let r=t(n),i=[];return g(r,i),i.length?new e(s(i[0])):null}function g(e,t){if(!e)return;let i;i=e.type===`CIMTextSymbol`?e.symbol:e;let a=e.type===`CIMPolygonSymbol`;if(i?.symbolLayers){for(let e of i.symbolLayers)if(!e.colorLocked&&!(a&&(r(e)||n(e)&&e.markerPlacement&&o(e.markerPlacement))))switch(e.type){case`CIMPictureMarker`:case`CIMPictureStroke`:case`CIMPictureFill`:e.tintColor&&_(t,e.tintColor);break;case`CIMVectorMarker`:e.markerGraphics?.forEach(e=>{g(e.symbol,t)});break;case`CIMSolidStroke`:case`CIMSolidFill`:_(t,e.color);break;case`CIMGradientFill`:v(t,e);break;case`CIMHatchFill`:g(e.lineSymbol,t)}}}function _(e,t){for(let n of e)if(n.join(`.`)===t.join(`.`))return;e.push(t)}function v(e,t){switch(t.colorRamp?.type){case`CIMMultipartColorRamp`:t.colorRamp.colorRamps?.forEach(t=>{t.type===`CIMLinearContinuousColorRamp`&&y(e,t)});break;case`CIMLinearContinuousColorRamp`:case`CIMPolarContinuousColorRamp`:y(e,t.colorRamp)}}function y(e,t){t&&(t.fromColor&&_(e,t.fromColor),t.toColor&&_(e,t.toColor))}function b(n,r,i){r instanceof e||(r=new e(r));let a=t(n);a&&x(a,r,i)}function x(e,t,a){if(!e)return;let s;s=e.type===`CIMTextSymbol`?e.symbol:e;let c=s?.type===`CIMPolygonSymbol`;if(s?.symbolLayers)for(let e of s.symbolLayers){if(e.colorLocked)continue;if(c){if(a){let{layersToColor:t}=a;if((r(e)||n(e)&&e.markerPlacement&&o(e.markerPlacement))&&t===`fill`||i(e)&&t===`outline`)continue}else if(r(e)||n(e)&&e.markerPlacement&&o(e.markerPlacement))continue}let s=t.toArray();switch(e.type){case`CIMPictureMarker`:case`CIMPictureStroke`:case`CIMPictureFill`:e.tintColor=s;break;case`CIMVectorMarker`:e.markerGraphics?.forEach(e=>{x(e.symbol,t,a)});break;case`CIMSolidStroke`:case`CIMSolidFill`:e.color=s;break;case`CIMGradientFill`:S(e,t);break;case`CIMHatchFill`:x(e.lineSymbol,t,a)}}}function S(e,t){switch(e.colorRamp?.type){case`CIMMultipartColorRamp`:e.colorRamp.colorRamps?.forEach(e=>{e.type===`CIMLinearContinuousColorRamp`&&C(e,t)});break;case`CIMLinearContinuousColorRamp`:case`CIMPolarContinuousColorRamp`:C(e.colorRamp,t)}}function C(e,t){if(e&&(e.fromColor&&=t.toArray(),e.toColor)){let n=t.clone();n.a=0,e.toColor=n.toArray()}}function w(e,n=!1){let r=t(e);if(r?.type===`CIMTextSymbol`||r?.type===`CIMPointSymbol`){let e=r.angle;return e!=null&&n?360-e:e??0}return 0}function T(e,r,i=!1){let a=t(e);if(i&&(r=360-r),a?.type===`CIMTextSymbol`)a.angle=r;else if(a?.type===`CIMPointSymbol`&&a.symbolLayers){let e=a.angle||0,t=r-e;for(let e of a.symbolLayers)if(n(e)){let n=e.rotation||0;e.rotateClockwise?n-=t:n+=t,e.rotation=n}a.angle=r}}function E(e){let n=t(e);if(!n)return null;switch(n.type){case`CIMPointSymbol`:return`CIMPointSymbol`;case`CIMLineSymbol`:return`CIMLineSymbol`;case`CIMPolygonSymbol`:return`CIMPolygonSymbol`;case`CIMTextSymbol`:return`CIMTextSymbol`;case`CIMMeshSymbol`:return`CIMMeshSymbol`;default:return null}}export{b as applyCIMSymbolColor,T as applyCIMSymbolRotation,h as getCIMSymbolColor,w as getCIMSymbolRotation,c as getCIMSymbolSize,E as getCIMSymbolType,f as scaleCIMMarker,d as scaleCIMSymbol,l as scaleCIMSymbolTo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{id as e}from"../../kernel.js";import t from"../../request.js";import{toHSV as n,toRGB as r,getColorWithEmissiveStrength as i}from"../../core/colorUtils.js";import a from"../../core/Error.js";import has from"../../core/has.js";import
|
|
2
|
+
import{id as e}from"../../kernel.js";import t from"../../request.js";import{toHSV as n,toRGB as r,getColorWithEmissiveStrength as i}from"../../core/colorUtils.js";import a from"../../core/Error.js";import has from"../../core/has.js";import{renderingSanitizerOptions as o}from"../../core/sanitizerUtils.js";import{renderSVG as s}from"./svgUtils.js";import{c}from"../../chunks/projector.js";const l=c(o);function u(e,t){l.append(e,t),l.detach(t)}function d(e,t,n){let r=Math.ceil(t[0]),i=Math.ceil(t[1]);if(!e.some(e=>!!e.length))return null;let a=n?.node||document.createElement(`div`);return n.opacity!=null&&(a.style.opacity=n.opacity.toString()),n.cssEffectFilter!=null&&(a.style.filter=n.cssEffectFilter),u(a,()=>s(e,r,i,n)),a}function f(e,t){e=Math.ceil(e),t=Math.ceil(t);let n=document.createElement(`canvas`);n.width=e,n.height=t,n.style.width=e+`px`,n.style.height=t+`px`;let r=n.getContext(`2d`);return r.clearRect(0,0,e,t),r}function p(e,n,r){return e?t(e,{responseType:`image`}).then(e=>{let t=e.data,i=t.width,a=t.height,o=i/a,s=n;return r&&(s=Math.min(s,Math.max(i,a))),{image:t,width:o<=1?Math.ceil(s*o):s,height:o<=1?s:Math.ceil(s/o)}}):Promise.reject(new a(`renderUtils: imageDataSize`,`href not provided.`))}function m(e,t){return!(!e||t===`ignore`||t===`multiply`&&e.r===255&&e.g===255&&e.b===255&&e.a===1)}function h(e,t,a,o,s,c){switch(s){case`multiply`:{let n={r:e[t]*a[0],g:e[t+1]*a[1],b:e[t+2]*a[2]},r=i(n,c);e[t]=r.r,e[t+1]=r.g,e[t+2]=r.b,e[t+3]*=a[3]*r.a;break}default:{let a=n({r:e[t],g:e[t+1],b:e[t+2]});a.h=o.h,a.s=o.s,a.v=a.v/100*o.v;let s=r(a),l=i(s,c);e[t]=l.r,e[t+1]=l.g,e[t+2]=l.b,e[t+3]*=l.a;break}}}function g(t,r,i,a,o,s){return p(t,r,o).then(o=>{let c=o.width??r,l=o.height??r;if(o.image&&m(i,a)){let e=o.image.width,r=o.image.height;has(`edge`)&&/\.svg$/i.test(t)&&(--e,--r);let u=f(c,l);u.drawImage(o.image,0,0,e,r,0,0,c,l);let d=u.getImageData(0,0,c,l),p=[i.r/255,i.g/255,i.b/255,i.a],m=n(i);for(let e=0;e<d.data.length;e+=4)h(d.data,e,p,m,a,s);u.putImageData(d,0,0),t=u.canvas.toDataURL(`image/png`)}else{let n=e?.findCredential(t);if(n?.token){let e=t.includes(`?`)?`&`:`?`;t=`${t}${e}token=${n.token}`}}return{url:t,width:c,height:l}}).catch(()=>({url:t,width:r,height:r}))}export{u as renderOnce,d as renderSymbol,g as tintImageWithColor};
|
package/views/2d/ViewState.d.ts
CHANGED
|
@@ -31,21 +31,21 @@ export default class ViewState extends JSONSupport {
|
|
|
31
31
|
* @default 0
|
|
32
32
|
* @since 4.9
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
get resolution(): number;
|
|
35
35
|
/**
|
|
36
36
|
* The clockwise rotation of due north in relation to the top of the view in degrees.
|
|
37
37
|
*
|
|
38
38
|
* @default 0
|
|
39
39
|
* @see [MapView.rotation](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#rotation)
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
get rotation(): number;
|
|
42
42
|
/**
|
|
43
43
|
* Represents the map scale at the center of the view.
|
|
44
44
|
*
|
|
45
45
|
* @default 0
|
|
46
46
|
* @see [MapView.scale](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#scale)
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
get scale(): number;
|
|
49
49
|
/**
|
|
50
50
|
* Represents the width and height of the view in pixels, e.g. `[width, height]`.
|
|
51
51
|
*
|
package/views/2d/ViewState.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../Viewpoint.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{toRadian as a}from"../../core/libs/gl-matrix-2/math/common.js";import{set as o,invert as s}from"../../core/libs/gl-matrix-2/math/mat2d.js";import{create as c}from"../../core/libs/gl-matrix-2/factories/mat2df32.js";import{create as l}from"../../core/libs/gl-matrix-2/factories/mat2df64.js";import{set as u,identity as d,translate as f,rotate as p,multiply as m}from"../../core/libs/gl-matrix-2/math/mat3.js";import{create as h}from"../../core/libs/gl-matrix-2/factories/mat3f32.js";import{copy as g,transformMat2d as _}from"../../core/libs/gl-matrix-2/math/vec2.js";import{fromValues as v}from"../../core/libs/gl-matrix-2/factories/vec2f32.js";import{create as y}from"../../core/libs/gl-matrix-2/factories/vec2f64.js";import{isVec2 as b}from"../../core/libs/gl-matrix-2/types/vec2.js";import x from"../../geometry/Extent.js";import S from"../../geometry/Point.js";import{getClosestDenormalizedXToReference as C}from"../../geometry/support/normalizeUtils.js";import{copy as w,getWorldWidth as T,getMatrix as E,getResolution as D,getExtent as O,getTransform as k,getTransformNoRotation as A,getWorldScreenWidth as j}from"./viewpointUtils.js";var M;const N=[0,0];let P=M=class extends n{constructor(e){super(e),this._viewpoint2D={center:y(),rotation:0,scale:0,spatialReference:void 0},this.center=[0,0],this.extent=new x,this.id=0,this.inverseTransform=l(),this.resolution=0,this.rotation=0,this.scale=0,this.transform=l(),this.transformNoRotation=l(),this.displayMat3=h(),this.displayViewMat3=h(),this.viewMat3=h(),this.viewMat2d=c(),this.worldScreenWidth=0,this.size=[0,0]}set pixelRatio(e){this._set(`pixelRatio`,e),this._update()}set size(e){this._set(`size`,e),this._update()}set viewpoint(e){if(e){let t=this._viewpoint2D,n=e.targetGeometry;t.center[0]=n.x,t.center[1]=n.y,t.rotation=e.rotation,t.scale=e.scale,t.spatialReference=n.spatialReference}this._update()}get visibleArea(){let[e,t]=this.size;return[this.toMap([0,0],0,0),this.toMap([0,0],0,t),this.toMap([0,0],e,t),this.toMap([0,0],e,0)]}copy(e){let t=this.size,n=this.viewpoint;return!n||!t?(this.viewpoint=e.viewpoint.clone(),this._set(`size`,[e.size[0],e.size[1]])):(this.viewpoint=w(n,e.viewpoint),this._set(`size`,g(t,e.size))),this._set(`pixelRatio`,e.pixelRatio),this}clone(){return new M({size:this.size,viewpoint:this.viewpoint.clone(),pixelRatio:this.pixelRatio})}toMap(e,t,n){return b(t)?_(e,t,this.inverseTransform):(N[0]=t,N[1]=n,_(e,N,this.inverseTransform))}toScreen(e,t,n){return b(t)?_(e,t,this.transform):(N[0]=t,N[1]=n,_(e,N,this.transform))}toScreenNoRotation(e,t,n){return b(t)?_(e,t,this.transformNoRotation):(N[0]=t,N[1]=n,_(e,N,this.transformNoRotation))}wrapMapCoordinate(e,t){g(e,t);let[n]=t,[r]=this.center,{extent:i,spatialReference:a}=this,{xmin:o,xmax:s}=i;if(a.isWrappable){let e=T(a)/2;o=Math.max(o,r-e),s=Math.min(s,r+e)}return(n<o||n>s)&&(e[0]=C(n,r,a)),e}getScreenTransform(e,t){let{center:n}=this._viewpoint2D,r=this._get(`pixelRatio`)||1,i=this._get(`size`);return E(e,n,i,t,0,r),e}_update(){let{center:e,spatialReference:n,scale:r,rotation:i}=this._viewpoint2D,c=this._get(`pixelRatio`)||1,l=this._get(`size`),h=new t({targetGeometry:new S(e[0],e[1],n),scale:r,rotation:i});if(this._set(`viewpoint`,h),!l||!n||!r)return;
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../Viewpoint.js";import{JSONSupport as n}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{toRadian as a}from"../../core/libs/gl-matrix-2/math/common.js";import{set as o,invert as s}from"../../core/libs/gl-matrix-2/math/mat2d.js";import{create as c}from"../../core/libs/gl-matrix-2/factories/mat2df32.js";import{create as l}from"../../core/libs/gl-matrix-2/factories/mat2df64.js";import{set as u,identity as d,translate as f,rotate as p,multiply as m}from"../../core/libs/gl-matrix-2/math/mat3.js";import{create as h}from"../../core/libs/gl-matrix-2/factories/mat3f32.js";import{copy as g,transformMat2d as _}from"../../core/libs/gl-matrix-2/math/vec2.js";import{fromValues as v}from"../../core/libs/gl-matrix-2/factories/vec2f32.js";import{create as y}from"../../core/libs/gl-matrix-2/factories/vec2f64.js";import{isVec2 as b}from"../../core/libs/gl-matrix-2/types/vec2.js";import x from"../../geometry/Extent.js";import S from"../../geometry/Point.js";import{getClosestDenormalizedXToReference as C}from"../../geometry/support/normalizeUtils.js";import{copy as w,getWorldWidth as T,getMatrix as E,getResolution as D,getExtent as O,getTransform as k,getTransformNoRotation as A,getWorldScreenWidth as j}from"./viewpointUtils.js";var M;const N=[0,0];let P=M=class extends n{constructor(e){super(e),this._viewpoint2D={center:y(),rotation:0,scale:0,spatialReference:void 0},this.center=[0,0],this.extent=new x,this.id=0,this.inverseTransform=l(),this.resolution=0,this.rotation=0,this.scale=0,this.transform=l(),this.transformNoRotation=l(),this.displayMat3=h(),this.displayViewMat3=h(),this.viewMat3=h(),this.viewMat2d=c(),this.worldScreenWidth=0,this.size=[0,0]}set pixelRatio(e){this._set(`pixelRatio`,e),this._update()}set size(e){this._set(`size`,e),this._update()}set viewpoint(e){if(e){let t=this._viewpoint2D,n=e.targetGeometry;t.center[0]=n.x,t.center[1]=n.y,t.rotation=e.rotation,t.scale=e.scale,t.spatialReference=n.spatialReference}this._update()}get visibleArea(){let[e,t]=this.size;return[this.toMap([0,0],0,0),this.toMap([0,0],0,t),this.toMap([0,0],e,t),this.toMap([0,0],e,0)]}copy(e){let t=this.size,n=this.viewpoint;return!n||!t?(this.viewpoint=e.viewpoint.clone(),this._set(`size`,[e.size[0],e.size[1]])):(this.viewpoint=w(n,e.viewpoint),this._set(`size`,g(t,e.size))),this._set(`pixelRatio`,e.pixelRatio),this}clone(){return new M({size:this.size,viewpoint:this.viewpoint.clone(),pixelRatio:this.pixelRatio})}toMap(e,t,n){return b(t)?_(e,t,this.inverseTransform):(N[0]=t,N[1]=n,_(e,N,this.inverseTransform))}toScreen(e,t,n){return b(t)?_(e,t,this.transform):(N[0]=t,N[1]=n,_(e,N,this.transform))}toScreenNoRotation(e,t,n){return b(t)?_(e,t,this.transformNoRotation):(N[0]=t,N[1]=n,_(e,N,this.transformNoRotation))}wrapMapCoordinate(e,t){g(e,t);let[n]=t,[r]=this.center,{extent:i,spatialReference:a}=this,{xmin:o,xmax:s}=i;if(a.isWrappable){let e=T(a)/2;o=Math.max(o,r-e),s=Math.min(s,r+e)}return(n<o||n>s)&&(e[0]=C(n,r,a)),e}getScreenTransform(e,t){let{center:n}=this._viewpoint2D,r=this._get(`pixelRatio`)||1,i=this._get(`size`);return E(e,n,i,t,0,r),e}_update(){let{center:e,spatialReference:n,scale:r,rotation:i}=this._viewpoint2D,c=this._get(`pixelRatio`)||1,l=this._get(`size`),h=new t({targetGeometry:new S(e[0],e[1],n),scale:r,rotation:i});if(this._set(`viewpoint`,h),!l||!n||!r)return;let _=D(h);this.spatialReference=n,g(this.center,e);let y=l[0]===0?0:2/l[0],b=l[1]===0?0:-2/l[1];u(this.displayMat3,y,0,0,0,b,0,-1,1,1);let x=d(this.viewMat3),C=v(l[0]/2,l[1]/2),w=v(-l[0]/2,-l[1]/2),T=a(i);return f(x,x,C),p(x,x,T),f(x,x,w),m(this.displayViewMat3,this.displayMat3,x),o(this.viewMat2d,x[0],x[1],x[3],x[4],x[6],x[7]),O(this.extent,h,l),k(this.transform,h,l,c),s(this.inverseTransform,this.transform),A(this.transformNoRotation,h,l,c),this.worldScreenWidth=j(n,_),this.resolution=_,this.rotation=i,this.scale=r,this._set(`id`,this.id+1),this.notifyChange(`visibleArea`),this}};e([r({readOnly:!0})],P.prototype,`id`,void 0),e([r({value:1,json:{write:!0}})],P.prototype,`pixelRatio`,null),e([r()],P.prototype,`resolution`,void 0),e([r()],P.prototype,`rotation`,void 0),e([r()],P.prototype,`scale`,void 0),e([r({json:{write:!0}})],P.prototype,`size`,null),e([r()],P.prototype,`spatialReference`,void 0),e([r({type:t,json:{write:!0}})],P.prototype,`viewpoint`,null),e([r({readOnly:!0})],P.prototype,`visibleArea`,null),P=M=e([i(`esri.views.2d.ViewState`)],P);const F=P;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 t from"../../Viewpoint.js";import n from"../../core/Accessor.js";import r from"../../core/Error.js";import has from"../../core/has.js";import i from"../../core/Logger.js";import{watch as a,sync as o}from"../../core/reactiveUtils.js";import{createScreenPoint as s}from"../../core/screenUtils.js";import c from"../../core/Warning.js";import{property as l,subclass as u}from"../../core/accessorSupport/decorators.js";import d from"../../geometry/Extent.js";import{i as f}from"../../chunks/pe.js";import p from"../../geometry/Point.js";import{project as m}from"../../geometry/projectionUtils.js";import{equals as h}from"../../geometry/support/spatialReferenceUtils.js";import g from"./PaddedViewState.js";import{centerAt as _,setExtent as v,rotateTo as y,scaleTo as b,copy as x,extentToScale as S,angleBetween as C,resize as w}from"./viewpointUtils.js";let T=class extends n{constructor(e){super(e),this.constraints=null,this.ready=!1,this.resizeAlign=`center`,this.addHandles([a(()=>this.constraints?.version,e=>{this.constraints&&e&&this.ready&&(this.state.viewpoint=this.constraints.fit(this.state.paddedViewState.viewpoint))},o)])}get center(){if(!this.ready)return this._get(`center`);let{center:e,spatialReference:t}=this.state.paddedViewState;return this.state.commitProperty(`id`),new p({x:e[0],y:e[1],spatialReference:t})}set center(e){if(e==null)return;if(!this.ready){this._set(`center`,e);return}let t;try{t=this._project(e,this.state.spatialReference)}catch(t){i.getLogger(this).error(new r(`mapview:invalid-center`,`could not project the value in the view's spatial reference`,{input:e,error:t}));return}let n=this.viewpoint;_(n,n,t),this.viewpoint=n}get extent(){return this.ready?(this.state.commitProperty(`id`),this.state.paddedViewState.extent.clone()):this._get(`extent`)}set extent(e){if(e==null)return;let t=e;if(!t.width||!t.height){i.getLogger(this).error(new r(`mapview:invalid-extent`,`invalid extent size`));return}if(!this.ready){this._set(`extent`,t),this._set(`center`,void 0),this._set(`viewpoint`,void 0),this._set(`scale`,void 0),this._set(`zoom`,void 0);return}try{t=this._project(t,this.state.spatialReference)}catch(e){i.getLogger(this).error(new r(`mapview:invalid-extent`,`could not project the value in the view's spatial reference`,{error:e}));return}let n=this.viewpoint;v(n,n,t,this.state.size,{constraints:this.constraints}),this.viewpoint=n}get padding(){return this.ready?this.state.padding:this._get(`padding`)}set padding(e){this.ready?(this.state.padding=e,this._set(`padding`,this.state.padding)):this._set(`padding`,e)}get resolution(){return this.ready?
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../Viewpoint.js";import n from"../../core/Accessor.js";import r from"../../core/Error.js";import has from"../../core/has.js";import i from"../../core/Logger.js";import{watch as a,sync as o}from"../../core/reactiveUtils.js";import{createScreenPoint as s}from"../../core/screenUtils.js";import c from"../../core/Warning.js";import{property as l,subclass as u}from"../../core/accessorSupport/decorators.js";import d from"../../geometry/Extent.js";import{i as f}from"../../chunks/pe.js";import p from"../../geometry/Point.js";import{project as m}from"../../geometry/projectionUtils.js";import{equals as h}from"../../geometry/support/spatialReferenceUtils.js";import g from"./PaddedViewState.js";import{centerAt as _,setExtent as v,rotateTo as y,scaleTo as b,copy as x,extentToScale as S,angleBetween as C,resize as w}from"./viewpointUtils.js";let T=class extends n{constructor(e){super(e),this.constraints=null,this.ready=!1,this.resizeAlign=`center`,this.addHandles([a(()=>this.constraints?.version,e=>{this.constraints&&e&&this.ready&&(this.state.viewpoint=this.constraints.fit(this.state.paddedViewState.viewpoint))},o)])}get center(){if(!this.ready)return this._get(`center`);let{center:e,spatialReference:t}=this.state.paddedViewState;return this.state.commitProperty(`id`),new p({x:e[0],y:e[1],spatialReference:t})}set center(e){if(e==null)return;if(!this.ready){this._set(`center`,e);return}let t;try{t=this._project(e,this.state.spatialReference)}catch(t){i.getLogger(this).error(new r(`mapview:invalid-center`,`could not project the value in the view's spatial reference`,{input:e,error:t}));return}let n=this.viewpoint;_(n,n,t),this.viewpoint=n}get extent(){return this.ready?(this.state.commitProperty(`id`),this.state.paddedViewState.extent.clone()):this._get(`extent`)}set extent(e){if(e==null)return;let t=e;if(!t.width||!t.height){i.getLogger(this).error(new r(`mapview:invalid-extent`,`invalid extent size`));return}if(!this.ready){this._set(`extent`,t),this._set(`center`,void 0),this._set(`viewpoint`,void 0),this._set(`scale`,void 0),this._set(`zoom`,void 0);return}try{t=this._project(t,this.state.spatialReference)}catch(e){i.getLogger(this).error(new r(`mapview:invalid-extent`,`could not project the value in the view's spatial reference`,{error:e}));return}let n=this.viewpoint;v(n,n,t,this.state.size,{constraints:this.constraints}),this.viewpoint=n}get padding(){return this.ready?this.state.padding:this._get(`padding`)}set padding(e){this.ready?(this.state.padding=e,this._set(`padding`,this.state.padding)):this._set(`padding`,e)}get resolution(){return this.ready?this.state.resolution:0}get rotation(){return this.ready?this.state.rotation:this._get(`rotation`)}set rotation(e){if(isNaN(e))return;if(!this.ready){this._set(`rotation`,e);return}let t=this.viewpoint;y(t,t,e),this.viewpoint=t}get scale(){return this.ready?this.state.scale:this._get(`scale`)}set scale(e){if(!e||isNaN(e))return;if(!this.ready){this._set(`scale`,e),this._set(`zoom`,void 0);let t=this._get(`extent`);t&&(this._set(`extent`,void 0),this._set(`center`,t.center));return}let t=this.viewpoint;b(t,t,e),this.viewpoint=t}get viewpoint(){return this.ready?this.state.paddedViewState.viewpoint.clone():this._get(`viewpoint`)}set viewpoint(e){if(e==null)return;if(!this.ready){this._set(`viewpoint`,e),this._set(`extent`,void 0),this._set(`center`,void 0),this._set(`zoom`,void 0),this._set(`scale`,void 0);return}let n,a;try{n=this._project(e,this.state.spatialReference),!e.scale||isNaN(e.scale)?a=new r(`mapview:invalid-viewpoint`,`invalid scale value of ${e.scale}`):e.targetGeometry??(a=new r(`mapview:invalid-viewpoint`,`geometry not defined`))}catch(e){a=new r(`mapview:invalid-viewpoint`,`could not project the value in the view's spatial reference`,{error:e})}if(a){i.getLogger(this).error(a);return}this._scaleBeforeChangingSpatialReference=null;let o=new t({targetGeometry:new p,scale:0,rotation:0});x(o,n),this.constraints?.constrain(o,this.state.paddedViewState.viewpoint),this.state.viewpoint=o,this._set(`viewpoint`,o)}get visibleArea(){return this.ready?this.state.visibleArea:null}get zoom(){return this.ready?this.constraints?.scaleToZoom(this.scale)??-1:this._get(`zoom`)}set zoom(e){if(!(e>=0))return;if(!this.ready){this._set(`zoom`,e),this._set(`scale`,void 0);let t=this._get(`extent`);t&&(this._set(`extent`,void 0),this._set(`center`,t.center));return}let t=this.constraints?.zoomToScale(e)??0;if(!t){this._set(`zoom`,-1);return}let n=this.viewpoint;b(n,n,t),this.viewpoint=n,this._set(`zoom`,this.constraints?.scaleToZoom(this.scale)??-1)}getUserStartupOptions(e){if(!e[0]&&!e[1])return{center:void 0,rotation:void 0,scale:void 0};let{padding:t,constraints:n}=this,r=this._get(`center`),i=this._get(`extent`),a=this._get(`scale`),o=this._get(`rotation`),s=this._get(`viewpoint`),c=this._get(`zoom`),l=c!=null&&n!=null&&n.zoomToScale(c)||void 0,u,d,f,p=s?.rotation,m=s?.targetGeometry;m?.type===`extent`?u=m:m?.type===`point`&&(d=m,f=s?.scale);let h=i??u;return{center:r??d??h?.center,rotation:o??p,scale:(a??l??f??(h&&S(h,[e[0]-t.left-t.right,e[1]-t.top-t.bottom])))||void 0}}startup(e,t,n,r){let a=e.targetGeometry;try{this._project(e,n)}catch(t){i.getLogger(this).warn(new c(`mapview:startup-projection-error`,`projection of initial viewpoint to the view's spatial reference, defaulting to the initial viewpoint.`,{center:a.toJSON(),spatialReference:n,error:t})),e.targetGeometry=r||new p({x:0,y:0,spatialReference:n})}this.constraints?.fit(e),this._set(`state`,new g({padding:this.padding,size:t,viewpoint:e})),this._set(`ready`,!0)}teardown(){this._set(`ready`,!1);let{center:[e,t],spatialReference:n,rotation:r,scale:i}=this.state.paddedViewState,a=new p({x:e,y:t,spatialReference:n});this._set(`viewpoint`,null),this._set(`extent`,null),this._set(`center`,a),this._set(`zoom`,-1),this._set(`rotation`,r),this._set(`scale`,i),this._set(`state`,null)}changeSpatialReference(e){let n=this.state.paddedViewState.clone();if(this._scaleBeforeChangingSpatialReference==null)this._scaleBeforeChangingSpatialReference=n.scale;else{let e=n.viewpoint.clone();e.scale=this._scaleBeforeChangingSpatialReference,n.viewpoint=e}let r=n.clone(),[a,o]=n.center,s=null;try{s=this._project(new p({x:a,y:o,spatialReference:n.spatialReference}),e)}catch(t){f()||i.getLogger(this).warn(new c(`mapview:spatial-reference-change`,`could not project the view's center to the new spatial reference`,{center:s?.toJSON(),spatialReference:e,error:t}))}s||=new p({x:0,y:0,spatialReference:e});let l=_(new t({targetGeometry:new p,scale:0,rotation:0}),n.viewpoint,s);r.viewpoint=l;try{let t=[n.size[0]/2,n.size[1]/2],i=[t[0]+20,t[1]],a=n.toMap([0,0],i),{x:o,y:s}=this._project(new p({x:a[0],y:a[1],spatialReference:n.spatialReference}),e);a[0]=o,a[1]=s,r.toScreen(a,a);let c=C(t,a,i),u=Math.hypot(a[0]-t[0],a[1]-t[1])/20;!Number.isFinite(u)||Math.abs(u)>4?(l.rotation=0,l.targetGeometry=new p({x:0,y:0,spatialReference:e})):(l.scale*=u,l.scale>has(`mapview-srswitch-adjust-rotation-scale-threshold`)?l.rotation=0:l.rotation+=Number.isFinite(c)?c:0)}catch{}this._get(`constraints`)?.constrain(l,void 0),this._get(`state`).viewpoint=l}resize(e,t){if(!this.ready)return;let n=this.state,r=this.state.paddedViewState.viewpoint,i=this.state.paddedViewState.size.slice();n.size=[e,t],w(r,r,i,this.state.paddedViewState.size,this.resizeAlign),r=this.constraints?.constrain(r,void 0)??r,this.state.viewpoint=r}toMap(e){if(!this.ready)return null;let[t,n]=this.state.toMap([0,0],[e.x,e.y]),r=this.state.spatialReference;return new p({x:t,y:n,spatialReference:r})}toScreen(e,t){if(!this.ready)return null;let n=this._project(e,this.state.spatialReference),r=[n.x,n.y];return t?.pickClosestTarget===!1||this.state.paddedViewState.wrapMapCoordinate(r,r),this.state.toScreen(r,r),s(r[0],r[1])}_project(e,t){let n=e?.targetGeometry||e;if(!t)return e;if(!n)return null;if(t.imageCoordinateSystem||n.spatialReference?.imageCoordinateSystem||h(t,n.spatialReference))return e;let i=m(n,t);if(!i)throw new r(`mapview:projection-not-possible`,`projecting input geometry to target spatial reference returned a null value`,{geometry:n,spatialReference:t});return E(e)?(e.targetGeometry=i,e):i}};e([l({type:p})],T.prototype,`center`,null),e([l()],T.prototype,`constraints`,void 0),e([l({type:d})],T.prototype,`extent`,null),e([l({value:{top:0,right:0,bottom:0,left:0},cast:e=>({top:0,right:0,bottom:0,left:0,...e})})],T.prototype,`padding`,null),e([l()],T.prototype,`ready`,void 0),e([l()],T.prototype,`resizeAlign`,void 0),e([l({readOnly:!0})],T.prototype,`resolution`,null),e([l({type:Number})],T.prototype,`rotation`,null),e([l({type:Number})],T.prototype,`scale`,null),e([l({readOnly:!0})],T.prototype,`state`,void 0),e([l({type:t})],T.prototype,`viewpoint`,null),e([l({readOnly:!0})],T.prototype,`visibleArea`,null),e([l()],T.prototype,`zoom`,null),T=e([u(`esri.views.2d.ViewStateManager`)],T);function E(e){return e?.declaredClass===`esri.Viewpoint`}export{T as ViewStateManager};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{clone as e}from"../../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{collisionGridCellSize as t}from"./config.js";import{GridIndex as n}from"./util.js";class r{constructor(r,i,a,o,s,c,l){this._symbols=r,this._styleRepository=o,this._zoom=s,this._scale=c,this._currentLayerCursor=0,this._currentSymbolCursor=0,this._styleProps=new Map,this._allNeededMatrices=new Map,this._gridIndex=new n(i,a,t),this._si=Math.sin(Math.PI*l/180),this._co=Math.cos(Math.PI*l/180),o.cachedStyles&&(this._styleProps=o.cachedStyles);for(let t of r)for(let n of t.symbols)this._allNeededMatrices.has(n.tile)||this._allNeededMatrices.set(n.tile,e(n.tile.transforms.tileUnitsToPixels))}work(e){let t=performance.now();for(;this._currentLayerCursor<this._symbols.length;this._currentLayerCursor++,this._currentSymbolCursor=0){let n=this._symbols[this._currentLayerCursor],r=this._getProperties(n.styleLayerUID),i=this._styleRepository.layerContexts?.get(n.styleLayerUID);for(;this._currentSymbolCursor<n.symbols.length;this._currentSymbolCursor++){if(this._currentSymbolCursor%100==99&&performance.now()-t>e)return!1;let a=n.symbols[this._currentSymbolCursor];if(!
|
|
2
|
+
import{clone as e}from"../../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{collisionGridCellSize as t}from"./config.js";import{GridIndex as n}from"./util.js";class r{constructor(r,i,a,o,s,c,l){this._symbols=r,this._styleRepository=o,this._zoom=s,this._scale=c,this._currentLayerCursor=0,this._currentSymbolCursor=0,this._styleProps=new Map,this._allNeededMatrices=new Map,this._gridIndex=new n(i,a,t),this._si=Math.sin(Math.PI*l/180),this._co=Math.cos(Math.PI*l/180),o.cachedStyles&&(this._styleProps=o.cachedStyles);for(let t of r)for(let n of t.symbols)this._allNeededMatrices.has(n.tile)||this._allNeededMatrices.set(n.tile,e(n.tile.transforms.tileUnitsToPixels))}work(e){let t=performance.now();for(;this._currentLayerCursor<this._symbols.length;this._currentLayerCursor++,this._currentSymbolCursor=0){let n=this._symbols[this._currentLayerCursor],r=this._getProperties(n.styleLayerUID),i=this._styleRepository.layerContexts?.get(n.styleLayerUID);for(;this._currentSymbolCursor<n.symbols.length;this._currentSymbolCursor++){if(this._currentSymbolCursor%100==99&&performance.now()-t>e)return!1;let a=n.symbols[this._currentSymbolCursor];this._collideSymbol(a,r,i)}}return!0}_collideSymbol(e,t,n){if(!e.uniqueSymbol?.show)return;e.setAlternate?.(-1);let r=this._computeCoordinates(e,t,n),i=e.uniqueSymbol;if(i.show){if(this._collideColliders(i,r,t))i.show=!1;else{let a=e.labelStoreId;a&&n?.labelStore.writeAnchor(a,e.xTile,e.yTile),this._insertColliders(i.parts,r,t)}}}_collideColliders(e,t,n){let{iconAllowOverlap:r,textAllowOverlap:i}=n,a=!1;for(let n of t){if(!n.enabled)continue;let t=e.parts[n.partIndex];t.show&&!(n.partIndex?i:r)&&this._doesCollide(n)&&(n.hard?a=!0:t.show=!1)}return a}_insertColliders(e,t,n){let{iconIgnorePlacement:r,textIgnorePlacement:i}=n;for(let n of t){if(!n.enabled||(n.partIndex?i:r)||!e[n.partIndex].show)continue;let t=n.xScreen+n.dxScreen,a=n.yScreen+n.dyScreen,o=t+n.width,s=a+n.height,[c,l,u,d]=this._gridIndex.getCellSpan(t,a,o,s);for(let e=l;e<=d;e++)for(let t=c;t<=u;t++)this._gridIndex.cells[e][t].push(n)}}_setScreenCoords(e,t,n){let{iconRotationAlignment:r,textRotationAlignment:i,iconTranslate:a,iconTranslateAnchor:o,textTranslate:s,textTranslateAnchor:c}=n,l=this._si,u=this._co,d=this._zoom,[f,p]=e.partIndex===0?a:s,m=e.partIndex===0?o:c,h=e.minLod<=d&&d<=e.maxLod;return e.enabled=h,e.xScreen=e.xTile*t[0]+e.yTile*t[3]+t[6],e.yScreen=e.xTile*t[1]+e.yTile*t[4]+t[7],m===0?(e.xScreen+=u*f-l*p,e.yScreen+=l*f+u*p):(e.xScreen+=f,e.yScreen+=p),(e.partIndex===0?r:i)===1?(e.dxScreen=e.dxPixels,e.dyScreen=e.dyPixels):(e.dxScreen=u*(e.dxPixels+e.width/2)-l*(e.dyPixels+e.height/2)-e.width/2,e.dyScreen=l*(e.dxPixels+e.width/2)+u*(e.dyPixels+e.height/2)-e.height/2),h}_computeCoordinates(e,t,n){let r=this._allNeededMatrices.get(e.tile),i=e.uniqueSymbol,a=e.colliders(n,this._scale),o=0;for(let e of a)this._setScreenCoords(e,r,t)||o++;return a.length>0&&o===a.length&&i&&(i.show=!1),a}_getProperties(e){let t=this._styleProps.get(e);if(t)return t;let n=this._styleRepository.getLayerStyleProperties?.(e,this._zoom);return this._styleProps.set(e,n),n}_doesCollide(e){let t=e.xScreen+e.dxScreen,n=e.yScreen+e.dyScreen,r=t+e.width,i=n+e.height,[a,o,s,c]=this._gridIndex.getCellSpan(t,n,r,i);for(let l=o;l<=c;l++)for(let o=a;o<=s;o++){let a=this._gridIndex.cells[l][o];for(let o of a){if(o.labelId!=null&&e.labelId!=null&&o.labelId===e.labelId)continue;let a=o.xScreen+o.dxScreen,s=o.yScreen+o.dyScreen,c=a+o.width,l=s+o.height;if(!(r<a||t>c||i<s||n>l))return!0}}return!1}}export{r as CollisionJob};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{getScaleForResolution as e}from"../../../../../geometry/support/scaleUtils.js";import{
|
|
2
|
+
import{getScaleForResolution as e}from"../../../../../geometry/support/scaleUtils.js";import{equals as t,getInfo as n}from"../../../../../geometry/support/spatialReferenceUtils.js";import{project as r}from"../../../../../geometry/support/webMercatorUtils.js";import i from"../../../../../layers/support/TileInfo.js";import a from"../../../tiling/TileInfoViewPOT.js";function o(t,r=22){let a=n(t),o=t.isWGS84?360/512:78271.51696400007,s=t.isWGS84?e(o,t):295828763.7957775;return i.fromJSON({rows:512,cols:512,dpi:96,format:`pbf`,origin:{x:a.origin[0],y:a.origin[1]},spatialReference:t.toJSON(),lods:Array.from({length:r+1},(e,t)=>({level:t,resolution:o/2**t,scale:s/2**t}))})}function s(e,n){return t(e.tileInfo?.spatialReference,n)||l(e)&&(n.isWGS84||n.isWebMercator)}function c(e,n){let i=l(e)&&s(e,n)?o(n,e.tileInfo.lods.length-1):e.tileInfo,c=t(e.spatialReference,i.spatialReference)?e.fullExtent:r(e.fullExtent,i.spatialReference);return c&&i.spatialReference.isWebMercator&&e.spatialReference.isWGS84&&(c.ymin=Math.max(c.ymin,-i.origin.y),c.ymax=Math.min(c.ymax,i.origin.y)),new a(i,c)}function l(e){let t=Object.values(e.sourceNameToSource);return t.length>0&&t.every(e=>e.type===`geojson`)}export{o as createTileInfo,c as createTileInfoView,s as supportsSpatialReference};
|