@arcgis/core 6.0.0-next.25 → 6.0.0-next.27

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/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{6f1d6453184e0a1530ad.js → 00580a68835aac653038.js} +22 -22
  3. package/assets/esri/core/workers/chunks/0363d29fc665d169ebc4.js +1 -0
  4. package/assets/esri/core/workers/chunks/037c67ef5c4398d5954d.js +1 -0
  5. package/assets/esri/core/workers/chunks/07b726a46864501b90a0.js +1 -0
  6. package/assets/esri/core/workers/chunks/0864da8f8f147016cf1c.js +1 -0
  7. package/assets/esri/core/workers/chunks/0bd04bcd4b2710838d48.js +1 -0
  8. package/assets/esri/core/workers/chunks/{768389f7f8dba6080df7.js → 0cc7fba402a93e6d2455.js} +2 -2
  9. package/assets/esri/core/workers/chunks/0cfdeb53fb7d5532cf01.js +1 -0
  10. package/assets/esri/core/workers/chunks/112ed86f812e4400a7e0.js +1 -0
  11. package/assets/esri/core/workers/chunks/177f353ce72133e2eeed.js +1 -0
  12. package/assets/esri/core/workers/chunks/1dc6f093028530a492e6.js +1 -0
  13. package/assets/esri/core/workers/chunks/2294254af2c6afb560ee.js +1 -0
  14. package/assets/esri/core/workers/chunks/23a4806b4cdf7cc32e4d.js +1 -0
  15. package/assets/esri/core/workers/chunks/2447d2e2a4a3ab8fcf94.js +1 -0
  16. package/assets/esri/core/workers/chunks/271ae7deccb94112c2df.js +1 -0
  17. package/assets/esri/core/workers/chunks/2df37a9a95ceebb87a5f.js +1 -0
  18. package/assets/esri/core/workers/chunks/2e00c155e447e4930442.js +1 -0
  19. package/assets/esri/core/workers/chunks/2e9a1673b1d51aa082b6.js +1 -0
  20. package/assets/esri/core/workers/chunks/344f5334ad95c7974349.js +1 -0
  21. package/assets/esri/core/workers/chunks/348f1def9cd2ddf92e87.js +1 -0
  22. package/assets/esri/core/workers/chunks/{8e4206068c6953bb7df2.js → 3a47fc97c400fca2c736.js} +1 -1
  23. package/assets/esri/core/workers/chunks/47c97640ec525676918b.js +1 -0
  24. package/assets/esri/core/workers/chunks/50763ea061d5fb3f2e49.js +1 -0
  25. package/assets/esri/core/workers/chunks/518ab22f80c3300bcfff.js +1 -0
  26. package/assets/esri/core/workers/chunks/58609bf94f72bc4f1952.js +1 -0
  27. package/assets/esri/core/workers/chunks/586a929bc037e23857af.js +1 -0
  28. package/assets/esri/core/workers/chunks/58d10e0b35968680fd9f.js +1 -0
  29. package/assets/esri/core/workers/chunks/59bc55880e6fd8ce20c0.js +1 -0
  30. package/assets/esri/core/workers/chunks/62a0abcf45a2bd14ecbe.js +1 -0
  31. package/assets/esri/core/workers/chunks/63c4412c16d8a44a5668.js +1 -0
  32. package/assets/esri/core/workers/chunks/6b4c3411f63a9ad9354c.js +1 -0
  33. package/assets/esri/core/workers/chunks/{f528ac5c648ca6a98582.js → 711cfb84659cb4437679.js} +1 -1
  34. package/assets/esri/core/workers/chunks/77463141652bf1ca6fb2.js +1 -0
  35. package/assets/esri/core/workers/chunks/7d3f7940815fa5dc244e.js +1 -0
  36. package/assets/esri/core/workers/chunks/914a0b5d9fef683cdf9c.js +1 -0
  37. package/assets/esri/core/workers/chunks/96f87c8efd4b11b37686.js +1 -0
  38. package/assets/esri/core/workers/chunks/97ec46605f16333144b7.js +1 -0
  39. package/assets/esri/core/workers/chunks/{7b482afb9fd1229f5707.js → 9934e8e19f94e9169eea.js} +1 -1
  40. package/assets/esri/core/workers/chunks/99f51d5d9da6e9bfc430.js +1 -0
  41. package/assets/esri/core/workers/chunks/9aebe876b1a2fb075f9c.js +1 -0
  42. package/assets/esri/core/workers/chunks/9c3db7a7c05fa0e81f0a.js +1 -0
  43. package/assets/esri/core/workers/chunks/a2cc53ad1a514167e4b8.js +1 -0
  44. package/assets/esri/core/workers/chunks/a33ba23aee3f8f40200f.js +1 -0
  45. package/assets/esri/core/workers/chunks/{45ba4aa87a4732198596.js → b13d8f4e4e80ef00b1bd.js} +1 -1
  46. package/assets/esri/core/workers/chunks/b3801d58c024224917df.js +1 -0
  47. package/assets/esri/core/workers/chunks/b3aa29589dcfb5b93106.js +1 -0
  48. package/assets/esri/core/workers/chunks/b3dbcf43f136ba2dadc5.js +1 -0
  49. package/assets/esri/core/workers/chunks/b9596d862da1ec342cd3.js +1 -0
  50. package/assets/esri/core/workers/chunks/bc1fcc9c897461e68e29.js +1 -0
  51. package/assets/esri/core/workers/chunks/{8b4e9fd88c0c313416d4.js → be04f40f8b403befd0ef.js} +1 -1
  52. package/assets/esri/core/workers/chunks/c29091fe157564cffcf7.js +1 -0
  53. package/assets/esri/core/workers/chunks/{150e7a7bd5df25693da7.js → c90388932a7825d9d933.js} +1 -1
  54. package/assets/esri/core/workers/chunks/ca21786e519c914fc9e1.js +1 -0
  55. package/assets/esri/core/workers/chunks/cdb5c26fed7d9a97db49.js +1 -0
  56. package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +1 -0
  57. package/assets/esri/core/workers/chunks/d63e181f0e48bde73395.js +1 -0
  58. package/assets/esri/core/workers/chunks/d77888c84a8b49478807.js +1 -0
  59. package/assets/esri/core/workers/chunks/d7f2f1708d2a2668676c.js +1 -0
  60. package/assets/esri/core/workers/chunks/ec1c4d66142b6efb0e8b.js +1 -0
  61. package/assets/esri/core/workers/chunks/ef2c3febcceedc44b3ac.js +1 -0
  62. package/assets/esri/core/workers/chunks/f08a2a262a3b55149396.js +1 -0
  63. package/assets/esri/core/workers/chunks/f2d56f5c15d5977e1d19.js +1 -0
  64. package/assets/esri/core/workers/chunks/ffe2077a9df7c838ea27.js +1 -0
  65. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  66. package/chunks/GlobalIllumination.glsl.js +15 -30
  67. package/chunks/RibbonLine.glsl.js +2 -2
  68. package/config.js +1 -1
  69. package/core/ReentrantObjectPool.js +1 -1
  70. package/core/memoryEstimations.js +1 -1
  71. package/core/workers/workers.js +2 -2
  72. package/core/workers.d.ts +1 -1
  73. package/form/elements/inputs.d.ts +126 -25
  74. package/form/elements/inputs.js +1 -1
  75. package/form/elements.d.ts +1 -0
  76. package/geometry/support/Indices.js +1 -1
  77. package/graphic/MapNotesGraphicOrigin.d.ts +1 -0
  78. package/kernel.js +1 -1
  79. package/layers/GeospatialPDFLayer.js +1 -1
  80. package/layers/MapNotesLayer.d.ts +3 -2
  81. package/layers/VectorTileLayer.d.ts +10 -1
  82. package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +2 -1
  83. package/layers/geospatialPDF/CIM2DLayerview.js +2 -0
  84. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  85. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  86. package/layers/mixins/SublayersOwner.js +1 -1
  87. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  88. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  89. package/layers/support/Sublayer.d.ts +2 -2
  90. package/layers/support/Sublayer.js +1 -1
  91. package/layers/support/SubtypeSublayer.js +1 -1
  92. package/layers/support/layerUtils.js +1 -1
  93. package/package.json +3 -3
  94. package/rest/support/AttributeBinsQuery.d.ts +3 -2
  95. package/rest/support/ImageGPSInfoParameters.d.ts +2 -1
  96. package/rest/support/OutDistance.d.ts +2 -1
  97. package/rest/support/Query.d.ts +3 -2
  98. package/rest/support/TopFeaturesQuery.d.ts +2 -1
  99. package/rest/support/types.d.ts +10 -1
  100. package/smartMapping/raster/renderers/flow.d.ts +2 -1
  101. package/smartMapping/renderers/color.d.ts +11 -8
  102. package/smartMapping/renderers/location.d.ts +7 -4
  103. package/smartMapping/renderers/predominance.d.ts +7 -4
  104. package/smartMapping/renderers/relationship.d.ts +7 -4
  105. package/smartMapping/renderers/size.d.ts +6 -4
  106. package/smartMapping/renderers/type.d.ts +7 -4
  107. package/smartMapping/renderers/types.d.ts +15 -0
  108. package/smartMapping/renderers/univariateColorSize.d.ts +4 -2
  109. package/smartMapping/symbology/flow.d.ts +2 -1
  110. package/smartMapping/symbology/types.d.ts +2 -1
  111. package/symbols/cim/CIMCursor.js +1 -1
  112. package/tables/elements.d.ts +1 -0
  113. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  114. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  115. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
  116. package/views/2d/engine/webgl/textureUtils.js +1 -1
  117. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  118. package/views/2d/layers/MediaLayerView2D.js +1 -1
  119. package/views/2d/layers/TileLayerView2D.js +1 -1
  120. package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
  121. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  122. package/views/3d/layers/graphics/Graphics3DBufferGraphicLayer.js +1 -1
  123. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  124. package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayerBase.js +1 -1
  125. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  126. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  127. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  128. package/views/3d/layers/graphics/Graphics3DGraphicCreationContext.js +1 -1
  129. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  130. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  131. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  132. package/views/3d/layers/graphics/Graphics3DStageObjectGraphicLayer.js +1 -1
  133. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  134. package/views/3d/layers/graphics/Labeler.js +1 -1
  135. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  136. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  137. package/views/3d/layers/support/featureReference.js +1 -1
  138. package/views/3d/terrain/PatchRenderData.js +1 -1
  139. package/views/3d/terrain/TerrainData.js +1 -1
  140. package/views/3d/terrain/TerrainRenderer.js +1 -1
  141. package/views/3d/terrain/TerrainSurface.js +1 -1
  142. package/views/3d/terrain/TextureFader.js +1 -1
  143. package/views/3d/terrain/TextureReference.js +1 -1
  144. package/views/3d/terrain/TileCompositor.js +1 -1
  145. package/views/3d/terrain/TileRenderInfo.js +1 -1
  146. package/views/3d/terrain/TileRenderer.js +1 -1
  147. package/views/3d/terrain/terrainUtils.js +1 -1
  148. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +25 -25
  149. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  150. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  151. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  152. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  153. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  154. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  155. package/views/3d/webgl-engine/lib/BufferObject3D.js +1 -1
  156. package/views/3d/webgl-engine/lib/DirtyEvents.js +1 -1
  157. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  158. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  159. package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
  160. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  161. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  162. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  163. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
  164. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  165. package/views/3d/webgl-engine/lib/geometryMemoryUtils.js +2 -0
  166. package/views/VideoView.js +1 -1
  167. package/views/selection/SelectionOperation.js +1 -1
  168. package/views/selection/types.d.ts +43 -3
  169. package/views/support/layerViewUtils.js +1 -1
  170. package/views/support/selectionUtils.js +1 -1
  171. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  172. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  173. package/widgets/OrientedImageryViewer.js +2 -2
  174. package/widgets/Print.js +1 -1
  175. package/widgets/support/SelectionList/GroupLayerItem.d.ts +6 -0
  176. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  177. package/widgets/support/SelectionList/ItemBase.js +1 -1
  178. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +6 -1
  179. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  180. package/widgets/support/SelectionToolbar.d.ts +8 -1
  181. package/widgets/support/SelectionToolbar.js +1 -1
  182. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  183. package/assets/esri/core/workers/chunks/0320cbd825f9a4222042.js +0 -1
  184. package/assets/esri/core/workers/chunks/067de1910190da228291.js +0 -1
  185. package/assets/esri/core/workers/chunks/09bd5df07eab80ae7b15.js +0 -1
  186. package/assets/esri/core/workers/chunks/164e74d586297946a717.js +0 -1
  187. package/assets/esri/core/workers/chunks/1c0c5cb13c2590aae906.js +0 -1
  188. package/assets/esri/core/workers/chunks/1c77de1e79860f8d2228.js +0 -1
  189. package/assets/esri/core/workers/chunks/24dac4970526a4e0ae63.js +0 -1
  190. package/assets/esri/core/workers/chunks/2acf2952cef69e382a35.js +0 -1
  191. package/assets/esri/core/workers/chunks/30dcf2cfb31cb70de7df.js +0 -1
  192. package/assets/esri/core/workers/chunks/371e2ddb88cc6b9a41e8.js +0 -1
  193. package/assets/esri/core/workers/chunks/42f6194633c2d879c8da.js +0 -1
  194. package/assets/esri/core/workers/chunks/44f90e75c1dc3d726a95.js +0 -1
  195. package/assets/esri/core/workers/chunks/4abd3753cd9b80e4d937.js +0 -1
  196. package/assets/esri/core/workers/chunks/4bb9a5f4ca944d3fc206.js +0 -1
  197. package/assets/esri/core/workers/chunks/4c389472b8cdb0c55154.js +0 -1
  198. package/assets/esri/core/workers/chunks/4d93bed14945e3d34d5c.js +0 -1
  199. package/assets/esri/core/workers/chunks/4e3f651ac76fcd53df2b.js +0 -1
  200. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +0 -1
  201. package/assets/esri/core/workers/chunks/58da3f8cf0f7f6a7e4fa.js +0 -1
  202. package/assets/esri/core/workers/chunks/5a19a9c3e01d3d415188.js +0 -1
  203. package/assets/esri/core/workers/chunks/5a830bc35adbedd33783.js +0 -1
  204. package/assets/esri/core/workers/chunks/6db0f8fe1402643fbe1a.js +0 -1
  205. package/assets/esri/core/workers/chunks/7124ad8dc5ad40dc66f3.js +0 -1
  206. package/assets/esri/core/workers/chunks/7446d0dfebf93e86c098.js +0 -1
  207. package/assets/esri/core/workers/chunks/7c631e2947243e2c9bde.js +0 -1
  208. package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +0 -1
  209. package/assets/esri/core/workers/chunks/7fb7493f483cd9878bfa.js +0 -1
  210. package/assets/esri/core/workers/chunks/8e310e9cb9d84ac3ca2f.js +0 -1
  211. package/assets/esri/core/workers/chunks/950d4578dc450467404c.js +0 -1
  212. package/assets/esri/core/workers/chunks/99a0a434ea2162166754.js +0 -1
  213. package/assets/esri/core/workers/chunks/9afc87474cef1fc4fe4a.js +0 -1
  214. package/assets/esri/core/workers/chunks/9cbde13e536676767900.js +0 -1
  215. package/assets/esri/core/workers/chunks/9cd3fcb5fca6f9dbbcd8.js +0 -1
  216. package/assets/esri/core/workers/chunks/a025ee38d402504193df.js +0 -1
  217. package/assets/esri/core/workers/chunks/a4b822ee45810c4c292a.js +0 -1
  218. package/assets/esri/core/workers/chunks/a51576d84edca88e41dd.js +0 -1
  219. package/assets/esri/core/workers/chunks/ac24b4370dc7194a3107.js +0 -1
  220. package/assets/esri/core/workers/chunks/ace41659a5ca0e5abfc3.js +0 -1
  221. package/assets/esri/core/workers/chunks/b01804aa6c47a220a603.js +0 -1
  222. package/assets/esri/core/workers/chunks/b3273f847405799e3362.js +0 -1
  223. package/assets/esri/core/workers/chunks/ba3d5abff65aefcb8dee.js +0 -1
  224. package/assets/esri/core/workers/chunks/bca6b469940b7b954123.js +0 -1
  225. package/assets/esri/core/workers/chunks/c0d7ae314ebfad1e3791.js +0 -1
  226. package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +0 -1
  227. package/assets/esri/core/workers/chunks/cd9aa950cb74b09008fe.js +0 -1
  228. package/assets/esri/core/workers/chunks/e0d9dc97985561320bd4.js +0 -1
  229. package/assets/esri/core/workers/chunks/e2775b4b753306dc8477.js +0 -1
  230. package/assets/esri/core/workers/chunks/eaddffcc7004101fc230.js +0 -1
  231. package/assets/esri/core/workers/chunks/ebbf425af348e6ede814.js +0 -1
  232. package/assets/esri/core/workers/chunks/efc53007cd2e4991d7d4.js +0 -1
  233. package/assets/esri/core/workers/chunks/f46e92c67986c8c09bdd.js +0 -1
  234. package/assets/esri/core/workers/chunks/f8bc474434fd365ab174.js +0 -1
  235. package/assets/esri/core/workers/chunks/f8d2225f333524ce1d88.js +0 -1
  236. package/assets/esri/core/workers/chunks/f95a1f878c9c1146180e.js +0 -1
  237. package/assets/esri/core/workers/chunks/fb37f0848196c28b7fd7.js +0 -1
  238. /package/assets/esri/core/workers/chunks/{768389f7f8dba6080df7.js.LICENSE.txt → 0cc7fba402a93e6d2455.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "6.0.0-next.25",
3
+ "version": "6.0.0-next.27",
4
4
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -20,10 +20,10 @@
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
22
  "@amcharts/amcharts5": "~5.21.5",
23
- "@arcgis/toolkit": "6.0.0-next.25",
23
+ "@arcgis/toolkit": "6.0.0-next.27",
24
24
  "@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
25
25
  "@esri/calcite-components": "^5.2.0",
26
- "@vaadin/grid": "~25.3.4",
26
+ "@vaadin/grid": "~25.3.5",
27
27
  "@zip.js/zip.js": "~2.24.0",
28
28
  "luxon": "~3.7.2",
29
29
  "marked": "~18.1.2",
@@ -9,6 +9,7 @@ import type { ClonableMixin } from "../../core/Clonable.js";
9
9
  import type { JSONSupport } from "../../core/JSONSupport.js";
10
10
  import type { GeometryWithoutMeshUnion } from "../../geometry/types.js";
11
11
  import type { DatumTransformation } from "../../portal/jsonTypes.js";
12
+ import type { QueryUnits, SpatialRelationship } from "./types.js";
12
13
  import type { IANATimeZone } from "../../time/types.js";
13
14
  import type { FixedIntervalBinParametersProperties } from "./FixedIntervalBinParameters.js";
14
15
  import type { FixedBoundariesBinParametersProperties } from "./FixedBoundariesBinParameters.js";
@@ -307,7 +308,7 @@ export default class AttributeBinsQuery extends AttributeBinsQuerySuperclass {
307
308
  * });
