@arcgis/core 5.0.0-next.127 → 5.0.0-next.129

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 (408) hide show
  1. package/Camera.d.ts +1 -1
  2. package/Ground.d.ts +7 -7
  3. package/PopupTemplate.d.ts +6 -6
  4. package/WebScene.d.ts +1 -1
  5. package/analysis/AreaMeasurementAnalysis.d.ts +1 -1
  6. package/analysis/DirectLineMeasurementAnalysis.d.ts +1 -1
  7. package/analysis/LengthDimension.d.ts +4 -4
  8. package/analysis/ShadowCastAnalysis.d.ts +3 -3
  9. package/analysis/SliceAnalysis.d.ts +1 -1
  10. package/analysis/SlicePlane.d.ts +1 -1
  11. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +1 -1
  12. package/analysis/VolumeMeasurementAnalysis.d.ts +1 -1
  13. package/applications/WebEditor/geometryUtils.d.ts +26 -0
  14. package/applications/WebEditor/geometryUtils.js +2 -0
  15. package/assets/esri/core/workers/RemoteClient.js +1 -1
  16. package/assets/esri/core/workers/chunks/{982e709d2cef971ecd82.js → 0d9d33f29124d464a4cb.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{2762149a922275136171.js → 112227b862b935123ddf.js} +2 -2
  18. package/assets/esri/core/workers/chunks/1336f685bae5f1251558.js +1 -0
  19. package/assets/esri/core/workers/chunks/{b71e4f48377fefe2537d.js → 15d46482ec096e3ce161.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{d0d1378e714ff0e43e26.js → 1cfa8d404d42b9eccf78.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{1e29a114c1cfe21121c4.js → 203ef5459fc5dde12851.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{0a4ebb5dca630a4ab0dd.js → 236f8137ae505c8f0764.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{b4203e488bb928ff8032.js → 25d34552bfb255af9467.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{d8adab2d55b39241b232.js → 27e14277128446e76b45.js} +1 -1
  25. package/assets/esri/core/workers/chunks/3d3b1ce112be6ea31d93.js +1 -0
  26. package/assets/esri/core/workers/chunks/{fd47dc60646260c5633c.js → 415957a42e45eb21aa84.js} +1 -1
  27. package/assets/esri/core/workers/chunks/4ac09b066c696476e532.js +1 -0
  28. package/assets/esri/core/workers/chunks/{72acfb74fd9ab9bae923.js → 53e348f5585fa8c53fe8.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{323f6077a659416c4cee.js → 6a9a96aa811c1d3b6edb.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{25c189e894927099c239.js → 6c85396c90941a042c33.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{89274b81a2a8b7cd5c49.js → 6f337c3ccd84d90a35e5.js} +1 -1
  32. package/assets/esri/core/workers/chunks/72c31f3313dfe87dd1aa.js +1 -0
  33. package/assets/esri/core/workers/chunks/{a3e8b7185d63a0f85931.js → 79c69ae86a1f4a56f7c7.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{1ce46085095679386580.js → 8cade3af17a8bb6d4e37.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{f5f513997cde0ce0f2a2.js → 8eb535b43e1220cf0d75.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{6af14a0217077d9ab47f.js → aaf3ed508d30ed583915.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{91858b02da40ff251ab2.js → b397a9f87082705301a4.js} +2 -2
  38. package/assets/esri/core/workers/chunks/baad696d84ab78b3d00e.js +2 -0
  39. package/assets/esri/core/workers/chunks/{f104823f3b31a204bacb.js → bc2dcbdc414d157ab727.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{6bd910e0480451a8d6aa.js → bde2c3199f667b63dbe8.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{4214f46bee613dea72f3.js → c66aa57b6360963bd938.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{c409b8d39c0a40dafa06.js → cb5f4820277f3fc7ff2f.js} +1 -1
  43. package/assets/esri/core/workers/chunks/cbcb3530375e280bfeac.js +1 -0
  44. package/assets/esri/core/workers/chunks/{5c12a9b0db317620dce2.js → d39f5d57f7e35c00ca16.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{a82587f69c4bbcac7e0b.js → dc7df2072c0ebed5602c.js} +1 -1
  46. package/assets/esri/core/workers/chunks/dd3789e71270a4640551.js +1 -0
  47. package/assets/esri/core/workers/chunks/de5719ef663224860af5.js +1 -0
  48. package/assets/esri/core/workers/chunks/de6438fdbe38d32c4ad5.js +1 -0
  49. package/assets/esri/core/workers/chunks/{b705f837caa76cee81fc.js → e09722903e63f6cc2540.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{6cd370c716e4fe87b684.js → e2e03622936d2b35afc0.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{9531f17cecd50431cce2.js → e8ae71e482b8d5f54a72.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{7477a4d08414b561d03b.js → e97b29b026a734bbcff8.js} +1 -1
  53. package/assets/esri/core/workers/chunks/edaae0fc63d16b0f675d.js +2 -0
  54. package/assets/esri/core/workers/chunks/{214323c62d6d3b603a00.js → f7506c9d57b2ae0c5fd3.js} +1 -1
  55. package/assets/esri/themes/base/widgets/_Editor.scss +1 -0
  56. package/assets/esri/themes/dark/main.css +1 -1
  57. package/assets/esri/themes/light/main.css +1 -1
  58. package/assets/esri/themes/light/view.css +1 -1
  59. package/chunks/Envelope.js +1 -1
  60. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  61. package/chunks/GeodeticUtils.js +1 -1
  62. package/chunks/Geometry.js +1 -1
  63. package/chunks/MultiPathImpl.js +1 -1
  64. package/chunks/OperatorGeodesicBuffer.js +1 -1
  65. package/chunks/OperatorGeodeticArea.js +1 -1
  66. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  67. package/chunks/OperatorGeodeticLength.js +1 -1
  68. package/chunks/OperatorIntegrate.js +2 -0
  69. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  70. package/chunks/OperatorProximityGeodesic.js +1 -1
  71. package/chunks/OperatorShapePreservingLength.js +1 -1
  72. package/chunks/OperatorShapePreservingProject.js +1 -1
  73. package/chunks/Point2D.js +1 -1
  74. package/chunks/SpatialReference.js +1 -1
  75. package/chunks/relateOperator.js +1 -1
  76. package/config.js +1 -1
  77. package/effects/FocusAreas.d.ts +1 -1
  78. package/form/elements/FieldElement.d.ts +1 -1
  79. package/form/elements/GroupElement.d.ts +1 -1
  80. package/form/elements/TextElement.d.ts +1 -1
  81. package/form/elements/inputs/ComboBoxInput.d.ts +1 -1
  82. package/form/elements/inputs/RadioButtonsInput.d.ts +1 -1
  83. package/form/elements/inputs/SwitchInput.d.ts +1 -1
  84. package/geometry/Mesh.d.ts +7 -7
  85. package/geometry/operators/alphaShapeOperator.d.ts +1 -1
  86. package/geometry/operators/areaOperator.d.ts +1 -1
  87. package/geometry/operators/bufferOperator.d.ts +1 -1
  88. package/geometry/operators/centroidOperator.d.ts +1 -1
  89. package/geometry/operators/clipOperator.d.ts +1 -1
  90. package/geometry/operators/containsOperator.d.ts +1 -1
  91. package/geometry/operators/convexHullOperator.d.ts +1 -1
  92. package/geometry/operators/crossesOperator.d.ts +1 -1
  93. package/geometry/operators/cutOperator.d.ts +1 -1
  94. package/geometry/operators/densifyOperator.d.ts +1 -1
  95. package/geometry/operators/differenceOperator.d.ts +1 -1
  96. package/geometry/operators/disjointOperator.d.ts +1 -1
  97. package/geometry/operators/distanceOperator.d.ts +1 -1
  98. package/geometry/operators/extendOperator.js +1 -1
  99. package/geometry/operators/generalizeOperator.d.ts +1 -1
  100. package/geometry/operators/geodesicProximityOperator.d.ts +1 -1
  101. package/geometry/operators/geodeticDistanceOperator.d.ts +1 -1
  102. package/geometry/operators/geodeticUtilsOperator.d.ts +2 -2
  103. package/geometry/operators/graphicBufferOperator.d.ts +1 -1
  104. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  105. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  106. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  107. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  108. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  109. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  110. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  111. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  112. package/geometry/operators/intersectionOperator.d.ts +1 -1
  113. package/geometry/operators/intersectsOperator.d.ts +1 -1
  114. package/geometry/operators/isNearOperator.d.ts +1 -1
  115. package/geometry/operators/lengthOperator.d.ts +1 -1
  116. package/geometry/operators/locateBetweenOperator.d.ts +1 -1
  117. package/geometry/operators/multiPartToSinglePartOperator.d.ts +1 -1
  118. package/geometry/operators/offsetOperator.d.ts +5 -5
  119. package/geometry/operators/overlapsOperator.d.ts +1 -1
  120. package/geometry/operators/proximityOperator.d.ts +1 -1
  121. package/geometry/operators/reshapeOperator.js +1 -1
  122. package/geometry/operators/simplifyOGCOperator.d.ts +1 -1
  123. package/geometry/operators/simplifyOperator.d.ts +1 -1
  124. package/geometry/operators/support/Transformation.d.ts +6 -6
  125. package/geometry/operators/support/jsonConverter.js +1 -1
  126. package/geometry/operators/support/projectionTransformation.js +1 -1
  127. package/geometry/operators/symmetricDifferenceOperator.d.ts +1 -1
  128. package/geometry/operators/touchesOperator.d.ts +1 -1
  129. package/geometry/operators/unionOperator.d.ts +1 -1
  130. package/geometry/operators/withinOperator.d.ts +1 -1
  131. package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
  132. package/kernel.js +1 -1
  133. package/layers/BuildingSceneLayer.d.ts +4 -4
  134. package/layers/CSVLayer.d.ts +2 -2
  135. package/layers/CatalogLayer.d.ts +2 -2
  136. package/layers/ElevationLayer.d.ts +1 -1
  137. package/layers/FeatureLayer.d.ts +2 -2
  138. package/layers/GeoJSONLayer.d.ts +2 -2
  139. package/layers/GeoRSSLayer.d.ts +1 -1
  140. package/layers/GraphicsLayer.d.ts +2 -2
  141. package/layers/ImageryLayer.d.ts +3 -3
  142. package/layers/ImageryTileLayer.d.ts +2 -2
  143. package/layers/IntegratedMesh3DTilesLayer.d.ts +6 -6
  144. package/layers/IntegratedMeshLayer.d.ts +7 -7
  145. package/layers/Layer.d.ts +1 -0
  146. package/layers/MapImageLayer.d.ts +1 -1
  147. package/layers/MediaLayer.d.ts +1 -1
  148. package/layers/OGCFeatureLayer.d.ts +2 -2
  149. package/layers/OrientedImageryLayer.js +1 -1
  150. package/layers/PointCloudLayer.d.ts +1 -1
  151. package/layers/SceneLayer.d.ts +5 -5
  152. package/layers/StreamLayer.d.ts +2 -2
  153. package/layers/SubtypeGroupLayer.d.ts +0 -1
  154. package/layers/VectorTileLayer.d.ts +2 -2
  155. package/layers/VideoLayer.d.ts +1 -1
  156. package/layers/VoxelLayer.d.ts +8 -8
  157. package/layers/WFSLayer.d.ts +6 -6
  158. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  159. package/layers/graphics/data/QueryEngineResult.js +1 -1
  160. package/layers/mixins/BlendLayer.d.ts +6 -6
  161. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  162. package/layers/orientedImagery/transformations/utils.js +1 -1
  163. package/layers/pointCloudFilters/PointCloudReturnFilter.d.ts +1 -1
  164. package/layers/pointCloudFilters/PointCloudValueFilter.d.ts +1 -1
  165. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  166. package/layers/support/DimensionalDefinition.d.ts +2 -2
  167. package/layers/support/FeatureEffect.d.ts +4 -4
  168. package/layers/support/FeatureFilter.d.ts +17 -17
  169. package/layers/support/FeatureReductionBinning.d.ts +1 -1
  170. package/layers/support/FeatureReductionCluster.d.ts +9 -9
  171. package/layers/support/LabelClass.d.ts +2 -2
  172. package/layers/support/RasterFunction.d.ts +1 -1
  173. package/layers/support/SceneFilter.d.ts +2 -2
  174. package/layers/support/SceneModification.d.ts +3 -3
  175. package/networks/support/TraceConfiguration.d.ts +5 -4
  176. package/networks/support/UNTraceConfiguration.d.ts +6 -5
  177. package/networks/support/jsonTypes.d.ts +305 -0
  178. package/package.json +3 -3
  179. package/popup/content/AttachmentsContent.d.ts +1 -1
  180. package/popup/content/BarChartMediaInfo.d.ts +1 -1
  181. package/popup/content/ColumnChartMediaInfo.d.ts +1 -1
  182. package/popup/content/FieldsContent.d.ts +1 -1
  183. package/popup/content/ImageMediaInfo.d.ts +1 -1
  184. package/popup/content/LineChartMediaInfo.d.ts +1 -1
  185. package/popup/content/MediaContent.d.ts +1 -1
  186. package/popup/content/PieChartMediaInfo.d.ts +1 -1
  187. package/popup/content/RelationshipContent.d.ts +1 -1
  188. package/popup/content/TextContent.d.ts +1 -1
  189. package/portal/schemas/definitions.js +1 -1
  190. package/renderers/DotDensityRenderer.d.ts +3 -3
  191. package/renderers/FlowRenderer.d.ts +6 -6
  192. package/renderers/HeatmapRenderer.d.ts +3 -3
  193. package/renderers/PieChartRenderer.d.ts +1 -1
  194. package/renderers/RasterShadedReliefRenderer.d.ts +1 -1
  195. package/renderers/Renderer.d.ts +2 -2
  196. package/renderers/SimpleRenderer.d.ts +1 -1
  197. package/renderers/VectorFieldRenderer.d.ts +1 -1
  198. package/renderers/mixins/VisualVariablesMixin.d.ts +8 -8
  199. package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
  200. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  201. package/rest/support/AutoIntervalBinParameters.d.ts +1 -1
  202. package/rest/support/DateBinParameters.d.ts +1 -1
  203. package/rest/support/FixedBoundariesBinParameters.d.ts +1 -1
  204. package/rest/support/FixedIntervalBinParameters.d.ts +1 -1
  205. package/smartMapping/labels/clusters.d.ts +1 -1
  206. package/smartMapping/popup/clusters.d.ts +2 -2
  207. package/smartMapping/popup/templates.d.ts +1 -1
  208. package/smartMapping/raster/renderers/flow.d.ts +2 -2
  209. package/smartMapping/renderers/color.d.ts +12 -12
  210. package/smartMapping/renderers/predominance.d.ts +3 -3
  211. package/smartMapping/renderers/relationship.d.ts +15 -15
  212. package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
  213. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  214. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  215. package/smartMapping/support/utils.js +1 -1
  216. package/smartMapping/symbology/color.d.ts +4 -4
  217. package/smartMapping/symbology/flow.d.ts +2 -2
  218. package/smartMapping/symbology/types.d.ts +18 -18
  219. package/support/revision.js +1 -1
  220. package/symbols/CIMSymbol.d.ts +1 -1
  221. package/symbols/FillSymbol3DLayer.d.ts +3 -3
  222. package/symbols/IconSymbol3DLayer.d.ts +1 -1
  223. package/symbols/LabelSymbol3D.d.ts +2 -2
  224. package/symbols/LineStyleMarker3D.d.ts +7 -7
  225. package/symbols/LineSymbol3D.d.ts +2 -2
  226. package/symbols/LineSymbol3DLayer.d.ts +7 -7
  227. package/symbols/LineSymbolMarker.d.ts +6 -6
  228. package/symbols/MarkerSymbol.d.ts +1 -1
  229. package/symbols/MeshSymbol3D.d.ts +2 -2
  230. package/symbols/ObjectSymbol3DLayer.d.ts +1 -1
  231. package/symbols/PathSymbol3DLayer.d.ts +14 -14
  232. package/symbols/PictureFillSymbol.d.ts +1 -1
  233. package/symbols/PictureMarkerSymbol.d.ts +1 -1
  234. package/symbols/PointSymbol3D.d.ts +3 -3
  235. package/symbols/PolygonSymbol3D.d.ts +8 -26
  236. package/symbols/PolygonSymbol3D.js +1 -1
  237. package/symbols/SimpleFillSymbol.d.ts +8 -8
  238. package/symbols/SimpleLineSymbol.d.ts +20 -20
  239. package/symbols/SimpleMarkerSymbol.d.ts +7 -7
  240. package/symbols/Symbol3DLayer.d.ts +16 -16
  241. package/symbols/TextSymbol.d.ts +1 -1
  242. package/symbols/TextSymbol3DLayer.d.ts +1 -1
  243. package/symbols/WaterSymbol3DLayer.d.ts +3 -3
  244. package/symbols/WebStyleSymbol.d.ts +1 -1
  245. package/symbols/callouts/Callout3D.d.ts +1 -1
  246. package/symbols/callouts/LineCallout3D.d.ts +3 -3
  247. package/symbols/cim/cimAnalyzer.js +1 -1
  248. package/symbols/cim/types.d.ts +23 -23
  249. package/symbols/edges/Edges3D.d.ts +1 -1
  250. package/symbols/edges/SolidEdges3D.d.ts +1 -1
  251. package/symbols/patterns/LineStylePattern3D.d.ts +11 -11
  252. package/symbols/patterns/StylePattern3D.d.ts +8 -8
  253. package/symbols/support/ElevationInfo.d.ts +2 -2
  254. package/symbols/support/IconSymbol3DLayerResource.d.ts +6 -6
  255. package/symbols/support/ObjectSymbol3DLayerResource.d.ts +7 -7
  256. package/symbols/support/Symbol3DEmissive.d.ts +24 -13
  257. package/symbols/support/Symbol3DVerticalOffset.d.ts +2 -2
  258. package/symbols/support/previewSymbol3D.js +1 -1
  259. package/views/2d/engine/webgl/shaderGraph/techniques/GraphicInstanceStore.js +1 -1
  260. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +1 -1
  261. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  262. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  263. package/views/2d/engine/webgl/shaderGraph/techniques/animated/attributes.js +1 -1
  264. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  265. package/views/2d/layers/BaseLayerViewGL2D.d.ts +1 -1
  266. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  267. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  268. package/views/2d/types.d.ts +3 -3
  269. package/views/3d/environment/CloudyWeather.d.ts +1 -1
  270. package/views/3d/environment/Environment.d.ts +4 -4
  271. package/views/3d/environment/FoggyWeather.d.ts +1 -1
  272. package/views/3d/environment/RainyWeather.d.ts +1 -1
  273. package/views/3d/environment/SnowyWeather.d.ts +1 -1
  274. package/views/3d/environment/SunLighting.d.ts +1 -1
  275. package/views/3d/environment/SunnyWeather.d.ts +1 -1
  276. package/views/3d/environment/VirtualLighting.d.ts +1 -1
  277. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  278. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  279. package/views/3d/webgl/RenderNode.d.ts +46 -57
  280. package/views/3d/webgl.d.ts +8 -5
  281. package/views/Magnifier.d.ts +3 -3
  282. package/views/MapView.d.ts +7 -7
  283. package/views/SceneView.d.ts +34 -37
  284. package/views/View.d.ts +2 -2
  285. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  286. package/views/interactive/sketch/SketchLabelOptions.d.ts +1 -1
  287. package/views/interactive/sketch/SketchTooltipOptions.d.ts +1 -1
  288. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  289. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  290. package/views/interactive/snapping/SnappingOptions.d.ts +7 -7
  291. package/views/support/HighlightOptions.d.ts +1 -1
  292. package/views/support/flow/dataUtils.js +1 -1
  293. package/views/ui/DefaultUI.d.ts +2 -2
  294. package/webscene/Environment.d.ts +10 -10
  295. package/webscene/Glow.d.ts +8 -5
  296. package/webscene/background/ColorBackground.d.ts +1 -1
  297. package/webscene/spec-certification/spec.js +1 -1
  298. package/widgets/AreaMeasurement2D.d.ts +1 -1
  299. package/widgets/AreaMeasurement3D.d.ts +2 -2
  300. package/widgets/Attachments.d.ts +1 -1
  301. package/widgets/Attribution.d.ts +1 -1
  302. package/widgets/BasemapGallery.d.ts +1 -1
  303. package/widgets/BasemapLayerList.d.ts +3 -3
  304. package/widgets/BasemapToggle.d.ts +1 -1
  305. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +1 -1
  306. package/widgets/Bookmarks.d.ts +2 -2
  307. package/widgets/BuildingExplorer.d.ts +1 -1
  308. package/widgets/CatalogLayerList.d.ts +3 -3
  309. package/widgets/Compass.d.ts +2 -2
  310. package/widgets/CoordinateConversion.d.ts +1 -1
  311. package/widgets/Daylight.d.ts +5 -5
  312. package/widgets/DirectLineMeasurement3D.d.ts +2 -2
  313. package/widgets/Directions.d.ts +4 -4
  314. package/widgets/DistanceMeasurement2D.d.ts +1 -1
  315. package/widgets/Editor/CreateFeaturesWorkflow.d.ts +1 -1
  316. package/widgets/Editor.d.ts +2 -2
  317. package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +1 -1
  318. package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +1 -1
  319. package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +1 -1
  320. package/widgets/ElevationProfile.d.ts +3 -3
  321. package/widgets/Expand.d.ts +1 -1
  322. package/widgets/FeatureForm.d.ts +1 -1
  323. package/widgets/FeatureTable/ActionColumn.d.ts +1 -1
  324. package/widgets/FeatureTable/AttachmentsColumn.d.ts +1 -1
  325. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +3 -3
  326. package/widgets/FeatureTable/Grid/GroupColumn.d.ts +1 -1
  327. package/widgets/FeatureTable/RelationshipColumn.d.ts +1 -1
  328. package/widgets/FeatureTable/VisibleElements.d.ts +1 -1
  329. package/widgets/FeatureTable.d.ts +9 -9
  330. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +5 -5
  331. package/widgets/FeatureTemplates.d.ts +8 -8
  332. package/widgets/Features/FeaturesViewModel.d.ts +2 -2
  333. package/widgets/Features/FeaturesVisibleElements.d.ts +2 -2
  334. package/widgets/Features.d.ts +1 -1
  335. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  336. package/widgets/Histogram.d.ts +2 -2
  337. package/widgets/HistogramRangeSlider.d.ts +1 -1
  338. package/widgets/Home.d.ts +1 -1
  339. package/widgets/LayerList.d.ts +4 -4
  340. package/widgets/Legend.d.ts +8 -8
  341. package/widgets/LineOfSight.d.ts +1 -1
  342. package/widgets/Locate.d.ts +2 -2
  343. package/widgets/Measurement.d.ts +1 -1
  344. package/widgets/NavigationToggle/NavigationToggleViewModel.d.ts +1 -1
  345. package/widgets/NavigationToggle.d.ts +3 -3
  346. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  347. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  348. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  349. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  350. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  351. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  352. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  353. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  354. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  355. package/widgets/OrientedImageryViewer/services/TransformationService.js +1 -1
  356. package/widgets/OrientedImageryViewer.js +1 -1
  357. package/widgets/Popup/PopupVisibleElements.d.ts +2 -2
  358. package/widgets/Popup.d.ts +5 -5
  359. package/widgets/Print/CustomTemplate.d.ts +1 -1
  360. package/widgets/Print/TemplateOptions.d.ts +4 -4
  361. package/widgets/ScaleRangeSlider.d.ts +1 -1
  362. package/widgets/Search/SearchViewModel.d.ts +4 -4
  363. package/widgets/Search.d.ts +5 -5
  364. package/widgets/ShadowCast.d.ts +3 -3
  365. package/widgets/Sketch/SketchViewModel.d.ts +39 -39
  366. package/widgets/Sketch.d.ts +43 -43
  367. package/widgets/Slice.d.ts +2 -2
  368. package/widgets/Slider/SliderViewModel.d.ts +2 -2
  369. package/widgets/Slider.d.ts +9 -9
  370. package/widgets/Swipe/SwipeViewModel.d.ts +1 -1
  371. package/widgets/Swipe.d.ts +2 -2
  372. package/widgets/TableList.d.ts +1 -1
  373. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +8 -8
  374. package/widgets/TimeSlider/types.d.ts +1 -1
  375. package/widgets/TimeSlider.d.ts +11 -11
  376. package/widgets/Track.d.ts +2 -2
  377. package/widgets/UtilityNetworkAssociations.d.ts +3 -3
  378. package/widgets/UtilityNetworkTrace.d.ts +4 -4
  379. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
  380. package/widgets/ValuePicker.d.ts +5 -5
  381. package/widgets/VideoPlayer.d.ts +1 -1
  382. package/widgets/smartMapping/ClassedColorSlider.d.ts +1 -1
  383. package/widgets/smartMapping/ClassedSizeSlider.d.ts +1 -1
  384. package/widgets/smartMapping/ColorSizeSlider.d.ts +2 -2
  385. package/widgets/smartMapping/ColorSlider.d.ts +1 -1
  386. package/widgets/smartMapping/HeatmapSlider.d.ts +1 -1
  387. package/widgets/smartMapping/OpacitySlider.d.ts +1 -1
  388. package/widgets/smartMapping/SizeSlider.d.ts +1 -1
  389. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +4 -4
  390. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +6 -6
  391. package/widgets/support/GridControls.d.ts +1 -1
  392. package/widgets/support/SnappingControls/VisibleElements.d.ts +1 -1
  393. package/widgets/support/SnappingControls.d.ts +6 -6
  394. package/assets/esri/core/workers/chunks/3b0cfe3db8d90e02d6c6.js +0 -1
  395. package/assets/esri/core/workers/chunks/754e4d0b8c1ad392bd83.js +0 -1
  396. package/assets/esri/core/workers/chunks/7e6309bfed6692e8d2d7.js +0 -2
  397. package/assets/esri/core/workers/chunks/9bb04d5f2e6f6e4585a0.js +0 -1
  398. package/assets/esri/core/workers/chunks/bdd246cc50ccd5c10987.js +0 -1
  399. package/assets/esri/core/workers/chunks/c941b716ea3c13cabc80.js +0 -1
  400. package/assets/esri/core/workers/chunks/c9babe86c00ae69e63ee.js +0 -2
  401. package/assets/esri/core/workers/chunks/d47ca631e109144b6ba9.js +0 -1
  402. package/assets/esri/core/workers/chunks/e0519f24430fecead87b.js +0 -1
  403. package/assets/esri/core/workers/chunks/fd5a5b05a1551cdb8c87.js +0 -1
  404. /package/assets/esri/core/workers/chunks/{2762149a922275136171.js.LICENSE.txt → 112227b862b935123ddf.js.LICENSE.txt} +0 -0
  405. /package/assets/esri/core/workers/chunks/{72acfb74fd9ab9bae923.js.LICENSE.txt → 53e348f5585fa8c53fe8.js.LICENSE.txt} +0 -0
  406. /package/assets/esri/core/workers/chunks/{7e6309bfed6692e8d2d7.js.LICENSE.txt → b397a9f87082705301a4.js.LICENSE.txt} +0 -0
  407. /package/assets/esri/core/workers/chunks/{91858b02da40ff251ab2.js.LICENSE.txt → baad696d84ab78b3d00e.js.LICENSE.txt} +0 -0
  408. /package/assets/esri/core/workers/chunks/{c9babe86c00ae69e63ee.js.LICENSE.txt → edaae0fc63d16b0f675d.js.LICENSE.txt} +0 -0
@@ -25,7 +25,7 @@ export default class Symbol3DVerticalOffset extends JSONSupport {
25
25
  *
26
26
  * In the following animation the green symbols have `maxWorldLength = 50` and orange symbols don't have `maxWorldLength` set:
27
27
  *
28
- * ![maxWorldLength](https://developers.arcgis.com/javascript/latest/assets/images/apiref/symbols/symbols3D-line-callout-maxWorldLength.gif)
28
+ * ![maxWorldLength](https://developers.arcgis.com/javascript/latest/assets/references/core/symbols/symbols3D-line-callout-maxWorldLength.gif)
29
29
  */
30
30
  accessor maxWorldLength: number | null | undefined;
31
31
  /**
@@ -33,7 +33,7 @@ export default class Symbol3DVerticalOffset extends JSONSupport {
33
33
  *
34
34
  * In the following animation the green symbol on the left has `minWorldLength = 20` and for the orange symbol on the right `minWorldLength` has not been set:
35
35
  *
36
- * ![minWorldLength-on](https://developers.arcgis.com/javascript/latest/assets/images/apiref/symbols/symbols3D-line-callout-minWorldLength.gif)
36
+ * ![minWorldLength-on](https://developers.arcgis.com/javascript/latest/assets/references/core/symbols/symbols3D-line-callout-minWorldLength.gif)
37
37
  *
38
38
  * @default 0
39
39
  */
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{getAssetUrl as e}from"../../assets.js";import{toHSV as t,toRGB as l}from"../../core/colorUtils.js";import a from"../../core/Error.js";import s from"../../core/Logger.js";import{pt2px as n}from"../../core/screenUtils.js";import{defaultThematicColor as r,dekebabifyLineStyle as o,getPatternUrlWithColor as i}from"./gfxUtils.js";import{adjustColorComponentBrightness as c,shapes as p,getTetrahedronShapes as u,getDiamondShapes as h,getCylinderShapes as m,getCubeShapes as f,getInvertedConeShapes as y,getConeShapes as d,getPathSymbolShapes as b,getWaterSymbolShapes as k,getExtrudeSymbolShapes as v}from"./previewUtils.js";import{defaultObjectPrimitive as g,defaultIconPrimitive as w}from"./primitives.js";import{renderSymbol as x,tintImageWithColor as M}from"./renderUtils.js";import{isVolumetricSymbol as L,getIconHref as j}from"./utils.js";import{resolveWebStyleSymbol as z}from"./webStyleSymbolUtils.js";const S=22,P=120,U=80,C=50,D=20;function O(e){const t=e.outline,l=null!=e.material?e.material.color:null,a=null!=l?l.toHex():null;if(null==t||"pattern"in t&&null!=t.pattern&&"style"===t.pattern.type&&"none"===t.pattern.style)return"fill"===e.type&&"#ffffff"===a?{color:"#bdc3c7",width:.75}:null;const s=n(t.size)||0;return{color:"rgba("+(null!=t.color?t.color.toRgba():"255,255,255,1")+")",width:Math.min(s,U),style:"pattern"in t&&null!=t.pattern&&"style"===t.pattern.type?o(t.pattern.style):null,join:"butt",cap:"patternCap"in t?t.patternCap:"butt"}}async function E(t,l){if(t.thumbnail?.url)return t.thumbnail.url;if("icon"===l.type){const e=l?.resource?.href;if(e)return j(l)}const a=e("esri/images/Legend/legend3dsymboldefault.png");if(t.styleOrigin&&(t.styleOrigin.styleName||t.styleOrigin.styleUrl)){const e=await z(t.styleOrigin,{portal:t.styleOrigin.portal}).catch(()=>null);if(e&&"thumbnail"in e&&e.thumbnail?.url)return e.thumbnail.url}return a}function q(e,a=1){const s=e.a,n=t(e),r=n.h,o=n.s/a,i=100-(100-n.v)/a,{r:c,g:p,b:u}=l({h:r,s:o,v:i});return[c,p,u,s]}function R(e){return"water"===e.type?null==e.color?null:e.color:null==e.material?.color?null:e.material.color}function Z(e,t=0){const l=R(e);if(!l){if("fill"===e.type)return null;const l=r.r,a=c(l,t);return[a,a,a,100]}const a=l.toRgba();for(let s=0;s<3;s++)a[s]=c(a[s],t);return a}async function H(t,l){const a=t.style;if("none"===a)return null;return{type:"pattern",x:0,y:0,src:await i(e(`esri/symbols/patterns/${a}.png`),l.toCss(!0)),width:5,height:5}}function I(e){return e.outline?O(e):{color:"rgba(0, 0, 0, 1)",width:1.5}}function N(e,t){const l=R(e);if(!l)return null;let a="rgba(";return a+=c(l.r,t)+",",a+=c(l.g,t)+",",a+=c(l.b,t)+",",a+l.a+");"}function T(e,t){const l=e.edges;if(!l||!l.color||!l.size)return null;return{color:l.color.toCss(!0),width:Math.min(n(l.size),t,U),join:"round"}}function F(e,t){const l=N(e,t);if(!l)return null;if("pattern"in e&&null!=e.pattern&&"style"===e.pattern.type&&"none"===e.pattern.style)return null;const a={color:l,width:Math.min(e.size?n(e.size):.75,U)};return"pattern"in e&&"style"===e.pattern?.type&&(a.style=o(e.pattern.style)),"cap"in e&&e.cap&&(a.cap=e.cap),"join"in e&&e.join&&(a.join="miter"===e.join?n(2):e.join),a}function $(e,t,l){const a=null!=l?.75*l:0;return{type:"linear",x1:a?.25*a:0,y1:a?.5*a:0,x2:a||4,y2:a?.5*a:4,colors:[{color:e,offset:0},{color:t,offset:1}]}}function A(e){const t=e.depth,l=e.height,a=e.width;return 0!==a&&0!==t&&0!==l&&a===t&&null!=a&&null!=l&&a<l}function B(e,t,l){const a=[];if(!e)return a;switch(e.type){case"icon":{const l=0,s=0,n=t,r=t;switch(e.resource?.primitive??w){case"circle":a.push({shape:{type:"circle",cx:0,cy:0,r:.5*t},fill:Z(e,0),stroke:O(e)});break;case"square":a.push({shape:{type:"path",path:[{command:"M",values:[l,r]},{command:"L",values:[l,s]},{command:"L",values:[n,s]},{command:"L",values:[n,r]},{command:"Z",values:[]}]},fill:Z(e,0),stroke:O(e)});break;case"triangle":a.push({shape:{type:"path",path:[{command:"M",values:[l,r]},{command:"L",values:[.5*n,s]},{command:"L",values:[n,r]},{command:"Z",values:[]}]},fill:Z(e,0),stroke:O(e)});break;case"cross":a.push({shape:{type:"path",path:[{command:"M",values:[.5*n,s]},{command:"L",values:[.5*n,r]},{command:"M",values:[l,.5*r]},{command:"L",values:[n,.5*r]}]},stroke:I(e)});break;case"x":a.push({shape:{type:"path",path:[{command:"M",values:[l,s]},{command:"L",values:[n,r]},{command:"M",values:[n,s]},{command:"L",values:[l,r]}]},stroke:I(e)});break;case"kite":a.push({shape:{type:"path",path:[{command:"M",values:[l,.5*r]},{command:"L",values:[.5*n,s]},{command:"L",values:[n,.5*r]},{command:"L",values:[.5*n,r]},{command:"Z",values:[]}]},fill:Z(e,0),stroke:O(e)})}break}case"object":switch(e.resource?.primitive??g){case"cone":{const s=$(Z(e,0),Z(e,-.6),l?D:t),n=d(t,l);a.push({shape:n[0],fill:s},{shape:n[1],fill:s});break}case"inverted-cone":{const l=Z(e,0),s=$(l,Z(e,-.6),t),n=y(t);a.push({shape:n[0],fill:s},{shape:n[1],fill:l});break}case"cube":{const s=f(t,l);a.push({shape:s[0],fill:Z(e,0)},{shape:s[1],fill:Z(e,-.3)},{shape:s[2],fill:Z(e,-.5)});break}case"cylinder":{const s=$(Z(e,0),Z(e,-.6),l?D:t),n=m(t,l);a.push({shape:n[0],fill:s},{shape:n[1],fill:s},{shape:n[2],fill:Z(e,0)});break}case"diamond":{const l=h(t);a.push({shape:l[0],fill:Z(e,-.3)},{shape:l[1],fill:Z(e,0)},{shape:l[2],fill:Z(e,-.3)},{shape:l[3],fill:Z(e,-.7)});break}case"sphere":{const l=$(Z(e,0),Z(e,-.6));l.x1=0,l.y1=0,l.x2=.25*t,l.y2=.25*t,a.push({shape:{type:"circle",cx:0,cy:0,r:.5*t},fill:l});break}case"tetrahedron":{const l=u(t);a.push({shape:l[0],fill:Z(e,-.3)},{shape:l[1],fill:Z(e,0)},{shape:l[2],fill:Z(e,-.6)});break}}break}return a}function G(e){const t="number"==typeof e?.size?e?.size:null;return t?n(t):null}function J(e){return"icon"===e.type?"multiply":"tint"}async function K(e,t){const l=G(t),a=t?.maxSize?n(t.maxSize):null,r=t?.disableUpsampling??!1,o=e.symbolLayers,i=[],c=[];let p=!1,u=0,h=0,m=0;o.forEach(s=>{if("icon"!==s.type&&"object"!==s.type)return;s&&"icon"===s.type&&(m=Math.max(s.size&&n(s.size),m));const o="icon"===s.type?s.size&&n(s.size):0,f=l||o?Math.ceil(Math.min(l||o,a||P)):S;let y="icon"===s.type?s.angle:null;if(null!=t?.rotation&&(y=(y??0)+t.rotation),c.push(y),s?.resource?.href){const t=E(e,s).then(e=>{const t=s?.material?.color,l=J(s);return M(e,f,t,l,r)}).then(e=>{const t=e.width,l=e.height;return u=Math.max(u,t),h=Math.max(h,l),y&&(p=!0),[{shape:{type:"image",x:0,y:0,width:t,height:l,src:e.url},fill:null,stroke:null}]});i.push(t)}else{let e=f;"icon"===s.type&&l&&(e=f*(o/m));const a="tall"===t?.symbolConfig||t?.symbolConfig?.isTall||"object"===s.type&&A(s);u=Math.max(u,a?D:e),h=Math.max(h,e),y&&s.resource?.primitive&&["square","triangle","x"].includes(s.resource?.primitive)&&(p=!0),i.push(Promise.resolve(B(s,e,a)))}});const f=await Promise.allSettled(i),y=[];return f.forEach(e=>{"fulfilled"===e.status?y.push(e.value):e.reason&&s.getLogger("esri.symbols.support.previewSymbol3D").warn("error while building swatchInfo!",e.reason)}),x(y,[u,h],{node:t?.node,scale:!1,opacity:t?.opacity,ariaLabel:t?.ariaLabel,rotations:c,useRotationSize:p})}function Q(e,t){const l=e.symbolLayers,a=[],s=L(e),r=G(t),o=(t?.maxSize?n(t.maxSize):null)||U;let i,c=0,u=0;return l.forEach((e,t)=>{if(!e)return;if("line"!==e.type&&"path"!==e.type)return;const l=[];switch(e.type){case"line":{const a=F(e,0);if(null==a)break;const s=a?.width||0;0===t&&(i=s);const n=Math.min(r||s,o),p=0===t?n:r?n*(s/i):n,h=p>C/2?2*p:C;u=Math.max(u,p),c=Math.max(c,h),a.width=p,l.push({shape:{type:"path",path:[{command:"M",values:[0,.5*u]},{command:"L",values:[c,.5*u]}]},stroke:a});break}case"path":{const t=Math.min(r||S,o),a=Z(e,0),s=Z(e,-.2),n=N(e,-.4),i=n?{color:n,width:1}:{};if("quad"===e.profile){const t=e.width,n=e.height,r=b(t&&n?t/n:1,0===n,0===t),o={...i,join:"bevel"};l.push({shape:r[0],fill:s,stroke:o},{shape:r[1],fill:s,stroke:o},{shape:r[2],fill:a,stroke:o})}else l.push({shape:p.pathSymbol3DLayer[0],fill:s,stroke:i},{shape:p.pathSymbol3DLayer[1],fill:a,stroke:i});u=Math.max(u,t),c=u}}a.push(l)}),Promise.resolve(x(a,[c,u],{node:t?.node,scale:s,opacity:t?.opacity,ariaLabel:t?.ariaLabel}))}async function V(e,t){const l="mesh-3d"===e.type,a=e.symbolLayers,s=G(t),r=t?.maxSize?n(t.maxSize):null,o=s||S,i=[];let c=0,u=0,h=!1;for(let n=0;n<a.length;n++){const e=a.at(n),t=[];if(!l||"fill"===e.type){switch(e.type){case"fill":{const a=Math.min(o,r||P);if(c=Math.max(c,a),u=Math.max(u,a),h=!0,l){const l=p.meshSymbol3DFill,s=N(e,-.4),n=T(e,.05*a)??(s?{join:"round",color:s,width:1}:null);t.push({shape:l[0],fill:Z(e,0),stroke:n},{shape:l[1],fill:Z(e,-.2),stroke:n},{shape:l[2],fill:Z(e,-.6),stroke:n})}else{let l=Z(e,0);const a="pattern"in e?e.pattern:null,s=O(e),n=R(e);null!=a&&"style"===a.type&&"solid"!==a.style&&n&&(l=await H(a,n)),t.push({shape:p.fill[0],fill:l,stroke:s})}break}case"line":{const l=F(e,0);if(null==l)break;const a={stroke:l,shape:p.fill[0]};c=Math.max(c,S),u=Math.max(u,S),t.push(a);break}case"extrude":{const l=Z(e,0),a=Z(e,-.2),s=Math.min(o,r||P),n=v(s),i=S,p=.7*S+.5*s,h=T(e,.1*Math.min(i,p))??{join:"round",...F(e,-.4),width:1};t.push({shape:n[0],fill:a,stroke:h},{shape:n[1],fill:a,stroke:h},{shape:n[2],fill:l,stroke:h}),c=Math.max(c,i),u=Math.max(u,p);break}case"water":{const l=R(e),a=q(l),s=q(l,2),n=q(l,3),i=k();h=!0,t.push({shape:i[0],fill:a},{shape:i[1],fill:s},{shape:i[2],fill:n});const p=Math.min(o,r||P);c=Math.max(c,p),u=Math.max(u,p);break}}i.push(t)}}return x(i,[c,u],{node:t?.node,scale:h,opacity:t?.opacity,ariaLabel:t?.ariaLabel})}function W(e,t){if(0===e.symbolLayers.length)return Promise.reject(new a("symbolPreview: renderPreviewHTML3D","No symbolLayers in the symbol."));switch(e.type){case"point-3d":return K(e,t);case"line-3d":return Q(e,t);case"polygon-3d":case"mesh-3d":return V(e,t)}return Promise.reject(new a("symbolPreview: swatchInfo3D","symbol not supported."))}export{H as getPatternDescriptor,G as getSizeFromOptions,Z as getSymbolLayerFill,W as previewSymbol3D};
2
+ import{getAssetUrl as e}from"../../assets.js";import{toHSV as t,toRGB as l}from"../../core/colorUtils.js";import a from"../../core/Error.js";import s from"../../core/Logger.js";import{pt2px as n}from"../../core/screenUtils.js";import{defaultThematicColor as r,dekebabifyLineStyle as o,getPatternUrlWithColor as i}from"./gfxUtils.js";import{adjustColorComponentBrightness as c,shapes as p,getTetrahedronShapes as u,getDiamondShapes as h,getCylinderShapes as m,getCubeShapes as f,getInvertedConeShapes as y,getConeShapes as d,getPathSymbolShapes as b,getWaterSymbolShapes as v,getExtrudeSymbolShapes as g}from"./previewUtils.js";import{defaultObjectPrimitive as k,defaultIconPrimitive as w}from"./primitives.js";import{renderSymbol as x,tintImageWithColor as M}from"./renderUtils.js";import{isVolumetricSymbol as L,getIconHref as j}from"./utils.js";import{resolveWebStyleSymbol as z}from"./webStyleSymbolUtils.js";const S=22,P=120,U=80,C=50,D=20;function O(e){const t=e.outline,l=null!=e.material?e.material.color:null,a=null!=l?l.toHex():null;if(null==t||"pattern"in t&&null!=t.pattern&&"style"===t.pattern.type&&"none"===t.pattern.style)return"fill"===e.type&&"#ffffff"===a?{color:"#bdc3c7",width:.75}:null;const s=n(t.size)||0;return{color:"rgba("+(null!=t.color?t.color.toRgba():"255,255,255,1")+")",width:Math.min(s,U),style:"pattern"in t&&null!=t.pattern&&"style"===t.pattern.type?o(t.pattern.style):null,join:"butt",cap:"patternCap"in t?t.patternCap:"butt"}}async function E(t,l){if(t.thumbnail?.url)return t.thumbnail.url;if("icon"===l.type){const e=l?.resource?.href;if(e)return j(l)}const a=e("esri/images/Legend/legend3dsymboldefault.png");if(t.styleOrigin&&(t.styleOrigin.styleName||t.styleOrigin.styleUrl)){const e=await z(t.styleOrigin,{portal:t.styleOrigin.portal}).catch(()=>null);if(e&&"thumbnail"in e&&e.thumbnail?.url)return e.thumbnail.url}return a}function q(e,a=1){const s=e.a,n=t(e),r=n.h,o=n.s/a,i=100-(100-n.v)/a,{r:c,g:p,b:u}=l({h:r,s:o,v:i});return[c,p,u,s]}function R(e){return"water"===e.type?null==e.color?null:e.color:null==e.material?.color?null:e.material.color}function Z(e,t=0){const l=R(e);if(!l){if("fill"===e.type)return null;const l=r.r,a=c(l,t);return[a,a,a,100]}const a=l.toRgba();for(let s=0;s<3;s++)a[s]=c(a[s],t);return a}async function H(t,l){const a=t.style;if("none"===a)return null;return{type:"pattern",x:0,y:0,src:await i(e(`esri/symbols/patterns/${a}.png`),l.toCss(!0)),width:5,height:5}}function I(e){return e.outline?O(e):{color:"rgba(0, 0, 0, 1)",width:1.5}}function N(e,t){const l=R(e);if(!l)return null;let a="rgba(";return a+=c(l.r,t)+",",a+=c(l.g,t)+",",a+=c(l.b,t)+",",a+l.a+");"}function T(e,t){const l=e.edges;if(!l||!l.color||!l.size)return null;return{color:l.color.toCss(!0),width:Math.min(n(l.size),t,U),join:"round"}}function F(e,t){const l=N(e,t);if(!l)return null;if("pattern"in e&&null!=e.pattern&&"style"===e.pattern.type&&"none"===e.pattern.style)return null;const a={color:l,width:Math.min(e.size?n(e.size):.75,U)};return"pattern"in e&&"style"===e.pattern?.type&&(a.style=o(e.pattern.style)),"cap"in e&&e.cap&&(a.cap=e.cap),"join"in e&&e.join&&(a.join="miter"===e.join?n(2):e.join),a}function $(e,t,l){const a=null!=l?.75*l:0;return{type:"linear",x1:a?.25*a:0,y1:a?.5*a:0,x2:a||4,y2:a?.5*a:4,colors:[{color:e,offset:0},{color:t,offset:1}]}}function A(e){const t=e.depth,l=e.height,a=e.width;return 0!==a&&0!==t&&0!==l&&a===t&&null!=a&&null!=l&&a<l}function B(e,t,l){const a=[];if(!e)return a;switch(e.type){case"icon":{const l=0,s=0,n=t,r=t;switch(e.resource?.primitive??w){case"circle":a.push({shape:{type:"circle",cx:0,cy:0,r:.5*t},fill:Z(e,0),stroke:O(e)});break;case"square":a.push({shape:{type:"path",path:[{command:"M",values:[l,r]},{command:"L",values:[l,s]},{command:"L",values:[n,s]},{command:"L",values:[n,r]},{command:"Z",values:[]}]},fill:Z(e,0),stroke:O(e)});break;case"triangle":a.push({shape:{type:"path",path:[{command:"M",values:[l,r]},{command:"L",values:[.5*n,s]},{command:"L",values:[n,r]},{command:"Z",values:[]}]},fill:Z(e,0),stroke:O(e)});break;case"cross":a.push({shape:{type:"path",path:[{command:"M",values:[.5*n,s]},{command:"L",values:[.5*n,r]},{command:"M",values:[l,.5*r]},{command:"L",values:[n,.5*r]}]},stroke:I(e)});break;case"x":a.push({shape:{type:"path",path:[{command:"M",values:[l,s]},{command:"L",values:[n,r]},{command:"M",values:[n,s]},{command:"L",values:[l,r]}]},stroke:I(e)});break;case"kite":a.push({shape:{type:"path",path:[{command:"M",values:[l,.5*r]},{command:"L",values:[.5*n,s]},{command:"L",values:[n,.5*r]},{command:"L",values:[.5*n,r]},{command:"Z",values:[]}]},fill:Z(e,0),stroke:O(e)})}break}case"object":switch(e.resource?.primitive??k){case"cone":{const s=$(Z(e,0),Z(e,-.6),l?D:t),n=d(t,l);a.push({shape:n[0],fill:s},{shape:n[1],fill:s});break}case"inverted-cone":{const l=Z(e,0),s=$(l,Z(e,-.6),t),n=y(t);a.push({shape:n[0],fill:s},{shape:n[1],fill:l});break}case"cube":{const s=f(t,l);a.push({shape:s[0],fill:Z(e,0)},{shape:s[1],fill:Z(e,-.3)},{shape:s[2],fill:Z(e,-.5)});break}case"cylinder":{const s=$(Z(e,0),Z(e,-.6),l?D:t),n=m(t,l);a.push({shape:n[0],fill:s},{shape:n[1],fill:s},{shape:n[2],fill:Z(e,0)});break}case"diamond":{const l=h(t);a.push({shape:l[0],fill:Z(e,-.3)},{shape:l[1],fill:Z(e,0)},{shape:l[2],fill:Z(e,-.3)},{shape:l[3],fill:Z(e,-.7)});break}case"sphere":{const l=$(Z(e,0),Z(e,-.6));l.x1=0,l.y1=0,l.x2=.25*t,l.y2=.25*t,a.push({shape:{type:"circle",cx:0,cy:0,r:.5*t},fill:l});break}case"tetrahedron":{const l=u(t);a.push({shape:l[0],fill:Z(e,-.3)},{shape:l[1],fill:Z(e,0)},{shape:l[2],fill:Z(e,-.6)});break}}break}return a}function G(e){const t="number"==typeof e?.size?e?.size:null;return t?n(t):null}function J(e){return"icon"===e.type?"multiply":"tint"}async function K(e,t){const l=G(t),a=t?.maxSize?n(t.maxSize):null,r=t?.disableUpsampling??!1,o=e.symbolLayers,i=[],c=[];let p=!1,u=0,h=0,m=0;o.forEach(s=>{if("icon"!==s.type&&"object"!==s.type)return;s&&"icon"===s.type&&(m=Math.max(s.size&&n(s.size),m));const o="icon"===s.type?s.size&&n(s.size):0,f=l||o?Math.ceil(Math.min(l||o,a||P)):S;let y="icon"===s.type?s.angle:null;if(null!=t?.rotation&&(y=(y??0)+t.rotation),c.push(y),s?.resource?.href){const t=E(e,s).then(e=>{const t=s?.material?.color,l=J(s);return M(e,f,t,l,r)}).then(e=>{const t=e.width,l=e.height;return u=Math.max(u,t),h=Math.max(h,l),y&&(p=!0),[{shape:{type:"image",x:0,y:0,width:t,height:l,src:e.url},fill:null,stroke:null}]});i.push(t)}else{let e=f;"icon"===s.type&&l&&(e=f*(o/m));const a="tall"===t?.symbolConfig||t?.symbolConfig?.isTall||"object"===s.type&&A(s);u=Math.max(u,a?D:e),h=Math.max(h,e),y&&s.resource?.primitive&&["square","triangle","x"].includes(s.resource?.primitive)&&(p=!0),i.push(Promise.resolve(B(s,e,a)))}});const f=await Promise.allSettled(i),y=[];return f.forEach(e=>{"fulfilled"===e.status?y.push(e.value):e.reason&&s.getLogger("esri.symbols.support.previewSymbol3D").warn("error while building swatchInfo!",e.reason)}),x(y,[u,h],{node:t?.node,scale:!1,opacity:t?.opacity,ariaLabel:t?.ariaLabel,rotations:c,useRotationSize:p})}function Q(e,t){const l=e.symbolLayers,a=[],s=L(e),r=G(t),o=(t?.maxSize?n(t.maxSize):null)||U;let i,c=0,u=0;return l.forEach((e,t)=>{if(!e)return;if("line"!==e.type&&"path"!==e.type)return;const l=[];switch(e.type){case"line":{const a=F(e,0);if(null==a)break;const s=a?.width||0;0===t&&(i=s);const n=Math.min(r||s,o),p=0===t?n:r?n*(s/i):n,h=p>C/2?2*p:C;u=Math.max(u,p),c=Math.max(c,h),a.width=p,l.push({shape:{type:"path",path:[{command:"M",values:[0,.5*u]},{command:"L",values:[c,.5*u]}]},stroke:a});break}case"path":{const t=Math.min(r||S,o),a=Z(e,0),s=Z(e,-.2),n=N(e,-.4),i=n?{color:n,width:1}:{};if("quad"===e.profile){const t=e.width,n=e.height,r=b(t&&n?t/n:1,0===n,0===t),o={...i,join:"bevel"};l.push({shape:r[0],fill:s,stroke:o},{shape:r[1],fill:s,stroke:o},{shape:r[2],fill:a,stroke:o})}else l.push({shape:p.pathSymbol3DLayer[0],fill:s,stroke:i},{shape:p.pathSymbol3DLayer[1],fill:a,stroke:i});u=Math.max(u,t),c=u}}a.push(l)}),Promise.resolve(x(a,[c,u],{node:t?.node,scale:s,opacity:t?.opacity,ariaLabel:t?.ariaLabel}))}async function V(e,t){const l="mesh-3d"===e.type,a=e.symbolLayers,s=G(t),r=t?.maxSize?n(t.maxSize):null,o=s||S,i=[];let c=0,u=0,h=!1;for(let n=0;n<a.length;n++){const e=a.at(n),t=[];if(!l||"fill"===e.type){switch(e.type){case"fill":{const a=Math.min(o,r||P);if(c=Math.max(c,a),u=Math.max(u,a),h=!0,l){const l=p.meshSymbol3DFill,s=N(e,-.4),n=T(e,.05*a)??(s?{join:"round",color:s,width:1}:null);t.push({shape:l[0],fill:Z(e,0),stroke:n},{shape:l[1],fill:Z(e,-.2),stroke:n},{shape:l[2],fill:Z(e,-.6),stroke:n})}else{let l=Z(e,0);const a="pattern"in e?e.pattern:null,s=O(e),n=R(e);null!=a&&"style"===a.type&&"solid"!==a.style&&n&&(l=await H(a,n)),t.push({shape:p.fill[0],fill:l,stroke:s})}break}case"extrude":{const l=Z(e,0),a=Z(e,-.2),s=Math.min(o,r||P),n=g(s),i=S,p=.7*S+.5*s,h=T(e,.1*Math.min(i,p))??{join:"round",...F(e,-.4),width:1};t.push({shape:n[0],fill:a,stroke:h},{shape:n[1],fill:a,stroke:h},{shape:n[2],fill:l,stroke:h}),c=Math.max(c,i),u=Math.max(u,p);break}case"water":{const l=R(e),a=q(l),s=q(l,2),n=q(l,3),i=v();h=!0,t.push({shape:i[0],fill:a},{shape:i[1],fill:s},{shape:i[2],fill:n});const p=Math.min(o,r||P);c=Math.max(c,p),u=Math.max(u,p);break}}i.push(t)}}return x(i,[c,u],{node:t?.node,scale:h,opacity:t?.opacity,ariaLabel:t?.ariaLabel})}function W(e,t){if(0===e.symbolLayers.length)return Promise.reject(new a("symbolPreview: renderPreviewHTML3D","No symbolLayers in the symbol."));switch(e.type){case"point-3d":return K(e,t);case"line-3d":return Q(e,t);case"polygon-3d":case"mesh-3d":return V(e,t)}return Promise.reject(new a("symbolPreview: swatchInfo3D","symbol not supported."))}export{H as getPatternDescriptor,G as getSizeFromOptions,Z as getSymbolLayerFill,W as previewSymbol3D};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{FeatureTechniqueInstance as e}from"./TechniqueInstance.js";import{Techniques as i}from"./TechniqueRegistry.js";import{castInstanceId as t}from"./mesh/instanceIdUtils.js";let n=0;function a(i,a){return new e(t(n++),i,a)}const o={visualVariableColor:null,visualVariableOpacity:null,visualVariableSizeMinMaxValue:null,visualVariableSizeScaleStops:null,visualVariableSizeStops:null,visualVariableSizeUnitValue:null,visualVariableRotation:null,visualVariableSizeOutlineScaleStops:null};class l{constructor(){this.instances={fill:a(i.fill,{uniforms:o,optionalAttributes:{zoomRange:!0}}),marker:a(i.marker,{uniforms:o,optionalAttributes:{zoomRange:!0}}),line:a(i.line,{uniforms:o,optionalAttributes:{zoomRange:!0}}),text:a(i.text,{uniforms:o,optionalAttributes:{zoomRange:!0,referenceSymbol:!1,clipAngle:!1,visibility:!1}}),outlineFill:a(i.outlineFill,{uniforms:o,optionalAttributes:{zoomRange:!0}}),complexFill:a(i.complexFill,{uniforms:o,optionalAttributes:{zoomRange:!0}}),gradientFill:a(i.gradientFill,{uniforms:o,optionalAttributes:{zoomRange:!0}}),texturedLine:a(i.texturedLine,{uniforms:o,optionalAttributes:{zoomRange:!0}}),gradientStroke:a(i.gradientStroke,{uniforms:o,optionalAttributes:{zoomRange:!0}}),animatedMarker:a(i.animatedMarker,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!1,lineLength:!1}}),animatedMarkerShift:a(i.animatedMarkerShift,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!0,lineLength:!0}}),animatedPolygon:a(i.animatedFill,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!1,lineLength:!1}}),animatedPolyline:a(i.animatedLine,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!1,accumulatedDistance:!0,segmentDirection:!0,normal:!0,lineLength:!1}}),animatedPolylineShift:a(i.animatedLine,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!1,accumulatedDistance:!0,segmentDirection:!0,normal:!0,lineLength:!0}})},this._instancesById=Object.values(this.instances).reduce((e,i)=>(e.set(i.instanceId,i),e),new Map)}getInstance(e){return this._instancesById.get(e)}}export{l as GraphicInstanceStore};
2
+ import{FeatureTechniqueInstance as e}from"./TechniqueInstance.js";import{Techniques as i}from"./TechniqueRegistry.js";import{castInstanceId as t}from"./mesh/instanceIdUtils.js";let n=0;function a(i,a){return new e(t(n++),i,a)}const o={visualVariableColor:null,visualVariableOpacity:null,visualVariableSizeMinMaxValue:null,visualVariableSizeScaleStops:null,visualVariableSizeStops:null,visualVariableSizeUnitValue:null,visualVariableRotation:null,visualVariableSizeOutlineScaleStops:null};class l{constructor(){this.instances={fill:a(i.fill,{uniforms:o,optionalAttributes:{zoomRange:!0}}),marker:a(i.marker,{uniforms:o,optionalAttributes:{zoomRange:!0}}),line:a(i.line,{uniforms:o,optionalAttributes:{zoomRange:!0}}),text:a(i.text,{uniforms:o,optionalAttributes:{zoomRange:!0,referenceSymbol:!1,clipAngle:!1,visibility:!1}}),outlineFill:a(i.outlineFill,{uniforms:o,optionalAttributes:{zoomRange:!0}}),complexFill:a(i.complexFill,{uniforms:o,optionalAttributes:{zoomRange:!0}}),gradientFill:a(i.gradientFill,{uniforms:o,optionalAttributes:{zoomRange:!0}}),texturedLine:a(i.texturedLine,{uniforms:o,optionalAttributes:{zoomRange:!0}}),gradientStroke:a(i.gradientStroke,{uniforms:o,optionalAttributes:{zoomRange:!0}}),animatedMarker:a(i.animatedMarker,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!1,lineLength:!1}}),animatedMarkerShift:a(i.animatedMarkerShift,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!0,lineLength:!0}}),animatedPolygon:a(i.animatedFill,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!1,lineLength:!1,angle:!0}}),animatedPolyline:a(i.animatedLine,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!1,accumulatedDistance:!0,segmentDirection:!0,normal:!0,lineLength:!1,angle:!1}}),animatedPolylineShift:a(i.animatedLine,{uniforms:o,optionalAttributes:{zoomRange:!0,value1Position2Value2:!1,accumulatedDistance:!0,segmentDirection:!0,normal:!0,lineLength:!0,angle:!1}})},this._instancesById=Object.values(this.instances).reduce((e,i)=>(e.set(i.instanceId,i),e),new Map)}getInstance(e){return this._instancesById.get(e)}}export{l as GraphicInstanceStore};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import{location as e,ComputeVertexInput as o}from"../../GraphShaderModule.js";import{mod as s,Float as i,mix as r,Vec4 as l,ifElse as a,or as n,Bool as c,Vec2 as m}from"../../graph/glsl.js";import{AAnimatedShader as d,getValue as p,AAnimatedVertexInput as u,AAnimatedFragmentInput as b}from"./AAnimatedShader.js";import{MarkerConstants as h}from"../markers/markerConstants.js";import{getBitBool as x}from"../shaders/utils.js";import{getVisualVariableColor as P,getVisualVariableOpacity as y}from"../shaders/vvUtils.js";class v extends u{}t([e(9,l)],v.prototype,"tlbr",void 0);class S extends o{}t([e(13,m)],S.prototype,"nextPos1",void 0),t([e(14,m)],S.prototype,"nextPos2",void 0);class g extends b{}class f extends d{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}_fragmentPoly(t){const e=s(t.uv,new i(1)),o=r(t.tlbr.xy,t.tlbr.zw,e);return this._getColor(o,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth})}_vertexPoly(t){const{position:e,animationPointer:o,evalParams:s,isOutline:m,unscaledDistanceToPx:d,vvScale:u,strokeWidth:b,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,clip:w}=this._vertexPreamble(t,new i(0),t.lineLength||new i(0)),k=this._toNdc(e);let j=p(o,1,s);j=new l(j.rgb.multiply(j.a),j.a);let z=a(x(t.bitset,h.bitset.colorLocked),j,p(o,2,s));z=new l(z.rgb.multiply(z.a),z.a);let D=p(o,3,s);D=new l(D.rgb.multiply(D.a),D.a);const T=p(o,4,s).a,_=p(o,5,s).a,C=P(this,t.id,j,n(x(t.bitset,h.bitset.colorLocked),new c(m))),F=r(C,z,D),A=y(this,t.id),L=r(A,T,_),W=F.multiply(L),O=this.clip(t.id,t.zoomRange).add(w.multiply(2)),G=d.multiply(u);return{unscaledDistanceToPx:d,vvScale:u,strokeWidth:b,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,ndc:k,color:W,z:O,isOutline:m,evalParams:s,distanceToPx:G}}}export{f as AAnimatedPolyShader,g as PolyFragmentInput,S as PolyHittestVertexInput,v as PolyVertexInput};
2
+ import{__decorate as t}from"tslib";import{location as e,ComputeVertexInput as o}from"../../GraphShaderModule.js";import{mod as s,Float as i,mix as r,Vec4 as l,ifElse as a,or as n,Bool as c,Vec2 as m}from"../../graph/glsl.js";import{AAnimatedShader as p,getValue as d,AAnimatedVertexInput as u,AAnimatedFragmentInput as b}from"./AAnimatedShader.js";import{MarkerConstants as h}from"../markers/markerConstants.js";import{getBitBool as x}from"../shaders/utils.js";import{getVisualVariableColor as y,getVisualVariableOpacity as P}from"../shaders/vvUtils.js";class v extends u{}t([e(9,l)],v.prototype,"tlbr",void 0),t([e(10,i)],v.prototype,"angle",void 0);class S extends o{}t([e(13,m)],S.prototype,"nextPos1",void 0),t([e(14,m)],S.prototype,"nextPos2",void 0);class g extends b{}class f extends p{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}_fragmentPoly(t){const e=s(t.uv,new i(1)),o=r(t.tlbr.xy,t.tlbr.zw,e);return this._getColor(o,{color:t.color,distanceToPx:t.distanceToPx,isSDF:t.isSDF,outlineColor:t.outlineColor,outlineSize:t.strokeWidth})}_vertexPoly(t){const{position:e,animationPointer:o,evalParams:s,isOutline:m,unscaledDistanceToPx:p,vvScale:u,strokeWidth:b,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,clip:w}=this._vertexPreamble(t,new i(0),t.lineLength||new i(0)),k=this._toNdc(e);let j=d(o,1,s);j=new l(j.rgb.multiply(j.a),j.a);let z=a(x(t.bitset,h.bitset.colorLocked),j,d(o,2,s));z=new l(z.rgb.multiply(z.a),z.a);let D=d(o,3,s);D=new l(D.rgb.multiply(D.a),D.a);const T=d(o,4,s).a,_=d(o,5,s).a,C=y(this,t.id,j,n(x(t.bitset,h.bitset.colorLocked),new c(m))),F=r(C,z,D),A=P(this,t.id),L=r(A,T,_),W=F.multiply(L),O=this.clip(t.id,t.zoomRange).add(w.multiply(2)),G=p.multiply(u);return{unscaledDistanceToPx:p,vvScale:u,strokeWidth:b,scaleSymbolsProportionally:v,scale:S,isSDF:g,baseSize:f,ndc:k,color:W,z:O,isOutline:m,evalParams:s,distanceToPx:G}}}export{f as AAnimatedPolyShader,g as PolyFragmentInput,S as PolyHittestVertexInput,v as PolyVertexInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{__decorate as t,__param as e}from"tslib";import{input as i}from"../../GraphShaderModule.js";import{Float as r,sin as s,cos as o,Vec3 as l,Vec4 as n,mix as m}from"../../graph/glsl.js";import{AAnimatedPolyShader as a,PolyVertexInput as p,PolyHittestVertexInput as u,PolyFragmentInput as d}from"./AAnimatedPolyShader.js";import{getPatternMatrix as h}from"../shaders/ComplexFillShader.js";import{hittestFill as y}from"../shaders/hittestUtils.js";class c extends a{constructor(){super(...arguments),this.type="AnimatedFillShader"}vertex(t,e){const{distanceToPx:i,ndc:a,z:p,color:u,isOutline:d,strokeWidth:y,isSDF:c,scale:f,scaleSymbolsProportionally:x}=this._vertexPoly(t),g=this.view.requiredZoomFactor,b=t.sizing.xy,P=b.multiply(g),v=new r(0),S=s(v),w=o(v),F=h(t.id,P,S,w,t.bitset),O=this.localTileOffset.getPatternOffsetAtTileOrigin(b,S,w),j=g.multiply(t.offset.subtract(O)).divide(P),A=new l(t.pos,1),T=F.multiply(A).xy.subtract(j),z=t.tlbr.divide(this.mosaicInfo.size.xyxy);return{glPosition:new n(a,p,1),tlbr:z,uv:T,color:u.multiply(new r(1).subtract(d)),outlineColor:u.multiply(d),distanceToPx:i,strokeWidth:y.multiply(m(new r(1),f,x)),isOutline:d,isSDF:c,...this.maybeRunHittest(t,e,{})}}fragment(t){const e=this._fragmentPoly(t);return this.getFragmentOutput(e,t)}hittest(t,e,i){return y(this,t,e)}}t([e(0,i(p)),e(1,i(u))],c.prototype,"vertex",null),t([e(0,i(d))],c.prototype,"fragment",null);export{c as AnimatedFillShader};
2
+ import{__decorate as t,__param as e}from"tslib";import{input as i}from"../../GraphShaderModule.js";import{Float as r,sin as s,cos as o,Vec3 as l,Vec4 as n,mix as a}from"../../graph/glsl.js";import{AAnimatedPolyShader as m,PolyVertexInput as p,PolyHittestVertexInput as u,PolyFragmentInput as d}from"./AAnimatedPolyShader.js";import{getPatternMatrix as h}from"../shaders/ComplexFillShader.js";import{c256ToRad as y}from"../shaders/constants.js";import{hittestFill as c}from"../shaders/hittestUtils.js";class f extends m{constructor(){super(...arguments),this.type="AnimatedFillShader"}vertex(t,e){const{distanceToPx:i,ndc:m,z:p,color:u,isOutline:d,strokeWidth:c,isSDF:f,scale:g,scaleSymbolsProportionally:x}=this._vertexPoly(t),b=this.view.requiredZoomFactor,P=t.sizing.xy,v=P.multiply(b),S=t.angle?t.angle.multiply(y):new r(0),j=s(S),w=o(S),F=h(t.id,v,j,w,t.bitset),O=this.localTileOffset.getPatternOffsetAtTileOrigin(P,j,w),A=b.multiply(t.offset.subtract(O)).divide(v),T=new l(t.pos,1),z=F.multiply(T).xy.subtract(A),k=t.tlbr.divide(this.mosaicInfo.size.xyxy);return{glPosition:new n(m,p,1),tlbr:k,uv:z,color:u.multiply(new r(1).subtract(d)),outlineColor:u.multiply(d),distanceToPx:i,strokeWidth:c.multiply(a(new r(1),g,x)),isOutline:d,isSDF:f,...this.maybeRunHittest(t,e,{})}}fragment(t){const e=this._fragmentPoly(t);return this.getFragmentOutput(e,t)}hittest(t,e,i){return c(this,t,e)}}t([e(0,i(p)),e(1,i(u))],f.prototype,"vertex",null),t([e(0,i(d))],f.prototype,"fragment",null);export{f as AnimatedFillShader};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{pt2px as t}from"../../../../../../../core/screenUtils.js";import{GeometryCursor as e}from"../../../../../../../geometry/GeometryCursor.js";import{triangulateF32 as s}from"../../../../../../../geometry/libtess.js";import{LineTessellation as i}from"../../../TurboLine.js";import{clipLinesMarshall as r,triangulateEarcut as n,clipMarshall as o}from"../../../mesh/templates/templateUtils.js";import{AAnimatedMeshWriter as a}from"./AnimatedMeshWriter.js";import{lineLength as h,noTiming as l,zoomRange as m,segmentDirection as u,normal as c,accumulatedDistance as d,sizing as f,animationPointerAndBaseSizeAndReferenceSize as p,tlbr as x,offset as _,pos as g,bitset as P,id as b,noLineLength as v}from"./attributes.js";import{createComputedAnimatedMeshParams as L}from"./ComputedAnimatedParams.js";import{processLineCapInput as y,processLineJoinInput as W}from"../fill/meshWriterUtils.js";import{LineTessellationParams as w}from"../line/LineMeshWriter.js";class C extends a{_write(t,s,i){const r=i??e.fromFeatureSetReaderCIM(s);if(!r)return;const n=this.evaluatedMeshParams.sprite,{textureBinding:o}=n;t.recordStart(this.instanceId,this.attributeLayout,o);const a=s.getDisplayId();this._writePoly(t,a,r.asOptimized()),t.recordEnd()}}class z extends C{constructor(){super(...arguments),this.vertexSpec={createComputedParams:L,attributes:{id:b,bitset:P,pos:g,offset:_.fill,tlbr:x,animationPointerAndBaseSizeAndReferenceSize:p,sizing:f},optionalAttributes:{zoomRange:m,value1Position2Value2:l,lineLength:v}}}_writePoly(t,e,i){const r=this._clip(i);if(!r)return;i=r;const o=[],a=t.vertexCount();let h;if(n(o,i)){if(0===o.length)return;h=0;for(const s of o){const r=i.coords[2*s],n=i.coords[2*s+1];this._writeVertex(t,e,r,n),h++}}else{const{coords:r,lengths:n}=i,o=s(r,n);h=o.vertexCount;for(let s=0;s<o.buffer.length/2;s++){const i=o.buffer[2*s],r=o.buffer[2*s+1];this._writeVertex(t,e,i,r)}}if(h>0){t.indexEnsureSize(h);for(let e=0;e<h;e++)t.indexWrite(e+a)}}_clip(t){const e=this.hasEffects;return o(t,e?256:8)}}class j{constructor(){this.id=0,this.bitset=0,this.indexCount=0,this.vertexCount=0,this.vertexFrom=0,this.vertexBounds=0,this.pathLength=0}}const S=65535;class T extends C{constructor(){super(...arguments),this.vertexSpec={createComputedParams:L,attributes:{id:b,bitset:P,pos:g,offset:_.line,tlbr:x,animationPointerAndBaseSizeAndReferenceSize:p,sizing:f,accumulatedDistance:d,normal:c,segmentDirection:u},optionalAttributes:{zoomRange:m,value1Position2Value2:l,lineLength:h}},this._tessParams=new w,this._currentWrite=new j,this._tessellationOptions={halfWidth:0,pixelCoordRatio:1,offset:0,wrapDistance:S,textured:!1},this._lineLength=0,this._lineTessellator=new i((t,e,s,i,r,n,o,a,h,l,m)=>this._writeTesselatedVertex(t,e,s,i,r,n,o,a,h,l,m,this._lineLength),this._writeTriangle.bind(this),!1)}_writePoly(s,i,n){const o=64,a=!1,h=r(e.fromOptimized(n,"esriGeometryPolyline"),o);if(null==h)return;const{_currentWrite:l,_tessellationOptions:m}=this,{baseSize:u,capType:c,joinType:d,miterLimit:f}=this.evaluatedMeshParams,p=t(.5*u);m.halfWidth=p,m.capType=y(c||"Round"),m.joinType=W(d||"Round"),m.miterLimit=f||2,l.out=s,l.id=i,l.vertexCount=0,l.indexCount=0,l.vertexFrom=s.vertexCount(),l.vertexBounds=1;for(const{line:t,start:e,pathLength:r}of h){m.initialDistance=e%S,l.pathLength=r,this._lineLength=0;for(let e=1;e<t.length;e++){const s=t[e].x-t[e-1].x,i=t[e].y-t[e-1].y;this._lineLength+=Math.sqrt(s*s+i*i)}this._lineTessellator.tessellate(t,m,a)}}_writeTesselatedVertex(t,e,s,i,r,n,o,a,h,l,m,u){const{out:c,id:d,vertexBounds:f,pathLength:p}=this._currentWrite;return this.hasEffects&&c.recordBounds(t,e,f,f),this._tessParams.extrusionOffsetX=o,this._tessParams.extrusionOffsetY=a,this._tessParams.normalX=h,this._tessParams.normalY=l,this._tessParams.directionX=r,this._tessParams.directionY=n,this._tessParams.distance=m,this._tessParams.pathLength=p,this._tessParams.lineLength=u,this._writeVertex(c,d,t,e,this._tessParams),this._currentWrite.vertexFrom+this._currentWrite.vertexCount++}_writeTriangle(t,e,s){const{out:i}=this._currentWrite;i.indexEnsureSize(3),i.indexWrite(t),i.indexWrite(e),i.indexWrite(s),this._currentWrite.indexCount+=3}}export{C as AAnimatedPolyMeshWriter,z as AnimatedFillMeshWriter,T as AnimatedLineMeshWriter};
2
+ import{pt2px as t}from"../../../../../../../core/screenUtils.js";import{GeometryCursor as e}from"../../../../../../../geometry/GeometryCursor.js";import{triangulateF32 as s}from"../../../../../../../geometry/libtess.js";import{LineTessellation as i}from"../../../TurboLine.js";import{clipLinesMarshall as r,triangulateEarcut as n,clipMarshall as o}from"../../../mesh/templates/templateUtils.js";import{AAnimatedMeshWriter as a}from"./AnimatedMeshWriter.js";import{noPatternAngle as h,lineLength as l,noTiming as m,zoomRange as u,segmentDirection as c,normal as d,accumulatedDistance as f,sizing as p,animationPointerAndBaseSizeAndReferenceSize as x,tlbr as _,offset as g,pos as P,bitset as b,id as v,patternAngle as L,noLineLength as y}from"./attributes.js";import{createComputedAnimatedMeshParams as W}from"./ComputedAnimatedParams.js";import{processLineCapInput as w,processLineJoinInput as C}from"../fill/meshWriterUtils.js";import{LineTessellationParams as z}from"../line/LineMeshWriter.js";class j extends a{_write(t,s,i){const r=i??e.fromFeatureSetReaderCIM(s);if(!r)return;const n=this.evaluatedMeshParams.sprite,{textureBinding:o}=n;t.recordStart(this.instanceId,this.attributeLayout,o);const a=s.getDisplayId();this._writePoly(t,a,r.asOptimized()),t.recordEnd()}}class S extends j{constructor(){super(...arguments),this.vertexSpec={createComputedParams:W,attributes:{id:v,bitset:b,pos:P,offset:g.fill,tlbr:_,animationPointerAndBaseSizeAndReferenceSize:x,sizing:p},optionalAttributes:{zoomRange:u,value1Position2Value2:m,lineLength:y,angle:L}}}_writePoly(t,e,i){const r=this._clip(i);if(!r)return;i=r;const o=[],a=t.vertexCount();let h;if(n(o,i)){if(0===o.length)return;h=0;for(const s of o){const r=i.coords[2*s],n=i.coords[2*s+1];this._writeVertex(t,e,r,n),h++}}else{const{coords:r,lengths:n}=i,o=s(r,n);h=o.vertexCount;for(let s=0;s<o.buffer.length/2;s++){const i=o.buffer[2*s],r=o.buffer[2*s+1];this._writeVertex(t,e,i,r)}}if(h>0){t.indexEnsureSize(h);for(let e=0;e<h;e++)t.indexWrite(e+a)}}_clip(t){const e=this.hasEffects;return o(t,e?256:8)}}class T{constructor(){this.id=0,this.bitset=0,this.indexCount=0,this.vertexCount=0,this.vertexFrom=0,this.vertexBounds=0,this.pathLength=0}}const A=65535;class R extends j{constructor(){super(...arguments),this.vertexSpec={createComputedParams:W,attributes:{id:v,bitset:b,pos:P,offset:g.line,tlbr:_,animationPointerAndBaseSizeAndReferenceSize:x,sizing:p,accumulatedDistance:f,normal:d,segmentDirection:c},optionalAttributes:{zoomRange:u,value1Position2Value2:m,lineLength:l,angle:h}},this._tessParams=new z,this._currentWrite=new T,this._tessellationOptions={halfWidth:0,pixelCoordRatio:1,offset:0,wrapDistance:A,textured:!1},this._lineLength=0,this._lineTessellator=new i((t,e,s,i,r,n,o,a,h,l,m)=>this._writeTesselatedVertex(t,e,s,i,r,n,o,a,h,l,m,this._lineLength),this._writeTriangle.bind(this),!1)}_writePoly(s,i,n){const o=64,a=!1,h=r(e.fromOptimized(n,"esriGeometryPolyline"),o);if(null==h)return;const{_currentWrite:l,_tessellationOptions:m}=this,{baseSize:u,capType:c,joinType:d,miterLimit:f}=this.evaluatedMeshParams,p=t(.5*u);m.halfWidth=p,m.capType=w(c||"Round"),m.joinType=C(d||"Round"),m.miterLimit=f||2,l.out=s,l.id=i,l.vertexCount=0,l.indexCount=0,l.vertexFrom=s.vertexCount(),l.vertexBounds=1;for(const{line:t,start:e,pathLength:r}of h){m.initialDistance=e%A,l.pathLength=r,this._lineLength=0;for(let e=1;e<t.length;e++){const s=t[e].x-t[e-1].x,i=t[e].y-t[e-1].y;this._lineLength+=Math.sqrt(s*s+i*i)}this._lineTessellator.tessellate(t,m,a)}}_writeTesselatedVertex(t,e,s,i,r,n,o,a,h,l,m,u){const{out:c,id:d,vertexBounds:f,pathLength:p}=this._currentWrite;return this.hasEffects&&c.recordBounds(t,e,f,f),this._tessParams.extrusionOffsetX=o,this._tessParams.extrusionOffsetY=a,this._tessParams.normalX=h,this._tessParams.normalY=l,this._tessParams.directionX=r,this._tessParams.directionY=n,this._tessParams.distance=m,this._tessParams.pathLength=p,this._tessParams.lineLength=u,this._writeVertex(c,d,t,e,this._tessParams),this._currentWrite.vertexFrom+this._currentWrite.vertexCount++}_writeTriangle(t,e,s){const{out:i}=this._currentWrite;i.indexEnsureSize(3),i.indexWrite(t),i.indexWrite(e),i.indexWrite(s),this._currentWrite.indexCount+=3}}export{j as AAnimatedPolyMeshWriter,S as AnimatedFillMeshWriter,R as AnimatedLineMeshWriter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{minMaxZoomPrecisionFactor as t,spritePadding as e}from"../../../definitions.js";import{assert as o}from"../../../animations/utils.js";import{packAnimatedBitset as i}from"./AnimatedMeshWriter.js";import{getMinMaxZoom as c}from"../fill/meshWriterUtils.js";import{DataType as n}from"../../../../../../webgl/enums.js";const a={type:n.SHORT,count:2,packPrecisionFactor:t,pack:({scaleInfo:t},{tileInfo:e})=>c(t,e)},s={type:n.FLOAT,count:4,packPrecisionFactor:1,packTessellation:({value1Position2Value2:t})=>(o(t),t)},p={type:n.FLOAT,count:4,packPrecisionFactor:1,packTessellation:()=>[0,0,0,1]},r={type:n.FLOAT,count:1,packPrecisionFactor:1,pack:()=>0},l={type:n.FLOAT,count:1,packPrecisionFactor:1,packTessellation:({lineLength:t})=>t},k={type:n.UNSIGNED_SHORT,count:1,packTessellation:({distance:t})=>t},u={type:n.BYTE,count:2,packPrecisionFactor:16,packTessellation:({directionX:t,directionY:e})=>[t,e]},T={type:n.FLOAT,count:2,packPrecisionFactor:16,packTessellation:({normalX:t,normalY:e})=>[t,e]},m={type:n.UNSIGNED_BYTE,count:3,pack:"id"},y={type:n.UNSIGNED_BYTE,count:1,pack:i},F={type:n.SHORT,count:2,pack:"position",packPrecisionFactor:1},f={marker:{type:n.FLOAT,count:2,packAlternating:{count:4,pack:({texelDimensions:t})=>[[-.5*t[0],-.5*t[1]],[.5*t[0],-.5*t[1]],[-.5*t[0],.5*t[1]],[.5*t[0],.5*t[1]]]}},line:{type:n.FLOAT,count:2,packTessellation:({extrusionOffsetX:t,extrusionOffsetY:e},{baseSize:o})=>[t*o/2,e*o/2]},fill:{type:n.FLOAT,count:2,packTessellation:()=>[0,0]}},O={marker:{type:n.SHORT,count:2,packPrecisionFactor:1,packAlternating:{count:4,packTessellation:({texXmax:t,texXmin:e,texYmax:o,texYmin:i})=>[[e,i],[t,i],[e,o],[t,o]]}}},S={type:n.UNSIGNED_SHORT,count:4,pack:({sprite:t})=>{const{rect:o,width:i,height:c}=t,n=o.x+e,a=o.y+e;return[n+1,a+1,n+i-1,a+c-1]}},d={type:n.UNSIGNED_SHORT,count:4,packPrecisionFactor:4,pack:({animations:t,baseSize:e,referenceSize:o})=>[t.dataColumn,t.dataRow,e,o]},x={type:n.UNSIGNED_SHORT,count:4,packPrecisionFactor:8,pack:({strokeWidth:t,pixelDimensions:e,baseSize:o,sprite:i,sizeRatio:c})=>{const n=Math.max(o*i.width/i.height,o),a=i.sdfDecodeCoeff*n*c;return[e[0],e[1],t,a]}},N={type:n.BYTE,count:1,packTessellation:({angle:t})=>t};export{k as accumulatedDistance,N as angle,d as animationPointerAndBaseSizeAndReferenceSize,y as bitset,m as id,l as lineLength,r as noLineLength,p as noTiming,T as normal,f as offset,F as pos,u as segmentDirection,x as sizing,S as tlbr,O as uv,s as value1Position2Value2,a as zoomRange};
2
+ import{cDegTo256 as t}from"../../../../vectorTiles/GeometryUtils.js";import{minMaxZoomPrecisionFactor as e,spritePadding as o}from"../../../definitions.js";import{assert as i}from"../../../animations/utils.js";import{packAnimatedBitset as c}from"./AnimatedMeshWriter.js";import{getMinMaxZoom as n}from"../fill/meshWriterUtils.js";import{DataType as a}from"../../../../../../webgl/enums.js";const s={type:a.SHORT,count:2,packPrecisionFactor:e,pack:({scaleInfo:t},{tileInfo:e})=>n(t,e)},p={type:a.FLOAT,count:4,packPrecisionFactor:1,packTessellation:({value1Position2Value2:t})=>(i(t),t)},r={type:a.FLOAT,count:4,packPrecisionFactor:1,packTessellation:()=>[0,0,0,1]},l={type:a.FLOAT,count:1,packPrecisionFactor:1,pack:()=>0},k={type:a.FLOAT,count:1,packPrecisionFactor:1,packTessellation:({lineLength:t})=>t},u={type:a.UNSIGNED_SHORT,count:1,packTessellation:({distance:t})=>t},T={type:a.BYTE,count:2,packPrecisionFactor:16,packTessellation:({directionX:t,directionY:e})=>[t,e]},m={type:a.FLOAT,count:2,packPrecisionFactor:16,packTessellation:({normalX:t,normalY:e})=>[t,e]},y={type:a.UNSIGNED_BYTE,count:3,pack:"id"},f={type:a.UNSIGNED_BYTE,count:1,pack:c},F={type:a.SHORT,count:2,pack:"position",packPrecisionFactor:1},O={marker:{type:a.FLOAT,count:2,packAlternating:{count:4,pack:({texelDimensions:t})=>[[-.5*t[0],-.5*t[1]],[.5*t[0],-.5*t[1]],[-.5*t[0],.5*t[1]],[.5*t[0],.5*t[1]]]}},line:{type:a.FLOAT,count:2,packTessellation:({extrusionOffsetX:t,extrusionOffsetY:e},{baseSize:o})=>[t*o/2,e*o/2]},fill:{type:a.FLOAT,count:2,packTessellation:()=>[0,0]}},S={marker:{type:a.SHORT,count:2,packPrecisionFactor:1,packAlternating:{count:4,packTessellation:({texXmax:t,texXmin:e,texYmax:o,texYmin:i})=>[[e,i],[t,i],[e,o],[t,o]]}}},d={type:a.UNSIGNED_SHORT,count:4,pack:({sprite:t})=>{const{rect:e,width:i,height:c}=t,n=e.x+o,a=e.y+o;return[n+1,a+1,n+i-1,a+c-1]}},x={type:a.UNSIGNED_SHORT,count:4,packPrecisionFactor:4,pack:({animations:t,baseSize:e,referenceSize:o})=>[t.dataColumn,t.dataRow,e,o]},E={type:a.UNSIGNED_SHORT,count:4,packPrecisionFactor:8,pack:({strokeWidth:t,pixelDimensions:e,baseSize:o,sprite:i,sizeRatio:c})=>{const n=Math.max(o*i.width/i.height,o),a=i.sdfDecodeCoeff*n*c;return[e[0],e[1],t,a]}},N={type:a.BYTE,count:1,packTessellation:({angle:e})=>e*t},P={type:a.BYTE,count:1,pack:({angle:e})=>e?e*t:0},h={type:a.BYTE,count:1,pack:()=>0};export{u as accumulatedDistance,N as angle,x as animationPointerAndBaseSizeAndReferenceSize,f as bitset,y as id,k as lineLength,l as noLineLength,h as noPatternAngle,r as noTiming,m as normal,O as offset,P as patternAngle,F as pos,T as segmentDirection,E as sizing,d as tlbr,S as uv,p as value1Position2Value2,s as zoomRange};