@arcgis/core 5.0.0-next.87 → 5.0.0-next.88

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.
Files changed (238) hide show
  1. package/Map.d.ts +4 -0
  2. package/WebLinkChart.d.ts +6 -3
  3. package/analysis/ShadowCastAnalysis.d.ts +1 -0
  4. package/assets/esri/core/t9n/Units_ar.json +1 -1
  5. package/assets/esri/core/t9n/Units_bg.json +1 -1
  6. package/assets/esri/core/t9n/Units_bs.json +1 -1
  7. package/assets/esri/core/t9n/Units_ca.json +1 -1
  8. package/assets/esri/core/t9n/Units_cs.json +1 -1
  9. package/assets/esri/core/t9n/Units_da.json +1 -1
  10. package/assets/esri/core/t9n/Units_de.json +1 -1
  11. package/assets/esri/core/t9n/Units_el.json +1 -1
  12. package/assets/esri/core/t9n/Units_en.json +1 -1
  13. package/assets/esri/core/t9n/Units_es.json +1 -1
  14. package/assets/esri/core/t9n/Units_et.json +1 -1
  15. package/assets/esri/core/t9n/Units_fi.json +1 -1
  16. package/assets/esri/core/t9n/Units_fr.json +1 -1
  17. package/assets/esri/core/t9n/Units_he.json +1 -1
  18. package/assets/esri/core/t9n/Units_hr.json +1 -1
  19. package/assets/esri/core/t9n/Units_hu.json +1 -1
  20. package/assets/esri/core/t9n/Units_id.json +1 -1
  21. package/assets/esri/core/t9n/Units_it.json +1 -1
  22. package/assets/esri/core/t9n/Units_ja.json +1 -1
  23. package/assets/esri/core/t9n/Units_ko.json +1 -1
  24. package/assets/esri/core/t9n/Units_lt.json +1 -1
  25. package/assets/esri/core/t9n/Units_lv.json +1 -1
  26. package/assets/esri/core/t9n/Units_nl.json +1 -1
  27. package/assets/esri/core/t9n/Units_no.json +1 -1
  28. package/assets/esri/core/t9n/Units_pl.json +1 -1
  29. package/assets/esri/core/t9n/Units_pt-BR.json +1 -1
  30. package/assets/esri/core/t9n/Units_pt-PT.json +1 -1
  31. package/assets/esri/core/t9n/Units_ro.json +1 -1
  32. package/assets/esri/core/t9n/Units_ru.json +1 -1
  33. package/assets/esri/core/t9n/Units_sk.json +1 -1
  34. package/assets/esri/core/t9n/Units_sl.json +1 -1
  35. package/assets/esri/core/t9n/Units_sr.json +1 -1
  36. package/assets/esri/core/t9n/Units_sv.json +1 -1
  37. package/assets/esri/core/t9n/Units_th.json +1 -1
  38. package/assets/esri/core/t9n/Units_tr.json +1 -1
  39. package/assets/esri/core/t9n/Units_uk.json +1 -1
  40. package/assets/esri/core/t9n/Units_vi.json +1 -1
  41. package/assets/esri/core/t9n/Units_zh-CN.json +1 -1
  42. package/assets/esri/core/t9n/Units_zh-HK.json +1 -1
  43. package/assets/esri/core/t9n/Units_zh-TW.json +1 -1
  44. package/assets/esri/core/workers/RemoteClient.js +1 -1
  45. package/assets/esri/core/workers/chunks/{1facc1b45345a095b9a7.js → 149c4181eaea32e9ac15.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{5734aefbce8b6425630c.js → 63b46983155b1672e07a.js} +1 -1
  47. package/assets/esri/core/workers/chunks/731cab5887c05f221279.js +1 -0
  48. package/assets/esri/core/workers/chunks/779fe8ccc4041f0b65a0.js +1 -0
  49. package/assets/esri/core/workers/chunks/{746190bb70aa78ba0bfc.js → 8936f9398414be26b83f.js} +4 -4
  50. package/assets/esri/core/workers/chunks/{8cb13b3776f07536c79f.js → a0d459bdb91ee892d4b6.js} +1 -1
  51. package/assets/esri/core/workers/chunks/c267e57eb7f779115aba.js +1 -0
  52. package/assets/esri/core/workers/chunks/cb6083f7294c8de297e1.js +1 -0
  53. package/assets/esri/core/workers/chunks/{f9bc4edfdb1590be2d92.js → cb6c9469d7c16727cd12.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{3b5f24bb824c95996308.js → feba6c9ae162a0a8ea3a.js} +1 -1
  55. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  56. package/chunks/{TextureOnly.glsl.js → Texture.glsl.js} +2 -2
  57. package/chunks/{WaterSurface.glsl.js → Water.glsl.js} +6 -6
  58. package/config.js +1 -1
  59. package/core/arrayUtils.js +1 -1
  60. package/effects/FocusAreas.d.ts +1 -0
  61. package/form/FormTemplate.js +1 -1
  62. package/geometry/operators/geodesicBufferOperator.d.ts +1 -0
  63. package/geometry/operators/geodesicProximityOperator.d.ts +1 -0
  64. package/geometry/operators/geodeticAreaOperator.d.ts +1 -0
  65. package/geometry/operators/geodeticDensifyOperator.d.ts +1 -0
  66. package/geometry/operators/geodeticDistanceOperator.d.ts +1 -0
  67. package/geometry/operators/geodeticLengthOperator.d.ts +1 -0
  68. package/geometry/operators/geodeticUtilsOperator.d.ts +1 -0
  69. package/geometry/operators/shapePreservingProjectOperator.d.ts +1 -0
  70. package/geometry/operators/support/geographicTransformationUtils.d.ts +1 -0
  71. package/interfaces.d.ts +2 -2
  72. package/kernel.js +1 -1
  73. package/layers/CatalogLayer.d.ts +1 -0
  74. package/layers/FeatureLayer.d.ts +6 -0
  75. package/layers/GeoJSONLayer.d.ts +1 -0
  76. package/layers/Layer.d.ts +1 -0
  77. package/layers/LinkChartLayer.d.ts +2 -2
  78. package/layers/MediaLayer.d.ts +1 -0
  79. package/layers/OGCFeatureLayer.d.ts +1 -0
  80. package/layers/ParquetLayer.d.ts +6 -0
  81. package/layers/SubtypeGroupLayer.d.ts +1 -0
  82. package/layers/WFSLayer.d.ts +1 -0
  83. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -0
  84. package/layers/mixins/BlendLayer.d.ts +1 -0
  85. package/layers/mixins/FeatureEffectLayer.d.ts +2 -0
  86. package/layers/mixins/ScaleRangeLayer.d.ts +0 -42
  87. package/layers/raster/datasets/RawBlockCache.js +1 -1
  88. package/layers/raster/functions/SpectralConversionFunction.js +1 -1
  89. package/layers/support/FeatureFilter.d.ts +4 -0
  90. package/layers/support/parquetUtils.d.ts +44 -1
  91. package/layers/support/vectorTileLayerLoader.js +1 -1
  92. package/layers/support/wmsUtils.js +1 -1
  93. package/networks/CircuitManager.d.ts +6 -5
  94. package/networks/CircuitManager.js +1 -1
  95. package/networks/Network.d.ts +1 -0
  96. package/networks/UtilityNetwork.js +1 -1
  97. package/networks/support/Circuit.d.ts +2 -4
  98. package/networks/support/CircuitLocation.d.ts +1 -7
  99. package/networks/support/CircuitLocation.js +1 -1
  100. package/networks/support/CircuitPathConnectivityElement.js +1 -1
  101. package/networks/support/CircuitSection.d.ts +2 -4
  102. package/networks/support/Subcircuit.d.ts +2 -2
  103. package/package.json +4 -4
  104. package/renderers/FlowRenderer.d.ts +1 -0
  105. package/renderers/support/colorRampUtils.js +1 -1
  106. package/rest/featureService/types.d.ts +2 -2
  107. package/rest/knowledgeGraph/GraphSearch.d.ts +0 -1
  108. package/rest/knowledgeGraph/GraphSearchStreaming.d.ts +0 -1
  109. package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
  110. package/rest/networks/circuits/support/VerifyCircuitsParameters.d.ts +30 -0
  111. package/rest/networks/circuits/support/VerifyCircuitsParameters.js +1 -1
  112. package/rest/networks/circuits/verifyCircuits.js +1 -1
  113. package/rest/networks/support/Association.js +1 -1
  114. package/rest/networks/support/NetworkElement.d.ts +2 -1
  115. package/rest/networks/support/TelecomNetworkElement.js +1 -1
  116. package/rest/networks/support/TraceLocation.d.ts +1 -1
  117. package/rest/query.d.ts +4 -0
  118. package/rest/support/BinParametersBase.d.ts +9 -28
  119. package/rest/support/DateBinParameters.d.ts +0 -17
  120. package/rest/support/TopFeaturesQuery.d.ts +1 -0
  121. package/support/revision.js +1 -1
  122. package/symbols/CIMSymbol.d.ts +1 -0
  123. package/symbols/LineSymbolMarker.d.ts +2 -2
  124. package/symbols/SimpleFillSymbol.d.ts +2 -1
  125. package/symbols/SimpleLineSymbol.d.ts +4 -4
  126. package/symbols/support/cimSymbolUtils.d.ts +2 -0
  127. package/symbols/types.d.ts +140 -28
  128. package/views/2d/constraints/ZoomConstraint.js +1 -1
  129. package/views/2d/engine/imagery/RasterBitmap.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterProcessorTechnique.js +1 -1
  131. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/FocalStatisticsTechnique.js +1 -1
  132. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SpectralConversionTechnique.js +5 -0
  133. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/StretchTechnique.js +1 -1
  134. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/SpectralConversionShader.js +5 -0
  135. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  136. package/views/2d/types.d.ts +6 -1
  137. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  138. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  139. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  140. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  141. package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
  142. package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
  143. package/views/3d/layers/SceneLayerWorker.js +1 -1
  144. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  145. package/views/3d/state/ViewState.js +1 -1
  146. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  147. package/views/3d/terrain/BlendLayers.glsl.js +5 -0
  148. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  149. package/views/3d/terrain/OverlayRenderer.js +1 -1
  150. package/views/3d/terrain/RasterColorizer.glsl.js +5 -0
  151. package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
  152. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +3 -3
  153. package/views/3d/webgl-engine/core/shaderLibrary/shading/{Water.glsl.js → WaterColor.glsl.js} +2 -2
  154. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  155. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  156. package/views/3d/webgl-engine/effects/highlight/HighlightApply.glsl.js +5 -0
  157. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  158. package/views/3d/webgl-engine/effects/highlight/HighlightBlur.glsl.js +5 -0
  159. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  160. package/views/3d/webgl-engine/effects/highlight/HighlightDownsample.glsl.js +5 -0
  161. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  162. package/views/3d/webgl-engine/effects/highlight/HighlightToSingle.glsl.js +5 -0
  163. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  164. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.glsl.js +5 -0
  165. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  166. package/views/3d/webgl-engine/effects/laserlines/Laserline.glsl.js +5 -0
  167. package/views/3d/webgl-engine/effects/laserlines/LaserlinePath.glsl.js +5 -0
  168. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  169. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechnique.js +1 -1
  170. package/views/3d/webgl-engine/effects/magnifier/Magnifier.glsl.js +5 -0
  171. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  172. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  173. package/views/3d/webgl-engine/effects/smaa/BlendWeights.glsl.js +5 -0
  174. package/views/3d/webgl-engine/effects/smaa/Blur.glsl.js +5 -0
  175. package/views/3d/webgl-engine/effects/smaa/EdgeDetect.glsl.js +5 -0
  176. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  177. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  178. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  179. package/views/3d/webgl-engine/effects/ssao/SSAO.glsl.js +5 -0
  180. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  181. package/views/3d/webgl-engine/effects/ssao/SSAOBlur.glsl.js +5 -0
  182. package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
  183. package/views/3d/webgl-engine/effects/ssao/SSAOTechnique.js +1 -1
  184. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  185. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  186. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  187. package/views/3d/webgl-engine/lib/Texture.glsl.js +5 -0
  188. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  189. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +5 -0
  190. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  191. package/views/3d/webgl-engine/{shaders → materials}/Path.glsl.js +1 -1
  192. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  193. package/views/3d/webgl-engine/{shaders/WaterSurface.glsl.js → materials/Water.glsl.js} +1 -1
  194. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  195. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  196. package/views/3d/webgl.js +1 -1
  197. package/views/VideoView.d.ts +1 -0
  198. package/views/interactive/snapping/FeatureSnappingLayerSource.d.ts +1 -0
  199. package/views/layers/FeatureLayerViewMixin.d.ts +1 -0
  200. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  201. package/views/webgl/ShaderBuilder.js +1 -1
  202. package/widgets/Attachments.d.ts +1 -0
  203. package/widgets/BuildingExplorer.d.ts +1 -1
  204. package/widgets/Editor/AddAssociationWorkflow.js +1 -1
  205. package/widgets/ScaleRangeSlider/ScaleRanges.d.ts +43 -1
  206. package/widgets/Slider/SliderViewModel.js +1 -1
  207. package/widgets/Swipe.d.ts +1 -1
  208. package/widgets/TableList.d.ts +1 -0
  209. package/widgets/UtilityNetworkAssociations.d.ts +1 -0
  210. package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
  211. package/widgets/UtilityNetworkTrace.d.ts +1 -0
  212. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -0
  213. package/widgets/support/SnappingControls.d.ts +1 -0
  214. package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
  215. package/widgets/support/UtilityNetworkAssociations/utils/createAssociation.js +1 -1
  216. package/assets/esri/core/workers/chunks/165cf8031af160c99d70.js +0 -1
  217. package/assets/esri/core/workers/chunks/4f4bdf9f5323fa702e6c.js +0 -1
  218. package/assets/esri/core/workers/chunks/641450da2680ae09b8e7.js +0 -1
  219. package/assets/esri/core/workers/chunks/cb66a74448a6c0c20d5d.js +0 -1
  220. package/layers/graphics/sources/ParquetSource.d.ts +0 -45
  221. package/views/3d/webgl-engine/core/shaderLibrary/raster/RasterColorizer.glsl.js +0 -5
  222. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +0 -5
  223. package/views/3d/webgl-engine/core/shaderLibrary/util/TextureOnly.glsl.js +0 -5
  224. package/views/3d/webgl-engine/shaders/BlendWeights.glsl.js +0 -5
  225. package/views/3d/webgl-engine/shaders/Blur.glsl.js +0 -5
  226. package/views/3d/webgl-engine/shaders/EdgeDetect.glsl.js +0 -5
  227. package/views/3d/webgl-engine/shaders/HighlightApply.glsl.js +0 -5
  228. package/views/3d/webgl-engine/shaders/HighlightBlur.glsl.js +0 -5
  229. package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +0 -5
  230. package/views/3d/webgl-engine/shaders/HighlightToSingle.glsl.js +0 -5
  231. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +0 -5
  232. package/views/3d/webgl-engine/shaders/Laserlines.glsl.js +0 -5
  233. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +0 -5
  234. package/views/3d/webgl-engine/shaders/SSAO.glsl.js +0 -5
  235. package/views/3d/webgl-engine/shaders/SSAOBlur.glsl.js +0 -5
  236. package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +0 -5
  237. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShader.glsl.js +0 -5
  238. /package/chunks/{Laserlines.glsl.js → Laserline.glsl.js} +0 -0
@@ -9,7 +9,6 @@ export interface GraphSearchStreamingProperties extends GraphSearchProperties, P
9
9
  * This operation allows you to search the properties of both [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) and
10
10
  * [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) in the graph.
11
11
  * Any field with the `text` data type or the [Globally Unique Identifier (GUID)](https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/arcgis-field-data-types.htm#GUID-97064FAE-B42E-4DC3-A5C9-9A6F12D053A8) data type with the
12
- * Any field defined by [GraphProperty](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html) with the `searchable` property set to `true` is included in the search.
13
12
  * A search index is built and maintained automatically on the values for all searchable fields.
14
13
  *
15
14
  * Streaming search returns the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreamingResult.html) faster than search and in small chunks that can be rendered immediately.
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{JSONSupport as o}from"../../../../core/JSONSupport.js";import{property as r,subclass as e}from"../../../../core/accessorSupport/decorators.js";import{ensureClass as i}from"../../../../core/accessorSupport/ensureType.js";import s from"../../../../networks/support/CircuitLocation.js";import{writer as n}from"../../../../core/accessorSupport/decorators/writer.js";var p;let l=p=class extends o{static from(t){return i(p,t)}constructor(t){super(t),this.gdbVersion=null,this.sessionId=null,this.moment=null,this.domainNetworkName=null,this.circuits=null,this.location=null,this.locationType=null,this.returnConsumerCircuits=!1,this.resultTypes=null}writeLocation(t,o){null!=t&&(o.sourceId=t.sourceId,o.globalId=t.globalId,o.terminalId=t.terminalId,o.firstUnit=t.firstUnit,o.lastUnit=t.lastUnit)}};t([r({type:String,json:{write:!0}})],l.prototype,"gdbVersion",void 0),t([r({type:String,json:{write:!0}})],l.prototype,"sessionId",void 0),t([r({type:Date,json:{type:Number,write:{writer:(t,o)=>{o.moment=t?t.getTime():null}}}})],l.prototype,"moment",void 0),t([r({type:String,json:{write:!0}})],l.prototype,"domainNetworkName",void 0),t([r({type:[String],json:{write:!0}})],l.prototype,"circuits",void 0),t([r({type:s,json:{write:!0}})],l.prototype,"location",void 0),t([n("location")],l.prototype,"writeLocation",null),t([r({type:String,json:{write:!0}})],l.prototype,"locationType",void 0),t([r({type:Boolean,json:{write:!0}})],l.prototype,"returnConsumerCircuits",void 0),t([r({type:[String],json:{write:!0}})],l.prototype,"resultTypes",void 0),l=p=t([e("esri.rest.networks.circuits.support.QueryCircuitsParameters")],l);const u=l;export{u as default};
5
+ import{__decorate as t}from"tslib";import{JSONSupport as o}from"../../../../core/JSONSupport.js";import{property as r,subclass as e}from"../../../../core/accessorSupport/decorators.js";import{ensureClass as i}from"../../../../core/accessorSupport/ensureType.js";import s from"../../../../networks/support/CircuitLocation.js";import{writer as n}from"../../../../core/accessorSupport/decorators/writer.js";var p;let l=p=class extends o{static from(t){return i(p,t)}constructor(t){super(t),this.gdbVersion=null,this.sessionId=null,this.moment=null,this.domainNetworkName=null,this.circuits=null,this.location=null,this.locationType=null,this.returnConsumerCircuits=!1,this.resultTypes=null}writeLocation(t,o){null!=t&&(o.sourceId=t.sourceId,o.globalId=t.globalId,o.firstUnit=t.firstUnit,o.lastUnit=t.lastUnit)}};t([r({type:String,json:{write:!0}})],l.prototype,"gdbVersion",void 0),t([r({type:String,json:{write:!0}})],l.prototype,"sessionId",void 0),t([r({type:Date,json:{type:Number,write:{writer:(t,o)=>{o.moment=t?t.getTime():null}}}})],l.prototype,"moment",void 0),t([r({type:String,json:{write:!0}})],l.prototype,"domainNetworkName",void 0),t([r({type:[String],json:{write:!0}})],l.prototype,"circuits",void 0),t([r({type:s,json:{write:!0}})],l.prototype,"location",void 0),t([n("location")],l.prototype,"writeLocation",null),t([r({type:String,json:{write:!0}})],l.prototype,"locationType",void 0),t([r({type:Boolean,json:{write:!0}})],l.prototype,"returnConsumerCircuits",void 0),t([r({type:[String],json:{write:!0}})],l.prototype,"resultTypes",void 0),l=p=t([e("esri.rest.networks.circuits.support.QueryCircuitsParameters")],l);const u=l;export{u as default};
@@ -0,0 +1,30 @@
1
+ import type { JSONSupport } from "../../../../core/JSONSupport.js";
2
+
3
+ /** @since 5.0 */
4
+ export interface VerifyCircuitsParametersProperties extends Partial<Pick<VerifyCircuitsParameters, "allCircuits" | "circuitNames" | "continueOnFailure" | "forceVerify" | "synthesizeGeometries">> {}
5
+
6
+ /** @since 5.0 */
7
+ export default abstract class VerifyCircuitsParameters extends JSONSupport {
8
+ /**
9
+ * @default false
10
+ * @since 5.0
11
+ */
12
+ accessor allCircuits: boolean;
13
+ /** @since 5.0 */
14
+ accessor circuitNames: string[];
15
+ /**
16
+ * @default false
17
+ * @since 5.0
18
+ */
19
+ accessor continueOnFailure: boolean;
20
+ /**
21
+ * @default false
22
+ * @since 5.0
23
+ */
24
+ accessor forceVerify: boolean;
25
+ /**
26
+ * @default false
27
+ * @since 5.0
28
+ */
29
+ accessor synthesizeGeometries: boolean;
30
+ }
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{JSONSupport as r}from"../../../../core/JSONSupport.js";import{property as o,subclass as e}from"../../../../core/accessorSupport/decorators.js";import{ensureClass as s}from"../../../../core/accessorSupport/ensureType.js";var i;let p=i=class extends r{static from(t){return s(i,t)}constructor(t){super(t),this.circuits=null,this.domainNetworkName=null,this.gdbVersion=null,this.sessionId=null,this.synthesizeGeometries=null}};t([o({json:{type:[String],write:!0}})],p.prototype,"circuits",void 0),t([o({type:String,json:{write:!0}})],p.prototype,"domainNetworkName",void 0),t([o({type:String,json:{write:!0}})],p.prototype,"gdbVersion",void 0),t([o({type:String,json:{write:!0}})],p.prototype,"sessionId",void 0),t([o({type:Boolean,json:{write:!0}})],p.prototype,"synthesizeGeometries",void 0),p=i=t([e("esri.rest.networks.circuits.support.VerifyCircuitsParameters")],p);const n=p;export{n as default};
5
+ import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../../../core/JSONSupport.js";import{property as o,subclass as r}from"../../../../core/accessorSupport/decorators.js";import{ensureClass as i}from"../../../../core/accessorSupport/ensureType.js";var s;let n=s=class extends e{static from(t){return i(s,t)}constructor(t){super(t),this.allCircuits=!1,this.circuitNames=null,this.continueOnFailure=!1,this.domainNetworkName=null,this.forceVerify=!1,this.gdbVersion=null,this.sessionId=null,this.synthesizeGeometries=!1}};t([o({json:{type:Boolean,write:!0}})],n.prototype,"allCircuits",void 0),t([o({json:{type:[String],write:{writer:(t,e)=>e.circuits=JSON.stringify(t??[])},read:{source:"circuits"}}})],n.prototype,"circuitNames",void 0),t([o({json:{type:Boolean,write:!0}})],n.prototype,"continueOnFailure",void 0),t([o({type:String,json:{write:!0}})],n.prototype,"domainNetworkName",void 0),t([o({json:{type:Boolean,write:!0}})],n.prototype,"forceVerify",void 0),t([o({type:String,json:{write:!0}})],n.prototype,"gdbVersion",void 0),t([o({type:String,json:{write:!0}})],n.prototype,"sessionId",void 0),t([o({type:Boolean,json:{write:!0}})],n.prototype,"synthesizeGeometries",void 0),n=s=t([r("esri.rest.networks.circuits.support.VerifyCircuitsParameters")],n);const p=n;export{p as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import t from"../../../request.js";import{parseUrl as r,encode as i,asValidOptions as o}from"../../utils.js";import s from"./support/VerifyCircuitsResult.js";async function c(c,u,e){const p=r(c),f=u.toJSON();u.circuits&&(f.circuits=JSON.stringify(u.circuits));const m={...f,f:"json"},n=i({...p.query,...m}),a=o(n,{...e,method:"post",authMode:"no-prompt"}),y=`${p.path}/circuits/verify`,{data:j}=await t(y,a);return s.fromJSON(j)}export{c as verifyCircuits};
5
+ import t from"../../../request.js";import{parseUrl as o,encode as r,asValidOptions as s}from"../../utils.js";import i from"./support/VerifyCircuitsResult.js";async function e(e,p,u){const m=o(e),f={...p.toJSON(),f:"json"},a=r({...m.query,...f}),n=s(a,{...u,method:"post",authMode:"no-prompt"}),c=`${m.path}/circuits/verify`,{data:j}=await t(c,n);return i.fromJSON(j)}export{e as verifyCircuits};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{JSONSupport as o}from"../../../core/JSONSupport.js";import{property as e,subclass as r}from"../../../core/accessorSupport/decorators.js";import l from"../../../geometry/Polyline.js";import{associationTypeKebabDict as n,nullGuid as i}from"../../../networks/support/typeUtils.js";import s from"./NetworkElement.js";import m from"./TelecomNetworkElement.js";import{reader as a}from"../../../core/accessorSupport/decorators/reader.js";import{writer as d}from"../../../core/accessorSupport/decorators/writer.js";let p=class extends o{constructor(t){super(t),this.globalId=null,this.associationType=null,this.fromNetworkElement=null,this.toNetworkElement=null,this.geometry=null,this.errorMessage=null,this.percentAlong=null,this.errorCode=null,this.isContentVisible=null,this.status=null}readFromNetworkElement(t,o){return o.fromFirstUnit||o.fromLastUnit?new m({globalId:o.fromGlobalId,networkSourceId:o.fromNetworkSourceId,terminalId:o.fromTerminalId,firstUnit:o.fromFirstUnit,lastUnit:o.fromLastUnit}):new s({globalId:o.fromGlobalId,networkSourceId:o.fromNetworkSourceId,terminalId:o.fromTerminalId})}writeFromNetworkElement(t,o){if(t&&(o.fromGlobalId=t.globalId,o.fromNetworkSourceId=t.networkSourceId,o.fromTerminalId=t.terminalId,"telecomNetworkElement"===t.type)){const e=t;o.fromFirstUnit=e.firstUnit,o.fromLastUnit=e.lastUnit}}readToNetworkElement(t,o){return o.toFirstUnit||o.toLastUnit?new m({globalId:o.toGlobalId,networkSourceId:o.toNetworkSourceId,terminalId:o.toTerminalId,firstUnit:o.toFirstUnit,lastUnit:o.toLastUnit}):new s({globalId:o.toGlobalId,networkSourceId:o.toNetworkSourceId,terminalId:o.toTerminalId})}writeToNetworkElement(t,o){if(t&&(o.toGlobalId=t.globalId,o.toNetworkSourceId=t.networkSourceId,o.toTerminalId=t.terminalId,"telecomNetworkElement"===t.type)){const e=t;o.toFirstUnit=e.firstUnit,o.toLastUnit=e.lastUnit}}equals(t){if(this.globalId===i&&t.globalId===i){function o(t,o){return t.networkSourceId===o.networkSourceId&&t.globalId===o.globalId&&t.terminalId===o.terminalId&&t.firstUnit===o.firstUnit&&t.lastUnit===o.lastUnit}const e=this.fromNetworkElement,r=this.toNetworkElement,l=t.fromNetworkElement,n=t.toNetworkElement,s=o(e,l),m=o(r,n);return s&&m&&this.associationType===t.associationType}return null!=this.globalId&&null!=t.globalId&&this.globalId===t.globalId}};t([e({type:String,json:{write:!0}})],p.prototype,"globalId",void 0),t([e({type:n.apiValues,json:{type:n.jsonValues,read:n.read,write:n.write}})],p.prototype,"associationType",void 0),t([e({type:s,json:{write:{target:{fromGlobalId:{type:String},fromNetworkSourceId:{type:Number},fromTerminalId:{type:Number},fromFirstUnit:{type:Number},fromLastUnit:{type:Number}}},read:{source:["fromGlobalId","fromNetworkSourceId","fromTerminalId","fromFirstUnit","fromLastUnit"]}}})],p.prototype,"fromNetworkElement",void 0),t([a("fromNetworkElement")],p.prototype,"readFromNetworkElement",null),t([d("fromNetworkElement")],p.prototype,"writeFromNetworkElement",null),t([e({type:s,json:{write:{target:{toGlobalId:{type:String},toNetworkSourceId:{type:Number},toTerminalId:{type:Number},toFirstUnit:{type:Number},toLastUnit:{type:Number}}},read:{source:["toGlobalId","toNetworkSourceId","toTerminalId","toFirstUnit","toLastUnit"]}}})],p.prototype,"toNetworkElement",void 0),t([a("toNetworkElement")],p.prototype,"readToNetworkElement",null),t([d("toNetworkElement")],p.prototype,"writeToNetworkElement",null),t([e({type:l,json:{write:!0}})],p.prototype,"geometry",void 0),t([e({type:String,json:{write:!0}})],p.prototype,"errorMessage",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"percentAlong",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"errorCode",void 0),t([e({type:Boolean,json:{write:!0}})],p.prototype,"isContentVisible",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"status",void 0),p=t([r("esri.rest.networks.support.Association")],p);const u=p;export{u as default};
5
+ import{__decorate as t}from"tslib";import{JSONSupport as o}from"../../../core/JSONSupport.js";import{property as e,subclass as r}from"../../../core/accessorSupport/decorators.js";import l from"../../../geometry/Polyline.js";import{associationTypeKebabDict as n,nullGuid as i}from"../../../networks/support/typeUtils.js";import s from"./NetworkElement.js";import m from"./TelecomNetworkElement.js";import{reader as a}from"../../../core/accessorSupport/decorators/reader.js";import{writer as d}from"../../../core/accessorSupport/decorators/writer.js";let p=class extends o{constructor(t){super(t),this.globalId=null,this.associationType=null,this.fromNetworkElement=null,this.toNetworkElement=null,this.geometry=null,this.errorMessage=null,this.percentAlong=null,this.errorCode=null,this.isContentVisible=null,this.status=null}readFromNetworkElement(t,o){return o.fromFirstUnit||o.fromLastUnit?new m({globalId:o.fromGlobalId,networkSourceId:o.fromNetworkSourceId,firstUnit:o.fromFirstUnit,lastUnit:o.fromLastUnit}):new s({globalId:o.fromGlobalId,networkSourceId:o.fromNetworkSourceId,terminalId:o.fromTerminalId})}writeFromNetworkElement(t,o){if(t&&(o.fromGlobalId=t.globalId,o.fromNetworkSourceId=t.networkSourceId,o.fromTerminalId=t.terminalId,"telecomNetworkElement"===t.type)){const e=t;o.fromFirstUnit=e.firstUnit,o.fromLastUnit=e.lastUnit}}readToNetworkElement(t,o){return o.toFirstUnit||o.toLastUnit?new m({globalId:o.toGlobalId,networkSourceId:o.toNetworkSourceId,firstUnit:o.toFirstUnit,lastUnit:o.toLastUnit}):new s({globalId:o.toGlobalId,networkSourceId:o.toNetworkSourceId,terminalId:o.toTerminalId})}writeToNetworkElement(t,o){if(t&&(o.toGlobalId=t.globalId,o.toNetworkSourceId=t.networkSourceId,o.toTerminalId=t.terminalId,"telecomNetworkElement"===t.type)){const e=t;o.toFirstUnit=e.firstUnit,o.toLastUnit=e.lastUnit}}equals(t){if(this.globalId===i&&t.globalId===i){function o(t,o){return t.networkSourceId===o.networkSourceId&&t.globalId===o.globalId&&t.terminalId===o.terminalId&&t.firstUnit===o.firstUnit&&t.lastUnit===o.lastUnit}const e=this.fromNetworkElement,r=this.toNetworkElement,l=t.fromNetworkElement,n=t.toNetworkElement,s=o(e,l),m=o(r,n);return s&&m&&this.associationType===t.associationType}return null!=this.globalId&&null!=t.globalId&&this.globalId===t.globalId}};t([e({type:String,json:{write:!0}})],p.prototype,"globalId",void 0),t([e({type:n.apiValues,json:{type:n.jsonValues,read:n.read,write:n.write}})],p.prototype,"associationType",void 0),t([e({type:s,json:{write:{target:{fromGlobalId:{type:String},fromNetworkSourceId:{type:Number},fromTerminalId:{type:Number},fromFirstUnit:{type:Number},fromLastUnit:{type:Number}}},read:{source:["fromGlobalId","fromNetworkSourceId","fromTerminalId","fromFirstUnit","fromLastUnit"]}}})],p.prototype,"fromNetworkElement",void 0),t([a("fromNetworkElement")],p.prototype,"readFromNetworkElement",null),t([d("fromNetworkElement")],p.prototype,"writeFromNetworkElement",null),t([e({type:s,json:{write:{target:{toGlobalId:{type:String},toNetworkSourceId:{type:Number},toTerminalId:{type:Number},toFirstUnit:{type:Number},toLastUnit:{type:Number}}},read:{source:["toGlobalId","toNetworkSourceId","toTerminalId","toFirstUnit","toLastUnit"]}}})],p.prototype,"toNetworkElement",void 0),t([a("toNetworkElement")],p.prototype,"readToNetworkElement",null),t([d("toNetworkElement")],p.prototype,"writeToNetworkElement",null),t([e({type:l,json:{write:!0}})],p.prototype,"geometry",void 0),t([e({type:String,json:{write:!0}})],p.prototype,"errorMessage",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"percentAlong",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"errorCode",void 0),t([e({type:Boolean,json:{write:!0}})],p.prototype,"isContentVisible",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"status",void 0),p=t([r("esri.rest.networks.support.Association")],p);const u=p;export{u as default};
@@ -64,10 +64,11 @@ export default class NetworkElement extends JSONSupport {
64
64
  accessor positionTo: number | null | undefined;
65
65
  /**
66
66
  * The terminal id defined at the network element.
67
+ * The telecom domain network does not use terminals, so {@link networks/support/TelecomNetworkElement} always has a null `terminalId`.
67
68
  *
68
69
  * @see [Terminal](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html)
69
70
  */
70
- accessor terminalId: number;
71
+ accessor terminalId: number | null | undefined;
71
72
  /**
72
73
  * The type of the network element.
73
74
  * This is always `networkElement` unless the object is a
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{property as e,subclass as o}from"../../../core/accessorSupport/decorators.js";import r from"./NetworkElement.js";let s=class extends r{constructor(t){super(t),this.type="telecomNetworkElement",this.firstUnit=null,this.lastUnit=null}};t([e({json:{write:!1}})],s.prototype,"type",void 0),t([e({json:{write:!0}})],s.prototype,"firstUnit",void 0),t([e({json:{write:!0}})],s.prototype,"lastUnit",void 0),s=t([o("esri.rest.networks.support.TelecomNetworkElement")],s);export{s as default};
5
+ import{__decorate as t}from"tslib";import{property as e,subclass as o}from"../../../core/accessorSupport/decorators.js";import r from"./NetworkElement.js";let s=class extends r{constructor(t){super(t),this.type="telecomNetworkElement",this.firstUnit=null,this.lastUnit=null,this.terminalId=null}};t([e({json:{write:!1}})],s.prototype,"type",void 0),t([e({json:{write:!0}})],s.prototype,"firstUnit",void 0),t([e({json:{write:!0}})],s.prototype,"lastUnit",void 0),t([e({readOnly:!0})],s.prototype,"terminalId",void 0),s=t([o("esri.rest.networks.support.TelecomNetworkElement")],s);export{s as default};
@@ -74,7 +74,7 @@ export default class TraceLocation extends TraceLocationSuperclass {
74
74
  *
75
75
  * @see [Terminal](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html)
76
76
  */
77
- accessor terminalId: number;
77
+ accessor terminalId: number | null | undefined;
78
78
  /**
79
79
  * The type of the trace location; `starting-point` defines where the trace should start and `barrier` defines where the trace should stop.
80
80
  *
package/rest/query.d.ts CHANGED
@@ -129,6 +129,7 @@ export function executeForIds(url: string, query: Query, requestOptions?: Reques
129
129
  * > [!WARNING]
130
130
  * >
131
131
  * > **Known Limitations**
132
+ * >
132
133
  * > Currently, the `executeForTopCount` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
133
134
  *
134
135
  * @param url - URL to the ArcGIS Server REST resource that represents a feature layer (usually of a Feature Service Layer or Map Service Layer).
@@ -164,6 +165,7 @@ export function executeForTopCount(url: string, topFeaturesQuery: TopFeaturesQue
164
165
  * > [!WARNING]
165
166
  * >
166
167
  * > **Known Limitations**
168
+ * >
167
169
  * > Currently, the `executeForTopExtents` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
168
170
  *
169
171
  * @param url - URL to the ArcGIS Server REST resource that represents a feature layer (usually of a Feature Service Layer or Map Service Layer).
@@ -206,6 +208,7 @@ export function executeForTopExtents(url: string, topFeaturesQuery: TopFeaturesQ
206
208
  * > [!WARNING]
207
209
  * >
208
210
  * > **Known Limitations**
211
+ * >
209
212
  * > Currently, the `executeForTopIds` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
210
213
  *
211
214
  * @param url - URL to the ArcGIS Server REST resource that represents a feature layer (usually of a Feature Service Layer or Map Service Layer).
@@ -328,6 +331,7 @@ export function executeRelationshipQuery(url: string, relationshipQuery: Relatio
328
331
  * > [!WARNING]
329
332
  * >
330
333
  * > **Known Limitations**
334
+ * >
331
335
  * > Currently, the `executeTopFeaturesQuery` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
332
336
  *
333
337
  * @param url - URL to the ArcGIS Server REST resource that represents a feature layer (usually of a Feature Service Layer or Map Service Layer).
@@ -57,10 +57,17 @@ export interface BinParametersBaseProperties extends Partial<Pick<BinParametersB
57
57
  stackBy?: AttributeBinsGroupingProperties | null;
58
58
  }
59
59
 
60
+ /**
61
+ * Specifies the expected data type of the output from the [expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#expression), based on the type of value the expression generates.
62
+ * The [expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#expression) property must be set when this property is set.
63
+ *
64
+ * @see [expressionValueType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#expressionValueType)
65
+ */
60
66
  export type BinParameterFieldType = "small-integer" | "integer" | "single" | "double" | "long" | "date" | "date-only" | "time-only" | "timestamp-offset";
61
67
 
62
68
  /**
63
- * Mixin for binning parameters.
69
+ * A mixin that provides common binning parameters to [AutoIntervalBinParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AutoIntervalBinParameters.html), [DateBinParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinParameters.html),
70
+ * [FixedBoundariesBinParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FixedBoundariesBinParameters.html), and [FixedIntervalBinParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FixedIntervalBinParameters.html).
64
71
  *
65
72
  * @since 4.32
66
73
  */
@@ -70,12 +77,6 @@ export default abstract class BinParametersBase extends BinParametersBaseSupercl
70
77
  * Both [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#field) and the `expression` cannot be specified for the same bin. The [expressionValueType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#expressionValueType) property must be set to the expected data type
71
78
  * of the output from the expression.
72
79
  *
73
- * > [!WARNING]
74
- * >
75
- * > **Known Limitations**
76
- * >
77
- * > The `expression` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
78
- *
79
80
  * @see [expressionValueType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#expressionValueType)
80
81
  * @example
81
82
  * const binQuery = new AttributeBinsQuery({
@@ -92,12 +93,6 @@ export default abstract class BinParametersBase extends BinParametersBaseSupercl
92
93
  * Specifies the expected data type of the output from the [expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#expression), based on the type of value the expression generates.
93
94
  * The [expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#expression) property must be set when this property is set.
94
95
  *
95
- * > [!WARNING]
96
- * >
97
- * > **Known Limitations**
98
- * >
99
- * > The `expressionValueType` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
100
- *
101
96
  * @see [expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BinParametersBase.html#expression)
102
97
  * @example
103
98
  * const binQuery = new AttributeBinsQuery({
@@ -119,23 +114,9 @@ export default abstract class BinParametersBase extends BinParametersBaseSupercl
119
114
  /**
120
115
  * The first day of the week. This property is used to determine the start of the week for date-based bins.
121
116
  * The default value is 7, representing Sunday, if no value is specified.
122
- *
123
- * > [!WARNING]
124
- * >
125
- * > **Known Limitations**
126
- * >
127
- * > The `firstDayOfWeek` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
128
117
  */
129
118
  accessor firstDayOfWeek: number | null | undefined;
130
- /**
131
- * If `true`, the `upperBoundary` and `bin` fields will not be included in the attributes.
132
- *
133
- * > [!WARNING]
134
- * >
135
- * > **Known Limitations**
136
- * >
137
- * > The `hideUpperBound` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
138
- */
119
+ /** If `true`, the `upperBoundary` and `bin` fields will not be included in the attributes. */
139
120
  accessor hideUpperBound: boolean | null | undefined;
140
121
  /**
141
122
  * The `splitBy` parameter divides data into separate bins for each unique value in the categorical field. Each category will have different bin boundaries based on the data distribution within that category.
@@ -9,12 +9,6 @@ export interface DateBinParametersProperties extends BinParametersBaseProperties
9
9
  /**
10
10
  * Defines an offset to the bin's starting position. For example, with a bin unit of day and an offset of 12 hours, bins run from noon to noon.
11
11
  * The offset can be positive or negative.
12
- *
13
- * > [!WARNING]
14
- * >
15
- * > **Known Limitations**
16
- * > Only `days`, `hours`, `minutes`, `seconds` are supported for offset [unit](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinTimeInterval.html#unit).
17
- * > The `offset` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
18
12
  */
19
13
  offset?: DateBinTimeIntervalProperties | null;
20
14
  }
@@ -71,12 +65,6 @@ export default class DateBinParameters extends BinParametersBase {
71
65
  /**
72
66
  * Defines an offset to the bin's starting position. For example, with a bin unit of day and an offset of 12 hours, bins run from noon to noon.
73
67
  * The offset can be positive or negative.
74
- *
75
- * > [!WARNING]
76
- * >
77
- * > **Known Limitations**
78
- * > Only `days`, `hours`, `minutes`, `seconds` are supported for offset [unit](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinTimeInterval.html#unit).
79
- * > The `offset` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
80
68
  */
81
69
  get offset(): DateBinTimeInterval | null | undefined;
82
70
  set offset(value: DateBinTimeIntervalProperties | null | undefined);
@@ -88,11 +76,6 @@ export default class DateBinParameters extends BinParametersBase {
88
76
  * with the start or end of the month, the first bin will start from the beginning of the month, and the last bin will cover the full month, potentially extending beyond the
89
77
  * actual data range to ensure consistent bin sizes.
90
78
  *
91
- * > [!WARNING]
92
- * >
93
- * > **Known Limitations**
94
- * > The `returnFullIntervalBin` is only supported with server-side [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
95
- *
96
79
  * @default false
97
80
  */
98
81
  accessor returnFullIntervalBin: boolean;
@@ -201,6 +201,7 @@ export interface TopFeaturesQueryProperties extends QueryMixinProperties, Partia
201
201
  * > [!WARNING]
202
202
  * >
203
203
  * > **Known Limitations**
204
+ * >
204
205
  * > Currently, the `TopFeatureQuery` is only supported with server-side [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
205
206
  *
206
207
  * @since 4.20
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- const a="20260109",e="253a085b6c8f233ee4ae3709aa9616922bf08a6d";export{a as buildDate,e as commitHash};
5
+ const c="20260110",a="5c5bf463940f9c8a653c831c962888784372ba98";export{c as buildDate,a as commitHash};
@@ -188,6 +188,7 @@ export interface CIMSymbolProperties extends SymbolProperties, Partial<Pick<CIMS
188
188
  * > [!WARNING]
189
189
  * >
190
190
  * > **Known Limitations**
191
+ * >
191
192
  * > - Not currently supported
192
193
  * > - {@link symbols/cim/CIMTypes!CIMLineSymbol} and {@link symbols/cim/CIMTypes!CIMPolygonSymbol} in 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html)
193
194
  * > - The `colorLocked` property in 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html)
@@ -1,6 +1,6 @@
1
1
  import type Color from "../Color.js";
2
2
  import type { JSONSupport } from "../core/JSONSupport.js";
3
- import type { LineMarkerStyle } from "./types.js";
3
+ import type { LineMarkerStyle, LineMarkerPlacement } from "./types.js";
4
4
  import type { ColorLike } from "../Color.js";
5
5
 
6
6
  export interface LineSymbolMarkerProperties extends Partial<Pick<LineSymbolMarker, "placement" | "style">> {
@@ -56,7 +56,7 @@ export default class LineSymbolMarker extends JSONSupport {
56
56
  *
57
57
  * @default "begin-end"
58
58
  */
59
- accessor placement: "begin" | "end" | "begin-end";
59
+ accessor placement: LineMarkerPlacement;
60
60
  /**
61
61
  * The marker style. Possible values are listed in the table below.
62
62
  *
@@ -1,5 +1,6 @@
1
1
  import type Color from "../Color.js";
2
2
  import type FillSymbol from "./FillSymbol.js";
3
+ import type { FillStyle } from "./types.js";
3
4
  import type { ColorLike } from "../Color.js";
4
5
  import type { FillSymbolProperties } from "./FillSymbol.js";
5
6
 
@@ -144,7 +145,7 @@ export default class SimpleFillSymbol extends FillSymbol {
144
145
  *
145
146
  * @default "solid"
146
147
  */
147
- accessor style: "solid" | "none" | "horizontal" | "vertical" | "forward-diagonal" | "backward-diagonal" | "cross" | "diagonal-cross";
148
+ accessor style: FillStyle;
148
149
  /** The symbol type. */
149
150
  get type(): "simple-fill";
150
151
  /**
@@ -1,6 +1,6 @@
1
1
  import type LineSymbol from "./LineSymbol.js";
2
2
  import type LineSymbolMarker from "./LineSymbolMarker.js";
3
- import type { SimpleLineSymbolCap, SimpleLineSymbolJoin } from "./types.js";
3
+ import type { LineStyle, LineCap, LineJoin } from "./types.js";
4
4
  import type { LineSymbolMarkerProperties } from "./LineSymbolMarker.js";
5
5
  import type { LineSymbolProperties } from "./LineSymbol.js";
6
6
 
@@ -84,7 +84,7 @@ export default class SimpleLineSymbol extends LineSymbol {
84
84
  * @default "round"
85
85
  * @example symbol.cap = "square";
86
86
  */
87
- accessor cap: SimpleLineSymbolCap;
87
+ accessor cap: LineCap;
88
88
  /**
89
89
  * Specifies the join style. A `join` refers to the joint of a polyline, or the end of a line segment that connects to another segment of the same polyline.
90
90
  * See the table below for possible values.
@@ -98,7 +98,7 @@ export default class SimpleLineSymbol extends LineSymbol {
98
98
  * @default "round"
99
99
  * @example symbol.join = "bevel";
100
100
  */
101
- accessor join: SimpleLineSymbolJoin;
101
+ accessor join: LineJoin;
102
102
  /**
103
103
  * Specifies the color, style, and placement of a symbol marker on the line.
104
104
  *
@@ -169,7 +169,7 @@ export default class SimpleLineSymbol extends LineSymbol {
169
169
  * @default "solid"
170
170
  * @example symbol.style = "short-dash-dot";
171
171
  */
172
- accessor style: "solid" | "dash" | "dot" | "dash-dot" | "long-dash-dot-dot" | "none" | "short-dash" | "short-dot" | "short-dash-dot" | "short-dash-dot-dot" | "long-dash" | "long-dash-dot";
172
+ accessor style: LineStyle;
173
173
  /** The symbol type. */
174
174
  get type(): "simple-line";
175
175
  /**
@@ -54,6 +54,7 @@ export function scaleCIMSymbolTo(symbol: CIMSymbol | null | undefined, size: num
54
54
  * > [!WARNING]
55
55
  * >
56
56
  * > **Known Limitations**
57
+ * >
57
58
  * > - Not supported on CIMGradientStroke and CIMGradientFill symbol layers.
58
59
  *
59
60
  * @param symbol - The CIMSymbol from which to get the color.
@@ -67,6 +68,7 @@ export function getCIMSymbolColor(symbol: CIMSymbol): Color | null | undefined;
67
68
  * > [!WARNING]
68
69
  * >
69
70
  * > **Known Limitations**
71
+ * >
70
72
  * > - Not supported on CIMGradientStroke and CIMGradientFill symbol layers.
71
73
  *
72
74
  * @param symbol - The CIMSymbol to set the color on.
@@ -33,76 +33,188 @@ import type { SimpleMarkerSymbolProperties } from "./SimpleMarkerSymbol.js";
33
33
  import type { TextSymbolProperties } from "./TextSymbol.js";
34
34
  import type { WebStyleSymbolProperties } from "./WebStyleSymbol.js";
35
35
 
36
- /** @since 5.0 */
36
+ /**
37
+ * Line styles for 2D and 3D symbols.
38
+ *
39
+ * @since 5.0
40
+ * @see [SimpleLineSymbol#style](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#style)
41
+ * @see [LineStylePattern3D#style](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-LineStylePattern3D.html#style)
42
+ */
37
43
  export type LineStyle = "dash" | "dash-dot" | "dot" | "long-dash" | "long-dash-dot" | "long-dash-dot-dot" | "none" | "short-dash" | "short-dash-dot" | "short-dash-dot-dot" | "short-dot" | "solid";
38
44
 
39
- /** @since 5.0 */
45
+ /**
46
+ * Line cap styles for 2D and 3D symbols.
47
+ *
48
+ * @since 5.0
49
+ * @see [SimpleLineSymbol#cap](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#cap)
50
+ * @see [LineSymbol3DLayer#cap](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#cap)
51
+ */
40
52
  export type LineCap = "square" | "round" | "butt";
41
53
 
42
- /** @since 5.0 */
54
+ /**
55
+ * Line join styles for 2D and 3D symbols.
56
+ *
57
+ * @since 5.0
58
+ * @see [SimpleLineSymbol#join](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#join)
59
+ * @see [LineSymbol3DLayer#join](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#join)
60
+ */
43
61
  export type LineJoin = "miter" | "bevel" | "round";
44
62
 
45
- /** @since 5.0 */
63
+ /**
64
+ * Line marker placement options for 2D and 3D symbols.
65
+ *
66
+ * @since 5.0
67
+ * @see [LineStyleMarker3D#placement](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#placement)
68
+ * @see [LineSymbolMarker#placement](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#placement)
69
+ */
46
70
  export type LineMarkerPlacement = "begin" | "end" | "begin-end";
47
71
 
48
- /** @since 5.0 */
72
+ /**
73
+ * Line marker styles for 2D and 3D symbols.
74
+ *
75
+ * @since 5.0
76
+ * @see [LineStyleMarker3D#style](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#style)
77
+ * @see [LineSymbolMarker#style](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#style)
78
+ */
49
79
  export type LineMarkerStyle = "arrow" | "circle" | "square" | "diamond" | "cross" | "x";
50
80
 
51
- /** @since 5.0 */
81
+ /**
82
+ * Fill styles for 2D and 3D symbols.
83
+ *
84
+ * @since 5.0
85
+ * @see [StylePattern3D#style](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-StylePattern3D.html#style)
86
+ * @see [SimpleFillSymbol#style](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html#style)
87
+ */
52
88
  export type FillStyle = "backward-diagonal" | "cross" | "diagonal-cross" | "forward-diagonal" | "horizontal" | "none" | "solid" | "vertical";
53
89
 
54
- /** @since 5.0 */
90
+ /**
91
+ * Profile styles for PathSymbol3DLayer.
92
+ *
93
+ * @since 5.0
94
+ * @see [PathSymbol3DLayer#profile](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#profile)
95
+ */
55
96
  export type PathSymbol3DLayerProfile = "circle" | "quad";
56
97
 
57
- /** @since 5.0 */
98
+ /**
99
+ * Layer join styles for PathSymbol3DLayer.
100
+ *
101
+ * @since 5.0
102
+ * @see [PathSymbol3DLayer#join](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#join)
103
+ */
58
104
  export type PathSymbol3DLayerJoin = LineJoin;
59
105
 
60
- /** @since 5.0 */
106
+ /**
107
+ * Line cap styles for PathSymbol3DLayer.
108
+ *
109
+ * @since 5.0
110
+ * @see [PathSymbol3DLayer#cap](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#cap)
111
+ */
61
112
  export type PathSymbol3DLayerCap = LineCap | "none";
62
113
 
63
- /** @since 5.0 */
114
+ /**
115
+ * Anchor positions for PathSymbol3DLayer.
116
+ *
117
+ * @since 5.0
118
+ * @see [PathSymbol3DLayer#anchor](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#anchor)
119
+ */
64
120
  export type PathSymbol3DLayerAnchor = "center" | "bottom" | "top";
65
121
 
66
- /** @since 5.0 */
122
+ /**
123
+ * Rotation modes for PathSymbol3DLayer.
124
+ *
125
+ * @since 5.0
126
+ * @see [PathSymbol3DLayer#profileRotation](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#profileRotation)
127
+ */
67
128
  export type PathSymbol3DLayerProfileRotation = "heading" | "all";
68
129
 
69
- /** @since 5.0 */
70
- export type SimpleLineSymbolCap = "butt" | "round" | "square";
71
-
72
- /** @since 5.0 */
73
- export type SimpleLineSymbolJoin = "miter" | "round" | "bevel";
74
-
75
- /** @since 5.0 */
130
+ /**
131
+ * Types of anchors for IconSymbol3DLayer.
132
+ *
133
+ * @since 5.0
134
+ * @see [IconSymbol3DLayer#anchor](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchor)
135
+ */
76
136
  export type IconSymbol3DLayerAnchor = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "relative";
77
137
 
78
- /** @since 5.0 */
138
+ /**
139
+ * Primitive shapes for IconSymbol3DLayer.
140
+ *
141
+ * @since 5.0
142
+ * @see [IconSymbol3DLayerResource#primitive](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-IconSymbol3DLayerResource.html#primitive)
143
+ */
79
144
  export type IconSymbol3DLayerPrimitive = "x" | "circle" | "square" | "cross" | "triangle" | "kite";
80
145
 
81
- /** @since 5.0 */
146
+ /**
147
+ * Types of anchors for ObjectSymbol3DLayer.
148
+ *
149
+ * @since 5.0
150
+ * @see [ObjectSymbol3DLayer#anchor](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchor)
151
+ */
82
152
  export type ObjectSymbol3DLayerAnchor = "center" | "top" | "bottom" | "origin" | "relative";
83
153
 
84
- /** @since 5.0 */
154
+ /**
155
+ * Primitive types for ObjectSymbol3DLayer.
156
+ *
157
+ * @since 5.0
158
+ * @see [ObjectSymbol3DLayerResource#primitive](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-ObjectSymbol3DLayerResource.html#primitive)
159
+ */
85
160
  export type ObjectSymbol3DLayerPrimitiveType = "sphere" | "cylinder" | "cube" | "cone" | "inverted-cone" | "diamond" | "tetrahedron";
86
161
 
87
- /** @since 5.0 */
162
+ /**
163
+ * Sizes of water bodies for WaterSymbol3DLayer.
164
+ *
165
+ * @since 5.0
166
+ * @see [WaterSymbol3DLayer#waterbodySize](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#waterbodySize)
167
+ */
88
168
  export type WaterBodySize = "small" | "medium" | "large";
89
169
 
90
- /** @since 5.0 */
170
+ /**
171
+ * Strength of waves for WaterSymbol3DLayer.
172
+ *
173
+ * @since 5.0
174
+ * @see [WaterSymbol3DLayer#waveStrength](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#waveStrength)
175
+ */
91
176
  export type WaveStrength = "calm" | "rippled" | "slight" | "moderate";
92
177
 
93
- /** @since 5.0 */
178
+ /**
179
+ * Font decoration options.
180
+ *
181
+ * @since 5.0
182
+ * @see [Font#decoration](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#decoration)
183
+ */
94
184
  export type FontDecoration = "none" | "underline" | "line-through";
95
185
 
96
- /** @since 5.0 */
186
+ /**
187
+ * Font style options.
188
+ *
189
+ * @since 5.0
190
+ * @see [Font#style](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#style)
191
+ */
97
192
  export type FontStyle = "normal" | "italic" | "oblique";
98
193
 
99
- /** @since 5.0 */
194
+ /**
195
+ * Font weight options.
196
+ *
197
+ * @since 5.0
198
+ * @see [Font#weight](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#weight)
199
+ */
100
200
  export type FontWeight = "normal" | "lighter" | "bold" | "bolder";
101
201
 
102
- /** @since 5.0 */
202
+ /**
203
+ * Horizontal text alignment options.
204
+ *
205
+ * @since 5.0
206
+ * @see [TextSymbol#horizontalAlignment](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#horizontalAlignment)
207
+ * @see [TextSymbol3DLayer#horizontalAlignment](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#horizontalAlignment)
208
+ */
103
209
  export type TextHorizontalAlignment = "left" | "right" | "center";
104
210
 
105
- /** @since 5.0 */
211
+ /**
212
+ * Vertical text alignment options.
213
+ *
214
+ * @since 5.0
215
+ * @see [TextSymbol#verticalAlignment](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#verticalAlignment)
216
+ * @see [TextSymbol3DLayer#verticalAlignment](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#verticalAlignment)
217
+ */
106
218
  export type TextVerticalAlignment = "baseline" | "top" | "middle" | "bottom";
107
219
 
108
220
  /**
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{NumericIdentifiableMixin as o}from"../../../core/NumericIdentifiable.js";import{property as s,subclass as i}from"../../../core/accessorSupport/decorators.js";var a;let c=a=class extends(o(t)){constructor(e){super(e),this._lodByScale={},this._scales=[],this.effectiveLODs=null,this.effectiveMinZoom=-1,this.effectiveMaxZoom=-1,this.effectiveMinScale=0,this.effectiveMaxScale=0,this.lods=null,this.minZoom=-1,this.maxZoom=-1,this.minScale=0,this.maxScale=0,this.snapToZoom=!0}initialize(){let e,{lods:t,minScale:o,maxScale:s,minZoom:i,maxZoom:a}=this,c=-1,l=-1,r=!1,n=!1;if(0!==o&&0!==s&&o<s&&([o,s]=[s,o]),!t?.length)return this._set("effectiveMinScale",o),void this._set("effectiveMaxScale",s);t=t.map(e=>e.clone()),t.sort((e,t)=>t.scale-e.scale),t.forEach((e,t)=>e.level=t);for(const f of t)!r&&o>0&&o>=f.scale&&(c=f.level,r=!0),!n&&s>0&&s>=f.scale&&(l=e?e.level:-1,n=!0),e=f;-1===i&&(i=0===o?0:c),-1===a&&(a=0===s?t.length-1:l),i=Math.max(i,0),i=Math.min(i,t.length-1),a=Math.max(a,0),a=Math.min(a,t.length-1),i>a&&([i,a]=[a,i]),o=t[i].scale,s=t[a].scale,t.splice(0,i),t.splice(a-i+1),t.forEach((e,t)=>{this._lodByScale[e.scale]=e,this._scales[t]=e.scale}),this._set("effectiveLODs",t),this._set("effectiveMinZoom",i),this._set("effectiveMaxZoom",a),this._set("effectiveMinScale",o),this._set("effectiveMaxScale",s)}constrain(e,t){if(t&&e.scale===t.scale)return e;const o=this.effectiveMinScale,s=this.effectiveMaxScale,i=e.targetGeometry,a=t&&t.targetGeometry,c=0!==s&&e.scale<s,l=0!==o&&e.scale>o;if(c||l){const c=l?o:s;if(t&&a){const o=(c-t.scale)/(e.scale-t.scale);i.x=a.x+(i.x-a.x)*o,i.y=a.y+(i.y-a.y)*o}e.scale=c}return this.snapToZoom&&this.effectiveLODs&&(e.scale=this._getClosestScale(e.scale)),e}fit(e){if(!this.effectiveLODs||!this.snapToZoom)return this.constrain(e,null);const t=this.scaleToZoom(e.scale),o=Math.abs(t-Math.floor(t));return e.scale=this.zoomToScale(o>.99?Math.round(t):Math.floor(t)),e}zoomToScale(e){if(!this.effectiveLODs)return 0;e-=this.effectiveMinZoom,e=Math.max(0,e);const t=this._scales;if(e<=0)return t[0];if(e>=t.length)return t[t.length-1];const o=Math.floor(e),s=Math.ceil(e);return t[o]+(e-o)*(t[s]-t[o])}scaleToZoom(e){if(!this.effectiveLODs)return-1;const t=this._scales;let o,s;if(e>=t[0])return this.effectiveMinZoom;if(e<=t[t.length-1])return this.effectiveMaxZoom;for(let i=0;i<t.length-1;i++){if(o=t[i],s=t[i+1],s===e){return i+this.effectiveMinZoom+1}if(o>e&&s<e){return i+this.effectiveMinZoom+1-(e-s)/(o-s)}}return-1}snapToClosestScale(e){if(!this.effectiveLODs)return e;const t=this.scaleToZoom(e);return this.zoomToScale(Math.round(t))}snapToNextScale(e,t=.5){if(!this.effectiveLODs)return e*t;const o=Math.round(this.scaleToZoom(e));return this.zoomToScale(o+1)}snapToPreviousScale(e,t=2){if(!this.effectiveLODs)return e*t;const o=Math.round(this.scaleToZoom(e));return this.zoomToScale(o-1)}clone(){return new a({lods:this.lods,minZoom:this.minZoom,maxZoom:this.maxZoom,minScale:this.minScale,maxScale:this.maxScale})}_getClosestScale(e){return this._lodByScale[e]||(e=this._scales.reduce((t,o)=>Math.abs(o-e)<=Math.abs(t-e)?o:t,this._scales[0])),this._lodByScale[e].scale}};e([s({readOnly:!0})],c.prototype,"effectiveLODs",void 0),e([s({readOnly:!0})],c.prototype,"effectiveMinZoom",void 0),e([s({readOnly:!0})],c.prototype,"effectiveMaxZoom",void 0),e([s({readOnly:!0})],c.prototype,"effectiveMinScale",void 0),e([s({readOnly:!0})],c.prototype,"effectiveMaxScale",void 0),e([s()],c.prototype,"lods",void 0),e([s()],c.prototype,"minZoom",void 0),e([s()],c.prototype,"maxZoom",void 0),e([s()],c.prototype,"minScale",void 0),e([s()],c.prototype,"maxScale",void 0),e([s()],c.prototype,"snapToZoom",void 0),c=a=e([i("esri.views.2d.constraints.ZoomConstraint")],c);const l=c;export{l as default};
5
+ import{__decorate as e}from"tslib";import t from"../../../core/Accessor.js";import{NumericIdentifiableMixin as o}from"../../../core/NumericIdentifiable.js";import{property as s,subclass as i}from"../../../core/accessorSupport/decorators.js";var a;let c=a=class extends(o(t)){constructor(e){super(e),this._lodByScale={},this._scales=[],this.effectiveLODs=null,this.effectiveMinZoom=-1,this.effectiveMaxZoom=-1,this.effectiveMinScale=0,this.effectiveMaxScale=0,this.lods=null,this.minZoom=-1,this.maxZoom=-1,this.minScale=0,this.maxScale=0,this.snapToZoom=!0}initialize(){let e,{lods:t,minScale:o,maxScale:s,minZoom:i,maxZoom:a}=this,c=-1,l=-1,r=!1,n=!1;if(0!==o&&0!==s&&o<s&&([o,s]=[s,o]),!t?.length)return this._set("effectiveMinScale",o),void this._set("effectiveMaxScale",s);t=t.map(e=>e.clone()),t.sort((e,t)=>t.scale-e.scale),t.forEach((e,t)=>e.level=t);for(const f of t)!r&&o>0&&o>=f.scale&&(c=f.level,r=!0),!n&&s>0&&s>=f.scale&&(l=e?e.level:-1,n=!0),e=f;-1===i&&(i=0===o?0:c),-1===a&&(a=0===s?t.length-1:l),i=Math.max(i,0),i=Math.min(i,t.length-1),a=Math.max(a,0),a=Math.min(a,t.length-1),i>a&&([i,a]=[a,i]),o=t[i].scale,s=t[a].scale,t.splice(0,i),t.splice(a-i+1),t.forEach((e,t)=>{this._lodByScale[e.scale]=e,this._scales[t]=e.scale}),this._set("effectiveLODs",t),this._set("effectiveMinZoom",i),this._set("effectiveMaxZoom",a),this._set("effectiveMinScale",o),this._set("effectiveMaxScale",s)}constrain(e,t){if(e.scale===t?.scale)return e;const o=this.effectiveMinScale,s=this.effectiveMaxScale,i=e.targetGeometry,a=t&&t.targetGeometry,c=0!==s&&e.scale<s,l=0!==o&&e.scale>o;if(c||l){const c=l?o:s;if(t&&a){const o=(c-t.scale)/(e.scale-t.scale);i.x=a.x+(i.x-a.x)*o,i.y=a.y+(i.y-a.y)*o}e.scale=c}return this.snapToZoom&&this.effectiveLODs&&(e.scale=this._getClosestScale(e.scale)),e}fit(e){if(!this.effectiveLODs||!this.snapToZoom)return this.constrain(e,null);const t=this.scaleToZoom(e.scale),o=Math.abs(t-Math.floor(t));return e.scale=this.zoomToScale(o>.99?Math.round(t):Math.floor(t)),e}zoomToScale(e){if(!this.effectiveLODs)return 0;e-=this.effectiveMinZoom,e=Math.max(0,e);const t=this._scales;if(e<=0)return t[0];if(e>=t.length)return t[t.length-1];const o=Math.floor(e),s=Math.ceil(e);return t[o]+(e-o)*(t[s]-t[o])}scaleToZoom(e){if(!this.effectiveLODs)return-1;const t=this._scales;let o,s;if(e>=t[0])return this.effectiveMinZoom;if(e<=t[t.length-1])return this.effectiveMaxZoom;for(let i=0;i<t.length-1;i++){if(o=t[i],s=t[i+1],s===e){return i+this.effectiveMinZoom+1}if(o>e&&s<e){return i+this.effectiveMinZoom+1-(e-s)/(o-s)}}return-1}snapToClosestScale(e){if(!this.effectiveLODs)return e;const t=this.scaleToZoom(e);return this.zoomToScale(Math.round(t))}snapToNextScale(e,t=.5){if(!this.effectiveLODs)return e*t;const o=Math.round(this.scaleToZoom(e));return this.zoomToScale(o+1)}snapToPreviousScale(e,t=2){if(!this.effectiveLODs)return e*t;const o=Math.round(this.scaleToZoom(e));return this.zoomToScale(o-1)}clone(){return new a({lods:this.lods,minZoom:this.minZoom,maxZoom:this.maxZoom,minScale:this.minScale,maxScale:this.maxScale})}_getClosestScale(e){return this._lodByScale[e]||(e=this._scales.reduce((t,o)=>Math.abs(o-e)<=Math.abs(t-e)?o:t,this._scales[0])),this._lodByScale[e].scale}};e([s({readOnly:!0})],c.prototype,"effectiveLODs",void 0),e([s({readOnly:!0})],c.prototype,"effectiveMinZoom",void 0),e([s({readOnly:!0})],c.prototype,"effectiveMaxZoom",void 0),e([s({readOnly:!0})],c.prototype,"effectiveMinScale",void 0),e([s({readOnly:!0})],c.prototype,"effectiveMaxScale",void 0),e([s()],c.prototype,"lods",void 0),e([s()],c.prototype,"minZoom",void 0),e([s()],c.prototype,"maxZoom",void 0),e([s()],c.prototype,"minScale",void 0),e([s()],c.prototype,"maxScale",void 0),e([s()],c.prototype,"snapToZoom",void 0),c=a=e([i("esri.views.2d.constraints.ZoomConstraint")],c);const l=c;export{l as default};