308
309
  * ```
309
310
  */
310
- spatialRelationship: "intersects" | "contains" | "crosses" | "disjoint" | "envelope-intersects" | "index-intersects" | "overlaps" | "touches" | "within" | "relation";
311
+ spatialRelationship: SpatialRelationship;
311
312
  /**
312
313
  * A time extent for a temporal query against [time-aware layers](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#timeInfo).
313
314
  * For example, it can be used to discover all crimes that occurred during the
@@ -346,7 +347,7 @@ export default class AttributeBinsQuery extends AttributeBinsQuerySuperclass {
346
347
  * }).then(processResults);
347
348
  * ```
348
349
  */
349
- accessor units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | null | undefined;
350
+ accessor units: QueryUnits | null | undefined;
350
351
  /** Sets the name of the upper boundary property in the response. By default, the upper boundary is name `upperBoundary` and indicates the value at the edge of each bin. */
351
352
  accessor upperBoundaryAlias: string | null | undefined;
352
353
  /**
@@ -6,6 +6,7 @@ import type Polyline from "../../geometry/Polyline.js";
6
6
  import type TimeExtent from "../../time/TimeExtent.js";
7
7
  import type { ClonableMixin } from "../../core/Clonable.js";
8
8
  import type { JSONSupport } from "../../core/JSONSupport.js";
9
+ import type { SpatialRelationship } from "./types.js";
9
10
  import type { ObjectId } from "../../views/types.js";
10
11
  import type { PolylineProperties } from "../../geometry/Polyline.js";
11
12
  import type { PolygonProperties } from "../../geometry/Polygon.js";
@@ -49,7 +50,7 @@ export default class ImageGPSInfoParameters extends ImageGPSInfoParametersSuperc
49
50
  *
50
51
  * @default "intersects"
51
52
  */
