@arcgis/core 4.32.0-next.20250212 → 4.32.0-next.20250214

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 (196) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/04f9fb33fb2e33712290.js +1 -0
  3. package/assets/esri/core/workers/chunks/10ca2107c99fab6bcc3b.js +1 -0
  4. package/assets/esri/core/workers/chunks/17fe69462cba5eb895b8.js +1 -0
  5. package/assets/esri/core/workers/chunks/{12d6baeffd55a98a7c75.js → 1bf646c9fc352f98d1ca.js} +1 -1
  6. package/assets/esri/core/workers/chunks/1c357cdb067e28aff3f0.js +1 -0
  7. package/assets/esri/core/workers/chunks/2ebf66e21d155a27b23e.js +1 -0
  8. package/assets/esri/core/workers/chunks/{f429d95eb986f3d215f3.js → 391c200274bbeb92404c.js} +1 -1
  9. package/assets/esri/core/workers/chunks/3eacb4d1275f2d87825f.js +1 -0
  10. package/assets/esri/core/workers/chunks/{c0af54cc5938176ce764.js → 3fe7be535affae31de7e.js} +1 -1
  11. package/assets/esri/core/workers/chunks/401b731c0601f4d84ead.js +1 -0
  12. package/assets/esri/core/workers/chunks/4565cfc85f60960e3ea1.js +1 -0
  13. package/assets/esri/core/workers/chunks/{d0656e9d30eb3a66a8db.js → 4be39bc2d2edd94bdb75.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{62a1d60ad4bf6469c4dd.js → 584216b52413cf85fecc.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{8191dd3d7451b2e7b95e.js → 637e996209e0d241fbf7.js} +1 -1
  16. package/assets/esri/core/workers/chunks/68c187dbf7dea7064ed8.js +1 -0
  17. package/assets/esri/core/workers/chunks/{77bfd4f819096cb754ae.js → 6e92569a4a82592b95dc.js} +1 -1
  18. package/assets/esri/core/workers/chunks/6f007703662e714b2f0a.js +1 -0
  19. package/assets/esri/core/workers/chunks/71a64fbea3512d9a1547.js +1 -0
  20. package/assets/esri/core/workers/chunks/744bdf2bb0cc38e6a7b1.js +1 -0
  21. package/assets/esri/core/workers/chunks/802a390c67f4cdf3d8d9.js +1 -0
  22. package/assets/esri/core/workers/chunks/{6c30a25adf22d73d4977.js → 86f3a004addc087ad6c6.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{00780271be2fd6e298c1.js → 8bfd97fc2569a6b55776.js} +1 -1
  24. package/assets/esri/core/workers/chunks/8d1845a773f66aeb3457.js +1 -0
  25. package/assets/esri/core/workers/chunks/9306bfe7ab58e71b75ea.js +1 -0
  26. package/assets/esri/core/workers/chunks/95047f145ebda65c3d8e.js +1 -0
  27. package/assets/esri/core/workers/chunks/a01213d446be33d203e3.js +1 -0
  28. package/assets/esri/core/workers/chunks/a490a988896b0b02f96b.js +1 -0
  29. package/assets/esri/core/workers/chunks/a60db83cabdf689b923b.js +1 -0
  30. package/assets/esri/core/workers/chunks/{b9d9a1dc3c5d799e2685.js → bd3487b587851b20ff2a.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{94490937dca566fe2640.js → bd5e0a11d2a688a65d23.js} +1 -1
  32. package/assets/esri/core/workers/chunks/c139e737f602c424de13.js +1 -0
  33. package/assets/esri/core/workers/chunks/c3806be4a760735e6082.js +1 -0
  34. package/assets/esri/core/workers/chunks/c9aed9a43d9935e7c768.js +314 -0
  35. package/assets/esri/core/workers/chunks/{8d8f5f08d730270e1165.js → cb9a27176bd5de2c34ca.js} +1 -1
  36. package/assets/esri/core/workers/chunks/ceb648604a4b6d316f4b.js +1 -0
  37. package/assets/esri/core/workers/chunks/{da1157e288dbc6ba842a.js → d3d0c7624eb139994213.js} +1 -1
  38. package/assets/esri/core/workers/chunks/d58f4aa44ade81b0bb3a.js +1 -0
  39. package/assets/esri/core/workers/chunks/{f198f4ba7d3d52882d98.js → de8044dfab4ad253b126.js} +1 -1
  40. package/assets/esri/core/workers/chunks/f33da631352920d49639.js +1 -0
  41. package/assets/esri/core/workers/chunks/fca056536e46aeb98e98.js +1 -0
  42. package/assets/esri/themes/base/widgets/_Directions.scss +30 -9
  43. package/assets/esri/themes/dark/main.css +1 -1
  44. package/assets/esri/themes/light/main.css +1 -1
  45. package/assets/esri/themes/light/view.css +1 -1
  46. package/chunks/ComponentShader.glsl.js +6 -6
  47. package/copyright.txt +26 -19
  48. package/core/colorUtils.js +1 -1
  49. package/core/deprecate.js +1 -1
  50. package/interfaces.d.ts +999 -197
  51. package/intl/locale.js +1 -1
  52. package/layers/FeatureLayer.js +1 -1
  53. package/layers/GeoJSONLayer.js +1 -1
  54. package/layers/OGCFeatureLayer.js +1 -1
  55. package/layers/RouteLayer.js +1 -1
  56. package/layers/SubtypeGroupLayer.js +1 -1
  57. package/layers/WFSLayer.js +1 -1
  58. package/layers/graphics/data/queryUtils.js +1 -1
  59. package/layers/knowledgeGraph/supportUtils.d.ts +0 -2
  60. package/layers/mixins/TrackableLayer.d.ts +4 -0
  61. package/layers/support/SubtypeSublayer.js +1 -1
  62. package/layers/support/TitleCreator.js +5 -0
  63. package/layers/support/TrackInfo.d.ts +4 -0
  64. package/layers/support/TrackInfo.js +1 -1
  65. package/layers/support/TrackPartInfo.d.ts +4 -0
  66. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  67. package/layers/support/rasterFormats/RasterCodec.js +1 -1
  68. package/layers/support/rasterFormats/TiffDecoder.js +1 -1
  69. package/layers/support/rasterFormats/pixelRangeUtils.js +1 -1
  70. package/layers/support/rasterFunctions/creators/createLocalFunctions.js +1 -1
  71. package/layers/support/rasterFunctions/creators/createStatisticsFunctions.js +1 -1
  72. package/networks/UtilityNetwork.js +1 -1
  73. package/networks/support/networkFieldUtils.js +5 -0
  74. package/package.json +1 -1
  75. package/rest/query/executeForIds.js +1 -1
  76. package/rest/support/BinParametersBase.js +1 -1
  77. package/rest/support/NormalizationBinParametersMixin.d.ts +4 -0
  78. package/support/revision.js +1 -1
  79. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  80. package/symbols/cim/rasterizingUtils.js +1 -1
  81. package/symbols/support/previewCIMSymbol.js +1 -1
  82. package/symbols/support/previewSymbol2D.js +1 -1
  83. package/symbols/support/symbolUtils.js +1 -1
  84. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  85. package/views/2d/layers/LayerView2D.js +1 -1
  86. package/views/2d/layers/RouteLayerView2D.js +1 -1
  87. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  88. package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
  89. package/views/2d/layers/features/schema/SourceSchema.js +1 -1
  90. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  91. package/views/2d/layers/features/sources/FeatureCache.js +5 -0
  92. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  93. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  94. package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
  95. package/views/2d/layers/features/sources/strategies/ATileLoadStrategy.js +1 -1
  96. package/views/2d/layers/features/sources/strategies/PagedTileLoadStrategy.js +1 -1
  97. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
  98. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  99. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  100. package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
  101. package/views/3d/interactive/editingTools/transform/ScaleRotateMeshAdapter.js +1 -1
  102. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  103. package/views/3d/layers/I3SMeshView3D.js +1 -1
  104. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  105. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  106. package/views/3d/layers/i3s/BuildingFilterUtil.js +1 -1
  107. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  108. package/views/3d/layers/i3s/SymbologyInfo.js +5 -0
  109. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  110. package/views/3d/state/utils/navigationUtils.js +1 -1
  111. package/views/3d/webgl-engine/collections/Component/ComponentData.js +1 -1
  112. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  113. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  114. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +14 -14
  115. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  116. package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
  117. package/views/3d/webgl-engine/core/renderPasses/RenderPassIdentifier.js +5 -0
  118. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  119. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  120. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  121. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  122. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  123. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  124. package/views/View.js +1 -1
  125. package/views/draw/DrawAction.js +1 -1
  126. package/views/layers/FeatureLayerView.js +1 -1
  127. package/views/support/RequiredFieldsOptions.js +5 -0
  128. package/views/webgl/Texture.js +1 -1
  129. package/widgets/BasemapGallery.js +1 -1
  130. package/widgets/BasemapToggle.js +1 -1
  131. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  132. package/widgets/BatchAttributeForm.js +1 -1
  133. package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
  134. package/widgets/Compass/CompassViewModel.js +1 -1
  135. package/widgets/DirectionalPad.js +1 -1
  136. package/widgets/Directions/DirectionsViewModel.js +1 -1
  137. package/widgets/Directions.js +1 -1
  138. package/widgets/Editor/AddAssociationWorkflow.js +1 -1
  139. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  140. package/widgets/Editor/EditorViewModel.js +1 -1
  141. package/widgets/Editor.js +1 -1
  142. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +1 -1
  143. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  144. package/widgets/FeatureTemplates/featureTemplatesUtils.js +1 -1
  145. package/widgets/Fullscreen.js +1 -1
  146. package/widgets/Home.js +1 -1
  147. package/widgets/LayerList/LayerListItem.js +1 -1
  148. package/widgets/LayerList/ListItem.js +1 -1
  149. package/widgets/LayerList/support/layerListUtils.js +1 -1
  150. package/widgets/Legend/LegendViewModel.js +1 -1
  151. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  152. package/widgets/Legend.js +1 -1
  153. package/widgets/Locate.js +1 -1
  154. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  155. package/widgets/OrientedImageryViewer/adapters/sketch/DigitizationAdapter.js +1 -1
  156. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  157. package/widgets/OrientedImageryViewer/constants.js +1 -1
  158. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  159. package/widgets/OrientedImageryViewer/symbols.js +1 -1
  160. package/widgets/OrientedImageryViewer.js +1 -1
  161. package/widgets/Print.js +1 -1
  162. package/widgets/ScaleBar.js +1 -1
  163. package/widgets/Swipe.js +1 -1
  164. package/widgets/TableList/ListItem.js +1 -1
  165. package/widgets/TableList.js +1 -1
  166. package/widgets/Track.js +1 -1
  167. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  168. package/widgets/UtilityNetworkTrace.js +1 -1
  169. package/widgets/support/GoTo.js +1 -1
  170. package/widgets/support/goToUtils.js +5 -0
  171. package/assets/esri/core/workers/chunks/00e0c53d89e074399f04.js +0 -1
  172. package/assets/esri/core/workers/chunks/01c3507d78398baaf61b.js +0 -1
  173. package/assets/esri/core/workers/chunks/177d4c2c10ef7369006f.js +0 -1
  174. package/assets/esri/core/workers/chunks/26a2bd432e7a1b3870c3.js +0 -1
  175. package/assets/esri/core/workers/chunks/28dd172faa85080511c5.js +0 -1
  176. package/assets/esri/core/workers/chunks/44abd2cd17aae3299ede.js +0 -1
  177. package/assets/esri/core/workers/chunks/4b56c0c109e10d7409b8.js +0 -1
  178. package/assets/esri/core/workers/chunks/594d923400fd74881833.js +0 -1
  179. package/assets/esri/core/workers/chunks/61795bde00f2e16d04f1.js +0 -1
  180. package/assets/esri/core/workers/chunks/7058001bf66f9f3d5d45.js +0 -1
  181. package/assets/esri/core/workers/chunks/746c964cf07e4306f21f.js +0 -1
  182. package/assets/esri/core/workers/chunks/7bf08823f861628144a1.js +0 -1
  183. package/assets/esri/core/workers/chunks/8c32cee395da0a7b9a8e.js +0 -1
  184. package/assets/esri/core/workers/chunks/91384398f01485631f70.js +0 -1
  185. package/assets/esri/core/workers/chunks/946a9890f3621d1dfbc5.js +0 -1
  186. package/assets/esri/core/workers/chunks/a2409d4921c02614169a.js +0 -1
  187. package/assets/esri/core/workers/chunks/af917f69d9c6e9937263.js +0 -1
  188. package/assets/esri/core/workers/chunks/cc75bbfd779f409943a3.js +0 -1
  189. package/assets/esri/core/workers/chunks/d339dee99c4820b63f39.js +0 -1
  190. package/assets/esri/core/workers/chunks/d35efcbe439500bf18bc.js +0 -1
  191. package/assets/esri/core/workers/chunks/d44d210e94406509e980.js +0 -314
  192. package/assets/esri/core/workers/chunks/de638753a30c9aa41bad.js +0 -1
  193. package/assets/esri/core/workers/chunks/e5e3b6d00d27b5bb354f.js +0 -1
  194. package/assets/esri/core/workers/chunks/f14b318bab5efcf43419.js +0 -1
  195. package/assets/esri/core/workers/chunks/f29715459ecd46180829.js +0 -1
  196. package/layers/knowledgeGraph/cypherUtils.d.ts +0 -3
@@ -11,12 +11,6 @@ import{earth as e,mars as o,moon as r}from"../geometry/support/Ellipsoid.js";imp
11
11
 
12
12
  ${W(G===s.ObjectAndLayerIdColor,"externalColor.a = 1.0;")}
13
13
 
14
- if (externalColor.a < ${P.float(H)}) {
15
- // Discard this vertex
16
- gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
17
- return;
18
- }
19
-
20
14
  forwardPosition(readElevationOffset());
21
15
  forwardViewPosDepth(vPosition_view);
22
16
  forwardNormal();
@@ -32,6 +26,12 @@ import{earth as e,mars as o,moon as r}from"../geometry/support/Ellipsoid.js";imp
32
26
  tbnTangent = vec3(1.0, 0.0, 0.0);
33
27
  tbnBiTangent = vec3(0.0, 1.0, 0.0);`)}
34
28
  ${W(ee,"setOverlayVTC(projectOverlay(position));")}
29
+
30
+ if (externalColor.a < ${P.float(H)}) {
31
+ // Discard this vertex
32
+ gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
33
+ return;
34
+ }
35
35
  `),g(G))return V.include(C,I),V.include(b,I),V.include(y,I),V.include(z,I),J&&V.include(M,I),_.code.add(P`
36
36
  float evaluateShadow() {
37
37
  return ${J?"readShadowMap(vPositionWorldCameraRelative, linearDepth)":"0.0"};
package/copyright.txt CHANGED
@@ -1485,31 +1485,38 @@ Copyright (c) 2022 Gildas Lormeau. All rights reserved.
1485
1485
 
1486
1486
  -----------------------------------------------------------------
1487
1487
 
1488
- stencil/
1488
+ lit/
1489
1489
 
1490
- https://github.com/ionic-team/stencil
1490
+ https://github.com/lit/lit
1491
1491
 
1492
- The MIT License (MIT)
1492
+ BSD 3-Clause License
1493
1493
 
1494
- Copyright (c) 2019-present Drifty Co.
1494
+ Copyright (c) 2017 Google LLC. All rights reserved.
1495
1495
 
1496
- Permission is hereby granted, free of charge, to any person obtaining a copy
1497
- of this software and associated documentation files (the "Software"), to deal
1498
- in the Software without restriction, including without limitation the rights
1499
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1500
- copies of the Software, and to permit persons to whom the Software is
1501
- furnished to do so, subject to the following conditions:
1496
+ Redistribution and use in source and binary forms, with or without
1497
+ modification, are permitted provided that the following conditions are met:
1502
1498
 
1503
- The above copyright notice and this permission notice shall be included in
1504
- all copies or substantial portions of the Software.
1499
+ 1. Redistributions of source code must retain the above copyright notice, this
1500
+ list of conditions and the following disclaimer.
1505
1501
 
1506
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1507
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1508
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1509
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1510
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1511
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1512
- THE SOFTWARE.
1502
+ 2. Redistributions in binary form must reproduce the above copyright notice,
1503
+ this list of conditions and the following disclaimer in the documentation
1504
+ and/or other materials provided with the distribution.
1505
+
1506
+ 3. Neither the name of the copyright holder nor the names of its
1507
+ contributors may be used to endorse or promote products derived from
1508
+ this software without specific prior written permission.
1509
+
1510
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1511
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1512
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1513
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1514
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1515
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1516
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1517
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1518
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1519
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1513
1520
 
1514
1521
  -----------------------------------------------------------------
1515
1522
 
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import n from"../Color.js";import{shuffle as t,getRandomNumberGenerator as r}from"./arrayUtils.js";import{clone as o}from"./lang.js";import{e}from"../chunks/vec42.js";import{fromValues as u}from"./libs/gl-matrix-2/factories/vec4f64.js";function c(n){return"r"in n&&"g"in n&&"b"in n}function i(n){return"h"in n&&"s"in n&&"v"in n}function a(n){return"l"in n&&"a"in n&&"b"in n}function s(n){return"l"in n&&"c"in n&&"h"in n}function f(n){return"x"in n&&"y"in n&&"z"in n}const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],l=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function g(n,t){const r=[];let o,e;if(n[0].length!==t.length)throw new Error("dimensions do not match");const u=n.length,c=n[0].length;let i=0;for(o=0;o<u;o++){for(i=0,e=0;e<c;e++)i+=n[o][e]*t[e];r.push(i)}return r}function b(n){const t=[n.r/255,n.g/255,n.b/255].map((n=>n<=.04045?n/12.92:((n+.055)/1.055)**2.4)),r=g(h,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function M(n){const t=g(l,[n.x/100,n.y/100,n.z/100]).map((n=>{const t=n<=.0031308?12.92*n:1.055*n**(1/2.4)-.055;return Math.min(1,Math.max(t,0))}));return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function m(n){const t=[n.x/95.047,n.y/100,n.z/108.883].map((n=>n>(6/29)**3?n**(1/3):1/3*(29/6)**2*n+4/29));return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function d(n){const t=n.l,r=[(t+16)/116+n.a/500,(t+16)/116,(t+16)/116-n.b/200].map((n=>n>6/29?n**3:3*(6/29)**2*(n-4/29)));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function p(n){const t=n.l,r=n.a,o=n.b,e=Math.sqrt(r*r+o*o);let u=Math.atan2(o,r);return u=u>0?u:u+2*Math.PI,{l:t,c:e,h:u}}function w(n){const t=n.l,r=n.c,o=n.h;return{l:t,a:r*Math.cos(o),b:r*Math.sin(o)}}function x(n){return m(b(n))}function k(n){return M(d(n))}function y(n){return p(m(b(n)))}function v(n){return M(d(w(n)))}function j(n){const t=n.r,r=n.g,o=n.b,e=Math.max(t,r,o),u=e-Math.min(t,r,o);let c=e,i=0===u?0:e===t?(r-o)/u%6:e===r?(o-t)/u+2:(t-r)/u+4,a=0===u?0:u/c;return i<0&&(i+=6),i*=60,a*=100,c*=100/255,{h:i,s:a,v:c}}function z(n){const t=(n.h+360)%360/60,r=n.s/100,o=n.v/100*255,e=o*r,u=e*(1-Math.abs(t%2-1));let c;switch(Math.floor(t)){case 0:c={r:e,g:u,b:0};break;case 1:c={r:u,g:e,b:0};break;case 2:c={r:0,g:e,b:u};break;case 3:c={r:0,g:u,b:e};break;case 4:c={r:u,g:0,b:e};break;case 5:case 6:c={r:e,g:0,b:u};break;default:c={r:0,g:0,b:0}}return c.r=Math.round(c.r+o-e),c.g=Math.round(c.g+o-e),c.b=Math.round(c.b+o-e),c}function A(n){return c(n)?n:s(n)?v(n):a(n)?k(n):f(n)?M(n):i(n)?z(n):n}function B(n){if(i(n))return n;return j(A(n))}function C(n){return a(n)?n:x(A(n))}function H(n){return s(n)?n:y(A(n))}function U(n){return q(n).isBright?"light":"dark"}function q(t){let{r,g:o,b:e,a:u}=t;return u<1&&(r=Math.round(u*r+255*(1-u)),o=Math.round(u*o+255*(1-u)),e=Math.round(u*e+255*(1-u))),new n({r,g:o,b:e})}function G(n,t){const{r,g:o,b:e}=t?.ignoreAlpha?n:q(n);return.2126*r+.7152*o+.0722*e}var L;function R(t,r=L.High){return G(t,{ignoreAlpha:!0})>r?new n([0,0,0,t.a]):new n([255,255,255,t.a])}function E(n,t){const r=C(n);r.l*=1-t;const o=A(r),e=n.clone();return e.setColor(o),e.a=n.a,e}function I(n,t){const r=n.clone();return r.a*=t,r}function P(n,t){const r=B(n);r.s*=t;const o=A(r),e=n.clone();return e.setColor(o),e.a=n.a,e}function D(t){return n.toUnitRGBA(t)}function F(n,t){return n===t||null!=n&&n.equals(t)}function J(n,t){return n===t||null!=n&&null!=t&&e(n,t)}function K(n){return u(n[0],n[1],n[2],n.length>3?n[3]:1)}function N(t,r){const o=n.toUnitRGBA(t);return o[3]*=r,o}function O(r,e,u={}){if(0===r.length||e<=0)return[];if(1===(r=r.map((t=>"string"==typeof t?new n(t):t))).length||1===e){const n=[],t=r[0];for(let r=0;r<e;r++)n.push(t.clone());return n}if(u.shuffle&&(r=t(o(r),u.seed)),r.length>=e){const n=[],t=(r.length-1)/(e-1);for(let o=0;o<e;o++){const e=Math.round(o*t);n.push(r[e].clone())}return n}return Q(r,e,u)}function Q(n,r,o={}){const e=[],u=n.length-1,c=Math.ceil((r-n.length)/u);n:for(let t=0;t<u;t++){const u=n[t],i=n[t+1];for(let t=1;t<=c;t++){const a=t/(c+1);if(e.push(T(u,i,a,o)),e.length+n.length===r)break n}}return[...n.map((n=>n.clone())),...t(e,o.seed??1)]}!function(n){n[n.Low=160]="Low",n[n.High=225]="High"}(L||(L={}));const S=(n,t)=>{const r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,n+r))};function T(t,o,e,u={}){const c=t.r,i=t.g,a=t.b,s=o.r,f=o.g,h=o.b,l=Math.round(c+(s-c)*e),g=Math.round(i+(f-i)*e),b=Math.round(a+(h-a)*e);if(!u.offset)return new n([l,g,b]);const M=r(u.seed);return new n([S(l,M),S(g,M),S(b,M)])}export{L as BrightnessThreshold,F as colorEquals,J as colorVectorEquals,K as colorVectorToColorAndOpacity,O as createUniqueColors,E as darken,P as desaturate,G as getColorLuminance,U as getColorTheme,R as getContrast,c as isRGB,I as multiplyOpacity,N as multiplyOpacityToUnitRGBA,B as toHSV,C as toLAB,H as toLCH,A as toRGB,D as unitRGBAFromColor};
5
+ import n from"../Color.js";import{shuffle as t,getRandomNumberGenerator as r}from"./arrayUtils.js";import{clone as o}from"./lang.js";import{clamp as e}from"./mathUtils.js";import{e as u}from"../chunks/vec42.js";import{fromValues as c}from"./libs/gl-matrix-2/factories/vec4f64.js";function i(n){return"r"in n&&"g"in n&&"b"in n}function a(n){return"h"in n&&"s"in n&&"v"in n}function s(n){return"l"in n&&"a"in n&&"b"in n}function f(n){return"l"in n&&"c"in n&&"h"in n}function h(n){return"x"in n&&"y"in n&&"z"in n}const l=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],g=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function b(n,t){const r=[];let o,e;if(n[0].length!==t.length)throw new Error("dimensions do not match");const u=n.length,c=n[0].length;let i=0;for(o=0;o<u;o++){for(i=0,e=0;e<c;e++)i+=n[o][e]*t[e];r.push(i)}return r}function m(n){const t=[n.r/255,n.g/255,n.b/255].map((n=>n<=.04045?n/12.92:((n+.055)/1.055)**2.4)),r=b(l,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function M(n){const t=b(g,[n.x/100,n.y/100,n.z/100]).map((n=>{const t=n<=.0031308?12.92*n:1.055*n**(1/2.4)-.055;return Math.min(1,Math.max(t,0))}));return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function d(n){const t=[n.x/95.047,n.y/100,n.z/108.883].map((n=>n>(6/29)**3?n**(1/3):1/3*(29/6)**2*n+4/29));return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function p(n){const t=n.l,r=[(t+16)/116+n.a/500,(t+16)/116,(t+16)/116-n.b/200].map((n=>n>6/29?n**3:3*(6/29)**2*(n-4/29)));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function w(n){const t=n.l,r=n.a,o=n.b,e=Math.sqrt(r*r+o*o);let u=Math.atan2(o,r);return u=u>0?u:u+2*Math.PI,{l:t,c:e,h:u}}function x(n){const t=n.l,r=n.c,o=n.h;return{l:t,a:r*Math.cos(o),b:r*Math.sin(o)}}function k(n){return d(m(n))}function y(n){return M(p(n))}function j(n){return w(d(m(n)))}function v(n){return M(p(x(n)))}function z(n){const t=n.r,r=n.g,o=n.b,e=Math.max(t,r,o),u=e-Math.min(t,r,o);let c=e,i=0===u?0:e===t?(r-o)/u%6:e===r?(o-t)/u+2:(t-r)/u+4,a=0===u?0:u/c;return i<0&&(i+=6),i*=60,a*=100,c*=100/255,{h:i,s:a,v:c}}function A(n){const t=(n.h+360)%360/60,r=n.s/100,o=n.v/100*255,e=o*r,u=e*(1-Math.abs(t%2-1));let c;switch(Math.floor(t)){case 0:c={r:e,g:u,b:0};break;case 1:c={r:u,g:e,b:0};break;case 2:c={r:0,g:e,b:u};break;case 3:c={r:0,g:u,b:e};break;case 4:c={r:u,g:0,b:e};break;case 5:case 6:c={r:e,g:0,b:u};break;default:c={r:0,g:0,b:0}}return c.r=Math.round(c.r+o-e),c.g=Math.round(c.g+o-e),c.b=Math.round(c.b+o-e),c}function U(n){return i(n)?n:f(n)?v(n):s(n)?y(n):h(n)?M(n):a(n)?A(n):n}function B(n){if(a(n))return n;return z(U(n))}function C(n){return s(n)?n:k(U(n))}function H(n){return f(n)?n:j(U(n))}function q(n){return G(n).isBright?"light":"dark"}function G(t){let{r,g:o,b:e,a:u}=t;return u<1&&(r=Math.round(u*r+255*(1-u)),o=Math.round(u*o+255*(1-u)),e=Math.round(u*e+255*(1-u))),new n({r,g:o,b:e})}function L(n,t){const{r,g:o,b:e}=t?.ignoreAlpha?n:G(n);return.2126*r+.7152*o+.0722*e}var R;function E(t,r=R.High){return L(t,{ignoreAlpha:!0})>r?new n([0,0,0,t.a]):new n([255,255,255,t.a])}function I(n,t){const r=C(n);r.l*=1-t;const o=U(r),e=n.clone();return e.setColor(o),e.a=n.a,e}function P(n,t){const r=n.clone();return r.a*=t,r}function D(n,t){const r=B(n);r.s*=t;const o=U(r),e=n.clone();return e.setColor(o),e.a=n.a,e}function F(t){return n.toUnitRGBA(t)}function J(n,t){return n===t||null!=n&&n.equals(t)}function K(n,t){return n===t||null!=n&&null!=t&&u(n,t)}function N(n){return c(n[0],n[1],n[2],n.length>3?n[3]:1)}function O(n){return n[0]??=0,n[1]??=0,n[2]??=0,n}function Q(n){return n.length=4,O(n),n[3]??=1,e(n[3],0,1),n}function S(t,r){const o=n.toUnitRGBA(t);return o[3]*=r,o}function T(r,e,u={}){if(0===r.length||e<=0)return[];if(1===(r=r.map((t=>"string"==typeof t?new n(t):t))).length||1===e){const n=[],t=r[0];for(let r=0;r<e;r++)n.push(t.clone());return n}if(u.shuffle&&(r=t(o(r),u.seed)),r.length>=e){const n=[],t=(r.length-1)/(e-1);for(let o=0;o<e;o++){const e=Math.round(o*t);n.push(r[e].clone())}return n}return V(r,e,u)}function V(n,r,o={}){const e=[],u=n.length-1,c=Math.ceil((r-n.length)/u);n:for(let t=0;t<u;t++){const u=n[t],i=n[t+1];for(let t=1;t<=c;t++){const a=t/(c+1);if(e.push(X(u,i,a,o)),e.length+n.length===r)break n}}return[...n.map((n=>n.clone())),...t(e,o.seed??1)]}!function(n){n[n.Low=160]="Low",n[n.High=225]="High"}(R||(R={}));const W=(n,t)=>{const r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,n+r))};function X(t,o,e,u={}){const c=t.r,i=t.g,a=t.b,s=o.r,f=o.g,h=o.b,l=Math.round(c+(s-c)*e),g=Math.round(i+(f-i)*e),b=Math.round(a+(h-a)*e);if(!u.offset)return new n([l,g,b]);const m=r(u.seed);return new n([W(l,m),W(g,m),W(b,m)])}export{R as BrightnessThreshold,J as colorEquals,K as colorVectorEquals,N as colorVectorToColorAndOpacity,T as createUniqueColors,I as darken,D as desaturate,L as getColorLuminance,q as getColorTheme,E as getContrast,i as isRGB,P as multiplyOpacity,S as multiplyOpacityToUnitRGBA,B as toHSV,C as toLAB,H as toLCH,U as toRGB,F as unitRGBAFromColor,O as validateColor,Q as validateColorAndOpacity};
package/core/deprecate.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import has from"./has.js";const e=new WeakMap;function n(n,r,t=!1){const i=`🛑 DEPRECATED - ${r}`;if(!t)return void n.warn(i);let o=e.get(n);o||(o=new Set,e.set(n,o)),o.has(r)||(o.add(r),n.warn(i))}function r(e,n,r={}){has("esri-deprecation-warnings")&&s(e,`Module: ${n}`,r)}function t(e,n,r={}){if(has("esri-deprecation-warnings")){const{moduleName:t}=r;s(e,`Function: ${(t?t+"::":"")+n+"()"}`,r)}}function i(e,n,r={}){if(has("esri-deprecation-warnings")){const{moduleName:t}=r;s(e,`Property: ${(t?t+"::":"")+n}`,r)}}function o(e,n,r,t={}){if(has("esri-deprecation-warnings")){const{moduleName:i}=t;s(e,`'${(i?i+"::":"")+n}' value: ${r}`,t)}}function a(e,n,r={}){has("esri-deprecation-warnings")&&s(e,`Multiple argument constructor: ${n}`,{warnOnce:!0,replacement:`new ${n}({ <your properties here> })`,...r})}function s(e,r,t={}){if(has("esri-deprecation-warnings")){const{replacement:i,version:o,see:a,warnOnce:s}=t;let c=r;i&&(c+=`\n\t🛠️ Replacement: ${i}`),o&&(c+=`\n\t⚙️ Version: ${o}`),a&&(c+=`\n\t🔗 See ${a} for more details.`),n(e,c,s)}}export{s as deprecated,a as deprecatedConstructorSignature,t as deprecatedFunction,r as deprecatedModule,i as deprecatedProperty,o as deprecatedPropertyValue};
5
+ import has from"./has.js";const e=new WeakMap;function n(n,t,r=!1){const o=`🛑 DEPRECATED - ${t}`;if(!r)return void n.warn(o);let i=e.get(n);i||(i=new Set,e.set(n,i)),i.has(t)||(i.add(t),n.warn(o))}const t="https://www.esriurl.com/";function r(e,n,r,o={}){has("esri-deprecation-warnings")&&p(e,`This widget is deprecated. Use the ${n} component instead.`,{see:[`${n} component reference: ${t}${r}/`,`Esri's move to web components: ${t}components-transition-plan/`],replacement:`<${r}></${r}>`,warnOnce:!0,...o})}function o(e,n,t={}){has("esri-deprecation-warnings")&&p(e,`Module: ${n}`,t)}function i(e,n,t={}){if(has("esri-deprecation-warnings")){const{moduleName:r}=t;p(e,`Function: ${(r?r+"::":"")+n+"()"}`,t)}}function s(e,n,t={}){if(has("esri-deprecation-warnings")){const{moduleName:r}=t;p(e,`Property: ${(r?r+"::":"")+n}`,t)}}function a(e,n,t,r={}){if(has("esri-deprecation-warnings")){const{moduleName:o}=r;p(e,`'${(o?o+"::":"")+n}' value: ${t}`,r)}}function c(e,n,t={}){has("esri-deprecation-warnings")&&p(e,`Multiple argument constructor: ${n}`,{warnOnce:!0,replacement:`new ${n}({ <your properties here> })`,...t})}function p(e,t,r={}){if(has("esri-deprecation-warnings")){const{replacement:o,version:i,see:s,warnOnce:a}=r;let c=t;if(o&&(c+=`\n\t🛠️ Replacement: ${o}`),i&&(c+=`\n\t⚙️ Version: ${i}`),s)if(Array.isArray(s)){c+="\n\t🔗 See for more details:";for(const e of s)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${s} for more details.`;n(e,c,a)}}export{r as deprecateWidget,p as deprecated,c as deprecatedConstructorSignature,i as deprecatedFunction,o as deprecatedModule,s as deprecatedProperty,a as deprecatedPropertyValue};