@arcgis/core 6.0.0-next.22 → 6.0.0-next.24

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 (433) hide show
  1. package/Graphic.d.ts +47 -14
  2. package/PopupTemplate.js +1 -1
  3. package/WebScene.d.ts +3 -0
  4. package/analysis/LineOfSightAnalysis.d.ts +1 -1
  5. package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
  6. package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
  7. package/analysis/Viewshed.d.ts +4 -4
  8. package/arcade/functions/string.js +1 -1
  9. package/arcgisGlobal.d.ts +0 -5
  10. package/assets/esri/core/workers/RemoteClient.js +1 -1
  11. package/assets/esri/core/workers/chunks/{3c277a0f099d67090d07.js → 02335385b1476fe322eb.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{db9921fbda556f142c4a.js → 04d55ed51e8b2683c4b4.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{435b90168f79c5587a07.js → 04ecf15524ff3838c01c.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{e2f42aec02bff33b25dd.js → 09300e74e5b014ce6269.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{fcb86d24fc7e0666b564.js → 096b2bf1c0d69d27f20c.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{612345f17f5eeb99ea8f.js → 0d9c4c6c571ce26d356b.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{0f725cf79ce00e790a7d.js → 1168bc5c9f0a7e1f63a2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{4911ce62421a6c3320b0.js → 13c64087be3b2985a21b.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{12a7997a40c77f5c9160.js → 151e5799ede763a03ee2.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{a64446a3328a7323e307.js → 173f89c55a5c79ff065b.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{8715661a838361d4211a.js → 1b24a40c0fa197014873.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{ca0d4ce453d8eb35467d.js → 277263466837e1673f56.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{b1d989b72203113a06fe.js → 2a36fe3f3f257a779a1b.js} +1 -1
  25. package/assets/esri/core/workers/chunks/2c0cb214fedb29487eef.js +1 -0
  26. package/assets/esri/core/workers/chunks/{ffcb99693182a621a93e.js → 2cf8172be83b10b11bdc.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{fcaf9450642fcef83286.js → 3048e74e6246324ce6fc.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{95b82cbbe355266c65d7.js → 30af63b3b750142faadb.js} +1 -1
  29. package/assets/esri/core/workers/chunks/30dcf2cfb31cb70de7df.js +1 -0
  30. package/assets/esri/core/workers/chunks/{9f0a973a0dd28953ce25.js → 371e2ddb88cc6b9a41e8.js} +1 -1
  31. package/assets/esri/core/workers/chunks/3fd5c3cd8457ddc68798.js +1 -0
  32. package/assets/esri/core/workers/chunks/{62fec1816907f070f079.js → 3fe04f13215474accb09.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{f47fe4433b05fca5c3ad.js → 42f6194633c2d879c8da.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{cddc3e285f763ccf33c2.js → 4869e097261ded90b8bb.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{d8a7eba588d374b2f961.js → 4bb9a5f4ca944d3fc206.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{8052da8be251c3ff2176.js → 4d93bed14945e3d34d5c.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{65cb5e39c467a35621ca.js → 56e903ccef66cbe18f92.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{44d5508042cacdfcac47.js → 58da3f8cf0f7f6a7e4fa.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{bc915fb182d463d804e6.js → 5c04835b0b52461183cd.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{7e8611cb709f105946f5.js → 6061232c96e11eb7b25d.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{1e514e1c9aabefa04201.js → 64382363d6dc04ff1eac.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{c82daefb193aae895bc0.js → 67e06d606c7fd2064adf.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{434a8ba841a59e0deab9.js → 67e533748435253aaba6.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{feb41abc03d677df6f73.js → 6b9961261241fdce0e94.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{949bee7b304e625a7891.js → 6db0f8fe1402643fbe1a.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{baed828b7846c0863289.js → 6f1d6453184e0a1530ad.js} +22 -18
  48. package/assets/esri/core/workers/chunks/6f897b4e7ddd1dd1672b.js +1 -0
  49. package/assets/esri/core/workers/chunks/{0049b66ccbfb168caa76.js → 7124ad8dc5ad40dc66f3.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{6e107ce73633de8ac257.js → 72f4dad65e16a7d7c58f.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{0df9a906f7823c23d426.js → 7566321c6a2913f2852b.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{c4ddac23bd649d24f3f2.js → 75d551a449bba61ce238.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{af349c7bc8ef41a0e1bd.js → 7748c2886d0122b40eeb.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{b4c3ec081874b49ff89b.js → 78fbe330f16bdbdb886e.js} +1 -1
  55. package/assets/esri/core/workers/chunks/79483c05867ba1386f5a.js +1 -0
  56. package/assets/esri/core/workers/chunks/7b482afb9fd1229f5707.js +1 -0
  57. package/assets/esri/core/workers/chunks/7c631e2947243e2c9bde.js +1 -0
  58. package/assets/esri/core/workers/chunks/{814751e705c05099f864.js → 7c75a8ee266c36baa902.js} +1 -1
  59. package/assets/esri/core/workers/chunks/7db9e615e60d824eac1b.js +1 -0
  60. package/assets/esri/core/workers/chunks/{8a7b02037151767542f1.js → 7dbf4c7480bf9c72820d.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{1b1d3f6916d2cb751435.js → 87177e0f82e8a6ae3189.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{5cb26bbaa08114aec5ce.js → 89cc1a5539b82fb46216.js} +1 -1
  63. package/assets/esri/core/workers/chunks/8b5dcc4282772bf6b675.js +1 -0
  64. package/assets/esri/core/workers/chunks/{8c12269d26f5a4c753cb.js → 8ebaf5754e86a45b0497.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{542e5640ea1b80ef801a.js → 9189dfe19a2a2ccd5173.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{67a35155b8b4d36f171e.js → 926e0a3827eaf16ca8b4.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{dc1761cba0454fda3cf9.js → 9630234267098115de4d.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{10d80e793019dfb45ca2.js → 987424121cf30b0f3c50.js} +1 -1
  69. package/assets/esri/core/workers/chunks/9afc87474cef1fc4fe4a.js +1 -0
  70. package/assets/esri/core/workers/chunks/{facd1ff23203fed67686.js → 9b048f80c2d28d527373.js} +1 -1
  71. package/assets/esri/core/workers/chunks/9dd48e75b4e8d9811d81.js +1 -0
  72. package/assets/esri/core/workers/chunks/{ee08ae5b73439a1ff666.js → a163c6005aba3378edaa.js} +1 -1
  73. package/assets/esri/core/workers/chunks/a4b822ee45810c4c292a.js +1 -0
  74. package/assets/esri/core/workers/chunks/{092e311cb7aea92a6a26.js → acb265a22be5e12f38e5.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{1a411ddae7a47015370c.js → acf4737ba509cbd73cce.js} +1 -1
  76. package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
  77. package/assets/esri/core/workers/chunks/{d247dd53788d512b9c9f.js → af3c6794334626b94f00.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{532e9cda8ac3601d8892.js → b12acf1f694f82e00df9.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{d08ff41e2a9bcd58b64a.js → ba3d5abff65aefcb8dee.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{504184828048310a052c.js → bdc221d94300c225665a.js} +1 -1
  81. package/assets/esri/core/workers/chunks/c0eb27263f608dc3684b.js +1 -0
  82. package/assets/esri/core/workers/chunks/c2318c014e97ba519be8.js +1 -0
  83. package/assets/esri/core/workers/chunks/{7f8e327acad48c9e75ea.js → c62237c344e341619341.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{a2ad3e620c98e2b2eb06.js → cd355baab983033c3ef0.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{7be6d621a0d1e33dfff4.js → d070fcb73ce274ab80e4.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{6d41444b46677aa762a7.js → db41490bd39d863305bf.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{fc5a36e54929e03efa86.js → dba5f44c4e4a3f075df2.js} +1 -1
  88. package/assets/esri/core/workers/chunks/{3e30b96a8c75bd5b9ae2.js → ddc95cdac6c06fc4794c.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{a5c8f9f5be4ef5063b42.js → df26ec0b508cf4716e0a.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{f426da2210888cc264b4.js → e83f9abee611c5b80009.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{8487727f1197cf7dbf50.js → ef12fa3574d4cbf8b084.js} +1 -1
  92. package/assets/esri/core/workers/chunks/f10c883eb26330e3421c.js +1 -0
  93. package/assets/esri/core/workers/chunks/f46e92c67986c8c09bdd.js +1 -0
  94. package/assets/esri/core/workers/chunks/{709e019885822b1f6f3e.js → f905f1a1aa4c123cbe83.js} +1 -1
  95. package/assets/esri/core/workers/chunks/{5b91e2dffdc84c006539.js → fb37f0848196c28b7fd7.js} +1 -1
  96. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  97. package/assets/esri/libs/librust-text/pkg/text_bg.wasm +0 -0
  98. package/assets/esri/themes/base/_core.scss +0 -2
  99. package/assets/esri/themes/dark/main.css +1 -1
  100. package/assets/esri/themes/light/main.css +1 -1
  101. package/assets/esri/themes/light/view.css +1 -1
  102. package/chunks/Component.glsl.js +9 -12
  103. package/chunks/DefaultMaterial.glsl.js +4 -5
  104. package/chunks/MultiPathImpl.js +1 -1
  105. package/chunks/OperatorProximityGeodesic.js +1 -1
  106. package/chunks/Path.glsl.js +2 -4
  107. package/chunks/RealisticTree.glsl.js +3 -3
  108. package/chunks/SSAO.glsl.js +1 -2
  109. package/chunks/basis_encoder.js +1 -1
  110. package/chunks/basis_transcoder.js +1 -1
  111. package/chunks/draco_mesh_decoder.js +1 -1
  112. package/chunks/dxt_encoder.js +1 -1
  113. package/chunks/i3s.js +1 -1
  114. package/chunks/lclayout.js +1 -1
  115. package/chunks/lerc-wasm.js +1 -1
  116. package/chunks/libtess-f32.js +1 -1
  117. package/chunks/libtess-f64.js +1 -1
  118. package/chunks/lyr3DMain.js +1 -1
  119. package/chunks/lyr3DWorker.js +1 -1
  120. package/chunks/parquet.js +1 -1
  121. package/chunks/qb3-wasm.js +1 -1
  122. package/chunks/rbush.js +1 -1
  123. package/chunks/text.js +1 -1
  124. package/chunks/vxlLayer.js +1 -1
  125. package/config.js +1 -1
  126. package/core/workers/WorkerFallback.js +4 -2
  127. package/core/workers/workerFactory.js +1 -1
  128. package/core/workers/workers.js +4 -2
  129. package/geometry/support/clipRay.js +1 -1
  130. package/geometry/support/labelPoint.js +1 -1
  131. package/geometry/support/plane.js +1 -1
  132. package/graphic/AnnotationFeatureGraphicOrigin.d.ts +49 -9
  133. package/graphic/BuildingGraphicOrigin.d.ts +49 -0
  134. package/graphic/CSVGraphicOrigin.d.ts +42 -9
  135. package/graphic/CatalogGraphicOrigin.d.ts +42 -9
  136. package/graphic/DimensionFeatureGraphicOrigin.d.ts +42 -9
  137. package/graphic/FeatureGraphicOrigin.d.ts +42 -9
  138. package/graphic/GeoJSONGraphicOrigin.d.ts +42 -9
  139. package/graphic/GeoRSSGraphicOrigin.d.ts +42 -9
  140. package/graphic/GraphicOrigin.d.ts +52 -12
  141. package/graphic/ImageryGraphicOrigin.d.ts +42 -9
  142. package/graphic/ImageryTileGraphicOrigin.d.ts +42 -9
  143. package/graphic/KMLGraphicOrigin.d.ts +47 -10
  144. package/graphic/KnowledgeGraphGraphicOrigin.d.ts +49 -1
  145. package/graphic/LinkChartGraphicOrigin.d.ts +49 -1
  146. package/graphic/MapImageGraphicOrigin.d.ts +49 -1
  147. package/graphic/MapNotesGraphicOrigin.d.ts +48 -1
  148. package/graphic/OGCFeatureGraphicOrigin.d.ts +42 -9
  149. package/graphic/OrientedImageryGraphicOrigin.d.ts +42 -9
  150. package/graphic/ParquetGraphicOrigin.d.ts +42 -9
  151. package/graphic/PointCloudGraphicOrigin.d.ts +43 -0
  152. package/graphic/SceneGraphicOrigin.d.ts +43 -0
  153. package/graphic/SketchGraphicOrigin.d.ts +43 -0
  154. package/graphic/StreamGraphicOrigin.d.ts +43 -0
  155. package/graphic/SubtypeGroupGraphicOrigin.d.ts +49 -1
  156. package/graphic/TileGraphicOrigin.d.ts +49 -1
  157. package/graphic/VectorTileGraphicOrigin.d.ts +43 -14
  158. package/graphic/VoxelGraphicOrigin.d.ts +43 -0
  159. package/graphic/WCSGraphicOrigin.d.ts +43 -0
  160. package/graphic/WFSGraphicOrigin.d.ts +42 -9
  161. package/graphic/getGraphicOriginTitle.d.ts +21 -3
  162. package/interfaces.d.ts +0 -55
  163. package/kernel.js +1 -1
  164. package/layers/ElevationLayer.d.ts +6 -2
  165. package/layers/GaussianSplatLayer.d.ts +2 -1
  166. package/layers/GeoJSONLayer.d.ts +2 -107
  167. package/layers/IntegratedMeshLayer.js +1 -1
  168. package/layers/ParquetLayer.d.ts +24 -1
  169. package/layers/ParquetLayer.js +1 -1
  170. package/layers/SceneLayer.d.ts +40 -16
  171. package/layers/ViewshedLayer.d.ts +10 -4
  172. package/layers/WMSLayer.d.ts +2 -69
  173. package/layers/mixins/ReloadableLayer.js +1 -1
  174. package/layers/mixins/TemporalLayer.d.ts +70 -48
  175. package/layers/mixins/TiledImagery.d.ts +0 -11
  176. package/layers/orientedImagery/transformations/utils.js +1 -1
  177. package/layers/save/featureLayerUtils.js +1 -1
  178. package/layers/save/imageryUtils.js +1 -1
  179. package/layers/save/mapImageLayerUtils.js +1 -1
  180. package/layers/save/mediaLayerUtils.js +1 -1
  181. package/layers/save/parquetLayerUtils.js +2 -0
  182. package/layers/save/streamLayerUtils.js +1 -1
  183. package/layers/support/LabelClass.d.ts +8 -2
  184. package/layers/support/layersMapping.js +1 -1
  185. package/layers/support/rasterJobHelper.js +1 -1
  186. package/layers/video/VideoController.js +5 -5
  187. package/package.json +2 -2
  188. package/popup/content.d.ts +38 -1
  189. package/popup/content.js +1 -1
  190. package/portal/schemas/definitions.js +1 -1
  191. package/portal/schemas/webScene.js +1 -1
  192. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  193. package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
  194. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  195. package/smartMapping/popup/support/clusterUtils.js +1 -1
  196. package/smartMapping/popup/support/utils.js +2 -2
  197. package/smartMapping/renderers/size.js +1 -1
  198. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  199. package/support/timeUtils.d.ts +11 -0
  200. package/undoredo/support/ApplySet.js +1 -1
  201. package/views/2d/engine/flow/ProcessingTimeEstimate.js +1 -1
  202. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  203. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  204. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  205. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  206. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  207. package/views/2d/layers/features/Processor.js +1 -1
  208. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  209. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  210. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  211. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  212. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  213. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  214. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  215. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  216. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  217. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  218. package/views/2d/layers/features/processor/AggregateStrategy.js +1 -1
  219. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  220. package/views/2d/layers/features/processor/bins/BinAdapter.js +1 -1
  221. package/views/2d/layers/features/processor/bins/BinLevelState.js +1 -1
  222. package/views/2d/layers/features/processor/clusters/ClusterAdapter.js +1 -1
  223. package/views/2d/layers/features/processor/clusters/ClusterLevelState.js +1 -1
  224. package/views/2d/layers/features/processor/tracks/TrackAdapter.js +1 -1
  225. package/views/2d/layers/features/processor/tracks/TrackLevelState.js +1 -1
  226. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  227. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  228. package/views/2d/layers/features/sources/strategies/chunks/ByReferenceTileSourceChunk.js +1 -1
  229. package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
  230. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
  231. package/views/2d/layers/features/sources/strategies/chunks/ParquetSnapshotSourceChunk.js +1 -1
  232. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  233. package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
  234. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  235. package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
  236. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  237. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  238. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  239. package/views/3d/environment/SunLighting.d.ts +0 -1
  240. package/views/3d/environment/SunLighting.js +1 -1
  241. package/views/3d/environment/VirtualLighting.d.ts +0 -1
  242. package/views/3d/environment/VirtualLighting.js +1 -1
  243. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  244. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  245. package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
  246. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  247. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  248. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  249. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  250. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  251. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  252. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  253. package/views/3d/layers/graphics/LabelParameters.js +1 -1
  254. package/views/3d/layers/graphics/Labeler.js +1 -1
  255. package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
  256. package/views/3d/layers/graphics/pointUtils.js +1 -1
  257. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  258. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  259. package/views/3d/layers/support/Tiles3DBVH.js +1 -1
  260. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  261. package/views/3d/state/controllers/ZoomControllerLocal.js +1 -1
  262. package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
  263. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  264. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  265. package/views/3d/state/utils/navigationUtils.js +1 -1
  266. package/views/3d/terrain/TerrainRenderer.js +1 -1
  267. package/views/3d/terrain/TerrainSurface.js +1 -1
  268. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  269. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -2
  270. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -2
  271. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
  272. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  273. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastRenderer.js +1 -1
  274. package/views/3d/webgl-engine/effects/snowcover/applySnow.glsl.js +18 -0
  275. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  276. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  277. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  278. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  279. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  280. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  281. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  282. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  283. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  284. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  285. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  286. package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
  287. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  288. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  289. package/views/DOMContainer.js +1 -1
  290. package/views/draw/SegmentDrawAction.js +1 -1
  291. package/views/interactive/snapping/SnappingManagerPool.js +1 -1
  292. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  293. package/views/interactive/tooltip/fields/TooltipField.js +1 -1
  294. package/views/layers/LineOfSightLayerView.d.ts +2 -2
  295. package/views/layers/ViewshedLayerView.d.ts +2 -1
  296. package/views/support/LayerViewManager.js +1 -1
  297. package/views/support/ScheduledQueueProcessor.js +1 -1
  298. package/views/support/screenshotUtils.js +1 -1
  299. package/views/ui/UI.js +1 -1
  300. package/webdoc/support/webdocSaveUtils.js +1 -1
  301. package/webscene/Slide.d.ts +1 -2
  302. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  303. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  304. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  305. package/widgets/FeatureForm/UtilityNetworkAssociationAddAssociationViewModel.js +1 -1
  306. package/widgets/FeatureTable/RelationshipColumn.js +1 -1
  307. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  308. package/widgets/Locate.d.ts +1 -1
  309. package/widgets/OrientedImageryViewer/ImageMeasurementWorker.js +1 -1
  310. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  311. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  312. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  313. package/widgets/Search/SearchViewModel.js +1 -1
  314. package/widgets/Search/support/layerSearchUtils.js +1 -1
  315. package/widgets/Sketch/SketchViewModel.js +1 -1
  316. package/widgets/Sketch/support/PluginManager.js +1 -1
  317. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  318. package/widgets/support/GeolocationPositioning.d.ts +1 -2
  319. package/assets/esri/core/workers/chunks/14d5d219e7fe017f23f0.js +0 -1
  320. package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
  321. package/assets/esri/core/workers/chunks/42753cf4965a94bc91ca.js +0 -1
  322. package/assets/esri/core/workers/chunks/42e985a576d7aaeed0cf.js +0 -1
  323. package/assets/esri/core/workers/chunks/5046214dd32029cb733d.js +0 -1
  324. package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +0 -1
  325. package/assets/esri/core/workers/chunks/58865772bed48141a56a.js +0 -1
  326. package/assets/esri/core/workers/chunks/6059853ef3b6cddbe869.js +0 -1
  327. package/assets/esri/core/workers/chunks/72e6d594b7262430ae55.js +0 -1
  328. package/assets/esri/core/workers/chunks/7d11710e1586a3d75887.js +0 -1
  329. package/assets/esri/core/workers/chunks/8f74d92ac69714b9fd4e.js +0 -1
  330. package/assets/esri/core/workers/chunks/a09d2e1e2540921e4717.js +0 -1
  331. package/assets/esri/core/workers/chunks/a35c69a4751d28c39907.js +0 -1
  332. package/assets/esri/core/workers/chunks/a679207c3458cc0b1fec.js +0 -1
  333. package/assets/esri/core/workers/chunks/dfa5f1311806473e473f.js +0 -1
  334. package/assets/esri/core/workers/chunks/fc76aff0f7d95e517d8f.js +0 -1
  335. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +0 -85
  336. package/assets/esri/widgets/DirectionalPad/t9n/messages.ar.json +0 -1
  337. package/assets/esri/widgets/DirectionalPad/t9n/messages.bg.json +0 -1
  338. package/assets/esri/widgets/DirectionalPad/t9n/messages.bs.json +0 -1
  339. package/assets/esri/widgets/DirectionalPad/t9n/messages.ca.json +0 -1
  340. package/assets/esri/widgets/DirectionalPad/t9n/messages.cs.json +0 -1
  341. package/assets/esri/widgets/DirectionalPad/t9n/messages.da.json +0 -1
  342. package/assets/esri/widgets/DirectionalPad/t9n/messages.de.json +0 -1
  343. package/assets/esri/widgets/DirectionalPad/t9n/messages.el.json +0 -1
  344. package/assets/esri/widgets/DirectionalPad/t9n/messages.en.json +0 -1
  345. package/assets/esri/widgets/DirectionalPad/t9n/messages.es.json +0 -1
  346. package/assets/esri/widgets/DirectionalPad/t9n/messages.et.json +0 -1
  347. package/assets/esri/widgets/DirectionalPad/t9n/messages.fi.json +0 -1
  348. package/assets/esri/widgets/DirectionalPad/t9n/messages.fr.json +0 -1
  349. package/assets/esri/widgets/DirectionalPad/t9n/messages.he.json +0 -1
  350. package/assets/esri/widgets/DirectionalPad/t9n/messages.hr.json +0 -1
  351. package/assets/esri/widgets/DirectionalPad/t9n/messages.hu.json +0 -1
  352. package/assets/esri/widgets/DirectionalPad/t9n/messages.id.json +0 -1
  353. package/assets/esri/widgets/DirectionalPad/t9n/messages.it.json +0 -1
  354. package/assets/esri/widgets/DirectionalPad/t9n/messages.ja.json +0 -1
  355. package/assets/esri/widgets/DirectionalPad/t9n/messages.ko.json +0 -1
  356. package/assets/esri/widgets/DirectionalPad/t9n/messages.lt.json +0 -1
  357. package/assets/esri/widgets/DirectionalPad/t9n/messages.lv.json +0 -1
  358. package/assets/esri/widgets/DirectionalPad/t9n/messages.nl.json +0 -1
  359. package/assets/esri/widgets/DirectionalPad/t9n/messages.no.json +0 -1
  360. package/assets/esri/widgets/DirectionalPad/t9n/messages.pl.json +0 -1
  361. package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-BR.json +0 -1
  362. package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-PT.json +0 -1
  363. package/assets/esri/widgets/DirectionalPad/t9n/messages.ro.json +0 -1
  364. package/assets/esri/widgets/DirectionalPad/t9n/messages.ru.json +0 -1
  365. package/assets/esri/widgets/DirectionalPad/t9n/messages.sk.json +0 -1
  366. package/assets/esri/widgets/DirectionalPad/t9n/messages.sl.json +0 -1
  367. package/assets/esri/widgets/DirectionalPad/t9n/messages.sr.json +0 -1
  368. package/assets/esri/widgets/DirectionalPad/t9n/messages.sv.json +0 -1
  369. package/assets/esri/widgets/DirectionalPad/t9n/messages.th.json +0 -1
  370. package/assets/esri/widgets/DirectionalPad/t9n/messages.tr.json +0 -1
  371. package/assets/esri/widgets/DirectionalPad/t9n/messages.uk.json +0 -1
  372. package/assets/esri/widgets/DirectionalPad/t9n/messages.vi.json +0 -1
  373. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-CN.json +0 -1
  374. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-HK.json +0 -1
  375. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-TW.json +0 -1
  376. package/assets/esri/widgets/Track/t9n/messages.ar.json +0 -1
  377. package/assets/esri/widgets/Track/t9n/messages.bg.json +0 -1
  378. package/assets/esri/widgets/Track/t9n/messages.bs.json +0 -1
  379. package/assets/esri/widgets/Track/t9n/messages.ca.json +0 -1
  380. package/assets/esri/widgets/Track/t9n/messages.cs.json +0 -1
  381. package/assets/esri/widgets/Track/t9n/messages.da.json +0 -1
  382. package/assets/esri/widgets/Track/t9n/messages.de.json +0 -1
  383. package/assets/esri/widgets/Track/t9n/messages.el.json +0 -1
  384. package/assets/esri/widgets/Track/t9n/messages.en.json +0 -1
  385. package/assets/esri/widgets/Track/t9n/messages.es.json +0 -1
  386. package/assets/esri/widgets/Track/t9n/messages.et.json +0 -1
  387. package/assets/esri/widgets/Track/t9n/messages.fi.json +0 -1
  388. package/assets/esri/widgets/Track/t9n/messages.fr.json +0 -1
  389. package/assets/esri/widgets/Track/t9n/messages.he.json +0 -1
  390. package/assets/esri/widgets/Track/t9n/messages.hr.json +0 -1
  391. package/assets/esri/widgets/Track/t9n/messages.hu.json +0 -1
  392. package/assets/esri/widgets/Track/t9n/messages.id.json +0 -1
  393. package/assets/esri/widgets/Track/t9n/messages.it.json +0 -1
  394. package/assets/esri/widgets/Track/t9n/messages.ja.json +0 -1
  395. package/assets/esri/widgets/Track/t9n/messages.ko.json +0 -1
  396. package/assets/esri/widgets/Track/t9n/messages.lt.json +0 -1
  397. package/assets/esri/widgets/Track/t9n/messages.lv.json +0 -1
  398. package/assets/esri/widgets/Track/t9n/messages.nl.json +0 -1
  399. package/assets/esri/widgets/Track/t9n/messages.no.json +0 -1
  400. package/assets/esri/widgets/Track/t9n/messages.pl.json +0 -1
  401. package/assets/esri/widgets/Track/t9n/messages.pt-BR.json +0 -1
  402. package/assets/esri/widgets/Track/t9n/messages.pt-PT.json +0 -1
  403. package/assets/esri/widgets/Track/t9n/messages.ro.json +0 -1
  404. package/assets/esri/widgets/Track/t9n/messages.ru.json +0 -1
  405. package/assets/esri/widgets/Track/t9n/messages.sk.json +0 -1
  406. package/assets/esri/widgets/Track/t9n/messages.sl.json +0 -1
  407. package/assets/esri/widgets/Track/t9n/messages.sr.json +0 -1
  408. package/assets/esri/widgets/Track/t9n/messages.sv.json +0 -1
  409. package/assets/esri/widgets/Track/t9n/messages.th.json +0 -1
  410. package/assets/esri/widgets/Track/t9n/messages.tr.json +0 -1
  411. package/assets/esri/widgets/Track/t9n/messages.uk.json +0 -1
  412. package/assets/esri/widgets/Track/t9n/messages.vi.json +0 -1
  413. package/assets/esri/widgets/Track/t9n/messages.zh-CN.json +0 -1
  414. package/assets/esri/widgets/Track/t9n/messages.zh-HK.json +0 -1
  415. package/assets/esri/widgets/Track/t9n/messages.zh-TW.json +0 -1
  416. package/views/2d/layers/features/FeatureSpatialIndex.js +0 -2
  417. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +0 -2
  418. package/views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js +0 -12
  419. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +0 -85
  420. package/widgets/DirectionalPad/DirectionalPadViewModel.js +0 -2
  421. package/widgets/DirectionalPad/VisibleElements.d.ts +0 -40
  422. package/widgets/DirectionalPad/VisibleElements.js +0 -2
  423. package/widgets/DirectionalPad/constants.js +0 -2
  424. package/widgets/DirectionalPad/css.js +0 -2
  425. package/widgets/DirectionalPad/types.d.ts +0 -27
  426. package/widgets/DirectionalPad/utils.js +0 -2
  427. package/widgets/DirectionalPad.d.ts +0 -156
  428. package/widgets/DirectionalPad.js +0 -2
  429. package/widgets/Track/TrackViewModel.d.ts +0 -131
  430. package/widgets/Track/TrackViewModel.js +0 -2
  431. package/widgets/Track/types.d.ts +0 -6
  432. package/widgets/Track.d.ts +0 -278
  433. package/widgets/Track.js +0 -2
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{deprecateWidget as t}from"../core/deprecate.js";import n from"../core/Logger.js";import{watch as r}from"../core/reactiveUtils.js";import{property as i,subclass as a}from"../core/accessorSupport/decorators.js";import o from"./Widget.js";import{canShowNorth as s}from"./Compass/utils.js";import{directionalPadAngles as c,directionalPadArrows as l}from"./DirectionalPad/constants.js";import{css as u}from"./DirectionalPad/css.js";import d from"./DirectionalPad/DirectionalPadViewModel.js";import{findElementCenter as f}from"./DirectionalPad/utils.js";import p from"./DirectionalPad/VisibleElements.js";import{loadCalciteComponents as m}from"./support/componentsUtils.js";import{globalCss as h}from"./support/globalCss.js";import{messageBundle as g,isActivationKey as _,tsx as v}from"./support/widget.js";import{setFocus as y}from"./support/widgetUtils.js";let b=class extends o{constructor(e,r){super(e,r),this._buttonsContainer=null,this._buttons={},this.messages=null,this.visibleElements=new p,this.viewModel=new d({suppressDeprecationWarning:!0}),this.visualScale=`s`,this._rotateIcon=e=>({"--rotation":`rotate(${e}deg)`}),this._afterButtonContainerCreate=e=>{this._buttonsContainer=e,this._buttonsContainer.addEventListener(`contextmenu`,this._onContextMenu,{capture:!0})},this._afterButtonContainerRemoved=()=>{this._buttonsContainer?.removeEventListener(`contextmenu`,this._onContextMenu,{capture:!0}),this._buttonsContainer=null},this._afterButtonCreate=(e,t)=>{this._buttons[e]=t},this._afterButtonRemoved=e=>{this._buttons[e]=void 0},this._onContextMenu=e=>e.preventDefault(),this._onButtonPointerDown=e=>{if(this._buttonsContainer===null)return;let t=e.target?.shadowRoot?.querySelector(`button`);t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId);let n=f(this._buttonsContainer);this.viewModel.beginFollowingPointer(e,n)},this._onKeyDown=(e,{key:t})=>{_(t)&&this.viewModel.moveOnce(e)},this._onSliderInput=({currentTarget:e})=>{typeof e.value==`number`&&(this.viewModel.rotation=e.value)},this._onRotationReset=()=>{this.viewModel.rotation=0},t(n.getLogger(this),`Directional Pad`,`arcgis-directional-pad`,{version:`4.32`})}loadDependencies(){return m({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),"action-group":()=>import(`@esri/calcite-components/dist/components/calcite-action-group`),"action-bar":()=>import(`@esri/calcite-components/dist/components/calcite-action-bar`),icon:()=>import(`@esri/calcite-components/dist/components/calcite-icon`),slider:()=>import(`@esri/calcite-components/dist/components/calcite-slider`)})}initialize(){this.addHandles(r(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?this.container?.focus():y(this._buttons[this.viewModel.angle]))}))}get disabled(){return this.viewModel.disabled}set disabled(e){this.viewModel.disabled=e}get icon(){return`move`}set icon(e){this._overrideIfSome(`icon`,e)}get label(){return this.messages?.widgetLabel??``}set label(e){this._overrideIfSome(`label`,e)}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get speed(){return this.viewModel.speed}set speed(e){this.viewModel.speed=e}get _rotationEnabled(){return!this.view?.ready||this.view.constraints.rotationEnabled}render(){let{label:e,disabled:t,viewModel:n}=this,r=this.classes(u.base,h.widget,t?h.disabled:null);return v(`div`,{"aria-label":e,class:r,tabIndex:-1},n.supported?this._renderContent():this._renderUnsupportedMessage())}_renderUnsupportedMessage(){return v(`section`,{class:u.error,key:`unsupported`},v(`p`,null,this.messages.unsupported))}_renderContent(){return[this.visibleElements.directionalButtons?this._renderDirectionalButtons():void 0,this.visibleElements.rotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return v(`calcite-action-bar`,{expandToggleDisabled:!0,floating:!0,key:`directional-buttons-container`,layout:`grid`,overflowMode:`none`},v(`calcite-action-group`,{afterCreate:this._afterButtonContainerCreate,afterRemoved:this._afterButtonContainerRemoved,class:u.buttonsContainer,dir:`ltr`},c.slice(0,4).map(e=>this._renderButton(e)),this._renderCompass(),c.slice(4).map(e=>this._renderButton(e))))}_renderButton(e){let{label:t,iconName:n}=l[e],r=this.messages[t];return v(`calcite-action`,{active:this.viewModel.angle===e,afterCreate:t=>this._afterButtonCreate(e,t),afterRemoved:()=>this._afterButtonRemoved(e),alignment:`center`,class:u.button,"data-angle":e.toString(),disabled:this.disabled,key:e,scale:this.visualScale,text:r,title:r,onkeydown:this._onKeyDown.bind(void 0,e),onpointerdown:this._onButtonPointerDown},v(`calcite-icon`,{icon:n,scale:this.visualScale}))}_renderCompass(){let e=this.disabled||s(this.view)?`compass-needle`:`arrow-up`,t=this.viewModel.rotation===0,n=this.messages.resetHeading;return v(`calcite-action`,{alignment:`center`,class:u.compassButton,disabled:this.disabled||!this._rotationEnabled||t,key:`compass`,scale:this.visualScale,styles:this._rotateIcon(this.viewModel.rotation),text:n,title:n,onclick:this._onRotationReset},!t&&v(`calcite-icon`,{icon:e,scale:this.visualScale}))}_renderRotation(){return v(`calcite-action-bar`,{expandToggleDisabled:!0,floating:!0,key:`slider-container`,layout:`horizontal`},v(`calcite-action-group`,{class:u.rotationContainer},this.visibleElements.rotationResetButton?this._renderRotationResetButton():null,this._renderRotationSlider()))}_renderRotationResetButton(){let e=this.messages.resetHeading;return v(`calcite-action`,{alignment:`center`,class:u.rotationReset,disabled:this.disabled||!this._rotationEnabled,scale:this.visualScale,text:e,title:e,onclick:this._onRotationReset},v(`calcite-icon`,{flipRtl:!0,icon:`rotate`,scale:this.visualScale}))}_renderRotationSlider(){return v(`div`,{class:u.rotationSliderContainer},v(`calcite-slider`,{"aria-label":this.messages.heading,disabled:this.disabled||!this._rotationEnabled,labelHandles:!0,max:360,min:0,required:!0,scale:this.visualScale,value:Math.round(this.viewModel.rotation),onCalciteSliderInput:this._onSliderInput}))}};e([i()],b.prototype,`_buttonsContainer`,void 0),e([i()],b.prototype,`_buttons`,void 0),e([i()],b.prototype,`disabled`,null),e([i()],b.prototype,`icon`,null),e([i()],b.prototype,`label`,null),e([i(),g(`esri/widgets/DirectionalPad/t9n/DirectionalPad`)],b.prototype,`messages`,void 0),e([i({type:p,nonNullable:!0})],b.prototype,`visibleElements`,void 0),e([i()],b.prototype,`view`,null),e([i({type:d})],b.prototype,`viewModel`,void 0),e([i()],b.prototype,`visualScale`,void 0),e([i()],b.prototype,`speed`,null),e([i({readOnly:!0})],b.prototype,`_rotationEnabled`,null),b=e([a(`esri.widgets.DirectionalPad`)],b);const x=b;export{x as default};
@@ -1,131 +0,0 @@
1
- import type GeolocationPositioning from "../support/GeolocationPositioning.js";
2
- import type { PositionFilterFunction } from "./types.js";
3
- import type { GeolocationPositioningProperties } from "../support/GeolocationPositioning.js";
4
-
5
- /** @deprecated since 5.2. Use the [Track component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/) instead. */
6
- export interface TrackViewModelProperties extends GeolocationPositioningProperties, Partial<Pick<TrackViewModel, "error" | "positionFilterFunction" | "rotationEnabled">> {}
7
-
8
- /** @deprecated since 5.2. Use the [TrackViewModelState type](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/types/#TrackViewModelState) from the Track component instead. */
9
- export type TrackViewModelState = "error" | "disabled" | "ready" | "waiting" | "tracking" | "feature-unsupported";
10
-
11
- /** @deprecated since version 5.1. Use the [Track component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
12
- export interface TrackViewModelEvents {
13
- /**
14
- * Fires after the [Track.start()](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/#start) method is called and a position is found.
15
- *
16
- * @example
17
- * track.on("track", ({ position }) => {
18
- * const { longitude, latitude } = position.coords;
19
- * console.log("Track", `${longitude.toFixed(4)}, ${latitude.toFixed(4)}`);
20
- * });
21
- */
22
- track: TrackViewModelTrackEvent;
23
- /** Fires after the [Track.start()](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/#start) method is called and an error is returned. */
24
- "track-error": TrackViewModelTrackErrorEvent;
25
- }
26
-
27
- /** @deprecated since 5.2. Use the Track component's [`arcgisComplete` event](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/#event-arcgisComplete) instead. */
28
- export interface TrackViewModelTrackEvent {
29
- /** Geolocation coordinates returned from the [Geolocation API](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/#geolocationOptions). */
30
- position: GeolocationPosition;
31
- }
32
-
33
- /** @deprecated since 5.2. Use the Track component's [`arcgisError` event](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/#event-arcgisError) instead. */
34
- export interface TrackViewModelTrackErrorEvent {
35
- /** The Error object returned if an error occurred while tracking. */
36
- error: GeolocationPositionError | Error;
37
- }
38
-
39
- /**
40
- * Provides the logic for the [Track](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/) component and [Track](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/) widget, which
41
- * animates the [View](https://developers.arcgis.com/javascript/latest/references/core/views/View/)
42
- * to the user's location when clicked and tracks it as the location is updated.
43
- *
44
- * > [!WARNING]
45
- * >
46
- * > The Track widget is only available in [secure contexts](https://developer.mozilla.org/docs/Web/Security/Secure_Contexts), such as HTTPS.
47
- * > Note that localhost is considered "potentially secure" and can be used for easy testing in browsers that support
48
- * > [Window.isSecureContext](https://developer.mozilla.org/docs/Web/API/isSecureContext#browser_compatibility).
49
- * >
50
- * > For additional information regarding this, visit the ArcGIS blog,
51
- * > [Increased web API security in Google Chrome](https://blogs.esri.com/esri/arcgis/2016/04/14/increased-web-api-security-in-google-chrome/).
52
- *
53
- * @deprecated since version 5.1. Use the [Track component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
54
- * @since 4.0
55
- * @see [Track](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/) component
56
- * @see [Track](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/) widget - _Deprecated since 4.32. Use the [Track component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/) instead._
57
- * @see [Programming patterns: Widget viewModel pattern](https://developers.arcgis.com/javascript/latest/programming-patterns/#widget-viewmodel-pattern)
58
- * @example
59
- * let trackWidget = new Track({
60
- * viewModel: { // autocasts as new TrackViewModel()
61
- * view: view, // attaches the Track to the view
62
- * }
63
- * };
64
- */
65
- export default class TrackViewModel extends GeolocationPositioning {
66
- /**
67
- * @deprecated
68
- * Do not directly reference this property.
69
- * Use EventNames and EventTypes helpers from \@arcgis/core/Evented
70
- */
71
- "@eventTypes": TrackViewModelEvents;
72
- constructor(properties?: TrackViewModelProperties);
73
- /**
74
- * Error that caused the last [track-error](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/TrackViewModel/#event:track-error) event to fire.
75
- *
76
- * @since 4.29
77
- * @example
78
- * if(track.viewModel.state === 'error')
79
- * console.error(track.viewModel.error);
80
- */
81
- accessor error: GeolocationPositionError | Error | null | undefined;
82
- /**
83
- * A function that is used as an expression to evaluate geolocation points, and returns a boolean
84
- * value. If the function returns `true`, the widget will draw a graphic and navigate to the position.
85
- * The widget will ignore `false` values and not draw a graphic and not navigate to the position.
86
- *
87
- * Example use cases include smoothing out geolocation anomalies and geofencing.
88
- *
89
- * @since 4.27
90
- * @example
91
- * // Exclude locations that full outside an extent.
92
- * track.viewModel.positionFilterFunction = (value) => {
93
- * const { longitude, latitude } = value.position.coords;
94
- * const myLocation = new Point({ longitude, latitude });
95
- * const geofenceExtent = new Extent({
96
- * // whatever
97
- * });
98
- * return withinExecute(myLocation, geofenceExtent);
99
- * };
100
- */
101
- accessor positionFilterFunction: PositionFilterFunction | null | undefined;
102
- /**
103
- * Indicates whether the component will automatically rotate to the device heading based on
104
- * the Geolocation APIs [`GeolocationCoordinates.heading`](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading)
105
- * property. The map will not rotate if the speed is `0`,
106
- * or if the device is unable to provide heading information.
107
- *
108
- * @default true
109
- * @since 4.33
110
- */
111
- rotationEnabled: boolean;
112
- /**
113
- * The current state of the widget.
114
- *
115
- * @default "disabled"
116
- */
117
- get state(): TrackViewModelState;
118
- /**
119
- * Indicates whether new positions are being watched.
120
- *
121
- * @default false
122
- */
123
- get tracking(): boolean;
124
- /**
125
- * When executed, [tracking](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/TrackViewModel/#tracking) starts at the
126
- * user's location.
127
- */
128
- start(): void;
129
- /** Stops tracking the user's location when executed. */
130
- stop(): void;
131
- }
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{deprecateUnnecessaryViewModel as t}from"../../core/deprecate.js";import n from"../../core/Logger.js";import{ignoreAbortErrors as r,debounce as i,isAbortError as a}from"../../core/promiseUtils.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";import c from"../support/GeolocationPositioning.js";let l=class extends c{constructor(e){super(e),this._watchId=void 0,this._trackStartingTimeoutId=void 0,this._settingPosition=null,this._trackController=null,this.error=void 0,this.positionFilterFunction=null,e?.suppressDeprecationWarning||t(n.getLogger(this),`Track`,`arcgis-track`,{version:`5.1`})}normalizeCtorArgs(e){let{suppressDeprecationWarning:t,...n}=e??{};return n}destroy(){this._stopTracking()}get state(){return this._geolocationUsable?this.view&&!this.view.ready?`disabled`:this._settingPosition||this._trackStartingTimeoutId!==void 0?`waiting`:this.tracking?`tracking`:this.error==null?`ready`:`error`:`feature-unsupported`}get tracking(){return this._watchId!==void 0}start(){this.state!==`disabled`&&this.state!==`feature-unsupported`&&this._startTracking()}stop(){this.state!==`disabled`&&this.state!==`feature-unsupported`&&this._stopTracking()}_stopWatchingPosition(){this._watchId!==void 0&&(navigator.geolocation.clearWatch(this._watchId),this._watchId=void 0)}_stopTracking(){this._abortTrack(),this._clearWaitingTimer(),this._stopWatchingPosition(),this._clearGraphic()}_startTracking(){this._stopTracking();let e=i(async e=>{this._abortTrack();let t=new AbortController;this._trackController=t;let{timestamp:n,coords:r}=e,i={timestamp:n,coords:r.toJSON()};this.error=void 0;try{if(typeof this.positionFilterFunction==`function`&&!this.positionFilterFunction.call(null,{position:i})||(await this.updatePosition(e,t),this._trackController!==t))return;this._clearWaitingTimer(),this._addGraphic(),this.emit(`track`,{position:e}),this._trackController=null}catch(e){if(a(e))return;throw this._trackController=null,this._emitError(e),this._clearWaitingTimer(),e}},0);this._watchId=navigator.geolocation.watchPosition(t=>{this._settingPosition=e(t).catch(r)},this._handleWatchPositionError.bind(this),this.geolocationOptions??void 0),this._trackStartingTimeoutId=setTimeout(()=>{this._trackStartingTimeoutId=void 0},15e3)}_handleWatchPositionError(e){e.code===e.PERMISSION_DENIED&&this._stopTracking(),this._emitError(e)}_abortTrack(){this._trackController?.abort(),this._trackController=null}_clearWaitingTimer(){clearTimeout(this._trackStartingTimeoutId),this._trackStartingTimeoutId=void 0,this._settingPosition=null}_emitError(e){this.error=e,this.emit(`track-error`,{error:e})}};e([o()],l.prototype,`_watchId`,void 0),e([o()],l.prototype,`_trackStartingTimeoutId`,void 0),e([o()],l.prototype,`_settingPosition`,void 0),e([o()],l.prototype,`error`,void 0),e([o()],l.prototype,`positionFilterFunction`,void 0),e([o({readOnly:!0})],l.prototype,`state`,null),e([o({readOnly:!0})],l.prototype,`tracking`,null),e([o()],l.prototype,`start`,null),e([o()],l.prototype,`stop`,null),l=e([s(`esri.widgets.Track.TrackViewModel`)],l);const u=l;export{u as default};
@@ -1,6 +0,0 @@
1
- /**
2
- * @param args - An object containing the position to be filtered.
3
- * @deprecated since 5.2. Use the Track component's [`positionFilterFunction` property](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/#positionFilterFunction) and [PositionFilterFunction type](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/types/#PositionFilterFunction) instead.
4
- * @since 5.0
5
- */
6
- export type PositionFilterFunction = (args: { position: any; }) => boolean;
@@ -1,278 +0,0 @@
1
- import type Graphic from "../Graphic.js";
2
- import type Widget from "./Widget.js";
3
- import type TrackViewModel from "./Track/TrackViewModel.js";
4
- import type { Icon } from "@esri/calcite-components/components/calcite-icon";
5
- import type { MapViewOrSceneView } from "../views/MapViewOrSceneView.js";
6
- import type { WidgetProperties } from "./Widget.js";
7
- import type { GoToOverride } from "./support/types.js";
8
- import type { TrackViewModelEvents, TrackViewModelProperties } from "./Track/TrackViewModel.js";
9
- import type { GraphicProperties } from "../Graphic.js";
10
-
11
- export interface TrackProperties extends WidgetProperties, Partial<Pick<Track, "geolocationOptions" | "goToLocationEnabled" | "goToOverride" | "rotationEnabled" | "scale" | "view">> {
12
- /**
13
- * The graphic used to show the user's location on the map. Overriding this will disable
14
- * the default graphic's heading indicator.
15
- *
16
- * @example
17
- * const trackWidget = new Track({
18
- * // Assign the track widget to a view
19
- * view: view,
20
- * // Overwrite the default symbol used for the
21
- * // graphic placed at the location of the user
22
- * graphic: new Graphic ({
23
- * symbol: {
24
- * // autocasts as new SimpleMarkerSymbol()
25
- * type: "simple-marker",
26
- * size: "12px",
27
- * color: "blue",
28
- * // autocasts as new SimpleLineSymbol()
29
- * outline: {
30
- * color: "#efefef",
31
- * width: "1.5px"
32
- * }
33
- * }
34
- * })
35
- * });
36
- */
37
- graphic?: GraphicProperties;
38
- /**
39
- * Icon displayed in the widget's button.
40
- *
41
- * @default "compass-north-circle"
42
- * @since 4.28
43
- * @see [Calcite Icon Search](https://developers.arcgis.com/calcite-design-system/icons/)
44
- * @see [Calcite Icon Search](https://developers.arcgis.com/calcite-design-system/icons/)
45
- */
46
- icon?: Icon["icon"] | null;
47
- /**
48
- * The widget's default label.
49
- *
50
- * @since 4.7
51
- */
52
- label?: string | null;
53
- /**
54
- * The viewModel for this widget. This is a class that contains all the logic
55
- * (properties and methods) that controls this widget's behavior. See the
56
- * [TrackViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/TrackViewModel/) class to access
57
- * all properties and methods on the widget.
58
- */
59
- viewModel?: TrackViewModelProperties;
60
- }
61
-
62
- /** @deprecated since version 4.32. Use the [Track component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/). */
63
- export interface TrackEvents extends TrackViewModelEvents {}
64
-
65
- /**
66
- * Provides a simple button that animates the [View](https://developers.arcgis.com/javascript/latest/references/core/views/View/)
67
- * to the user's location when clicked. The view rotates based on device heading.
68
- * While tracking, the default button looks like the following:
69
- *
70
- * ![track-button](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/widgets-track.avif)
71
- *
72
- * The default heading symbol will display when speed is greater than zero and the browser
73
- * provides heading information:
74
- *
75
- * ![heading-indicator](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/widgets-track-heading.avif)
76
- *
77
- * You can use the view's [DefaultUI](https://developers.arcgis.com/javascript/latest/references/core/views/ui/DefaultUI/) to add widgets
78
- * to the view's user interface via the `ui` property.
79
- *
80
- * ```js
81
- * let trackWidget = new Track({
82
- * view: view
83
- * });
84
- *
85
- * view.ui.add(trackWidget, "top-left");
86
- * ```
87
- *
88
- * > [!WARNING]
89
- * >
90
- * > The Track widget is only available in [secure contexts](https://developer.mozilla.org/docs/Web/Security/Secure_Contexts), such as HTTPS.
91
- * > Note that localhost is considered "potentially secure" and can be used for easy testing in browsers that support
92
- * > [Window.isSecureContext](https://developer.mozilla.org/docs/Web/API/isSecureContext#browser_compatibility).
93
- * >
94
- * > For additional information regarding this, visit the ArcGIS blog,
95
- * > [Increased Web API security in Google Chrome](https://blogs.esri.com/esri/arcgis/2016/04/14/increased-web-api-security-in-google-chrome/).
96
- * >
97
- * > **Known Limitations**
98
- * >
99
- * > - The heading symbol is not currently supported in 3D [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/)s.
100
- * > - The Track widget does not work concurrently with the [Locate](https://developers.arcgis.com/javascript/latest/references/core/widgets/Locate/) widget. Only one of the widgets can be used at a time.
101
- *
102
- * @deprecated since version 4.32. Use the [Track component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-track/) instead. For information on widget deprecation, read about [Esri's move to web components](https://developers.arcgis.com/javascript/latest/components-transition-plan/).
103
- * @since 4.0
104
- * @see [TrackViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/TrackViewModel/)
105
- * @see [DefaultUI](https://developers.arcgis.com/javascript/latest/references/core/views/ui/DefaultUI/)
106
- */
107
- export default class Track extends Widget {
108
- /**
109
- * @deprecated
110
- * Do not directly reference this property.
111
- * Use EventNames and EventTypes helpers from \@arcgis/core/Evented
112
- */
113
- "@eventTypes": TrackEvents;
114
- /**
115
- * @example
116
- * // typical usage
117
- * let track = new Track({
118
- * view: view
119
- * });
120
- */
121
- constructor(properties?: TrackProperties);
122
- /**
123
- * An object used for setting optional position parameters. Refer to the
124
- * [Geolocation API Specification](https://www.w3.org/TR/geolocation/#position_options_interface)
125
- * for details on using these parameters.
126
- *
127
- * @example
128
- * const track = new Track({
129
- * view: view,
130
- * // Set optional position parameters
131
- * geolocationOptions: {
132
- * maximumAge: 0,
133
- * timeout: 15000,
134
- * enableHighAccuracy: true
135
- * }
136
- * });
137
- */
138
- accessor geolocationOptions: PositionOptions | null | undefined;
139
- /**
140
- * Indicates whether the widget will automatically navigate the view to the user's position
141
- * when a geolocation result is found. Set to `false` to disable this behavior,
142
- * leaving full control to the developer.
143
- *
144
- * @default true
145
- */
146
- accessor goToLocationEnabled: boolean;
147
- /**
148
- * This function provides the ability to override either the
149
- * [MapView goTo()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#goTo) or
150
- * [SceneView goTo()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#goTo) methods.
151
- *
152
- * @since 4.8
153
- * @see [MapView.goTo()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#goTo)
154
- * @see [SceneView.goTo()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#goTo)
155
- * @example
156
- * // The following snippet uses Search but can be applied to any
157
- * // widgets that support the goToOverride property.
158
- * search.goToOverride = function(view, goToParams) {
159
- * goToParams.options = {
160
- * duration: updatedDuration
161
- * };
162
- * return view.goTo(goToParams.target, goToParams.options);
163
- * };
164
- */
165
- accessor goToOverride: GoToOverride | null | undefined;
166
- /**
167
- * The graphic used to show the user's location on the map. Overriding this will disable
168
- * the default graphic's heading indicator.
169
- *
170
- * @example
171
- * const trackWidget = new Track({
172
- * // Assign the track widget to a view
173
- * view: view,
174
- * // Overwrite the default symbol used for the
175
- * // graphic placed at the location of the user
176
- * graphic: new Graphic ({
177
- * symbol: {
178
- * // autocasts as new SimpleMarkerSymbol()
179
- * type: "simple-marker",
180
- * size: "12px",
181
- * color: "blue",
182
- * // autocasts as new SimpleLineSymbol()
183
- * outline: {
184
- * color: "#efefef",
185
- * width: "1.5px"
186
- * }
187
- * }
188
- * })
189
- * });
190
- */
191
- get graphic(): Graphic;
192
- set graphic(value: GraphicProperties);
193
- /**
194
- * Icon displayed in the widget's button.
195
- *
196
- * @default "compass-north-circle"
197
- * @since 4.28
198
- * @see [Calcite Icon Search](https://developers.arcgis.com/calcite-design-system/icons/)
199
- * @see [Calcite Icon Search](https://developers.arcgis.com/calcite-design-system/icons/)
200
- */
201
- get icon(): Icon["icon"];
202
- set icon(value: Icon["icon"] | null | undefined);
203
- /**
204
- * The widget's default label.
205
- *
206
- * @since 4.7
207
- */
208
- get label(): string;
209
- set label(value: string | null | undefined);
210
- /**
211
- * Indicates whether the widget will automatically rotate to the device heading based on
212
- * the Geolocation APIs [`GeolocationCoordinates.heading`](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading)
213
- * property. The map will not rotate if the speed is `0`,
214
- * or if the device is unable to provide heading information.
215
- *
216
- * Set to `false` to disable this behavior.
217
- *
218
- * @default true
219
- * @since 4.27
220
- */
221
- accessor rotationEnabled: boolean;
222
- /**
223
- * Indicates the [scale](https://developers.arcgis.com/documentation/mapping-apis-and-services/reference/zoom-levels-and-scale/) to set on the view when navigating to the position of the geolocated
224
- * result, after a location is returned from the [@track](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/#event-track) event.
225
- *
226
- * By default, the view will navigate to a scale of `2500` for 3D and `4514` for 2D.
227
- * To override the default in 2D, set the `scale` property and also set [snapToZoom](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#constraints) to `false`.
228
- * For 2D views the value should be within the [effectiveMinScale](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#constraints)
229
- * and [effectiveMaxScale](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#constraints).
230
- *
231
- * @since 4.7
232
- * @example
233
- * const mapView = new MapView({
234
- * map: map,
235
- * container: "viewDiv",
236
- * // Turn off snapToZoom
237
- * constraints: {
238
- * snapToZoom: false
239
- * }
240
- * });
241
- *
242
- * mapView.when(() => {
243
- * // Create an instance of the Track widget
244
- * let track = new Track({
245
- * view: mapView,
246
- * // Set a new default scale
247
- * scale: 5000
248
- * });
249
- *
250
- * // Add widget to the view's UI
251
- * mapView.ui.add(track, "top-left");
252
- * });
253
- */
254
- accessor scale: number | null | undefined;
255
- /**
256
- * Indicates whether the widget is watching for new positions.
257
- *
258
- * @default false
259
- */
260
- get tracking(): boolean;
261
- /** A reference to the [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/) or [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/). Set this to link the widget to a specific view. */
262
- accessor view: MapViewOrSceneView | null | undefined;
263
- /**
264
- * The viewModel for this widget. This is a class that contains all the logic
265
- * (properties and methods) that controls this widget's behavior. See the
266
- * [TrackViewModel](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/TrackViewModel/) class to access
267
- * all properties and methods on the widget.
268
- */
269
- get viewModel(): TrackViewModel;
270
- set viewModel(value: TrackViewModelProperties);
271
- /**
272
- * When executed, the widget will start [tracking](https://developers.arcgis.com/javascript/latest/references/core/widgets/Track/#tracking) the
273
- * user's location. Only start the widget on a [user gesture](https://html.spec.whatwg.org/#tracking-user-activation) such as a click event.
274
- */
275
- start(): void;
276
- /** Stops tracking the user's location when executed. */
277
- stop(): void;
278
- }
package/widgets/Track.js DELETED
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../Graphic.js";import{deprecateWidget as n}from"../core/deprecate.js";import r from"../core/Logger.js";import{property as i,subclass as a}from"../core/accessorSupport/decorators.js";import o from"./Widget.js";import{loadCalciteComponents as s}from"./support/componentsUtils.js";import{globalCss as c}from"./support/globalCss.js";import{messageBundle as l,vmEvent as u,tsx as d}from"./support/widget.js";import f from"./Track/TrackViewModel.js";const p={base:`esri-track`};let m=class extends o{constructor(e,t){super(e,t),this.messages=null,this.viewModel=new f({suppressDeprecationWarning:!0}),this._toggleTracking=()=>{let e=this.viewModel;e&&e.state!==`feature-unsupported`&&e.state!==`disabled`&&(e.state===`tracking`||e.state===`waiting`?this.viewModel.stop():this.viewModel.start())},n(r.getLogger(this),`Track`,`arcgis-track`,{version:`4.32`})}loadDependencies(){return s({button:()=>import(`@esri/calcite-components/dist/components/calcite-button`),tooltip:()=>import(`@esri/calcite-components/dist/components/calcite-tooltip`)})}get geolocationOptions(){return this.viewModel.geolocationOptions}set geolocationOptions(e){this.viewModel.geolocationOptions=e}get goToLocationEnabled(){return this.viewModel.goToLocationEnabled}set goToLocationEnabled(e){this.viewModel.goToLocationEnabled=e}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(e){this.viewModel.goToOverride=e}get graphic(){return this.viewModel.graphic}set graphic(e){this.viewModel.graphic=e}get icon(){return`compass-north-circle`}set icon(e){this._overrideIfSome(`icon`,e)}get label(){return this.messages?.widgetLabel??``}set label(e){this._overrideIfSome(`label`,e)}get rotationEnabled(){return this.viewModel.rotationEnabled}set rotationEnabled(e){this.viewModel.rotationEnabled=e}get scale(){return this.viewModel.scale}set scale(e){this.viewModel.scale=e}get tracking(){return this.viewModel.tracking}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}start(){this.viewModel.start()}stop(){this.viewModel.stop()}render(){let{viewModel:e,messages:t,icon:n}=this,r=e?.state,i=r===`tracking`,a=this._localizeError(this.viewModel?.error),o=(i?t?.stopTracking:t?.startTracking)??``,s=r===`feature-unsupported`,l=(r===`tracking`?`pause`:void 0)??n;return d(`div`,{class:this.classes(p.base,c.widget)},!s&&d(`calcite-button`,{class:c.widgetButton,disabled:r===`disabled`,iconStart:l,kind:`neutral`,label:o,loading:r===`waiting`,title:o,onclick:this._toggleTracking}),a?d(`calcite-tooltip`,{open:!0,overlayPositioning:`fixed`,referenceElement:this.container,topLayerDisabled:this.topLayerDisabled},a):null)}_localizeError(e){if(e instanceof GeolocationPositionError)return e.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:e.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(e instanceof Error)return e.message}};e([i()],m.prototype,`geolocationOptions`,null),e([i()],m.prototype,`goToLocationEnabled`,null),e([i()],m.prototype,`goToOverride`,null),e([i({type:t})],m.prototype,`graphic`,null),e([i()],m.prototype,`icon`,null),e([i()],m.prototype,`label`,null),e([i(),l(`esri/widgets/Track/t9n/Track`)],m.prototype,`messages`,void 0),e([i()],m.prototype,`rotationEnabled`,null),e([i()],m.prototype,`scale`,null),e([i({readOnly:!0})],m.prototype,`tracking`,null),e([i()],m.prototype,`view`,null),e([i({type:f}),u([`track`,`track-error`])],m.prototype,`viewModel`,void 0),m=e([a(`esri.widgets.Track`)],m);const h=m;export{h as default};