52
- spatialRelationship: "intersects" | "contains" | "crosses" | "disjoint" | "envelope-intersects" | "index-intersects" | "overlaps" | "touches" | "within" | "relation";
53
+ spatialRelationship: SpatialRelationship;
53
54
  /** A time extent for a temporal query to query images. */
54
55
  get timeExtent(): TimeExtent | null | undefined;
55
56
  set timeExtent(value: TimeExtentProperties | null | undefined);
@@ -1,6 +1,7 @@
1
1
  import type { ClonableMixin } from "../../core/Clonable.js";
2
2
  import type { JSONSupport } from "../../core/JSONSupport.js";
3
3
  import type { GeometryWithoutMeshUnion } from "../../geometry/types.js";
4
+ import type { QueryUnits } from "./types.js";
4
5
  import type { PolylineProperties } from "../../geometry/Polyline.js";
5
6
  import type { PolygonProperties } from "../../geometry/Polygon.js";
6
7
  import type { PointProperties } from "../../geometry/Point.js";
@@ -57,7 +58,7 @@ export default class OutDistance extends OutDistanceSuperclass {
57
58
  *
58
59
  * @since 5.2
59
60
  */
60
- outDistanceUnit?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | null;
61
+ outDistanceUnit?: QueryUnits | null;
61
62
  /**
62
63
  * Geometry used as the reference for measuring distance. Distances are measured from each feature to this geometry.
63
64
  * If not specified, distances are measured from the [Query.geometry](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#geometry).
@@ -8,6 +8,7 @@ import type TimeExtent from "../../time/TimeExtent.js";
8
8
  import type { JSONSupport } from "../../core/JSONSupport.js";
9
9
  import type { GeometryUnion } from "../../geometry/types.js";
10
10
  import type { DatumTransformation, SQLFormat } from "../../portal/jsonTypes.js";
11
+ import type { QueryUnits, SpatialRelationship } from "./types.js";
11
12
  import type { ObjectId } from "../../views/types.js";
12
13
  import type { MeshProperties } from "../../geometry/Mesh.js";
13
14
  import type { PolylineProperties } from "../../geometry/Polyline.js";
@@ -994,7 +995,7 @@ export default class Query extends JSONSupport {
994
995
  * });
995
996
  * ```
996
997
  */
997
- spatialRelationship: "intersects" | "contains" | "crosses" | "disjoint" | "envelope-intersects" | "index-intersects" | "overlaps" | "touches" | "within" | "relation";
998
+ spatialRelationship: SpatialRelationship;
998
999
  /**
999
1000
  * This parameter can be either standard SQL92 `standard` or it can use the native SQL of the underlying datastore `native`.
1000
1001
  * See the [ArcGIS REST API documentation](https://developers.arcgis.com/rest/services-reference/query-feature-service-.htm)
@@ -1055,7 +1056,7 @@ export default class Query extends JSONSupport {
1055
1056
  * }).then(processResults);
1056
1057
  * ```
1057
1058
  */
1058
- accessor units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | null | undefined;
1059
+ accessor units: QueryUnits | null | undefined;
1059
1060
  /**
1060
1061
  * A where clause for the query. Any legal SQL where clause operating on the fields in the layer is allowed.
1061
1062
  * Be sure to have the correct sequence of single and double quotes when writing the where clause in JavaScript.
@@ -3,6 +3,7 @@ import type TopFilter from "./TopFilter.js";
3
3
  import type TimeExtent from "../../time/TimeExtent.js";
4
4
  import type { JSONSupport } from "../../core/JSONSupport.js";
5
5
  import type { GeometryUnion } from "../../geometry/types.js";
6
+ import type { QueryUnits } from "./types.js";
6
7
  import type { ObjectId } from "../../views/types.js";
7
8
  import type { MeshProperties } from "../../geometry/Mesh.js";
8
9
  import type { PolylineProperties } from "../../geometry/Polyline.js";
@@ -456,7 +457,7 @@ export default class TopFeaturesQuery extends JSONSupport {
456
457
  * }).then(processResults);
457
458
  * ```
458
459
  */
459
- accessor units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | null | undefined;
460
+ accessor units: QueryUnits | null | undefined;
460
461
  /**
461
462
  * A where clause for the query. Any legal SQL where clause operating on the fields in the layer is allowed.
462
463
  * Be sure to have the correct sequence of single and double quotes when writing the where clause in JavaScript.
@@ -177,4 +177,13 @@ export type DateBinTimeUnit = "years" | "quarters" | "months" | "weeks" | "days"
177
177
  * @see [GeneralizeParameters.deviationUnit](https://developers.arcgis.com/javascript/latest/references/core/rest/support/GeneralizeParameters/#deviationUnit)
178
178
  * @since 5.0
179
179
  */
180
- export type DeviationUnit = Exclude<LengthUnit, "us-feet"> | "decimal-degrees";
180
+ export type DeviationUnit = Exclude<LengthUnit, "us-feet"> | "decimal-degrees";
181
+
182
+ /**
183
+ * Distance units supported by spatial queries and returned feature distances.
184
+ *
185
+ * @since 6.0
186
+ * @see [Query.units](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#units)
187
+ * @see [OutDistance.outDistanceUnit](https://developers.arcgis.com/javascript/latest/references/core/rest/support/OutDistance/#outDistanceUnit)
188
+ */
189
+ export type QueryUnits = "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
@@ -21,6 +21,7 @@ import type FlowRenderer from "../../../renderers/FlowRenderer.js";
21
21
  import type RotationVariable from "../../../renderers/visualVariables/RotationVariable.js";
22
22
  import type { VisualVariable } from "../../../renderers/types.js";
23
23
  import type { RendererLegendOptionsProperties } from "../../../renderers/support/RendererLegendOptions.js";
24
+ import type { FlowTheme } from "../../../renderers/support/types.js";
24
25
  import type { RasterRendererParameters } from "./types.js";
25
26
  import type { SummaryStatisticsResult } from "../../statistics/types.js";
26
27
  import type { FlowScheme } from "../../symbology/types.js";
@@ -72,7 +73,7 @@ export interface FlowRendererParameters extends RasterRendererParameters {
72
73
  *
73
74
  * @default "flow-line"
74
75
  */
75
- theme?: "flow-line" | "wave-front" | null;
76
+ theme?: FlowTheme | null;
76
77
  /**
77
78
  * When `true`, the color of streamlines will vary
78
79
  * depending on the magnitude of the data. Flow lines with stronger
@@ -29,6 +29,7 @@ import type { DateProperties } from "../../intl/date.js";
29
29
  import type { ClassificationMethod, NormalizationType, VisualVariableLegendOptions as IVisualVariableLegendOptions } from "../../renderers/types.js";
30
30
  import type { StandardDeviationInterval, RendererLegendTitleOption } from "../../renderers/support/types.js";
31
31
  import type { SupportedLayer, SmartMappingTimeUnit } from "../types.js";
32
+ import type { ColorMixModeType as SharedColorMixModeType, SymbolType as SharedSymbolType } from "./types.js";
32
33
  import type { ClassBreaksResult, SummaryStatisticsResult } from "../statistics/types.js";
33
34
  import type { FeatureLikeLayerOrAdapter } from "../support/adapters/types.js";
34
35
  import type { BasemapTheme, ColorScheme } from "../symbology/types.js";
@@ -567,9 +568,11 @@ export interface VisualVariableResult extends VisualVariableResultBase {
567
568
  authoringInfo: AuthoringInfo;
568
569
  }
569
570
 
570
- export type SymbolType = "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
571
+ /** @deprecated since 6.0. Use [SymbolType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#SymbolType) instead. */
572
+ export type SymbolType = SharedSymbolType;
571
573
 
572
- export type ColorMixModeType = "tint" | "replace" | "multiply";
574
+ /** @deprecated since 6.0. Use [ColorMixModeType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#ColorMixModeType) instead. */
575
+ export type ColorMixModeType = SharedColorMixModeType;
573
576
 
574
577
  export interface ContinuousRendererParameters extends VisualVariableParametersBase {
575
578
  /**
@@ -593,7 +596,7 @@ export interface ContinuousRendererParameters extends VisualVariableParametersBa
593
596
  *
594
597
  * @default 2d
595
598
  */
596
- symbolType?: SymbolType | null;
599
+ symbolType?: SharedSymbolType | null;
597
600
  /**
598
601
  * Enables the `defaultSymbol` on the renderer and assigns it to features
599
602
  * with no value and features that do not fall within the configured data range.
@@ -615,7 +618,7 @@ export interface ContinuousRendererParameters extends VisualVariableParametersBa
615
618
  *
616
619
  * @default replace
617
620
  */
618
- colorMixMode?: ColorMixModeType | null;
621
+ colorMixMode?: SharedColorMixModeType | null;
619
622
  /**
620
623
  * For polygon layers only. Indicates whether the
621
624
  * polygon outline width should vary based on view scale. When set, a valid [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/)
@@ -772,7 +775,7 @@ export interface ClassBreaksRendererParameters extends AbortOptions {
772
775
  *
773
776
  * @default 2d
774
777
  */
775
- symbolType?: SymbolType | null;
778
+ symbolType?: SharedSymbolType | null;
776
779
  /**
777
780
  * Enables the `defaultSymbol` on the renderer and assigns it to features
778
781
  * with no value and features that do not fall within the configured data range.
@@ -794,7 +797,7 @@ export interface ClassBreaksRendererParameters extends AbortOptions {
794
797
  *
795
798
  * @default replace
796
799
  */
797
- colorMixMode?: ColorMixModeType | null;
800
+ colorMixMode?: SharedColorMixModeType | null;
798
801
  /**
799
802
  * For polygon layers only. Indicates whether the
800
803
  * polygon outline width should vary based on view scale. When set, a valid [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/)
@@ -1051,7 +1054,7 @@ export interface AgeRendererParameters extends AbortOptions {
1051
1054
  *
1052
1055
  * @default 2d
1053
1056
  */
1054
- symbolType?: SymbolType | null;
1057
+ symbolType?: SharedSymbolType | null;
1055
1058
  /**
1056
1059
  * Enables the `defaultSymbol` on the renderer and assigns it to features
1057
1060
  * with no value.
@@ -1073,7 +1076,7 @@ export interface AgeRendererParameters extends AbortOptions {
1073
1076
  *
1074
1077
  * @default replace
1075
1078
  */
1076
- colorMixMode?: ColorMixModeType | null;
1079
+ colorMixMode?: SharedColorMixModeType | null;
1077
1080
  /**
1078
1081
  * For polygon layers only. Indicates whether the
1079
1082
  * polygon outline width should vary based on view scale. When set, a valid [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/)
@@ -11,6 +11,7 @@
11
11
  import type FeatureFilter from "../../layers/support/FeatureFilter.js";
12
12
  import type SimpleRenderer from "../../renderers/SimpleRenderer.js";
13
13
  import type { AbortOptions } from "../../core/promiseUtils.js";
14
+ import type { ColorMixModeType as SharedColorMixModeType, SymbolType as SharedSymbolType } from "./types.js";
14
15
  import type { FeatureLikeLayerOrAdapter } from "../support/adapters/types.js";
15
16
  import type { LocationScheme, BasemapTheme } from "../symbology/types.js";
16
17
  import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
@@ -44,9 +45,11 @@ import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
44
45
  */
45
46
  export function createRenderer(parameters: RendererParameters): Promise<RendererResult>;
46
47
 
47
- export type SymbolType = "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
48
+ /** @deprecated since 6.0. Use [SymbolType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#SymbolType) instead. */
49
+ export type SymbolType = SharedSymbolType;
48
50
 
49
- export type ColorMixModeType = "tint" | "replace" | "multiply";
51
+ /** @deprecated since 6.0. Use [ColorMixModeType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#ColorMixModeType) instead. */
52
+ export type ColorMixModeType = SharedColorMixModeType;
50
53
 
51
54
  export interface RendererParameters extends AbortOptions {
52
55
  /**
@@ -83,7 +86,7 @@ export interface RendererParameters extends AbortOptions {
83
86
  *
84
87
  * @default 2d
85
88
  */
86
- symbolType?: SymbolType | null;
89
+ symbolType?: SharedSymbolType | null;
87
90
  /**
88
91
  * **This option only applies to generating renderers for mesh SceneLayers**.
89
92
  * Specifies how the symbol's color is applied to the geometry color/texture. See the documentation in
@@ -98,7 +101,7 @@ export interface RendererParameters extends AbortOptions {
98
101
  *
99
102
  * @default replace
100
103
  */
101
- colorMixMode?: ColorMixModeType | null;
104
+ colorMixMode?: SharedColorMixModeType | null;
102
105
  /**
103
106
  * For polygon layers only. Indicates whether the
104
107
  * polygon outline width should vary based on view scale. When set, a valid [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/)
@@ -34,6 +34,7 @@ import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
34
34
  import type { AbortOptions } from "../../core/promiseUtils.js";
35
35
  import type { RendererLegendTitleOption } from "../../renderers/support/types.js";
36
36
  import type { UniqueValueInfo } from "./type.js";
37
+ import type { ColorMixModeType as SharedColorMixModeType, SymbolType as SharedSymbolType } from "./types.js";
37
38
  import type { FeatureLikeLayerOrAdapter } from "../support/adapters/types.js";
38
39
  import type { PredominanceScheme, BasemapTheme } from "../symbology/types.js";
39
40
 
@@ -107,9 +108,11 @@ import type { PredominanceScheme, BasemapTheme } from "../symbology/types.js";
107
108
  */
108
109
  export function createRenderer(parameters: RendererParameters): Promise<RendererResult>;
109
110
 
110
- export type SymbolType = "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
111
+ /** @deprecated since 6.0. Use [SymbolType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#SymbolType) instead. */
112
+ export type SymbolType = SharedSymbolType;
111
113
 
112
- export type ColorMixModeType = "tint" | "replace" | "multiply";
114
+ /** @deprecated since 6.0. Use [ColorMixModeType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#ColorMixModeType) instead. */
115
+ export type ColorMixModeType = SharedColorMixModeType;
113
116
 
114
117
  export interface FieldInfo {
115
118
  /** The name of a numeric field. */
@@ -230,7 +233,7 @@ export interface RendererParameters extends AbortOptions {
230
233
  *
231
234
  * @default 2d
232
235
  */
233
- symbolType?: SymbolType | null;
236
+ symbolType?: SharedSymbolType | null;
234
237
  /**
235
238
  * **This option only applies to generating renderers for mesh SceneLayers**.
236
239
  * Specifies how the symbol's color is applied to the geometry color/texture. See the documentation in
@@ -245,7 +248,7 @@ export interface RendererParameters extends AbortOptions {
245
248
  *
246
249
  * @default replace
247
250
  */
248
- colorMixMode?: ColorMixModeType | null;
251
+ colorMixMode?: SharedColorMixModeType | null;
249
252
  /** The view instance in which the visualization will be rendered. */
250
253
  view?: MapViewOrSceneView | null;
251
254
  }
@@ -54,6 +54,7 @@ import type { AbortOptions } from "../../core/promiseUtils.js";
54
54
  import type { RelationshipNumClasses } from "../../renderers/types.js";
55
55
  import type { RendererLegendOptionsProperties } from "../../renderers/support/RendererLegendOptions.js";
56
56
  import type { UniqueValueInfo } from "./type.js";
57
+ import type { ColorMixModeType as SharedColorMixModeType, SymbolType as SharedSymbolType } from "./types.js";
57
58
  import type { ClassBreak, ClassBreaksResult } from "../statistics/types.js";
58
59
  import type { FeatureLikeLayerOrAdapter } from "../support/adapters/types.js";
59
60
  import type { RelationshipScheme, BasemapTheme } from "../symbology/types.js";
@@ -111,9 +112,11 @@ export function updateRenderer(parameters: UpdateRendererParameters): Promise<Un
111
112
  */
112
113
  export function createRenderer(parameters: RendererParameters): Promise<RendererResult>;
113
114
 
114
- export type SymbolType = "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
115
+ /** @deprecated since 6.0. Use [SymbolType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#SymbolType) instead. */
116
+ export type SymbolType = SharedSymbolType;
115
117
 
116
- export type ColorMixModeType = "tint" | "replace" | "multiply";
118
+ /** @deprecated since 6.0. Use [ColorMixModeType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#ColorMixModeType) instead. */
119
+ export type ColorMixModeType = SharedColorMixModeType;
117
120
 
118
121
  export type FocusType = "HH" | "HL" | "LH" | "LL";
119
122
 
@@ -259,7 +262,7 @@ export interface RendererParameters extends AbortOptions {
259
262
  *
260
263
  * @default 2d
261
264
  */
262
- symbolType?: SymbolType | null;
265
+ symbolType?: SharedSymbolType | null;
263
266
  /**
264
267
  * **This option only applies to generating renderers for mesh SceneLayers**.
265
268
  * Specifies how the symbol's color is applied to the geometry color/texture. See the documentation in
@@ -274,7 +277,7 @@ export interface RendererParameters extends AbortOptions {
274
277
  *
275
278
  * @default replace
276
279
  */
277
- colorMixMode?: ColorMixModeType | null;
280
+ colorMixMode?: SharedColorMixModeType | null;
278
281
  /** The view instance in which the visualization will be rendered. */
279
282
  view: MapViewOrSceneView | null;
280
283
  }
@@ -28,6 +28,7 @@ import type { DateProperties } from "../../intl/date.js";
28
28
  import type { ClassificationMethod, NormalizationType, VisualVariableLegendOptions } from "../../renderers/types.js";
29
29
  import type { StandardDeviationInterval, RendererLegendTitleOption } from "../../renderers/support/types.js";
30
30
  import type { SmartMappingTimeUnit } from "../types.js";
31
+ import type { SymbolType as SharedSymbolType } from "./types.js";
31
32
  import type { SpikeSymbolStyle } from "./support/spikeUtils.js";
32
33
  import type { ClassBreaksResult, SummaryStatisticsResult } from "../statistics/types.js";
33
34
  import type { FeatureLikeLayerOrAdapter } from "../support/adapters/types.js";
@@ -536,7 +537,8 @@ export interface VisualVariableResult extends VisualVariableResultBase {
536
537
  authoringInfo: AuthoringInfo;
537
538
  }
538
539
 
539
- export type SymbolType = "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
540
+ /** @deprecated since 6.0. Use [SymbolType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#SymbolType) instead. */
541
+ export type SymbolType = SharedSymbolType;
540
542
 
541
543
  export interface SpikeOptions {
542
544
  /**
@@ -602,7 +604,7 @@ export interface ContinuousRendererParameters extends VisualVariableParamsBase {
602
604
  *
603
605
  * @default 2d
604
606
  */
605
- symbolType?: SymbolType | null;
607
+ symbolType?: SharedSymbolType | null;
606
608
  /**
607
609
  * Enables the `defaultSymbol` on the renderer and assigns it to features
608
610
  * with no value and features that do not fall within the configured data range.
@@ -833,7 +835,7 @@ export interface ClassBreaksRendererParameters extends AbortOptions {
833
835
  *
834
836
  * @default 2d
835
837
  */
836
- symbolType?: SymbolType | null;
838
+ symbolType?: SharedSymbolType | null;
837
839
  /**
838
840
  * Enables the `defaultSymbol` on the renderer and assigns it to features
839
841
  * with no value and features that do not fall within the configured data range.
@@ -1003,7 +1005,7 @@ export interface AgeRendererParameters extends AbortOptions {
1003
1005
  *
1004
1006
  * @default 2d
1005
1007
  */
1006
- symbolType?: SymbolType | null;
1008
+ symbolType?: SharedSymbolType | null;
1007
1009
  /**
1008
1010
  * Enables the `defaultSymbol` on the renderer and assigns it to features
1009
1011
  * with no value.
@@ -23,6 +23,7 @@ import type UniqueValueRenderer from "../../renderers/UniqueValueRenderer.js";
23
23
  import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
24
24
  import type { AbortOptions } from "../../core/promiseUtils.js";
25
25
  import type { RendererLegendOptionsProperties } from "../../renderers/support/RendererLegendOptions.js";
26
+ import type { ColorMixModeType as SharedColorMixModeType, SymbolType as SharedSymbolType } from "./types.js";
26
27
  import type { UniqueValuesResult } from "../statistics/types.js";
27
28
  import type { FeatureLikeLayerOrAdapter } from "../support/adapters/types.js";
28
29
  import type { BasemapTheme, TypeScheme } from "../symbology/types.js";
@@ -125,9 +126,11 @@ export function createRenderer(parameters: RendererParameters): Promise<Renderer
125
126
  */
126
127
  export function createPCClassRenderer(parameters: PCClassRendererParameters): Promise<PCClassRendererResult>;
127
128
 
128
- export type SymbolType = "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
129
+ /** @deprecated since 6.0. Use [SymbolType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#SymbolType) instead. */
130
+ export type SymbolType = SharedSymbolType;
129
131
 
130
- export type ColorMixModeType = "tint" | "replace" | "multiply";
132
+ /** @deprecated since 6.0. Use [ColorMixModeType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#ColorMixModeType) instead. */
133
+ export type ColorMixModeType = SharedColorMixModeType;
131
134
 
132
135
  export interface RendererParameters extends AbortOptions {
133
136
  /**
@@ -277,7 +280,7 @@ export interface RendererParameters extends AbortOptions {
277
280
  *
278
281
  * @default 2d
279
282
  */
280
- symbolType?: SymbolType | null;
283
+ symbolType?: SharedSymbolType | null;
281
284
  /**
282
285
  * **This option only applies to generating renderers for mesh SceneLayers**.
283
286
  * Specifies how the symbol's color is applied to the geometry color/texture. See the documentation in
@@ -292,7 +295,7 @@ export interface RendererParameters extends AbortOptions {
292
295
  *
293
296
  * @default replace
294
297
  */
295
- colorMixMode?: ColorMixModeType | null;
298
+ colorMixMode?: SharedColorMixModeType | null;
296
299
  /**
297
300
  * The view where the input layer is rendered. This method
298
301
  * inspects the view's background (i.e. basemap, web map background, or view container) to determine optimal
@@ -0,0 +1,15 @@
1
+ /** Shared types for Smart Mapping renderer creation. */
2
+
3
+ /**
4
+ * Symbol types supported when creating Smart Mapping renderers.
5
+ *
6
+ * @since 6.0
7
+ */
8
+ export type SymbolType = "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
9
+
10
+ /**
11
+ * How a symbol's color is combined with its material color when creating Smart Mapping renderers.
12
+ *
13
+ * @since 6.0
14
+ */
15
+ export type ColorMixModeType = "tint" | "replace" | "multiply";
@@ -36,6 +36,7 @@ import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
36
36
  import type { AbortOptions } from "../../core/promiseUtils.js";
37
37
  import type { VisualVariableLegendOptions } from "../../renderers/types.js";
38
38
  import type { UnivariateSymbolStyle, UnivariateTheme } from "../../renderers/support/types.js";
39
+ import type { SymbolType as SharedSymbolType } from "./types.js";
39
40
  import type { SummaryStatisticsResult } from "../statistics/types.js";
40
41
  import type { FeatureLikeLayerOrAdapter } from "../support/adapters/types.js";
41
42
  import type { BasemapTheme, ColorScheme, SizeScheme } from "../symbology/types.js";
@@ -444,7 +445,8 @@ export interface VisualVariablesResult extends VisualVariablesResultBase {
444
445
  authoringInfo: AuthoringInfo;
445
446
  }
446
447
 
447
- export type SymbolType = "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
448
+ /** @deprecated since 6.0. Use [SymbolType](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/renderers/types/#SymbolType) instead. */
449
+ export type SymbolType = SharedSymbolType;
448
450
 
449
451
  export interface SymbolOptions {
450
452
  /** Sets above and below symbols based on pre-defined named symbol pairs. */
@@ -474,7 +476,7 @@ export interface RendererParameters extends VisualVariablesParamsBase {
474
476
  *
475
477
  * @default 2d
476
478
  */
477
- symbolType?: SymbolType;
479
+ symbolType?: SharedSymbolType;
478
480
  /**
479
481
  * Enables the `defaultSymbol` on the renderer and assigns it to features
480
482
  * with no value and features that do not fall within the configured data range.
@@ -7,6 +7,7 @@
7
7
  * @see [flowRendererCreator](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/raster/renderers/flow/)
8
8
  */
9
9
  import type Basemap from "../../Basemap.js";
10
+ import type { FlowTheme } from "../../renderers/support/types.js";
10
11
  import type { FlowScheme, FlowSchemes, BasemapTheme, Theme } from "./types.js";
11
12
 
12
13
  /**
@@ -107,7 +108,7 @@ export interface GetSchemesParameters {
107
108
  *
108
109
  * @default "flow-line"
109
110
  */
110
- theme?: "flow-line" | "wave-front" | null;
111
+ theme?: FlowTheme | null;
111
112
  /**
112
113
  * If you have a
113
114
  * non-Esri basemap (e.g. a VectorTileLayer basemap with a custom style) or no basemap at all, use this parameter to indicate
@@ -1,4 +1,5 @@
1
1
  import type Color from "../../Color.js";
2
+ import type { FlowTheme } from "../../renderers/support/types.js";
2
3
 
3
4
  /**
4
5
  * Describes a theme that pairs well with the given basemaps.
@@ -1760,7 +1761,7 @@ export interface FlowScheme {
1760
1761
  *
1761
1762
  * @since 5.0
1762
1763
  */
1763
- theme: "flow-line" | "wave-front";
1764
+ theme: FlowTheme;
1764
1765
  /**
1765
1766
  * The suggested color of the flow lines if a color visual variable is not desired.
1766
1767
  *
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{Placement as e}from"./CIMPlacements.js";function t(e,t){e[4]=t}class n{constructor(t,n=!0,r=!0,i=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!n&&t.geometryType===`esriGeometryPolygon`||!r&&t.geometryType===`esriGeometryPolyline`?null:t,this.geomUnitsPerPoint=i,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new e}next(){if(!this.geometryCursor)return null;let e=this.processMultiPath(this.geometryCursor);if(this.iterateMultiPath&&e||(this.geometryCursor=null),!e)return null;let t=e.getAngle();if(this._angleToLine&&this._keepUpright&&Math.abs(t)>.5*Math.PI){let n=t+Math.PI,r=Math.atan2(Math.sin(n),Math.cos(n));Number.isNaN(r)||e.setRotate(r)}return e}processMultiPath(e){for(;this.iteratePath||e.pathIndex<e.totalSize-1;){this.iteratePath||e.nextPath(),this.iterateMultiPath=!0;let t=this.processPath(e);if(t)return t}return this.iterateMultiPath=!1,null}}class r{constructor(e,t,n,r=0){this.isClosed=!1,this.inputGeometries=e,this.acceptPolygon=t,this.acceptPolyline=n,this.geomUnitsPerPoint=r,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let e=this.inputGeometries.next();for(;e&&(this.isClosed=this.acceptPolygon&&e.geometryType===`esriGeometryPolygon`||e.geometryType===`esriGeometryEnvelope`,this.multiPathCursor=e,!this.multiPathCursor);)e=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();let e=this.processPath(this.multiPathCursor);if(e)return e}this.multiPathCursor=null}}}export{r as PathEffectCursor,n as PathTransformationCursor,t as setId};
2
+ import{Placement as e}from"./CIMPlacements.js";function t(e,t){e[4]=t}function n(e){if(!(Math.abs(e)>.5*Math.PI))return null;let t=e+Math.PI,n=Math.atan2(Math.sin(t),Math.cos(t));return Number.isNaN(n)?null:n}class r{constructor(t,n=!0,r=!0,i=0){this._angleToLine=!0,this._keepUpright=!1,this.isClosed=!1,this.geometryCursor=null,this.geometryCursor=!n&&t.geometryType===`esriGeometryPolygon`||!r&&t.geometryType===`esriGeometryPolyline`?null:t,this.geomUnitsPerPoint=i,this.iterateMultiPath=!1,this.iteratePath=!1,this.internalPlacement=new e}next(){if(!this.geometryCursor)return null;let e=this.processMultiPath(this.geometryCursor);if(this.iterateMultiPath&&e||(this.geometryCursor=null),!e)return null;let t=e.getAngle(),r=this._angleToLine&&this._keepUpright?n(t):null;return r!=null&&e.setRotate(r),e}processMultiPath(e){for(;this.iteratePath||e.pathIndex<e.totalSize-1;){this.iteratePath||e.nextPath(),this.iterateMultiPath=!0;let t=this.processPath(e);if(t)return t}return this.iterateMultiPath=!1,null}}class i{constructor(e,t,n,r=0){this.isClosed=!1,this.inputGeometries=e,this.acceptPolygon=t,this.acceptPolyline=n,this.geomUnitsPerPoint=r,this.iteratePath=!1,this.multiPathCursor=null}next(){for(;;){if(!this.multiPathCursor){let e=this.inputGeometries.next();for(;e&&(this.isClosed=this.acceptPolygon&&e.geometryType===`esriGeometryPolygon`||e.geometryType===`esriGeometryEnvelope`,this.multiPathCursor=e,!this.multiPathCursor);)e=this.inputGeometries.next();if(!this.multiPathCursor)return null}for(;this.iteratePath||this.multiPathCursor.nextPath();){this.multiPathCursor.seekPathStart();let e=this.processPath(this.multiPathCursor);if(e)return e}this.multiPathCursor=null}}}export{i as PathEffectCursor,r as PathTransformationCursor,n as getUprightAngle,t as setId};
@@ -32,6 +32,7 @@
32
32
  * }
33
33
  * ```
34
34
  *
35
+ * @deprecated since version 4.34. Import individual element modules directly instead.
35
36
  * @since 4.31
36
37
  * @see [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/)
37
38
  * @see [AttributeTableAttachmentElement](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableAttachmentElement/)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{MinPriority as e}from"../../../../core/MemCache.js";import{throwIfAborted as t}from"../../../../core/promiseUtils.js";import{fromValues as n}from"../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{create as r}from"../../../../geometry/support/aaBoundingRect.js";import{tileSizeInPixels as i}from"./constants.js";import{TileHandler as a}from"./TileHandler.js";import{VectorTile as o}from"./VectorTile.js";import s from"../../tiling/TileInfoViewPOT.js";import c from"../../tiling/TileKey.js";class l extends a{constructor(e,t,n,r,i){super(e,t,n,e.tileInfo.lods.length-1,r),this._memCache=i,this.type=`TileHandler3D`,this._vectorTiles=new Map,this._ongoingTileRequests=new Map,this._ongoingRequestToController=new Map,this.tilingScheme=new s(e.tileInfo,e.fullExtent)}destroy(){super.destroy(),this._ongoingRequestToController.forEach(e=>e.abort()),this._ongoingRequestToController.clear(),this._ongoingTileRequests.clear(),this._vectorTiles.clear()}async getVectorTile(a,s){let l=new c(a[0],a[1],a[2],0),u=this._vectorTiles.get(l.id)??this._memCache.get(l.id);if(u)return u.retain(),u;let d=await this._getVectorTileData(l);if(t(s),!this._layer)return null;if(u=this._vectorTiles.get(l.id)??this._memCache.get(l.id),u)return u.retain(),u;let f=this._layer.tileInfo.getTileBounds(r(),l),p=this.tilingScheme.getTileResolution(a[0]);return u=new o(l,p,f[0],f[3],i,i,this._styleRepository,this),u.setData(d),d&&(u.retain(),this._memCache.put(l.id,u,e),this._vectorTiles.set(l.id,u)),u.neededForCoverage=!0,u.transforms.tileUnitsToPixels=n(1/8,0,0,0,1/8,0,0,0,1),u}updateTileSize(e){this._memCache.updateSize(e.id)}onDisposeTile(e){this._vectorTiles.delete(e.id)}_getVectorTileData(e){let t=e.id;if(this._ongoingTileRequests.has(t))return this._ongoingTileRequests.get(t);let n=new AbortController,r={signal:n.signal},i=this._getParsedVectorTileData(e,r).then(e=>(this._ongoingTileRequests.delete(t),this._ongoingRequestToController.delete(t),e)).catch(()=>(this._ongoingTileRequests.delete(t),this._ongoingRequestToController.delete(t),null));return this._ongoingTileRequests.set(t,i),this._ongoingRequestToController.set(t,n),i}_getParsedVectorTileData(e,t){return this.fetchTileData(e,t).then(n=>this.parseTileData({key:e,data:n},t))}}export{l as default};
2
+ import{MinPriority as e}from"../../../../core/MemCache.js";import{throwIfAborted as t}from"../../../../core/promiseUtils.js";import{fromValues as n}from"../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{create as r}from"../../../../geometry/support/aaBoundingRect.js";import{tileSizeInPixels as i}from"./constants.js";import{TileHandler as a}from"./TileHandler.js";import{VectorTile as o}from"./VectorTile.js";import s from"../../tiling/TileInfoViewPOT.js";import c from"../../tiling/TileKey.js";class l extends a{constructor(e,t,n,r,i){super(e,t,n,e.tileInfo.lods.length-1,r),this._memCache=i,this.type=`TileHandler3D`,this._vectorTiles=new Map,this._ongoingTileRequests=new Map,this._ongoingRequestToController=new Map,this.tilingScheme=new s(e.tileInfo,e.fullExtent)}destroy(){super.destroy(),this._ongoingRequestToController.forEach(e=>e.abort()),this._ongoingRequestToController.clear(),this._ongoingTileRequests.clear(),this._vectorTiles.clear()}async getVectorTile(a,s){let l=new c(a[0],a[1],a[2],0),u=this._vectorTiles.get(l.id)??this._memCache.get(l.id);if(u)return u.retain(),u;let d=await this._getVectorTileData(l);if(t(s),!this._layer||!d)return null;if(u=this._vectorTiles.get(l.id)??this._memCache.get(l.id),u)return u.retain(),u;let f=this._layer.tileInfo.getTileBounds(r(),l),p=this.tilingScheme.getTileResolution(a[0]);return u=new o(l,p,f[0],f[3],i,i,this._styleRepository,this),u.setData(d),u.retain(),this._memCache.put(l.id,u,e),this._vectorTiles.set(l.id,u),u.neededForCoverage=!0,u.transforms.tileUnitsToPixels=n(1/8,0,0,0,1/8,0,0,0,1),u}updateTileSize(e){this._memCache.updateSize(e.id)}onDisposeTile(e){this._vectorTiles.delete(e.id)}_getVectorTileData(e){let t=e.id;if(this._ongoingTileRequests.has(t))return this._ongoingTileRequests.get(t);let n=new AbortController,r={signal:n.signal},i=this._getParsedVectorTileData(e,r).then(e=>(this._ongoingTileRequests.delete(t),this._ongoingRequestToController.delete(t),e)).catch(()=>(this._ongoingTileRequests.delete(t),this._ongoingRequestToController.delete(t),null));return this._ongoingTileRequests.set(t,i),this._ongoingRequestToController.set(t,n),i}_getParsedVectorTileData(e,t){return this.fetchTileData(e,t).then(n=>this.parseTileData({key:e,data:n},t))}}export{l as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{onePointInPixels as e}from"../../../../../../../core/screenUtils.js";import{GeometryCursor as t}from"../../../../../../../geometry/GeometryCursor.js";import{maxTileCoordValue as n}from"../../../../../../../symbols/cim/constants.js";import{CIMMarkerPlacementHelper as r}from"../../../../../../../symbols/cim/placements/CIMMarkerPlacementHelper.js";import{spritePadding as i,tileSize as a}from"../../../definitions.js";import{AAnimatedMeshWriter as o}from"./AnimatedMeshWriter.js";import{angle as s,sizing as c,animationPointerAndBaseSizeAndReferenceSize as l,uv as u,offset as d,pos as f,bitset as p,id as m,lineLength as h,value1Position2Value2 as g,zoomRange as _}from"./attributes.js";import{clipWithVertexInterpolation as v}from"./clipping.js";import{createComputedAnimatedMeshParams as y}from"./ComputedAnimatedParams.js";function b(e,t){let n=[],r=0,i=0;for(;e.nextPath();){i=t?0:r,e.nextPoint();let{x:a,y:o}=e,s=[{x:a,y:o,attributes:[i]}];for(;e.nextPoint();){let{x:t,y:n}=e,r=t-a,c=n-o,l=Math.sqrt(r*r+c*c);i+=l,s.push({x:t,y:n,attributes:[i]}),a=t,o=n}s.length>1&&n.push(s),r=i}return{lineData:n,totalDistance:r}}class x extends o{get vertexSpec(){return{createComputedParams:y,optionalAttributes:{zoomRange:_,value1Position2Value2:g,lineLength:h},attributes:{id:m,bitset:p,pos:f,offset:d.marker,uv:u.marker,animationPointerAndBaseSizeAndReferenceSize:l,sizing:c,angle:s}}}_write(e,{target:n,effect:r}){let i=r?.geometry,{textureBinding:a}=this.evaluatedMeshParams.sprite;e.recordStart(this.instanceId,this.attributeLayout,a);let o=n.getDisplayId();if(this.shift&&n.geometryType===`esriGeometryPolyline`){if(!i){let r=t.fromFeatureSetReaderCIM(n);r&&this._writeParticles(e,n,r)}}else if(this.evaluatedMeshParams.placement!=null)this._writePlacedMarkers(e,n);else if(n.geometryType===`esriGeometryPolygon`){let t=n.readCentroidForDisplay();if(!t)return;let[r,i]=t.coords;this._writeQuad(e,o,r,i)}else if(n.geometryType===`esriGeometryPoint`){let t=n.readXForDisplay(),r=n.readYForDisplay();this._writeQuad(e,o,t,r)}else{let t=n.readGeometryForDisplay();t&&t.forEachVertex((t,n)=>{this._writeQuad(e,o,t,n)})}e.recordEnd()}_writePlacedMarkers(i,a){let o=t.fromFeatureSetReaderCIM(a)?.clone();if(!o)return;let s=r.getPlacement(o,-1,this.evaluatedMeshParams.placement,e,i.id);if(!s)return;let c=a.getDisplayId(),l=s.next(),u=null;for(;l!=null;){let e=l.tx,t=-l.ty;if(Math.abs(e)>n||Math.abs(t)>n){l=s.next();continue}let r=-l.getAngle();i.recordBounds(e,t,64,64),this.shift?u&&this._writeQuad(i,c,u[0],u[1],void 0,r):this._writeQuad(i,c,e,t,void 0,r),u=[e,t],l=s.next()}}_writeParticles(e,t,n){let r=t.getDisplayId(),{placement:i}=this.evaluatedMeshParams,o=i?.placePerPart??!1,{lineData:s,totalDistance:c}=b(n,o);if(s.length===0)return;let l=this.evaluatedMeshParams.baseSize,u={x:-l,y:-l,width:a+2*l,height:a+2*l},d=s.flatMap(e=>{let t=o?e[e.length-1].attributes[0]:c;return S(v(e,u),t)});for(let{particles:t,lineLength:n}of d){let a=i=>{for(let a of t){let{a:t,b:o}=a;this._writeQuad(e,r,t.position[0],t.position[1],[t.distance-i,o.position[0],o.position[1],o.distance-i],this.evaluatedMeshParams.angleToLine?Math.atan2(t.direction[1],t.direction[0]):0,n,!0)}};if(!i||`placementTemplate`in i||i.type===`CIMMarkerPlacementOnVertices`){let e;if(i&&i.type!==`CIMMarkerPlacementOnVertices`)e=i.placementTemplate;else{e=[0];for(let n of t){let{a:t,b:r}=n,i=t.position[0]-r.position[0],a=t.position[1]-r.position[1],o=Math.sqrt(i*i+a*a);e.push(o)}}let r=-1*n;for(;r<2*n;)for(let t of e)r+=t,a(r)}else i.type===`CIMMarkerPlacementAtExtremities`?i.extremityPlacement===`JustBegin`?a(1):i.extremityPlacement===`JustEnd`?(a(n-1),a(-1)):i.extremityPlacement===`Both`&&(a(1),a(n-1)):i.type===`CIMMarkerPlacementOnLine`&&(i.relativeTo===`LineBeginning`?a(1):i.relativeTo===`LineEnd`?(a(n-1),a(-1)):i.relativeTo===`LineMiddle`&&a(n/2))}}_writeQuad(e,t,n,r,a,o=0,s=0,c=!1){let{rect:l}=this.evaluatedMeshParams.sprite,u=l.x+i,d=l.y+i,f=l.x+l.width-i,p=l.y+l.height-i,m=e.vertexCount();c||e.recordBounds(n,r,64,64);let h={texXmin:u,texYmin:d,texXmax:f,texYmax:p,value1Position2Value2:a,angle:o,lineLength:s};for(let i=0;i<4;i++)this._writeVertex(e,t,n,r,h);e.indexEnsureSize(6),e.indexWrite(m),e.indexWrite(m+1),e.indexWrite(m+2),e.indexWrite(m+1),e.indexWrite(m+3),e.indexWrite(m+2)}}function S(e,t){let n=[];for(let r of e){let e=[],{x:i,y:a}=r[0],o=r[0].attributes[0];for(let t=1;t<r.length;t++){let{x:n,y:s}=r[t],c=r[t].attributes[0],l=n-i,u=s-a,d=Math.sqrt(l*l+u*u);if(d>0)l/=d,u/=d;else continue;e.push({a:{position:[i,a],distance:o,direction:[l,u]},b:{position:[n,s],distance:c,direction:[l,u]}}),i=n,a=s,o=c}n.push({particles:e,lineLength:t})}return n}class C extends x{constructor(){super(...arguments),this.shift=!1}}class w extends x{constructor(){super(...arguments),this.shift=!0}}export{C as AnimatedMarkerMeshWriter,w as AnimatedMarkerShiftMeshWriter,b as convertToLineData};
2
+ import{onePointInPixels as e}from"../../../../../../../core/screenUtils.js";import{GeometryCursor as t}from"../../../../../../../geometry/GeometryCursor.js";import{getUprightAngle as n}from"../../../../../../../symbols/cim/CIMCursor.js";import{maxTileCoordValue as r}from"../../../../../../../symbols/cim/constants.js";import{CIMMarkerPlacementHelper as i}from"../../../../../../../symbols/cim/placements/CIMMarkerPlacementHelper.js";import{spritePadding as a,tileSize as o}from"../../../definitions.js";import{AAnimatedMeshWriter as s}from"./AnimatedMeshWriter.js";import{angle as c,sizing as l,animationPointerAndBaseSizeAndReferenceSize as u,uv as d,offset as f,pos as p,bitset as m,id as h,lineLength as g,value1Position2Value2 as _,zoomRange as v}from"./attributes.js";import{clipWithVertexInterpolation as y}from"./clipping.js";import{createComputedAnimatedMeshParams as b}from"./ComputedAnimatedParams.js";function x(e,t){let n=[],r=0,i=0;for(;e.nextPath();){i=t?0:r,e.nextPoint();let{x:a,y:o}=e,s=[{x:a,y:o,attributes:[i]}];for(;e.nextPoint();){let{x:t,y:n}=e,r=t-a,c=n-o,l=Math.sqrt(r*r+c*c);i+=l,s.push({x:t,y:n,attributes:[i]}),a=t,o=n}s.length>1&&n.push(s),r=i}return{lineData:n,totalDistance:r}}class S extends s{get vertexSpec(){return{createComputedParams:b,optionalAttributes:{zoomRange:v,value1Position2Value2:_,lineLength:g},attributes:{id:h,bitset:m,pos:p,offset:f.marker,uv:d.marker,animationPointerAndBaseSizeAndReferenceSize:u,sizing:l,angle:c}}}_write(e,{target:n,effect:r}){let i=r?.geometry,{textureBinding:a}=this.evaluatedMeshParams.sprite;e.recordStart(this.instanceId,this.attributeLayout,a);let o=n.getDisplayId();if(this.shift&&n.geometryType===`esriGeometryPolyline`){if(!i){let r=t.fromFeatureSetReaderCIM(n);r&&this._writeParticles(e,n,r)}}else if(this.evaluatedMeshParams.placement!=null)this._writePlacedMarkers(e,n);else if(n.geometryType===`esriGeometryPolygon`){let t=n.readCentroidForDisplay();if(!t)return;let[r,i]=t.coords;this._writeQuad(e,o,r,i)}else if(n.geometryType===`esriGeometryPoint`){let t=n.readXForDisplay(),r=n.readYForDisplay();this._writeQuad(e,o,t,r)}else{let t=n.readGeometryForDisplay();t&&t.forEachVertex((t,n)=>{this._writeQuad(e,o,t,n)})}e.recordEnd()}_writePlacedMarkers(n,a){let o=t.fromFeatureSetReaderCIM(a)?.clone();if(!o)return;let s=i.getPlacement(o,-1,this.evaluatedMeshParams.placement,e,n.id);if(!s)return;let c=a.getDisplayId(),l=s.next(),u=null;for(;l!=null;){let e=l.tx,t=-l.ty;if(Math.abs(e)>r||Math.abs(t)>r){l=s.next();continue}let i=-l.getAngle();n.recordBounds(e,t,64,64),this.shift?u&&this._writeQuad(n,c,u[0],u[1],void 0,i):this._writeQuad(n,c,e,t,void 0,i),u=[e,t],l=s.next()}}_writeParticles(e,t,r){let i=t.getDisplayId(),{placement:a}=this.evaluatedMeshParams,s=a?.placePerPart??!1,c=this.evaluatedMeshParams.angleToLine&&a!=null&&`keepUpright`in a&&a.keepUpright,{lineData:l,totalDistance:u}=x(r,s);if(l.length===0)return;let d=this.evaluatedMeshParams.baseSize,f={x:-d,y:-d,width:o+2*d,height:o+2*d},p=l.flatMap(e=>{let t=s?e[e.length-1].attributes[0]:u;return C(y(e,f),t)});for(let{particles:t,lineLength:r}of p){let o=a=>{for(let o of t){let{a:t,b:s}=o,l=this.evaluatedMeshParams.angleToLine?Math.atan2(t.direction[1],t.direction[0]):0,u=c?n(l):null;this._writeQuad(e,i,t.position[0],t.position[1],[t.distance-a,s.position[0],s.position[1],s.distance-a],u??l,r,!0)}};if(!a||`placementTemplate`in a||a.type===`CIMMarkerPlacementOnVertices`){let e;if(a&&a.type!==`CIMMarkerPlacementOnVertices`)e=a.placementTemplate;else{e=[0];for(let n of t){let{a:t,b:r}=n,i=t.position[0]-r.position[0],a=t.position[1]-r.position[1],o=Math.sqrt(i*i+a*a);e.push(o)}}let n=-1*r;for(;n<2*r;)for(let t of e)n+=t,o(n)}else a.type===`CIMMarkerPlacementAtExtremities`?a.extremityPlacement===`JustBegin`?o(1):a.extremityPlacement===`JustEnd`?(o(r-1),o(-1)):a.extremityPlacement===`Both`&&(o(1),o(r-1)):a.type===`CIMMarkerPlacementOnLine`&&(a.relativeTo===`LineBeginning`?o(1):a.relativeTo===`LineEnd`?(o(r-1),o(-1)):a.relativeTo===`LineMiddle`&&o(r/2))}}_writeQuad(e,t,n,r,i,o=0,s=0,c=!1){let{rect:l}=this.evaluatedMeshParams.sprite,u=l.x+a,d=l.y+a,f=l.x+l.width-a,p=l.y+l.height-a,m=e.vertexCount();c||e.recordBounds(n,r,64,64);let h={texXmin:u,texYmin:d,texXmax:f,texYmax:p,value1Position2Value2:i,angle:o,lineLength:s};for(let i=0;i<4;i++)this._writeVertex(e,t,n,r,h);e.indexEnsureSize(6),e.indexWrite(m),e.indexWrite(m+1),e.indexWrite(m+2),e.indexWrite(m+1),e.indexWrite(m+3),e.indexWrite(m+2)}}function C(e,t){let n=[];for(let r of e){let e=[],{x:i,y:a}=r[0],o=r[0].attributes[0];for(let t=1;t<r.length;t++){let{x:n,y:s}=r[t],c=r[t].attributes[0],l=n-i,u=s-a,d=Math.sqrt(l*l+u*u);if(d>0)l/=d,u/=d;else continue;e.push({a:{position:[i,a],distance:o,direction:[l,u]},b:{position:[n,s],distance:c,direction:[l,u]}}),i=n,a=s,o=c}n.push({particles:e,lineLength:t})}return n}class w extends S{constructor(){super(...arguments),this.shift=!1}}class T extends S{constructor(){super(...arguments),this.shift=!0}}export{w as AnimatedMarkerMeshWriter,T as AnimatedMarkerShiftMeshWriter,x as convertToLineData};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{i1616to32 as e,i16 as t}from"../../../number.js";import{AlignedVertexSpec as n}from"./AlignedVertexSpec.js";import{unpackDataView as r,packDataView as i}from"./dataViewUtils.js";import{bitsetGenericLabelInstance as a}from"../shaders/constants.js";class o{static fromVertexSpec(e,t){let r=n.fromVertexSpec(e,t);return new o(r)}constructor(e){this._spec=e,this.collisionVisibility=!1,this._packed=new Uint8Array(this._spec.stride*this._spec.packVertexCount),this._packedU32View=new Uint32Array(this._packed.buffer),this._dataView=new DataView(this._packed.buffer)}get attributeLayout(){return this._spec.attributeLayout}get stride(){return this._spec.stride}writeVertex(e,t,n,i,o,s){for(let e=0;e<this._spec.packVertexCount;e++){let c=e*this._spec.stride;this._packPosition(n,i,c),this._packId(t,c);let l=this._spec.bitset;if(s){if(l.packTessellation){let e=l.packTessellation(s,o,n,i);this._pack(e,l,c)}for(let e of this._spec.standardAttributes)if(e.packTessellation!=null){let t=e.packTessellation(s,o,n,i);this._pack(t,e,c)}else if(e.packAlternating?.packTessellation){let t=e.packAlternating.packTessellation(s,o,n,i);for(let n=0;n<this._spec.packVertexCount;n++){let r=t[n];this._pack(r,e,n*this._spec.stride)}}}let u=r(this._dataView,l,c),d=1<<a,f=u;this.collisionVisibility?f|=d:f&=~d,this._pack(f,l,c)}e.vertexWriteRegion(this._packedU32View)}pack(e,t){for(let n of this._spec.standardAttributes)if(n.pack&&typeof n.pack!=`string`){let r=n.pack(e,t);for(let e=0;e<this._spec.packVertexCount;e++)this._pack(r,n,e*this._spec.stride)}else if(n.packAlternating?.pack){let r=n.packAlternating.pack(e,t);for(let e=0;e<this._spec.packVertexCount;e++){let t=r[e];this._pack(t,n,e*this._spec.stride)}}}_packPosition(n,r,i){let{offset:a}=this._spec.position,o=this._spec.position.packPrecisionFactor??1,s=t(n*o),c=t(r*o),l=e(s,c);this._dataView.setUint32(i+a,l,!0)}_packId(e,t){let n=e*(this._spec.id.packPrecisionFactor??1),r=this._dataView.getUint32(t+this._spec.id.offset,!0)&4278190080;this._dataView.setUint32(t+this._spec.id.offset,n|r,!0)}_pack(e,t,n){i(this._dataView,e,t,n)}}export{o as MeshWriterVertexPack};
2
+ import{i1616to32 as e,i16 as t}from"../../../number.js";import{AlignedVertexSpec as n}from"./AlignedVertexSpec.js";import{unpackDataView as r,packDataView as i}from"./dataViewUtils.js";import{bitsetGenericLabelInstance as a}from"../shaders/constants.js";class o{static fromVertexSpec(e,t){let r=n.fromVertexSpec(e,t);return new o(r)}constructor(e){this._spec=e,this.collisionVisibility=!1,this._packed=new Uint8Array(this._spec.stride*this._spec.packVertexCount),this._packedU32View=new Uint32Array(this._packed.buffer),this._dataView=new DataView(this._packed.buffer)}get attributeLayout(){return this._spec.attributeLayout}get stride(){return this._spec.stride}writeVertex(e,t,n,i,o,s){for(let e=0;e<this._spec.packVertexCount;e++){let c=e*this._spec.stride;this._packPosition(n,i,c),this._packId(this.collisionVisibility?0:t,c);let l=this._spec.bitset;if(s){if(l.packTessellation){let e=l.packTessellation(s,o,n,i);this._pack(e,l,c)}for(let e of this._spec.standardAttributes)if(e.packTessellation!=null){let t=e.packTessellation(s,o,n,i);this._pack(t,e,c)}else if(e.packAlternating?.packTessellation){let t=e.packAlternating.packTessellation(s,o,n,i);for(let n=0;n<this._spec.packVertexCount;n++){let r=t[n];this._pack(r,e,n*this._spec.stride)}}}let u=r(this._dataView,l,c),d=1<<a,f=u;this.collisionVisibility?f|=d:f&=~d,this._pack(f,l,c)}e.vertexWriteRegion(this._packedU32View)}pack(e,t){for(let n of this._spec.standardAttributes)if(n.pack&&typeof n.pack!=`string`){let r=n.pack(e,t);for(let e=0;e<this._spec.packVertexCount;e++)this._pack(r,n,e*this._spec.stride)}else if(n.packAlternating?.pack){let r=n.packAlternating.pack(e,t);for(let e=0;e<this._spec.packVertexCount;e++){let t=r[e];this._pack(t,n,e*this._spec.stride)}}}_packPosition(n,r,i){let{offset:a}=this._spec.position,o=this._spec.position.packPrecisionFactor??1,s=t(n*o),c=t(r*o),l=e(s,c);this._dataView.setUint32(i+a,l,!0)}_packId(e,t){let n=e*(this._spec.id.packPrecisionFactor??1),r=this._dataView.getUint32(t+this._spec.id.offset,!0)&4278190080;this._dataView.setUint32(t+this._spec.id.offset,n|r,!0)}_pack(e,t,n){i(this._dataView,e,t,n)}}export{o as MeshWriterVertexPack};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"../../../webgl/BufferObject.js";import"../../../webgl/FramebufferObject.js";import"../../../webgl/Program.js";import"../../../../core/has.js";import"../../../webgl/Renderbuffer.js";import e from"../../../webgl/Texture.js";import"../../../../core/Logger.js";import"../../../webgl/enums.js";import"../../../webgl/Util.js";import{TextureDescriptor as t}from"../../../webgl/TextureDescriptor.js";function n(n,r,i){let a=new t(r.width,r.height);return a.dataType=r.dataType,r.depth&&(a.depth=r.depth),r.flipped&&(a.flipped=r.flipped),r.hasMipmap&&(a.hasMipmap=r.hasMipmap),a.internalFormat=r.internalFormat,r.isImmutable&&(a.isImmutable=r.isImmutable),r.isOpaque&&(a.isOpaque=r.isOpaque),r.maxAnisotropy&&(a.maxAnisotropy=r.maxAnisotropy),a.pixelFormat=r.pixelFormat,r.preMultiplyAlpha&&(a.preMultiplyAlpha=r.preMultiplyAlpha),r.samplingMode&&(a.samplingMode=r.samplingMode),r.target&&(a.target=r.target),r.unpackAlignment&&(a.unpackAlignment=r.unpackAlignment),r.wrapMode&&(a.wrapMode=r.wrapMode),new e(n,a,i)}export{n as createTexture};
2
+ import"../../../webgl/BufferObject.js";import"../../../webgl/FramebufferObject.js";import"../../../webgl/Program.js";import"../../../../core/has.js";import"../../../webgl/Renderbuffer.js";import e from"../../../webgl/Texture.js";import"../../../../core/Logger.js";import"../../../../core/memoryEstimations.js";import"../../../webgl/enums.js";import"../../../webgl/Util.js";import{TextureDescriptor as t}from"../../../webgl/TextureDescriptor.js";function n(n,r,i){let a=new t(r.width,r.height);return a.dataType=r.dataType,r.depth&&(a.depth=r.depth),r.flipped&&(a.flipped=r.flipped),r.hasMipmap&&(a.hasMipmap=r.hasMipmap),a.internalFormat=r.internalFormat,r.isImmutable&&(a.isImmutable=r.isImmutable),r.isOpaque&&(a.isOpaque=r.isOpaque),r.maxAnisotropy&&(a.maxAnisotropy=r.maxAnisotropy),a.pixelFormat=r.pixelFormat,r.preMultiplyAlpha&&(a.preMultiplyAlpha=r.preMultiplyAlpha),r.samplingMode&&(a.samplingMode=r.samplingMode),r.target&&(a.target=r.target),r.unpackAlignment&&(a.unpackAlignment=r.unpackAlignment),r.wrapMode&&(a.wrapMode=r.wrapMode),new e(n,a,i)}export{n as createTexture};