@arcgis/core 5.0.0-next.58 → 5.0.0-next.59

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 (279) hide show
  1. package/Graphic.d.ts +2 -2
  2. package/Viewpoint.d.ts +1 -1
  3. package/applications/Urban/meshUtils.d.ts +2 -2
  4. package/arcade.d.ts +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/0bd73a66baea2f52e8a6.js +1 -0
  7. package/assets/esri/core/workers/chunks/262c5794650853457acc.js +1 -0
  8. package/assets/esri/core/workers/chunks/55a9ea536c64976c3409.js +1 -0
  9. package/assets/esri/core/workers/chunks/{5f9e64f00329cb646f0c.js → 741d170187e58e81584d.js} +1 -1
  10. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  11. package/assets/esri/themes/base/widgets/_Attribution.scss +2 -2
  12. package/assets/esri/themes/dark/main.css +1 -1
  13. package/assets/esri/themes/light/main.css +1 -1
  14. package/assets/esri/themes/light/view.css +1 -1
  15. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  16. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  17. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  18. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  19. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  20. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  21. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  22. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  23. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  24. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  25. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  26. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  27. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  28. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  29. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  30. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  31. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  32. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  33. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  34. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  35. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  36. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  37. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  38. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  39. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  40. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  41. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  42. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  43. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  44. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  45. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  46. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  47. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  48. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  49. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  50. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  51. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  52. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  53. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  54. package/chunks/lerc-wasm.js +1 -1
  55. package/config.js +1 -1
  56. package/geometry/Extent.d.ts +1 -1
  57. package/geometry/Mesh.d.ts +2 -2
  58. package/geometry/SpatialReference.js +1 -1
  59. package/geometry/geometryEngine.d.ts +3 -3
  60. package/geometry/{geometryEngineInterfaces.d.ts → geometryEngineTypes.d.ts} +1 -1
  61. package/geometry/operators/affineTransformOperator.d.ts +3 -3
  62. package/geometry/operators/alphaShapeOperator.d.ts +1 -1
  63. package/geometry/operators/areaOperator.d.ts +1 -1
  64. package/geometry/operators/boundaryOperator.d.ts +3 -3
  65. package/geometry/operators/bufferOperator.d.ts +1 -1
  66. package/geometry/operators/centroidOperator.d.ts +1 -1
  67. package/geometry/operators/clipOperator.d.ts +3 -3
  68. package/geometry/operators/containsOperator.d.ts +1 -1
  69. package/geometry/operators/convexHullOperator.d.ts +3 -3
  70. package/geometry/operators/crossesOperator.d.ts +1 -1
  71. package/geometry/operators/cutOperator.d.ts +2 -2
  72. package/geometry/operators/densifyOperator.d.ts +3 -3
  73. package/geometry/operators/differenceOperator.d.ts +3 -3
  74. package/geometry/operators/disjointOperator.d.ts +1 -1
  75. package/geometry/operators/distanceOperator.d.ts +1 -1
  76. package/geometry/operators/equalsOperator.d.ts +1 -1
  77. package/geometry/operators/generalizeOperator.d.ts +3 -3
  78. package/geometry/operators/geodesicBufferOperator.d.ts +1 -2
  79. package/geometry/operators/geodesicProximityOperator.d.ts +2 -5
  80. package/geometry/operators/geodeticAreaOperator.d.ts +1 -2
  81. package/geometry/operators/geodeticDensifyOperator.d.ts +3 -4
  82. package/geometry/operators/geodeticDistanceOperator.d.ts +1 -2
  83. package/geometry/operators/geodeticLengthOperator.d.ts +1 -2
  84. package/geometry/operators/geodeticUtilsOperator.d.ts +1 -1
  85. package/geometry/operators/graphicBufferOperator.d.ts +1 -1
  86. package/geometry/operators/integrateOperator.d.ts +2 -2
  87. package/geometry/operators/intersectionOperator.d.ts +3 -3
  88. package/geometry/operators/intersectsOperator.d.ts +1 -1
  89. package/geometry/operators/isNearOperator.d.ts +1 -1
  90. package/geometry/operators/labelPointOperator.d.ts +1 -1
  91. package/geometry/operators/lengthOperator.d.ts +1 -1
  92. package/geometry/operators/linesToPolygonsOperator.d.ts +1 -1
  93. package/geometry/operators/locateBetweenOperator.d.ts +2 -2
  94. package/geometry/operators/minimumBoundingCircleOperator.d.ts +1 -1
  95. package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
  96. package/geometry/operators/offsetOperator.d.ts +3 -3
  97. package/geometry/operators/overlapsOperator.d.ts +1 -1
  98. package/geometry/operators/projectOperator.d.ts +4 -6
  99. package/geometry/operators/proximityOperator.d.ts +2 -2
  100. package/geometry/operators/relateOperator.d.ts +1 -1
  101. package/geometry/operators/shapePreservingProjectOperator.d.ts +3 -3
  102. package/geometry/operators/simplifyOGCOperator.d.ts +3 -3
  103. package/geometry/operators/simplifyOperator.d.ts +3 -3
  104. package/geometry/operators/symmetricDifferenceOperator.d.ts +3 -3
  105. package/geometry/operators/touchesOperator.d.ts +1 -1
  106. package/geometry/operators/{support/proximityResult.d.ts → types.d.ts} +18 -3
  107. package/geometry/operators/unionOperator.d.ts +3 -3
  108. package/geometry/operators/withinOperator.d.ts +1 -1
  109. package/geometry/support/geodesicUtils.d.ts +15 -2
  110. package/geometry/support/jsonUtils.d.ts +1 -1
  111. package/geometry/support/meshUtils/types.d.ts +34 -0
  112. package/geometry/support/meshUtils.d.ts +4 -7
  113. package/geometry/support/webMercatorUtils.d.ts +1 -1
  114. package/geometry/types.d.ts +23 -1
  115. package/geometry.d.ts +1 -1
  116. package/interfaces.d.ts +69 -72
  117. package/kernel.js +1 -1
  118. package/layers/CSVLayer.d.ts +0 -2
  119. package/layers/CatalogLayer.d.ts +1 -1
  120. package/layers/FeatureLayer.d.ts +1 -1
  121. package/layers/GeoJSONLayer.d.ts +1 -1
  122. package/layers/OGCFeatureLayer.d.ts +1 -1
  123. package/layers/OrientedImageryLayer.d.ts +1 -3
  124. package/layers/ParquetLayer.d.ts +1 -1
  125. package/layers/WFSLayer.d.ts +1 -1
  126. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  127. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
  128. package/layers/mixins/APIKeyMixin.d.ts +2 -2
  129. package/layers/mixins/ArcGISImageService.d.ts +4 -3
  130. package/layers/mixins/BlendLayer.d.ts +16 -15
  131. package/layers/mixins/DisplayFilteredLayer.d.ts +6 -3
  132. package/layers/mixins/FeatureEffectLayer.d.ts +23 -21
  133. package/layers/mixins/FeatureLayerBase.d.ts +23 -20
  134. package/layers/mixins/ImageryTileMixin.d.ts +5 -5
  135. package/layers/mixins/PortalLayer.d.ts +7 -7
  136. package/layers/mixins/RasterPresetRendererMixin.d.ts +6 -3
  137. package/layers/mixins/SceneService.d.ts +2 -2
  138. package/layers/mixins/TemporalLayer.d.ts +8 -7
  139. package/layers/mixins/TemporalSceneLayer.d.ts +2 -2
  140. package/layers/mixins/TrackableLayer.d.ts +4 -4
  141. package/layers/ogc/wfsUtils.d.ts +1 -1
  142. package/layers/raster/formats/Lerc.js +1 -1
  143. package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +2 -2
  144. package/layers/support/DisplayFilterInfo.d.ts +7 -7
  145. package/layers/support/FeatureReductionCluster.d.ts +5 -5
  146. package/layers/support/FieldsIndex.d.ts +1 -2
  147. package/layers/support/RasterBandInfo.d.ts +1 -1
  148. package/layers/support/RasterInfo.d.ts +2 -2
  149. package/layers/support/RasterSensorInfo.d.ts +1 -1
  150. package/layers/support/Sublayer.d.ts +3 -3
  151. package/layers/support/SubtypeSublayer.d.ts +1 -1
  152. package/layers/support/TrackInfo.d.ts +2 -2
  153. package/layers/support/arcgisLayerUrl.js +1 -1
  154. package/layers/support/fieldUtils.d.ts +0 -1
  155. package/layers/support/source/QueryTableDataSource.d.ts +2 -2
  156. package/layers/support/types.d.ts +2 -2
  157. package/layers/types.d.ts +1 -1
  158. package/package.json +1 -1
  159. package/popup/FieldInfo.d.ts +8 -8
  160. package/popup/content/AttachmentsContent.d.ts +2 -2
  161. package/popup/content/CustomContent.d.ts +1 -1
  162. package/portal/interfaces.d.ts +2 -2
  163. package/portal/support/resourceUtils.d.ts +6 -7
  164. package/rest/featureService/types.d.ts +1 -1
  165. package/rest/geometryService.d.ts +2 -2
  166. package/rest/imageService.d.ts +1 -1
  167. package/rest/knowledgeGraph/GraphAnyValue.d.ts +1 -1
  168. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  169. package/rest/query.d.ts +1 -1
  170. package/rest/support/BufferParameters.d.ts +1 -1
  171. package/rest/support/DataLayer.d.ts +1 -1
  172. package/rest/support/DensifyParameters.d.ts +1 -1
  173. package/rest/support/DistanceParameters.d.ts +1 -1
  174. package/rest/support/FeatureSet.d.ts +2 -2
  175. package/rest/support/FindImagesParameters.d.ts +1 -1
  176. package/rest/support/GeneralizeParameters.d.ts +1 -1
  177. package/rest/support/IdentifyParameters.d.ts +1 -1
  178. package/rest/support/ImageGPSInfoParameters.d.ts +1 -1
  179. package/rest/support/ImageMeasureResultAreaValue.d.ts +1 -1
  180. package/rest/support/ImageToMapMultirayParameters.d.ts +1 -1
  181. package/rest/support/OffsetParameters.d.ts +1 -1
  182. package/rest/support/ProjectParameters.d.ts +1 -1
  183. package/rest/support/Query.d.ts +1 -1
  184. package/rest/support/QueryMixin.d.ts +1 -1
  185. package/rest/support/RelationParameters.d.ts +1 -1
  186. package/rest/support/RelationshipQuery.d.ts +1 -1
  187. package/rest/support/TopFeaturesQuery.d.ts +1 -1
  188. package/smartMapping/labels/bins.d.ts +3 -6
  189. package/smartMapping/labels/clusters.d.ts +2 -2
  190. package/smartMapping/popup/clusters.d.ts +4 -4
  191. package/smartMapping/popup/templates.d.ts +4 -4
  192. package/smartMapping/renderers/color.d.ts +6 -6
  193. package/smartMapping/renderers/size.d.ts +6 -6
  194. package/smartMapping/statistics/support/ageUtils.d.ts +5 -5
  195. package/smartMapping/statistics/types.d.ts +5 -5
  196. package/smartMapping/types.d.ts +9 -1
  197. package/support/revision.js +1 -1
  198. package/unionTypes.d.ts +1 -1
  199. package/views/2d/MapViewConstraints.d.ts +5 -4
  200. package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
  201. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  202. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  203. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  204. package/views/BreakpointsOwner.d.ts +1 -1
  205. package/views/LinkChartView.d.ts +1 -2
  206. package/views/MapView.d.ts +1 -2
  207. package/views/SceneView.d.ts +1 -2
  208. package/views/View.d.ts +1 -1
  209. package/views/Viewport2DMixin.d.ts +1 -1
  210. package/views/draw/MultipointDrawAction.d.ts +1 -1
  211. package/views/draw/MultipointDrawAction.js +1 -1
  212. package/views/draw/PointDrawAction.d.ts +1 -1
  213. package/views/draw/PointDrawAction.js +1 -1
  214. package/views/draw/PolygonDrawAction.d.ts +1 -1
  215. package/views/draw/PolygonDrawAction.js +1 -1
  216. package/views/draw/PolylineDrawAction.d.ts +1 -1
  217. package/views/draw/PolylineDrawAction.js +1 -1
  218. package/views/draw/SegmentDrawAction.d.ts +1 -1
  219. package/views/draw/SegmentDrawAction.js +1 -1
  220. package/views/input/{IViewEvents.js → mouseButtons.js} +1 -1
  221. package/views/input/types.d.ts +602 -1
  222. package/views/layers/BuildingSceneLayerView.d.ts +1 -1
  223. package/views/layers/FeatureLayerViewMixin.d.ts +1 -1
  224. package/views/layers/ImageryLayerViewMixin.d.ts +1 -1
  225. package/views/layers/MediaLayerViewMixin.d.ts +1 -1
  226. package/views/layers/PointCloudLayerView.d.ts +1 -1
  227. package/views/layers/SceneLayerView.d.ts +2 -2
  228. package/views/types.d.ts +148 -2
  229. package/webdoc/geotriggersInfo/FeatureFilter.d.ts +1 -1
  230. package/webscene/support/FeatureReferenceObjectId.d.ts +1 -1
  231. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -2
  232. package/widgets/BasemapLayerList.d.ts +3 -4
  233. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -1
  234. package/widgets/CatalogLayerList.d.ts +2 -4
  235. package/widgets/Directions/DirectionsViewModel.d.ts +1 -1
  236. package/widgets/Editor/types.d.ts +1 -1
  237. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +2 -2
  238. package/widgets/FeatureTable/VisibleElements.d.ts +30 -9
  239. package/widgets/FeatureTable/support/AttachmentsViewOptions.d.ts +1 -1
  240. package/widgets/FeatureTable/support/interfaces.d.ts +2 -2
  241. package/widgets/FeatureTable.d.ts +4 -4
  242. package/widgets/LayerList/LayerListViewModel.d.ts +9 -10
  243. package/widgets/LayerList/ListItem.d.ts +9 -11
  244. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  245. package/widgets/LayerList.d.ts +7 -4
  246. package/widgets/Legend/LegendViewModel.d.ts +5 -5
  247. package/widgets/Legend/support/ActiveLayerInfo.d.ts +5 -5
  248. package/widgets/Legend.d.ts +4 -4
  249. package/widgets/Popup/types.d.ts +3 -3
  250. package/widgets/Popup.d.ts +3 -3
  251. package/widgets/TableList/TableListViewModel.d.ts +2 -4
  252. package/widgets/TableList.d.ts +1 -1
  253. package/widgets/UtilityNetworkTrace/types.d.ts +1 -1
  254. package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +0 -1
  255. package/assets/esri/core/workers/chunks/a1f264abbd6354c333bf.js +0 -1
  256. package/assets/esri/core/workers/chunks/ed38c1043e6a83f49f93.js +0 -1
  257. package/geometry/geodesicUtils.d.ts +0 -19
  258. package/geometry/operators/support/geodeticCurveType.d.ts +0 -2
  259. package/geometry/operators/support/projectionTransformation.d.ts +0 -16
  260. package/geometry/support/MeshVertexSpace.d.ts +0 -4
  261. package/geometry/support/meshUtils/elevation.d.ts +0 -16
  262. package/geometry/support/meshUtils/elevationSampler.d.ts +0 -9
  263. package/geometry/support/meshUtils/georeference.d.ts +0 -10
  264. package/geometry/support/typeUtils.d.ts +0 -16
  265. package/smartMapping/popup/support/utils.d.ts +0 -13
  266. package/smartMapping/support/binningUtils.d.ts +0 -11
  267. package/smartMapping/support/clusterUtils.d.ts +0 -11
  268. package/smartMapping/support/utils.d.ts +0 -4
  269. package/views/2d/constraints/GeometryConstraint.d.ts +0 -4
  270. package/views/HitTestItem3D.d.ts +0 -20
  271. package/views/HitTestOptions.d.ts +0 -25
  272. package/views/IBreakpointsOwner.d.ts +0 -55
  273. package/views/IObjectId.d.ts +0 -2
  274. package/views/ISceneView.d.ts +0 -5
  275. package/views/IView.d.ts +0 -43
  276. package/views/input/IViewEvents.d.ts +0 -602
  277. /package/views/draw/input/{CursorUpdateEvents.d.ts → CursorUpdateEvent.d.ts} +0 -0
  278. /package/views/draw/input/{CursorUpdateEvents.js → CursorUpdateEvent.js} +0 -0
  279. /package/views/layers/{HighlightableLayerView.d.ts → types.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
2
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
2
+ import type { GeometryUnion } from "../../geometry/types.js";
3
3
  import type { GeometryOperationLengthUnit } from "./interfaces.js";
4
4
  import type { MeshProperties } from "../../geometry/Mesh.js";
5
5
  import type { PolylineProperties } from "../../geometry/Polyline.js";
@@ -1,5 +1,5 @@
1
1
  import type Accessor from "../../core/Accessor.js";
2
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
2
+ import type { GeometryUnion } from "../../geometry/types.js";
3
3
  import type { GeometryOperationLengthUnit } from "./interfaces.js";
4
4
  import type { MeshProperties } from "../../geometry/Mesh.js";
5
5
  import type { PolylineProperties } from "../../geometry/Polyline.js";
@@ -2,7 +2,7 @@ import type Graphic from "../../Graphic.js";
2
2
  import type SpatialReference from "../../geometry/SpatialReference.js";
3
3
  import type Field from "../../layers/support/Field.js";
4
4
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
5
- import type { GeometryType, GeometrySansMeshUnion } from "../../geometry/support/typeUtils.js";
5
+ import type { GeometryType, GeometryWithoutMeshUnion } from "../../geometry/types.js";
6
6
  import type { GraphicProperties } from "../../Graphic.js";
7
7
  import type { FieldProperties } from "../../layers/support/Field.js";
8
8
  import type { PolylineProperties } from "../../geometry/Polyline.js";
@@ -82,7 +82,7 @@ export default class FeatureSet extends JSONSupport {
82
82
  *
83
83
  * @see [Query#returnQueryGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnQueryGeometry)
84
84
  */
85
- get queryGeometry(): GeometrySansMeshUnion | null | undefined;
85
+ get queryGeometry(): GeometryWithoutMeshUnion | null | undefined;
86
86
  set queryGeometry(value: ((ExtentProperties & { type: "extent" }) | (MultipointProperties & { type: "multipoint" }) | (PointProperties & { type: "point" }) | (PolygonProperties & { type: "polygon" }) | (PolylineProperties & { type: "polyline" })) | null | undefined);
87
87
  /**
88
88
  * When a FeatureSet is used as input to Geoprocessor, the spatial reference is set to the map's spatial reference by default.
@@ -1,7 +1,7 @@
1
1
  import type Point from "../../geometry/Point.js";
2
2
  import type { ClonableMixin, ClonableMixinProperties } from "../../core/Clonable.js";
3
3
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
4
- import type { ObjectId } from "../../views/IObjectId.js";
4
+ import type { ObjectId } from "../../views/types.js";
5
5
  import type { PointProperties } from "../../geometry/Point.js";
6
6
 
7
7
  export interface FindImagesParametersProperties extends JSONSupportMixinProperties, ClonableMixinProperties, Partial<Pick<FindImagesParameters, "maxCount" | "objectIds" | "where">> {
@@ -1,5 +1,5 @@
1
1
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
2
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
2
+ import type { GeometryUnion } from "../../geometry/types.js";
3
3
  import type { DeviationUnit } from "../operations/generalize.js";
4
4
 
5
5
  export interface GeneralizeParametersProperties extends JSONSupportMixinProperties, Partial<Pick<GeneralizeParameters, "deviationUnit" | "geometries" | "maxDeviation">> {}
@@ -5,7 +5,7 @@ import type Sublayer from "../../layers/support/Sublayer.js";
5
5
  import type TimeExtent from "../../time/TimeExtent.js";
6
6
  import type { ReadonlyArrayOrCollection } from "../../core/Collection.js";
7
7
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
8
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
8
+ import type { GeometryUnion } from "../../geometry/types.js";
9
9
  import type { MeshProperties } from "../../geometry/Mesh.js";
10
10
  import type { PolylineProperties } from "../../geometry/Polyline.js";
11
11
  import type { PolygonProperties } from "../../geometry/Polygon.js";
@@ -6,7 +6,7 @@ import type Polyline from "../../geometry/Polyline.js";
6
6
  import type TimeExtent from "../../time/TimeExtent.js";
7
7
  import type { ClonableMixin, ClonableMixinProperties } from "../../core/Clonable.js";
8
8
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
9
- import type { ObjectId } from "../../views/IObjectId.js";
9
+ import type { ObjectId } from "../../views/types.js";
10
10
  import type { PolylineProperties } from "../../geometry/Polyline.js";
11
11
  import type { PolygonProperties } from "../../geometry/Polygon.js";
12
12
  import type { PointProperties } from "../../geometry/Point.js";
@@ -1,4 +1,4 @@
1
- import type { AreaUnit } from "../../geometry/geometryEngineInterfaces.js";
1
+ import type { AreaUnit } from "../../geometry/geometryEngineTypes.js";
2
2
  import type { BaseImageMeasureResultValue, BaseImageMeasureResultValueProperties } from "./BaseImageMeasureResultValue.js";
3
3
 
4
4
  export interface ImageMeasureResultAreaValueProperties extends BaseImageMeasureResultValueProperties {
@@ -1,7 +1,7 @@
1
1
  import type SpatialReference from "../../geometry/SpatialReference.js";
2
2
  import type { ClonableMixin, ClonableMixinProperties } from "../../core/Clonable.js";
3
3
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
4
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
4
+ import type { GeometryUnion } from "../../geometry/types.js";
5
5
  import type { MeshProperties } from "../../geometry/Mesh.js";
6
6
  import type { PolylineProperties } from "../../geometry/Polyline.js";
7
7
  import type { PolygonProperties } from "../../geometry/Polygon.js";
@@ -1,5 +1,5 @@
1
1
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
2
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
2
+ import type { GeometryUnion } from "../../geometry/types.js";
3
3
  import type { GeometryOperationLengthUnit } from "./interfaces.js";
4
4
 
5
5
  export interface OffsetParametersProperties extends JSONSupportMixinProperties, Partial<Pick<OffsetParameters, "bevelRatio" | "geometries" | "offsetDistance" | "offsetHow" | "offsetUnit">> {}
@@ -1,6 +1,6 @@
1
1
  import type SpatialReference from "../../geometry/SpatialReference.js";
2
2
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
3
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
3
+ import type { GeometryUnion } from "../../geometry/types.js";
4
4
  import type { Transformation } from "../types.js";
5
5
  import type { SpatialReferenceProperties } from "../../geometry/SpatialReference.js";
6
6
 
@@ -4,7 +4,7 @@ import type StatisticDefinition from "./StatisticDefinition.js";
4
4
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
5
5
  import type { DatumTransformation, SQLFormat } from "../../portal/jsonTypes.js";
6
6
  import type { QueryMixin, QueryMixinProperties } from "./QueryMixin.js";
7
- import type { ObjectId } from "../../views/IObjectId.js";
7
+ import type { ObjectId } from "../../views/types.js";
8
8
  import type { StatisticDefinitionProperties } from "./StatisticDefinition.js";
9
9
  import type { PointProperties } from "../../geometry/Point.js";
10
10
  import type { QuantizationParametersProperties } from "./QuantizationParameters.js";
@@ -1,6 +1,6 @@
1
1
  import type SpatialReference from "../../geometry/SpatialReference.js";
2
2
  import type TimeExtent from "../../time/TimeExtent.js";
3
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
3
+ import type { GeometryUnion } from "../../geometry/types.js";
4
4
  import type { MeshProperties } from "../../geometry/Mesh.js";
5
5
  import type { PolylineProperties } from "../../geometry/Polyline.js";
6
6
  import type { PolygonProperties } from "../../geometry/Polygon.js";
@@ -1,5 +1,5 @@
1
1
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
2
- import type { GeometryUnion } from "../../geometry/support/typeUtils.js";
2
+ import type { GeometryUnion } from "../../geometry/types.js";
3
3
 
4
4
  export interface RelationParametersProperties extends JSONSupportMixinProperties, Partial<Pick<RelationParameters, "geometries1" | "geometries2" | "relation" | "relationParameter">> {}
5
5
 
@@ -1,6 +1,6 @@
1
1
  import type SpatialReference from "../../geometry/SpatialReference.js";
2
2
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
3
- import type { ObjectId } from "../../views/IObjectId.js";
3
+ import type { ObjectId } from "../../views/types.js";
4
4
  import type { SpatialReferenceProperties } from "../../geometry/SpatialReference.js";
5
5
 
6
6
  export interface RelationshipQueryProperties extends JSONSupportMixinProperties, Partial<Pick<RelationshipQuery, "cacheHint" | "gdbVersion" | "geometryPrecision" | "maxAllowableOffset" | "num" | "objectIds" | "orderByFields" | "outFields" | "relationshipId" | "returnGeometry" | "returnM" | "returnZ" | "start" | "where">> {
@@ -2,7 +2,7 @@ import type TopFilter from "./TopFilter.js";
2
2
  import type TimeExtent from "../../time/TimeExtent.js";
3
3
  import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";
4
4
  import type { QueryMixin, QueryMixinProperties } from "./QueryMixin.js";
5
- import type { ObjectId } from "../../views/IObjectId.js";
5
+ import type { ObjectId } from "../../views/types.js";
6
6
  import type { TimeExtentProperties } from "../../time/TimeExtent.js";
7
7
  import type { TopFilterProperties } from "./TopFilter.js";
8
8
 
@@ -11,10 +11,9 @@
11
11
  * @since 4.27
12
12
  * @see [FeatureReductionBinning#labelingInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#labelingInfo)
13
13
  */
14
- import type KnowledgeGraphSublayer from "../../layers/knowledgeGraph/KnowledgeGraphSublayer.js";
15
14
  import type LabelClass from "../../layers/support/LabelClass.js";
16
15
  import type { RendererUnion } from "../../renderers/support/typeUtils.js";
17
- import type { BinningSupportedLayer } from "../support/binningUtils.js";
16
+ import type { BinningSupportedLayer } from "../types.js";
18
17
 
19
18
  /**
20
19
  * Generates default [FeatureReductionBinning#labelingInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#labelingInfo)
@@ -44,7 +43,7 @@ export interface SchemeParams {
44
43
  */
45
44
  field?: string;
46
45
  /** The point layer that has or will have binning enabled. */
47
- layer: SupportedBinsLayer;
46
+ layer: BinningSupportedLayer;
48
47
  /** The renderer to set on `layer.featureReduction.renderer` when binning is enabled. */
49
48
  renderer?: RendererUnion;
50
49
  }
@@ -75,6 +74,4 @@ export interface Schemes {
75
74
  primaryScheme: Scheme;
76
75
  /** Includes secondary labeling schemes suggested for the input layer's bins. */
77
76
  secondarySchemes: Scheme[];
78
- }
79
-
80
- export type SupportedBinsLayer = BinningSupportedLayer | KnowledgeGraphSublayer;
77
+ }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import type LabelClass from "../../layers/support/LabelClass.js";
18
18
  import type MapView from "../../views/MapView.js";
19
- import type { SupportedLayer } from "../support/clusterUtils.js";
19
+ import type { ClusteringSupportedLayer } from "../types.js";
20
20
  import type { ClusterableRenderer } from "../../views/2d/layers/types.js";
21
21
 
22
22
  /**
@@ -59,7 +59,7 @@ export interface SchemeParams {
59
59
  */
60
60
  field?: string;
61
61
  /** The point layer that has or will have clustering enabled. */
62
- layer: SupportedLayer;
62
+ layer: ClusteringSupportedLayer;
63
63
  /**
64
64
  * The renderer to set on the input layer when clustering is enabled.
65
65
  * Specify this parameter if the layer's renderer does not match the renderer that will be used when clustering is enabled.
@@ -22,8 +22,8 @@
22
22
  import type SubtypeGroupLayer from "../../layers/SubtypeGroupLayer.js";
23
23
  import type SubtypeSublayer from "../../layers/support/SubtypeSublayer.js";
24
24
  import type { RendererWithVisualVariablesUnion } from "../../renderers/support/typeUtils.js";
25
+ import type { PopupSupportedLayer } from "../types.js";
25
26
  import type { Templates } from "./types.js";
26
- import type { SupportedLayer } from "./support/utils.js";
27
27
 
28
28
  /**
29
29
  * Returns one or more suggested default [popupTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) for a given
@@ -48,11 +48,11 @@ import type { SupportedLayer } from "./support/utils.js";
48
48
  * console.error(error);
49
49
  * });
50
50
  */
51
- export function getTemplates(parameters: TemplateParams): Promise<Templates | null | undefined>;
51
+ export function getTemplates(parameters: TemplateParameters): Promise<Templates | null | undefined>;
52
52
 
53
- export interface TemplateParams {
53
+ export interface TemplateParameters {
54
54
  /** The point layer that is or will be clustered. */
55
- layer: Exclude<SupportedLayer, SubtypeGroupLayer | SubtypeSublayer>;
55
+ layer: Exclude<PopupSupportedLayer, SubtypeGroupLayer | SubtypeSublayer>;
56
56
  /**
57
57
  * Specify the renderer to be used on the layer when
58
58
  * `featureReduction` is enabled if it will be different than the renderer already set on the layer.
@@ -17,8 +17,8 @@
17
17
  * @see [Sample - Generate a dot density visualization](https://developers.arcgis.com/javascript/latest/sample-code/visualization-sm-dotdensity/)
18
18
  */
19
19
  import type { RendererUnion } from "../../renderers/support/typeUtils.js";
20
+ import type { PopupSupportedLayer } from "../types.js";
20
21
  import type { Templates } from "./types.js";
21
- import type { SupportedLayer } from "./support/utils.js";
22
22
 
23
23
  /**
24
24
  * Returns one or more suggested [popupTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) for a given layer based on
@@ -42,11 +42,11 @@ import type { SupportedLayer } from "./support/utils.js";
42
42
  * console.error(error);
43
43
  * });
44
44
  */
45
- export function getTemplates(params: TemplateParams): Promise<Templates | null | undefined>;
45
+ export function getTemplates(params: TemplateParameters): Promise<Templates | null | undefined>;
46
46
 
47
- export interface TemplateParams {
47
+ export interface TemplateParameters {
48
48
  /** The layer to which the suggested popup templates can be applied. */
49
- layer: SupportedLayer;
49
+ layer: PopupSupportedLayer;
50
50
  /**
51
51
  * Specify the renderer to be used on the layer when
52
52
  * if it will be different than the renderer already set on the layer.
@@ -24,12 +24,12 @@ import type AuthoringInfo from "../../renderers/support/AuthoringInfo.js";
24
24
  import type ColorVariable from "../../renderers/visualVariables/ColorVariable.js";
25
25
  import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
26
26
  import type { AbortOptions } from "../../core/promiseUtils.js";
27
+ import type { DateProperties } from "../../intl/date.js";
27
28
  import type { ClassificationMethod, NormalizationType, VisualVariableLegendOptions as IVisualVariableLegendOptions } from "../../renderers/types.js";
28
29
  import type { StandardDeviationInterval } from "../../renderers/support/AuthoringInfo.js";
29
30
  import type { RendererLegendTitleOption } from "../../renderers/support/RendererLegendOptions.js";
30
- import type { SupportedLayer } from "../types.js";
31
+ import type { SupportedLayer, SmartMappingTimeUnit } from "../types.js";
31
32
  import type { ClassBreaksResult, SummaryStatisticsResult } from "../statistics/types.js";
32
- import type { DateType, UnitType } from "../support/utils.js";
33
33
  import type { BasemapTheme, ColorScheme } from "../symbology/types.js";
34
34
 
35
35
  /**
@@ -937,7 +937,7 @@ export interface AgeRendererParams extends AbortOptions {
937
937
  * The name of the field, or a date value representing the end time in the
938
938
  * age calculation. If a date value is specified, then the `startTime` parameter must reference a Date field in the layer.
939
939
  */
940
- endTime: DateType;
940
+ endTime: DateProperties;
941
941
  /**
942
942
  * _Since 4.31_ When defined, only features included in the filter
943
943
  * are considered in the attribute and spatial statistics calculations when determining the final renderer.
@@ -991,7 +991,7 @@ export interface AgeRendererParams extends AbortOptions {
991
991
  * The name of the field, or a date value representing the start time in the
992
992
  * age calculation. If a date value is specified, then the `endTime` parameter must reference a Date field in the layer.
993
993
  */
994
- startTime: DateType;
994
+ startTime: DateProperties;
995
995
  /**
996
996
  * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
997
997
  * The `createAgeRenderer()` method generates an Arcade expression and executes a statistics query against the layer for the result of the expression.
@@ -1033,7 +1033,7 @@ export interface AgeRendererParams extends AbortOptions {
1033
1033
  * The time unit used to calculate the difference between `endTime` and `startTime`. If a unit
1034
1034
  * is not specified, then a suggested unit is determined based on the spread and distribution of the data.
1035
1035
  */
1036
- unit?: UnitType | null;
1036
+ unit?: SmartMappingTimeUnit | null;
1037
1037
  /**
1038
1038
  * The view where the input layer is rendered. This method
1039
1039
  * inspects the view's background (i.e. basemap, web map background, or view container) to determine optimal
@@ -1052,5 +1052,5 @@ export type ColorTheme = "high-to-low" | "above-and-below" | "centered-on" | "ex
1052
1052
  */
1053
1053
  export interface AgeRendererResult extends ContinuousRendererResult {
1054
1054
  /** The time unit used to represent age in the output `renderer`. */
1055
- unit?: UnitType | null;
1055
+ unit?: SmartMappingTimeUnit | null;
1056
1056
  }
@@ -24,13 +24,13 @@ import type SizeVariable from "../../renderers/visualVariables/SizeVariable.js";
24
24
  import type SizeStop from "../../renderers/visualVariables/support/SizeStop.js";
25
25
  import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
26
26
  import type { AbortOptions } from "../../core/promiseUtils.js";
27
+ import type { DateProperties } from "../../intl/date.js";
27
28
  import type { ClassificationMethod, NormalizationType, VisualVariableLegendOptions } from "../../renderers/types.js";
28
29
  import type { StandardDeviationInterval } from "../../renderers/support/AuthoringInfo.js";
29
30
  import type { RendererLegendTitleOption } from "../../renderers/support/RendererLegendOptions.js";
30
- import type { SupportedLayer } from "../types.js";
31
+ import type { SupportedLayer, SmartMappingTimeUnit } from "../types.js";
31
32
  import type { SpikeSymbolStyle } from "./support/spikeUtils.js";
32
33
  import type { ClassBreaksResult, SummaryStatisticsResult } from "../statistics/types.js";
33
- import type { DateType, UnitType } from "../support/utils.js";
34
34
  import type { BasemapTheme, SizeScheme, TypeScheme } from "../symbology/types.js";
35
35
 
36
36
  /**
@@ -883,7 +883,7 @@ export interface AgeRendererParams extends AbortOptions {
883
883
  * The name of the field, or a date value representing the end time in the
884
884
  * age calculation. If a date value is specified, then the `startTime` parameter must reference a Date field in the layer.
885
885
  */
886
- endTime: DateType;
886
+ endTime: DateProperties;
887
887
  /**
888
888
  * _Since 4.31_ When defined, only features included in the filter
889
889
  * are considered in the attribute and spatial statistics calculations when determining the final renderer.
@@ -942,7 +942,7 @@ export interface AgeRendererParams extends AbortOptions {
942
942
  * The name of the field, or a date value representing the start time in the
943
943
  * age calculation. If a date value is specified, then the `endTime` parameter must reference a Date field in the layer.
944
944
  */
945
- startTime: DateType;
945
+ startTime: DateProperties;
946
946
  /**
947
947
  * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
948
948
  * The `createAgeRenderer()` method generates an Arcade expression and executes a statistics query against the layer for the result of the expression.
@@ -981,7 +981,7 @@ export interface AgeRendererParams extends AbortOptions {
981
981
  * The time unit used to calculate the difference between `endTime` and `startTime`. If a unit
982
982
  * is not specified, then a suggested unit is determined based on the spread and distribution of the data.
983
983
  */
984
- unit?: UnitType | null;
984
+ unit?: SmartMappingTimeUnit | null;
985
985
  /**
986
986
  * The view where the input layer is rendered. This method
987
987
  * inspects the view's background (i.e. basemap, web map background, or view container) to determine optimal
@@ -1000,5 +1000,5 @@ export type SizeThemes = "high-to-low" | "above" | "below" | "reference-size" |
1000
1000
  */
1001
1001
  export interface AgeRendererResult extends ContinuousRendererResult {
1002
1002
  /** The time unit used to represent age in the output `renderer`. */
1003
- unit?: UnitType | null;
1003
+ unit?: SmartMappingTimeUnit | null;
1004
1004
  }
@@ -6,8 +6,8 @@
6
6
  * @see [colorRendererCreator.createAgeRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
7
7
  * @see [sizeRendererCreator.createAgeRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
8
8
  */
9
- import type { SupportedLayer } from "../../types.js";
10
- import type { DateType, UnitType } from "../../support/utils.js";
9
+ import type { DateProperties } from "../../../intl/date.js";
10
+ import type { SmartMappingTimeUnit, SupportedLayer } from "../../types.js";
11
11
 
12
12
  /**
13
13
  * Returns an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression for visualizing the age of a feature based
@@ -32,16 +32,16 @@ export interface AgeExpressionsParams {
32
32
  * The end time for the age calculation. This can be a field name or a date
33
33
  * value, such as `Date.now()`. If a `Date` is provided, then the `startTime` parameter must be a field name.
34
34
  */
35
- endTime: DateType;
35
+ endTime: DateProperties;
36
36
  /** The layer from which to generate age statistics for the given `startTime` and `endTime`. */
37
37
  layer: SupportedLayer;
38
38
  /**
39
39
  * The start time for the age calculation. This can be a field name or a date
40
40
  * value, such as `Date.now()`. If a `Date` is provided, then the `endTime` parameter must be a field name.
41
41
  */
42
- startTime: DateType;
42
+ startTime: DateProperties;
43
43
  /** The desired units of the age result. */
44
- unit?: UnitType | null;
44
+ unit?: SmartMappingTimeUnit | null;
45
45
  }
46
46
 
47
47
  /** The result object returned from the [getAgeExpressions()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#getAgeExpressions) method. */
@@ -7,10 +7,10 @@ import type Graphic from "../../Graphic.js";
7
7
  import type FeatureFilter from "../../layers/support/FeatureFilter.js";
8
8
  import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
9
9
  import type { AbortOptions } from "../../core/promiseUtils.js";
10
+ import type { DateProperties } from "../../intl/date.js";
10
11
  import type { Feature as FeatureJSON } from "../../portal/jsonTypes.js";
11
12
  import type { ClassificationMethod, NormalizationType } from "../../renderers/types.js";
12
- import type { SupportedLayer } from "../types.js";
13
- import type { UnitType, DateType } from "../support/utils.js";
13
+ import type { SupportedLayer, SmartMappingTimeUnit } from "../types.js";
14
14
  import type { OutStatisticTypes } from "../../statistics/types.js";
15
15
 
16
16
  /** The result returned from the [histogram()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram) method. */
@@ -559,7 +559,7 @@ export interface SummaryStatisticsForAgeParams extends AbortOptions {
559
559
  * The end time for the age calculation. This can be a field name or a date
560
560
  * value, such as `Date.now()`. If a `Date` is provided, then the `startTime` parameter must be a field name.
561
561
  */
562
- endTime: DateType;
562
+ endTime: DateProperties;
563
563
  /**
564
564
  * _Since 4.31_ When defined, only features included in the filter
565
565
  * are considered in the attribute and spatial statistics calculations when determining the final renderer.
@@ -577,9 +577,9 @@ export interface SummaryStatisticsForAgeParams extends AbortOptions {
577
577
  * The start time for the age calculation. This can be a field name or a date
578
578
  * value, such as `Date.now()`. If a `Date` is provided, then the `endTime` parameter must be a field name.
579
579
  */
580
- startTime: DateType;
580
+ startTime: DateProperties;
581
581
  /** The desired units of the age result. */
582
- unit?: UnitType | null;
582
+ unit?: SmartMappingTimeUnit | null;
583
583
  /** The view in which features will be rendered. */
584
584
  view?: MapViewOrSceneView | null;
585
585
  }
@@ -15,4 +15,12 @@ import type CatalogFootprintLayer from "../layers/catalog/CatalogFootprintLayer.
15
15
  import type KnowledgeGraphSublayer from "../layers/knowledgeGraph/KnowledgeGraphSublayer.js";
16
16
  import type SubtypeSublayer from "../layers/support/SubtypeSublayer.js";
17
17
 
18
- export type SupportedLayer = CatalogLayer | CatalogFootprintLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | PointCloudLayer | SceneLayer | StreamLayer | SubtypeGroupLayer | SubtypeSublayer | WFSLayer;
18
+ export type SupportedLayer = CatalogLayer | CatalogFootprintLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | PointCloudLayer | SceneLayer | StreamLayer | SubtypeGroupLayer | SubtypeSublayer | WFSLayer;
19
+
20
+ export type BinningSupportedLayer = FeatureLayer | OGCFeatureLayer | OrientedImageryLayer | GeoJSONLayer | CSVLayer | ParquetLayer | WFSLayer | StreamLayer | KnowledgeGraphSublayer;
21
+
22
+ export type ClusteringSupportedLayer = FeatureLayer | OGCFeatureLayer | GeoJSONLayer | CSVLayer | WFSLayer | OrientedImageryLayer | ParquetLayer | StreamLayer | KnowledgeGraphSublayer;
23
+
24
+ export type PopupSupportedLayer = CSVLayer | FeatureLayer | OGCFeatureLayer | GeoJSONLayer | WFSLayer | OrientedImageryLayer | ParquetLayer | StreamLayer | SubtypeGroupLayer | SubtypeSublayer | KnowledgeGraphSublayer;
25
+
26
+ export type SmartMappingTimeUnit = "years" | "months" | "days" | "hours" | "minutes" | "seconds";
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- const a="20251209",d="83ceea7a7ca2ed91ba452a3391d095d1fd7a044a";export{a as buildDate,d as commitHash};
5
+ const e="20251210",b="bb27e7b030effa06d52976270d631688e09261f2";export{e as buildDate,b as commitHash};
package/unionTypes.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * @since 4.32
5
5
  */
6
6
  import type { AnalysisUnion as AnalysisUnionAlias } from "./analysis/types.js";
7
- import type { GeometryUnion as GeometryUnionAlias } from "./geometry/support/typeUtils.js";
7
+ import type { GeometryUnion as GeometryUnionAlias } from "./geometry/types.js";
8
8
  import type { PointCloudRendererUnion as PointCloudRendererUnionAlias } from "./renderers/support/pointCloudTypeUtils.js";
9
9
  import type { RasterRendererUnion as RasterRendererUnionAlias } from "./renderers/support/rasterTypeUtils.js";
10
10
  import type { RendererUnion as RendererUnionAlias, RendererWithVisualVariablesUnion as RendererWithVisualVariablesUnionAlias } from "./renderers/support/typeUtils.js";
@@ -1,6 +1,7 @@
1
1
  import type Accessor from "../../core/Accessor.js";
2
+ import type Extent from "../../geometry/Extent.js";
3
+ import type Polygon from "../../geometry/Polygon.js";
2
4
  import type LOD from "../../layers/support/LOD.js";
3
- import type { SupportedGeometry } from "./constraints/GeometryConstraint.js";
4
5
  import type { PolygonProperties } from "../../geometry/Polygon.js";
5
6
  import type { ExtentProperties } from "../../geometry/Extent.js";
6
7
  import type { LODProperties } from "../../layers/support/LOD.js";
@@ -11,7 +12,7 @@ export interface MapViewConstraintsProperties extends Partial<Pick<MapViewConstr
11
12
  *
12
13
  * @since 4.17
13
14
  */
14
- geometry?: ((ExtentProperties & { type: "extent" }) | (PolygonProperties & { type: "polygon" })) | null;
15
+ geometry?: (ExtentProperties & { type: "extent" }) | (PolygonProperties & { type: "polygon" }) | null;
15
16
  /**
16
17
  * An array of [LODs](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html). If not specified, this value is read from the [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html). It is possible to generate additional LODs via the
17
18
  * [TileInfo#create()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create) method. This is useful in cases where the default amount of LODs provided are not sufficient. One example of when
@@ -36,8 +37,8 @@ export default abstract class MapViewConstraints extends Accessor {
36
37
  *
37
38
  * @since 4.17
38
39
  */
39
- get geometry(): SupportedGeometry | null;
40
- set geometry(value: ((ExtentProperties & { type: "extent" }) | (PolygonProperties & { type: "polygon" })) | null);
40
+ get geometry(): Extent | Polygon | null;
41
+ set geometry(value: (ExtentProperties & { type: "extent" }) | (PolygonProperties & { type: "polygon" }) | null);
41
42
  /**
42
43
  * An array of [LODs](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html). If not specified, this value is read from the [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html). It is possible to generate additional LODs via the
43
44
  * [TileInfo#create()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create) method. This is useful in cases where the default amount of LODs provided are not sufficient. One example of when
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- const e={background:{"background.frag":"#ifdef PATTERN\nuniform lowp float u_opacity;\nuniform lowp sampler2D u_texture;\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_tileTextureCoord;\n#else\nuniform lowp vec4 u_color;\n#endif\nvoid main() {\n#ifdef PATTERN\nmediump vec2 normalizedTextureCoord = mod(v_tileTextureCoord, 1.0);\nmediump vec2 samplePos = mix(v_tlbr.xy, v_tlbr.zw, normalizedTextureCoord);\nlowp vec4 color = texture2D(u_texture, samplePos);\ngl_FragColor = u_opacity * color;\n#else\ngl_FragColor = u_color;\n#endif\n}","background.vert":"precision mediump float;\nattribute vec2 a_pos;\nuniform highp mat3 u_dvsMat3;\nuniform mediump float u_coord_range;\nuniform mediump float u_depth;\n#ifdef PATTERN\nuniform mediump mat3 u_pattern_matrix;\nvarying mediump vec2 v_tileTextureCoord;\nuniform mediump vec4 u_tlbr;\nuniform mediump vec2 u_mosaicSize;\nvarying mediump vec4 v_tlbr;\n#endif\nvoid main() {\ngl_Position = vec4((u_dvsMat3 * vec3(u_coord_range * a_pos, 1.0)).xy, u_depth, 1.0);\n#ifdef PATTERN\nv_tileTextureCoord = (u_pattern_matrix * vec3(a_pos, 1.0)).xy;\nv_tlbr = u_tlbr / u_mosaicSize.xyxy;\n#endif\n}"},circle:{"circle.vert":"precision mediump float;\nattribute vec2 a_pos;\n#pragma header\nvarying lowp vec4 v_color;\nvarying lowp vec4 v_stroke_color;\nvarying mediump float v_blur;\nvarying mediump float v_stroke_width;\nvarying mediump float v_radius;\nvarying mediump vec2 v_offset;\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump vec2 u_circleTranslation;\nuniform mediump float u_depth;\nuniform mediump float u_antialiasingWidth;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\nv_stroke_color = stroke_color * stroke_opacity;\nv_stroke_width = stroke_width;\nv_radius = radius;\nv_blur = max(blur, u_antialiasingWidth / (radius + stroke_width));\nmediump vec2 offset = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\nv_offset = offset;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos * 0.5, 1.0) + u_displayMat3 * vec3((v_radius + v_stroke_width) * offset + u_circleTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}","circle.frag":"precision lowp float;\nvarying lowp vec4 v_color;\nvarying lowp vec4 v_stroke_color;\nvarying mediump float v_blur;\nvarying mediump float v_stroke_width;\nvarying mediump float v_radius;\nvarying mediump vec2 v_offset;\nvoid main()\n{\nmediump float dist = length(v_offset);\nmediump float alpha = smoothstep(0.0, -v_blur, dist - 1.0);\nlowp float color_mix_ratio = v_stroke_width < 0.01 ? 0.0 : smoothstep(-v_blur, 0.0, dist - v_radius / (v_radius + v_stroke_width));\ngl_FragColor = alpha * mix(v_color, v_stroke_color, color_mix_ratio);\n}"},fill:{"fill.frag":"precision lowp float;\n#ifdef PATTERN\nuniform lowp sampler2D u_texture;\nvarying mediump vec2 v_tileTextureCoord;\nvarying mediump vec4 v_tlbr;\n#endif\nvarying lowp vec4 v_color;\nvec4 mixColors(vec4 color1, vec4 color2) {\nfloat compositeAlpha = color2.a + color1.a * (1.0 - color2.a);\nvec3 compositeColor = color2.rgb + color1.rgb * (1.0 - color2.a);\nreturn vec4(compositeColor, compositeAlpha);\n}\nvoid main()\n{\n#ifdef PATTERN\nmediump vec2 normalizedTextureCoord = fract(v_tileTextureCoord);\nmediump vec2 samplePos = mix(v_tlbr.xy, v_tlbr.zw, normalizedTextureCoord);\nlowp vec4 color = texture2D(u_texture, samplePos);\ngl_FragColor = v_color[3] * color;\n#else\ngl_FragColor = v_color;\n#endif\n}","fill.vert":"precision mediump float;\nattribute vec2 a_pos;\n#pragma header\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump float u_depth;\nuniform mediump vec2 u_fillTranslation;\n#ifdef PATTERN\n#include <util/util.glsl>\nuniform mediump vec2 u_mosaicSize;\nuniform mediump float u_patternFactor;\nvarying mediump vec2 v_tileTextureCoord;\nvarying mediump vec4 v_tlbr;\n#endif\nvarying lowp vec4 v_color;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\n#ifdef PATTERN\nfloat patternWidth = nextPOT(tlbr.z - tlbr.x);\nfloat patternHeight = nextPOT(tlbr.w - tlbr.y);\nfloat scaleX = 1.0 / (patternWidth * u_patternFactor);\nfloat scaleY = 1.0 / (patternHeight * u_patternFactor);\nmat3 patterMat = mat3(scaleX, 0.0, 0.0,\n0.0, -scaleY, 0.0,\n0.0, 0.0, 1.0);\nv_tileTextureCoord = (patterMat * vec3(a_pos, 1.0)).xy;\nv_tlbr = tlbr / u_mosaicSize.xyxy;\n#endif\nvec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayMat3 * vec3(u_fillTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}"},icon:{"icon.frag":"precision mediump float;\nuniform lowp sampler2D u_texture;\n#ifdef SDF\nuniform lowp vec4 u_color;\nuniform lowp vec4 u_outlineColor;\n#endif\nuniform highp int u_isStencilPass;\nvarying mediump vec2 v_tex;\nvarying lowp float v_opacity;\nvarying mediump vec2 v_size;\nvarying lowp vec4 v_color;\n#ifdef SDF\nvarying mediump float v_halo_width;\n#endif\nconst float alphaCutoff = 1.0 / 255.5;\n#include <util/encoding.glsl>\nvec4 mixColors(vec4 color1, vec4 color2) {\nfloat compositeAlpha = color2.a + color1.a * (1.0 - color2.a);\nvec3 compositeColor = color2.rgb + color1.rgb * (1.0 - color2.a);\nreturn vec4(compositeColor, compositeAlpha);\n}\nvoid main()\n{\n#ifdef SDF\nlowp vec4 fillPixelColor = v_color;\nfloat d = rgba2float(texture2D(u_texture, v_tex)) - 0.5;\nconst float softEdgeRatio = 0.248062016;\nfloat size = max(v_size.x, v_size.y);\nfloat dist = d * softEdgeRatio * size;\nfillPixelColor *= clamp(0.5 - dist, 0.0, 1.0);\nif (v_halo_width > 0.25) {\nlowp vec4 outlinePixelColor = u_outlineColor;\nconst float outlineLimitRatio = (16.0 / 86.0);\nfloat clampedOutlineSize = softEdgeRatio * min(v_halo_width, outlineLimitRatio * max(v_size.x, v_size.y));\noutlinePixelColor *= clamp(0.5 - (abs(dist) - clampedOutlineSize), 0.0, 1.0);\ngl_FragColor = v_opacity * mixColors(fillPixelColor, outlinePixelColor);\n}\nelse {\ngl_FragColor = v_opacity * fillPixelColor;\n}\n#else\nlowp vec4 texColor = texture2D(u_texture, v_tex);\nif (u_isStencilPass == 1 && texColor.a < alphaCutoff) {\ndiscard;\n}\ngl_FragColor = v_opacity * texColor;\n#endif\n}","icon.vert":"attribute vec2 a_pos;\nattribute vec2 a_vertexOffset;\nattribute vec4 a_texAngleRange;\nattribute vec4 a_levelInfo;\nattribute float a_opacityInfo;\n#pragma header\nvarying lowp vec4 v_color;\n#ifdef SDF\nvarying mediump float v_halo_width;\n#endif\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump vec2 u_iconTranslation;\nuniform vec2 u_mosaicSize;\nuniform mediump float u_depth;\nuniform mediump float u_mapRotation;\nuniform mediump float u_level;\nuniform lowp float u_keepUpright;\nuniform mediump float u_fadeDuration;\nvarying mediump vec2 v_tex;\nvarying lowp float v_opacity;\nvarying mediump vec2 v_size;\nconst float C_OFFSET_PRECISION = 1.0 / 8.0;\nconst float C_256_TO_RAD = 3.14159265359 / 128.0;\nconst float C_DEG_TO_RAD = 3.14159265359 / 180.0;\nconst float tileCoordRatio = 1.0 / 8.0;\nuniform highp float u_time;\nvoid main()\n{\n#pragma main\nv_color = color;\nv_opacity = opacity;\n#ifdef SDF\nv_halo_width = halo_width;\n#endif\nfloat modded = mod(a_opacityInfo, 128.0);\nfloat targetOpacity = (a_opacityInfo - modded) / 128.0;\nfloat startOpacity = modded / 127.0;\nfloat interpolatedOpacity = clamp(startOpacity + 2.0 * (targetOpacity - 0.5) * u_time / u_fadeDuration, 0.0, 1.0);\nv_opacity *= interpolatedOpacity;\nmediump float a_angle = a_levelInfo[1];\nmediump float a_minLevel = a_levelInfo[2];\nmediump float a_maxLevel = a_levelInfo[3];\nmediump vec2 a_tex = a_texAngleRange.xy;\nmediump float delta_z = 0.0;\nmediump float rotated = mod(a_angle + u_mapRotation, 256.0);\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * step(64.0, rotated) * (1.0 - step(192.0, rotated));\ndelta_z += 1.0 - step(a_minLevel, u_level);\ndelta_z += step(a_maxLevel, u_level);\ndelta_z += step(v_opacity, 0.0);\nvec2 offset = C_OFFSET_PRECISION * a_vertexOffset;\nv_size = abs(offset);\n#ifdef SDF\noffset = (120.0 / 86.0) * offset;\n#endif\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayViewMat3 * vec3(size * offset, 0.0) + u_displayMat3 * vec3(u_iconTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth + delta_z, 1.0);\nv_tex = a_tex.xy / u_mosaicSize;\n}"},line:{"line.frag":"precision lowp float;\nvarying mediump vec2 v_normal;\nvarying highp float v_accumulatedDistance;\nvarying mediump float v_lineHalfWidth;\nvarying lowp vec4 v_color;\nvarying mediump float v_blur;\n#if defined (PATTERN) || defined(SDF)\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_patternSize;\nvarying mediump float v_widthRatio;\nuniform sampler2D u_texture;\nuniform mediump float u_antialiasing;\n#endif\n#ifdef SDF\n#include <util/encoding.glsl>\n#endif\nvoid main()\n{\nmediump float fragDist = length(v_normal) * v_lineHalfWidth;\nlowp float alpha = clamp((v_lineHalfWidth - fragDist) / v_blur, 0.0, 1.0);\n#ifdef PATTERN\nmediump float relativeTexX = fract(v_accumulatedDistance / (v_patternSize.x * v_widthRatio));\nmediump float relativeTexY = 0.5 + v_normal.y * v_lineHalfWidth / (v_patternSize.y * v_widthRatio);\nmediump vec2 texCoord = mix(v_tlbr.xy, v_tlbr.zw, vec2(relativeTexX, relativeTexY));\nlowp vec4 color = texture2D(u_texture, texCoord);\ngl_FragColor = alpha * v_color[3] * color;\n#elif defined(SDF)\nmediump float relativeTexX = fract((v_accumulatedDistance * 0.5) / (v_patternSize.x * v_widthRatio));\nmediump float relativeTexY = 0.5 + 0.25 * v_normal.y;\nmediump vec2 texCoord = mix(v_tlbr.xy, v_tlbr.zw, vec2(relativeTexX, relativeTexY));\nmediump float d = rgba2float(texture2D(u_texture, texCoord)) - 0.5;\nfloat dist = d * (v_lineHalfWidth + u_antialiasing / 2.0);\ngl_FragColor = alpha * clamp(0.5 - dist, 0.0, 1.0) * v_color;\n#else\ngl_FragColor = alpha * v_color;\n#endif\n}","line.vert":"precision mediump float;\nattribute vec2 a_pos;\nattribute vec4 a_extrude_offset;\nattribute vec4 a_dir_normal;\nattribute vec2 a_accumulatedDistance;\n#pragma header\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump float u_zoomFactor;\nuniform mediump vec2 u_lineTranslation;\nuniform mediump float u_antialiasing;\nuniform mediump float u_depth;\nvarying mediump vec2 v_normal;\nvarying highp float v_accumulatedDistance;\nconst float scale = 1.0 / 31.0;\nconst mediump float tileCoordRatio = 8.0;\n#if defined (SDF)\nconst mediump float sdfPatternHalfWidth = 15.5;\n#endif\n#if defined (PATTERN) || defined(SDF)\nuniform mediump vec2 u_mosaicSize;\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_patternSize;\nvarying mediump float v_widthRatio;\n#endif\nvarying lowp vec4 v_color;\nvarying mediump float v_lineHalfWidth;\nvarying mediump float v_blur;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\nv_blur = blur + u_antialiasing;\nv_normal = a_dir_normal.zw * scale;\n#if defined (PATTERN) || defined(SDF)\nv_tlbr = tlbr / u_mosaicSize.xyxy;\nv_patternSize = vec2(tlbr.z - tlbr.x, tlbr.y - tlbr.w);\n#if defined (PATTERN)\nv_widthRatio = width / v_patternSize.y;\n#else\nv_widthRatio = width / sdfPatternHalfWidth / 2.0;\n#endif\n#endif\nv_lineHalfWidth = (width + u_antialiasing) * 0.5;\nmediump vec2 dir = a_dir_normal.xy * scale;\nmediump vec2 offset_ = a_extrude_offset.zw * scale * offset;\nmediump vec2 dist = v_lineHalfWidth * scale * a_extrude_offset.xy;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos + offset_ * tileCoordRatio / u_zoomFactor, 1.0) + u_displayViewMat3 * vec3(dist, 0.0) + u_displayMat3 * vec3(u_lineTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n#if defined (PATTERN) || defined(SDF)\nv_accumulatedDistance = a_accumulatedDistance.x * u_zoomFactor / tileCoordRatio + dot(dir, dist + offset_);\n#endif\n}"},outline:{"outline.vert":"attribute vec2 a_pos;\nattribute vec2 a_offset;\nattribute vec2 a_xnormal;\n#pragma header\nvarying lowp vec4 v_color;\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump vec2 u_fillTranslation;\nuniform mediump float u_depth;\nuniform mediump float u_outline_width;\nvarying lowp vec2 v_normal;\nconst float scale = 1.0 / 15.0;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\nv_normal = a_xnormal;\nmediump vec2 dist = u_outline_width * scale * a_offset;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayMat3 * vec3(dist + u_fillTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}","outline.frag":"varying lowp vec4 v_color;\nvarying mediump vec2 v_normal;\nvoid main()\n{\nlowp float dist = abs(v_normal.y);\nlowp float alpha = smoothstep(1.0, 0.0, dist);\ngl_FragColor = alpha * v_color;\n}"},text:{"text.frag":"uniform lowp sampler2D u_texture;\nvarying lowp vec2 v_tex;\nvarying lowp vec4 v_color;\nvarying mediump float v_edgeWidth;\nvarying mediump float v_edgeDistance;\nvoid main()\n{\nlowp float dist = texture2D(u_texture, v_tex).a;\nmediump float alpha = smoothstep(v_edgeDistance - v_edgeWidth, v_edgeDistance + v_edgeWidth, dist);\ngl_FragColor = alpha * v_color;\n}","text.vert":"attribute vec2 a_pos;\nattribute vec2 a_vertexOffset;\nattribute vec4 a_texAngleRange;\nattribute vec4 a_levelInfo;\nattribute float a_opacityInfo;\n#pragma header\nvarying lowp vec4 v_color;\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump vec2 u_textTranslation;\nuniform vec2 u_mosaicSize;\nuniform mediump float u_depth;\nuniform mediump float u_mapRotation;\nuniform mediump float u_level;\nuniform lowp float u_keepUpright;\nuniform mediump float u_fadeDuration;\nvarying lowp vec2 v_tex;\nconst float offsetPrecision = 1.0 / 8.0;\nconst mediump float edgePos = 0.75;\nuniform mediump float u_antialiasingWidth;\nvarying mediump float v_edgeDistance;\nvarying mediump float v_edgeWidth;\nuniform lowp float u_halo;\nconst float sdfFontScale = 1.0 / 24.0;\nconst float sdfPixel = 3.0;\nuniform highp float u_time;\nvoid main()\n{\n#pragma main\nif (u_halo > 0.5)\n{\nv_color = halo_color * opacity;\nhalo_width *= sdfPixel;\nhalo_blur *= sdfPixel;\n}\nelse\n{\nv_color = color * opacity;\nhalo_width = 0.0;\nhalo_blur = 0.0;\n}\nfloat modded = mod(a_opacityInfo, 128.0);\nfloat targetOpacity = (a_opacityInfo - modded) / 128.0;\nfloat startOpacity = modded / 127.0;\nfloat interpolatedOpacity = clamp(startOpacity + 2.0 * (targetOpacity - 0.5) * u_time / u_fadeDuration, 0.0, 1.0);\nv_color *= interpolatedOpacity;\nmediump float a_angle = a_levelInfo[1];\nmediump float a_minLevel = a_levelInfo[2];\nmediump float a_maxLevel = a_levelInfo[3];\nmediump vec2 a_tex = a_texAngleRange.xy;\nmediump float a_visMinAngle = a_texAngleRange.z;\nmediump float a_visMaxAngle = a_texAngleRange.w;\nmediump float delta_z = 0.0;\nmediump float angle = mod(a_angle + u_mapRotation, 256.0);\nif (a_visMinAngle < a_visMaxAngle)\n{\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * (step(a_visMaxAngle, angle) + (1.0 - step(a_visMinAngle, angle)));\n}\nelse\n{\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * (step(a_visMaxAngle, angle) * (1.0 - step(a_visMinAngle, angle)));\n}\ndelta_z += 1.0 - step(a_minLevel, u_level);\ndelta_z += step(a_maxLevel, u_level);\ndelta_z += step(v_color[3], 0.0);\nv_tex = a_tex.xy / u_mosaicSize;\nv_edgeDistance = edgePos - halo_width / size;\nv_edgeWidth = (u_antialiasingWidth + halo_blur) / size;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + sdfFontScale * u_displayViewMat3 * vec3(offsetPrecision * size * a_vertexOffset, 0.0) + u_displayMat3 * vec3(u_textTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth + delta_z, 1.0);\n}"},util:{"encoding.glsl":"const vec4 rgba2float_factors = vec4(\n255.0 / (256.0),\n255.0 / (256.0 * 256.0),\n255.0 / (256.0 * 256.0 * 256.0),\n255.0 / (256.0 * 256.0 * 256.0 * 256.0)\n);\nfloat rgba2float(vec4 rgba) {\nreturn dot(rgba, rgba2float_factors);\n}","util.glsl":"float nextPOT(in float x) {\nreturn pow(2.0, ceil(log2(abs(x))));\n}"}};export{e as default};
5
+ const e={background:{"background.frag":"#ifdef PATTERN\nuniform lowp float u_opacity;\nuniform lowp sampler2D u_texture;\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_tileTextureCoord;\n#else\nuniform lowp vec4 u_color;\n#endif\nvoid main() {\n#ifdef PATTERN\nmediump vec2 normalizedTextureCoord = mod(v_tileTextureCoord, 1.0);\nmediump vec2 samplePos = mix(v_tlbr.xy, v_tlbr.zw, normalizedTextureCoord);\nlowp vec4 color = texture2D(u_texture, samplePos);\ngl_FragColor = u_opacity * color;\n#else\ngl_FragColor = u_color;\n#endif\n}","background.vert":"precision mediump float;\nattribute vec2 a_pos;\nuniform highp mat3 u_dvsMat3;\nuniform mediump float u_coord_range;\nuniform mediump float u_depth;\n#ifdef PATTERN\nuniform mediump mat3 u_pattern_matrix;\nvarying mediump vec2 v_tileTextureCoord;\nuniform mediump vec4 u_tlbr;\nuniform mediump vec2 u_mosaicSize;\nvarying mediump vec4 v_tlbr;\n#endif\nvoid main() {\ngl_Position = vec4((u_dvsMat3 * vec3(u_coord_range * a_pos, 1.0)).xy, u_depth, 1.0);\n#ifdef PATTERN\nv_tileTextureCoord = (u_pattern_matrix * vec3(a_pos, 1.0)).xy;\nv_tlbr = u_tlbr / u_mosaicSize.xyxy;\n#endif\n}"},circle:{"circle.frag":"precision lowp float;\nvarying lowp vec4 v_color;\nvarying lowp vec4 v_stroke_color;\nvarying mediump float v_blur;\nvarying mediump float v_stroke_width;\nvarying mediump float v_radius;\nvarying mediump vec2 v_offset;\nvoid main()\n{\nmediump float dist = length(v_offset);\nmediump float alpha = smoothstep(0.0, -v_blur, dist - 1.0);\nlowp float color_mix_ratio = v_stroke_width < 0.01 ? 0.0 : smoothstep(-v_blur, 0.0, dist - v_radius / (v_radius + v_stroke_width));\ngl_FragColor = alpha * mix(v_color, v_stroke_color, color_mix_ratio);\n}","circle.vert":"precision mediump float;\nattribute vec2 a_pos;\n#pragma header\nvarying lowp vec4 v_color;\nvarying lowp vec4 v_stroke_color;\nvarying mediump float v_blur;\nvarying mediump float v_stroke_width;\nvarying mediump float v_radius;\nvarying mediump vec2 v_offset;\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump vec2 u_circleTranslation;\nuniform mediump float u_depth;\nuniform mediump float u_antialiasingWidth;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\nv_stroke_color = stroke_color * stroke_opacity;\nv_stroke_width = stroke_width;\nv_radius = radius;\nv_blur = max(blur, u_antialiasingWidth / (radius + stroke_width));\nmediump vec2 offset = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\nv_offset = offset;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos * 0.5, 1.0) + u_displayMat3 * vec3((v_radius + v_stroke_width) * offset + u_circleTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}"},fill:{"fill.frag":"precision lowp float;\n#ifdef PATTERN\nuniform lowp sampler2D u_texture;\nvarying mediump vec2 v_tileTextureCoord;\nvarying mediump vec4 v_tlbr;\n#endif\nvarying lowp vec4 v_color;\nvec4 mixColors(vec4 color1, vec4 color2) {\nfloat compositeAlpha = color2.a + color1.a * (1.0 - color2.a);\nvec3 compositeColor = color2.rgb + color1.rgb * (1.0 - color2.a);\nreturn vec4(compositeColor, compositeAlpha);\n}\nvoid main()\n{\n#ifdef PATTERN\nmediump vec2 normalizedTextureCoord = fract(v_tileTextureCoord);\nmediump vec2 samplePos = mix(v_tlbr.xy, v_tlbr.zw, normalizedTextureCoord);\nlowp vec4 color = texture2D(u_texture, samplePos);\ngl_FragColor = v_color[3] * color;\n#else\ngl_FragColor = v_color;\n#endif\n}","fill.vert":"precision mediump float;\nattribute vec2 a_pos;\n#pragma header\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump float u_depth;\nuniform mediump vec2 u_fillTranslation;\n#ifdef PATTERN\n#include <util/util.glsl>\nuniform mediump vec2 u_mosaicSize;\nuniform mediump float u_patternFactor;\nvarying mediump vec2 v_tileTextureCoord;\nvarying mediump vec4 v_tlbr;\n#endif\nvarying lowp vec4 v_color;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\n#ifdef PATTERN\nfloat patternWidth = nextPOT(tlbr.z - tlbr.x);\nfloat patternHeight = nextPOT(tlbr.w - tlbr.y);\nfloat scaleX = 1.0 / (patternWidth * u_patternFactor);\nfloat scaleY = 1.0 / (patternHeight * u_patternFactor);\nmat3 patterMat = mat3(scaleX, 0.0, 0.0,\n0.0, -scaleY, 0.0,\n0.0, 0.0, 1.0);\nv_tileTextureCoord = (patterMat * vec3(a_pos, 1.0)).xy;\nv_tlbr = tlbr / u_mosaicSize.xyxy;\n#endif\nvec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayMat3 * vec3(u_fillTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}"},icon:{"icon.frag":"precision mediump float;\nuniform lowp sampler2D u_texture;\n#ifdef SDF\nuniform lowp vec4 u_color;\nuniform lowp vec4 u_outlineColor;\n#endif\nuniform highp int u_isStencilPass;\nvarying mediump vec2 v_tex;\nvarying lowp float v_opacity;\nvarying mediump vec2 v_size;\nvarying lowp vec4 v_color;\n#ifdef SDF\nvarying mediump float v_halo_width;\n#endif\nconst float alphaCutoff = 1.0 / 255.5;\n#include <util/encoding.glsl>\nvec4 mixColors(vec4 color1, vec4 color2) {\nfloat compositeAlpha = color2.a + color1.a * (1.0 - color2.a);\nvec3 compositeColor = color2.rgb + color1.rgb * (1.0 - color2.a);\nreturn vec4(compositeColor, compositeAlpha);\n}\nvoid main()\n{\n#ifdef SDF\nlowp vec4 fillPixelColor = v_color;\nfloat d = rgba2float(texture2D(u_texture, v_tex)) - 0.5;\nconst float softEdgeRatio = 0.248062016;\nfloat size = max(v_size.x, v_size.y);\nfloat dist = d * softEdgeRatio * size;\nfillPixelColor *= clamp(0.5 - dist, 0.0, 1.0);\nif (v_halo_width > 0.25) {\nlowp vec4 outlinePixelColor = u_outlineColor;\nconst float outlineLimitRatio = (16.0 / 86.0);\nfloat clampedOutlineSize = softEdgeRatio * min(v_halo_width, outlineLimitRatio * max(v_size.x, v_size.y));\noutlinePixelColor *= clamp(0.5 - (abs(dist) - clampedOutlineSize), 0.0, 1.0);\ngl_FragColor = v_opacity * mixColors(fillPixelColor, outlinePixelColor);\n}\nelse {\ngl_FragColor = v_opacity * fillPixelColor;\n}\n#else\nlowp vec4 texColor = texture2D(u_texture, v_tex);\nif (u_isStencilPass == 1 && texColor.a < alphaCutoff) {\ndiscard;\n}\ngl_FragColor = v_opacity * texColor;\n#endif\n}","icon.vert":"attribute vec2 a_pos;\nattribute vec2 a_vertexOffset;\nattribute vec4 a_texAngleRange;\nattribute vec4 a_levelInfo;\nattribute float a_opacityInfo;\n#pragma header\nvarying lowp vec4 v_color;\n#ifdef SDF\nvarying mediump float v_halo_width;\n#endif\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump vec2 u_iconTranslation;\nuniform vec2 u_mosaicSize;\nuniform mediump float u_depth;\nuniform mediump float u_mapRotation;\nuniform mediump float u_level;\nuniform lowp float u_keepUpright;\nuniform mediump float u_fadeDuration;\nvarying mediump vec2 v_tex;\nvarying lowp float v_opacity;\nvarying mediump vec2 v_size;\nconst float C_OFFSET_PRECISION = 1.0 / 8.0;\nconst float C_256_TO_RAD = 3.14159265359 / 128.0;\nconst float C_DEG_TO_RAD = 3.14159265359 / 180.0;\nconst float tileCoordRatio = 1.0 / 8.0;\nuniform highp float u_time;\nvoid main()\n{\n#pragma main\nv_color = color;\nv_opacity = opacity;\n#ifdef SDF\nv_halo_width = halo_width;\n#endif\nfloat modded = mod(a_opacityInfo, 128.0);\nfloat targetOpacity = (a_opacityInfo - modded) / 128.0;\nfloat startOpacity = modded / 127.0;\nfloat interpolatedOpacity = clamp(startOpacity + 2.0 * (targetOpacity - 0.5) * u_time / u_fadeDuration, 0.0, 1.0);\nv_opacity *= interpolatedOpacity;\nmediump float a_angle = a_levelInfo[1];\nmediump float a_minLevel = a_levelInfo[2];\nmediump float a_maxLevel = a_levelInfo[3];\nmediump vec2 a_tex = a_texAngleRange.xy;\nmediump float delta_z = 0.0;\nmediump float rotated = mod(a_angle + u_mapRotation, 256.0);\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * step(64.0, rotated) * (1.0 - step(192.0, rotated));\ndelta_z += 1.0 - step(a_minLevel, u_level);\ndelta_z += step(a_maxLevel, u_level);\ndelta_z += step(v_opacity, 0.0);\nvec2 offset = C_OFFSET_PRECISION * a_vertexOffset;\nv_size = abs(offset);\n#ifdef SDF\noffset = (120.0 / 86.0) * offset;\n#endif\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayViewMat3 * vec3(size * offset, 0.0) + u_displayMat3 * vec3(u_iconTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth + delta_z, 1.0);\nv_tex = a_tex.xy / u_mosaicSize;\n}"},line:{"line.frag":"precision lowp float;\nvarying mediump vec2 v_normal;\nvarying highp float v_accumulatedDistance;\nvarying mediump float v_lineHalfWidth;\nvarying lowp vec4 v_color;\nvarying mediump float v_blur;\n#if defined (PATTERN) || defined(SDF)\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_patternSize;\nvarying mediump float v_widthRatio;\nuniform sampler2D u_texture;\nuniform mediump float u_antialiasing;\n#endif\n#ifdef SDF\n#include <util/encoding.glsl>\n#endif\nvoid main()\n{\nmediump float fragDist = length(v_normal) * v_lineHalfWidth;\nlowp float alpha = clamp((v_lineHalfWidth - fragDist) / v_blur, 0.0, 1.0);\n#ifdef PATTERN\nmediump float relativeTexX = fract(v_accumulatedDistance / (v_patternSize.x * v_widthRatio));\nmediump float relativeTexY = 0.5 + v_normal.y * v_lineHalfWidth / (v_patternSize.y * v_widthRatio);\nmediump vec2 texCoord = mix(v_tlbr.xy, v_tlbr.zw, vec2(relativeTexX, relativeTexY));\nlowp vec4 color = texture2D(u_texture, texCoord);\ngl_FragColor = alpha * v_color[3] * color;\n#elif defined(SDF)\nmediump float relativeTexX = fract((v_accumulatedDistance * 0.5) / (v_patternSize.x * v_widthRatio));\nmediump float relativeTexY = 0.5 + 0.25 * v_normal.y;\nmediump vec2 texCoord = mix(v_tlbr.xy, v_tlbr.zw, vec2(relativeTexX, relativeTexY));\nmediump float d = rgba2float(texture2D(u_texture, texCoord)) - 0.5;\nfloat dist = d * (v_lineHalfWidth + u_antialiasing / 2.0);\ngl_FragColor = alpha * clamp(0.5 - dist, 0.0, 1.0) * v_color;\n#else\ngl_FragColor = alpha * v_color;\n#endif\n}","line.vert":"precision mediump float;\nattribute vec2 a_pos;\nattribute vec4 a_extrude_offset;\nattribute vec4 a_dir_normal;\nattribute vec2 a_accumulatedDistance;\n#pragma header\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump float u_zoomFactor;\nuniform mediump vec2 u_lineTranslation;\nuniform mediump float u_antialiasing;\nuniform mediump float u_depth;\nvarying mediump vec2 v_normal;\nvarying highp float v_accumulatedDistance;\nconst float scale = 1.0 / 31.0;\nconst mediump float tileCoordRatio = 8.0;\n#if defined (SDF)\nconst mediump float sdfPatternHalfWidth = 15.5;\n#endif\n#if defined (PATTERN) || defined(SDF)\nuniform mediump vec2 u_mosaicSize;\nvarying mediump vec4 v_tlbr;\nvarying mediump vec2 v_patternSize;\nvarying mediump float v_widthRatio;\n#endif\nvarying lowp vec4 v_color;\nvarying mediump float v_lineHalfWidth;\nvarying mediump float v_blur;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\nv_blur = blur + u_antialiasing;\nv_normal = a_dir_normal.zw * scale;\n#if defined (PATTERN) || defined(SDF)\nv_tlbr = tlbr / u_mosaicSize.xyxy;\nv_patternSize = vec2(tlbr.z - tlbr.x, tlbr.y - tlbr.w);\n#if defined (PATTERN)\nv_widthRatio = width / v_patternSize.y;\n#else\nv_widthRatio = width / sdfPatternHalfWidth / 2.0;\n#endif\n#endif\nv_lineHalfWidth = (width + u_antialiasing) * 0.5;\nmediump vec2 dir = a_dir_normal.xy * scale;\nmediump vec2 offset_ = a_extrude_offset.zw * scale * offset;\nmediump vec2 dist = v_lineHalfWidth * scale * a_extrude_offset.xy;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos + offset_ * tileCoordRatio / u_zoomFactor, 1.0) + u_displayViewMat3 * vec3(dist, 0.0) + u_displayMat3 * vec3(u_lineTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n#if defined (PATTERN) || defined(SDF)\nv_accumulatedDistance = a_accumulatedDistance.x * u_zoomFactor / tileCoordRatio + dot(dir, dist + offset_);\n#endif\n}"},outline:{"outline.frag":"varying lowp vec4 v_color;\nvarying mediump vec2 v_normal;\nvoid main()\n{\nlowp float dist = abs(v_normal.y);\nlowp float alpha = smoothstep(1.0, 0.0, dist);\ngl_FragColor = alpha * v_color;\n}","outline.vert":"attribute vec2 a_pos;\nattribute vec2 a_offset;\nattribute vec2 a_xnormal;\n#pragma header\nvarying lowp vec4 v_color;\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform mediump vec2 u_fillTranslation;\nuniform mediump float u_depth;\nuniform mediump float u_outline_width;\nvarying lowp vec2 v_normal;\nconst float scale = 1.0 / 15.0;\nvoid main()\n{\n#pragma main\nv_color = color * opacity;\nv_normal = a_xnormal;\nmediump vec2 dist = u_outline_width * scale * a_offset;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + u_displayMat3 * vec3(dist + u_fillTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth, 1.0);\n}"},text:{"text.frag":"uniform lowp sampler2D u_texture;\nvarying lowp vec2 v_tex;\nvarying lowp vec4 v_color;\nvarying mediump float v_edgeWidth;\nvarying mediump float v_edgeDistance;\nvoid main()\n{\nlowp float dist = texture2D(u_texture, v_tex).a;\nmediump float alpha = smoothstep(v_edgeDistance - v_edgeWidth, v_edgeDistance + v_edgeWidth, dist);\ngl_FragColor = alpha * v_color;\n}","text.vert":"attribute vec2 a_pos;\nattribute vec2 a_vertexOffset;\nattribute vec4 a_texAngleRange;\nattribute vec4 a_levelInfo;\nattribute float a_opacityInfo;\n#pragma header\nvarying lowp vec4 v_color;\nuniform highp mat3 u_dvsMat3;\nuniform highp mat3 u_displayMat3;\nuniform highp mat3 u_displayViewMat3;\nuniform mediump vec2 u_textTranslation;\nuniform vec2 u_mosaicSize;\nuniform mediump float u_depth;\nuniform mediump float u_mapRotation;\nuniform mediump float u_level;\nuniform lowp float u_keepUpright;\nuniform mediump float u_fadeDuration;\nvarying lowp vec2 v_tex;\nconst float offsetPrecision = 1.0 / 8.0;\nconst mediump float edgePos = 0.75;\nuniform mediump float u_antialiasingWidth;\nvarying mediump float v_edgeDistance;\nvarying mediump float v_edgeWidth;\nuniform lowp float u_halo;\nconst float sdfFontScale = 1.0 / 24.0;\nconst float sdfPixel = 3.0;\nuniform highp float u_time;\nvoid main()\n{\n#pragma main\nif (u_halo > 0.5)\n{\nv_color = halo_color * opacity;\nhalo_width *= sdfPixel;\nhalo_blur *= sdfPixel;\n}\nelse\n{\nv_color = color * opacity;\nhalo_width = 0.0;\nhalo_blur = 0.0;\n}\nfloat modded = mod(a_opacityInfo, 128.0);\nfloat targetOpacity = (a_opacityInfo - modded) / 128.0;\nfloat startOpacity = modded / 127.0;\nfloat interpolatedOpacity = clamp(startOpacity + 2.0 * (targetOpacity - 0.5) * u_time / u_fadeDuration, 0.0, 1.0);\nv_color *= interpolatedOpacity;\nmediump float a_angle = a_levelInfo[1];\nmediump float a_minLevel = a_levelInfo[2];\nmediump float a_maxLevel = a_levelInfo[3];\nmediump vec2 a_tex = a_texAngleRange.xy;\nmediump float a_visMinAngle = a_texAngleRange.z;\nmediump float a_visMaxAngle = a_texAngleRange.w;\nmediump float delta_z = 0.0;\nmediump float angle = mod(a_angle + u_mapRotation, 256.0);\nif (a_visMinAngle < a_visMaxAngle)\n{\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * (step(a_visMaxAngle, angle) + (1.0 - step(a_visMinAngle, angle)));\n}\nelse\n{\ndelta_z += (1.0 - step(u_keepUpright, 0.0)) * (step(a_visMaxAngle, angle) * (1.0 - step(a_visMinAngle, angle)));\n}\ndelta_z += 1.0 - step(a_minLevel, u_level);\ndelta_z += step(a_maxLevel, u_level);\ndelta_z += step(v_color[3], 0.0);\nv_tex = a_tex.xy / u_mosaicSize;\nv_edgeDistance = edgePos - halo_width / size;\nv_edgeWidth = (u_antialiasingWidth + halo_blur) / size;\nmediump vec3 pos = u_dvsMat3 * vec3(a_pos, 1.0) + sdfFontScale * u_displayViewMat3 * vec3(offsetPrecision * size * a_vertexOffset, 0.0) + u_displayMat3 * vec3(u_textTranslation, 0.0);\ngl_Position = vec4(pos.xy, u_depth + delta_z, 1.0);\n}"},util:{"encoding.glsl":"const vec4 rgba2float_factors = vec4(\n255.0 / (256.0),\n255.0 / (256.0 * 256.0),\n255.0 / (256.0 * 256.0 * 256.0),\n255.0 / (256.0 * 256.0 * 256.0 * 256.0)\n);\nfloat rgba2float(vec4 rgba) {\nreturn dot(rgba, rgba2float_factors);\n}","util.glsl":"float nextPOT(in float x) {\nreturn pow(2.0, ceil(log2(abs(x))));\n}"}};export{e as default};