@arcgis/core 4.32.0-next.20241113 → 4.32.0-next.20241115

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 (190) hide show
  1. package/WebLinkChart.d.ts +2 -2
  2. package/WebLinkChart.js +1 -1
  3. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +4 -0
  4. package/applications/KnowledgeStudio/generalSharedKgUtils.js +5 -0
  5. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +4 -0
  6. package/applications/KnowledgeStudio/layerInternalAccessUtils.js +5 -0
  7. package/applications/KnowledgeStudio/resourceSerializationUtils.d.ts +4 -0
  8. package/applications/KnowledgeStudio/resourceSerializationUtils.js +5 -0
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/{e93f863337e1fedf1803.js → 12238b444292f9ffc91a.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{b78589d316ad52341c64.js → 16529f37ed830df98255.js} +1 -1
  12. package/assets/esri/core/workers/chunks/1a74f18246fe4b9da854.js +1 -0
  13. package/assets/esri/core/workers/chunks/{3bc3a78ce8de37f5c546.js → 22b19f090b4d3c271d8e.js} +18 -21
  14. package/assets/esri/core/workers/chunks/2946aad6e01da0c96d7b.js +1 -0
  15. package/assets/esri/core/workers/chunks/3ab65304541b8232b408.js +1 -0
  16. package/assets/esri/core/workers/chunks/4e0c9b4df505c2fd95e9.js +1 -0
  17. package/assets/esri/core/workers/chunks/608fd132daa79e661afb.js +1 -0
  18. package/assets/esri/core/workers/chunks/{99b8586c725ebf4a9aa6.js → 62d1e3bf4db8321e421e.js} +1 -1
  19. package/assets/esri/core/workers/chunks/70b0bdc943c657c1ac17.js +1 -0
  20. package/assets/esri/core/workers/chunks/76a8c42066de07fa092f.js +1 -0
  21. package/assets/esri/core/workers/chunks/{02569bc18b44e1d770f8.js → 7b69cc7383f544617fce.js} +1 -1
  22. package/assets/esri/core/workers/chunks/7f8fea3af2cf333510d6.js +1 -0
  23. package/assets/esri/core/workers/chunks/807c806bc863d5453f0c.js +1 -0
  24. package/assets/esri/core/workers/chunks/{7412655d0552ef9a13eb.js → 82c11ebe1af111aceb31.js} +1 -1
  25. package/assets/esri/core/workers/chunks/840e82bd34f043a74dd3.js +1 -0
  26. package/assets/esri/core/workers/chunks/87eb7a789063b208ac76.js +1 -0
  27. package/assets/esri/core/workers/chunks/{ad44b0f749e5ca5a9772.js → 8e5bfcebb10194d0cbc1.js} +1 -1
  28. package/assets/esri/core/workers/chunks/969d6d1d885483da703b.js +1 -0
  29. package/assets/esri/core/workers/chunks/97063dd4b36d2d69d18d.js +1 -0
  30. package/assets/esri/core/workers/chunks/9980467d7bcfb55879b3.js +1 -0
  31. package/assets/esri/core/workers/chunks/a118e2aa1dd24982ea23.js +1 -0
  32. package/assets/esri/core/workers/chunks/a165eec3603591b63272.js +1 -0
  33. package/assets/esri/core/workers/chunks/{8f0afcbf5372e53e0e2c.js → a44aaa90078f494f5022.js} +1 -1
  34. package/assets/esri/core/workers/chunks/ac9681ebbae83b6d8c8a.js +1 -0
  35. package/assets/esri/core/workers/chunks/af7fc0a4272c71994a84.js +1 -0
  36. package/assets/esri/core/workers/chunks/b764f4acd40de58f9708.js +1 -0
  37. package/assets/esri/core/workers/chunks/c1315c5610326a98811b.js +1 -0
  38. package/assets/esri/core/workers/chunks/c601a4c1dca8690c8617.js +1 -0
  39. package/assets/esri/core/workers/chunks/ca203af1475fb4573b68.js +1 -0
  40. package/assets/esri/core/workers/chunks/d0093ec96d21ee7fcb27.js +1 -0
  41. package/assets/esri/core/workers/chunks/{f4747538a1e42cc08ccb.js → d7113c54736637315c9c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/d80e8edb62a7a2163031.js +1 -0
  43. package/assets/esri/core/workers/chunks/e3bf96af6e6f95566a09.js +1 -0
  44. package/assets/esri/core/workers/chunks/e901edcadc64f89f95d5.js +1 -0
  45. package/assets/esri/core/workers/chunks/ebca9217355dbb03af3c.js +1 -0
  46. package/assets/esri/core/workers/chunks/ef398394d17581bc7d60.js +1 -0
  47. package/assets/esri/core/workers/chunks/f717ca7c2581c31de7a6.js +1 -0
  48. package/assets/esri/themes/base/widgets/_ElevationProfile.scss +14 -13
  49. package/assets/esri/themes/base/widgets/_Tooltip.scss +14 -2
  50. package/assets/esri/themes/dark/main.css +1 -1
  51. package/assets/esri/themes/light/main.css +1 -1
  52. package/assets/esri/themes/light/view.css +1 -1
  53. package/assets/esri/views/interactive/tooltip/t9n/Tooltip.json +1 -1
  54. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -1
  55. package/chunks/CheckerBoard.glsl.js +3 -3
  56. package/chunks/ColorMaterial.glsl.js +6 -6
  57. package/chunks/ComponentShader.glsl.js +10 -10
  58. package/chunks/DefaultMaterial.glsl.js +3 -3
  59. package/chunks/EdgeShader.glsl.js +1 -1
  60. package/chunks/ImageMaterial.glsl.js +6 -6
  61. package/chunks/LineMarker.glsl.js +32 -32
  62. package/chunks/Path.glsl.js +13 -13
  63. package/chunks/Pattern.glsl.js +3 -3
  64. package/chunks/RealisticTree.glsl.js +3 -3
  65. package/chunks/RibbonLine.glsl.js +36 -34
  66. package/chunks/ShadedColorMaterial.glsl.js +9 -9
  67. package/chunks/Viewshed.glsl.js +2 -1
  68. package/chunks/WaterSurface.glsl.js +1 -1
  69. package/core/uuid.js +1 -1
  70. package/interfaces.d.ts +942 -33
  71. package/layers/ImageryLayer.js +1 -1
  72. package/layers/ImageryTileLayer.js +1 -1
  73. package/layers/KnowledgeGraphLayer.js +1 -1
  74. package/layers/LinkChartLayer.js +1 -1
  75. package/layers/MediaLayer.js +1 -1
  76. package/layers/WCSLayer.js +1 -1
  77. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  78. package/layers/knowledgeGraph/cypherUtils.d.ts +4 -0
  79. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  80. package/layers/knowledgeGraph/supportUtils.d.ts +4 -0
  81. package/layers/knowledgeGraph/supportUtils.js +1 -1
  82. package/layers/mixins/ArcGISImageService.js +1 -1
  83. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  84. package/layers/support/featureLayerUtils.js +1 -1
  85. package/layers/support/rasterFieldUtils.js +1 -1
  86. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  87. package/linkChart/ChronologicalLayoutSettings.d.ts +4 -0
  88. package/linkChart/LayoutSettings.d.ts +4 -0
  89. package/linkChart/LinkChartProperties.d.ts +4 -0
  90. package/linkChart/LinkChartProperties.js +1 -1
  91. package/linkChart/NonspatialDataDisplay.d.ts +4 -0
  92. package/linkChart/OrganicLayoutSettings.d.ts +4 -0
  93. package/package.json +1 -1
  94. package/rest/knowledgeGraph/GraphQueryResultHeader.d.ts +4 -0
  95. package/rest/knowledgeGraph/SourceTypeValueBehavior.d.ts +4 -0
  96. package/smartMapping/raster/renderers/classBreaks.js +1 -1
  97. package/smartMapping/raster/support/utils.d.ts +2 -2
  98. package/smartMapping/renderers/color.js +1 -1
  99. package/smartMapping/renderers/dotDensity.js +1 -1
  100. package/smartMapping/renderers/pieChart.js +1 -1
  101. package/smartMapping/renderers/predominance.js +1 -1
  102. package/smartMapping/renderers/relationship.js +1 -1
  103. package/smartMapping/renderers/size.js +1 -1
  104. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  105. package/smartMapping/renderers/support/rendererUtils.js +1 -1
  106. package/smartMapping/renderers/type.js +1 -1
  107. package/smartMapping/renderers/univariateColorSize.js +1 -1
  108. package/support/revision.js +1 -1
  109. package/symbols/cim/animationUtils.js +1 -1
  110. package/symbols/cim/cimAnalyzer.js +1 -1
  111. package/views/2d/layers/MediaLayerView2D.js +1 -1
  112. package/views/2d/layers/TileLayerView2D.js +1 -1
  113. package/views/2d/layers/features/FeatureContainer.js +1 -1
  114. package/views/2d/layers/features/RenderState.js +1 -1
  115. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  116. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  117. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  118. package/views/3d/layers/I3SMeshView3D.js +1 -1
  119. package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
  120. package/views/3d/layers/i3s/featureEditing.js +1 -1
  121. package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
  122. package/views/3d/state/ViewStateManager.js +1 -1
  123. package/views/3d/support/cameraUtils.js +1 -1
  124. package/views/3d/support/viewpointUtils.js +1 -1
  125. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  126. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  127. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  128. package/views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardMode.js +5 -0
  129. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +1 -1
  130. package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +4 -4
  131. package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +5 -5
  132. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  133. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  134. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  135. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  136. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  137. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  138. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  139. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  140. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +2 -5
  141. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  142. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  143. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  144. package/views/interactive/tooltip/fields/TooltipField.js +1 -1
  145. package/views/layers/ImageryTileLayerView.js +1 -1
  146. package/views/webgl/TextureDescriptor.js +1 -1
  147. package/widgets/ElevationProfile/components/SettingsButton.js +1 -1
  148. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  149. package/widgets/ElevationProfile/support/constants.js +1 -1
  150. package/widgets/ElevationProfile.js +1 -1
  151. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  152. package/widgets/FeatureTable.js +1 -1
  153. package/widgets/Print/PrintViewModel.js +1 -1
  154. package/widgets/Print.js +1 -1
  155. package/widgets/Search.js +1 -1
  156. package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
  157. package/widgets/support/GridControls.js +1 -1
  158. package/widgets/support/SnappingControls.js +1 -1
  159. package/assets/esri/core/workers/chunks/01caa27a799d6e778569.js +0 -1
  160. package/assets/esri/core/workers/chunks/0a85f7d5ee317e3ebc96.js +0 -1
  161. package/assets/esri/core/workers/chunks/0e292550c6e214dd160b.js +0 -1
  162. package/assets/esri/core/workers/chunks/102d34831eb02d9d7f9b.js +0 -1
  163. package/assets/esri/core/workers/chunks/115d2364f15685ed82bd.js +0 -1
  164. package/assets/esri/core/workers/chunks/197522478b2fd57b422c.js +0 -1
  165. package/assets/esri/core/workers/chunks/1c958d0379b5bbc365b0.js +0 -1
  166. package/assets/esri/core/workers/chunks/262b2889e003db5e6043.js +0 -1
  167. package/assets/esri/core/workers/chunks/2c0ba70971956f4e5747.js +0 -1
  168. package/assets/esri/core/workers/chunks/2e5959f6f9b1b4189488.js +0 -1
  169. package/assets/esri/core/workers/chunks/2f0497c4a6330224615b.js +0 -1
  170. package/assets/esri/core/workers/chunks/307088484fa25e9e3b10.js +0 -1
  171. package/assets/esri/core/workers/chunks/356d126d55d8f3bc35e1.js +0 -1
  172. package/assets/esri/core/workers/chunks/3a875f82159c77355b28.js +0 -1
  173. package/assets/esri/core/workers/chunks/41731dd40de3e01eb587.js +0 -1
  174. package/assets/esri/core/workers/chunks/4f4698f16ba83901c878.js +0 -1
  175. package/assets/esri/core/workers/chunks/58aca25f67096846bf87.js +0 -1
  176. package/assets/esri/core/workers/chunks/6586b466def89894e0d2.js +0 -1
  177. package/assets/esri/core/workers/chunks/69505d1ac8a1fc23b791.js +0 -1
  178. package/assets/esri/core/workers/chunks/73c38971d3501285d48b.js +0 -1
  179. package/assets/esri/core/workers/chunks/80376cecdcf248b404c8.js +0 -1
  180. package/assets/esri/core/workers/chunks/8de59c0066341bab51c5.js +0 -1
  181. package/assets/esri/core/workers/chunks/8eb389007e028f1e48cc.js +0 -1
  182. package/assets/esri/core/workers/chunks/9cfaf1cbbb1d6453e939.js +0 -1
  183. package/assets/esri/core/workers/chunks/aed302b53cc6c623108a.js +0 -1
  184. package/assets/esri/core/workers/chunks/b6044b20fb38524a268f.js +0 -1
  185. package/assets/esri/core/workers/chunks/b741d9290e15606c8ef6.js +0 -1
  186. package/assets/esri/core/workers/chunks/ba2947221d3afe705a11.js +0 -1
  187. package/assets/esri/core/workers/chunks/bcf1ae5fc1edf1dbd253.js +0 -1
  188. package/assets/esri/core/workers/chunks/d0c90b0f9638f7091c40.js +0 -1
  189. package/assets/esri/core/workers/chunks/f1313389eeb7a2350db3.js +0 -1
  190. package/views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardByOpacity.glsl.js +0 -7
package/WebLinkChart.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./interfaces";
2
2
 
3
- import WebLinkChart = __esri.WebLinkChart;
4
- export default WebLinkChart;
3
+ import esriWebLinkChart = __esri.esriWebLinkChart;
4
+ export default esriWebLinkChart;
package/WebLinkChart.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{_ as r}from"./chunks/tslib.es6.js";import t from"./WebDocument2D.js";import e from"./core/Error.js";import{watch as o}from"./core/reactiveUtils.js";import{property as i}from"./core/accessorSupport/decorators/property.js";import"./core/has.js";import"./core/Logger.js";import"./core/RandomLCG.js";import{subclass as s}from"./core/accessorSupport/decorators/subclass.js";import{OriginId as a}from"./core/accessorSupport/PropertyOrigin.js";import{layoutMap as n}from"./linkChart/enums.js";import p from"./linkChart/LinkChartProperties.js";import c from"./webmap/InitialViewProperties.js";import{currentVersion as m}from"./webmap/utils.js";import{Version as l}from"./webmap/Version.js";var h;const u={currentVersion:m,createInitialViewProperties:()=>new c,parseVersion:l.parse,itemType:"Web Link Chart",name:"linkchart",origin:"link-chart"};let y=h=class extends t{constructor(r){super(r),this.mapType="webLinkChart",this.linkChartProperties=new p}initialize(){this.addHandles(o((()=>this.linkChartProperties.layoutType),(async r=>{if(this.linkChartProperties.originIdOf("layoutType")!==a.LINK_CHART&&n.has(r)){const t=n.get(r);await(this.activeLinkChartLayer?.applyNewLinkChartLayout(t))}})))}get activeLinkChartLayer(){return this.layers.find((({type:r})=>"link-chart"===r))}get context(){return u}static fromJSON(r){if(r)return new h({resourceInfo:r});throw new e("linkchart:empty-resource","Expected a JSON resource but got nothing")}};r([i({readOnly:!0})],y.prototype,"activeLinkChartLayer",null),r([i({json:{write:!0}})],y.prototype,"mapType",void 0),r([i({type:p,nonNullable:!0,json:{write:!0}})],y.prototype,"linkChartProperties",void 0),y=h=r([s("esri.WebLinkChart")],y);const f=y;export{f as default};
5
+ import{_ as t}from"./chunks/tslib.es6.js";import r from"./WebDocument2D.js";import e from"./core/Error.js";import{property as a}from"./core/accessorSupport/decorators/property.js";import"./core/has.js";import"./core/Logger.js";import"./core/RandomLCG.js";import{subclass as i}from"./core/accessorSupport/decorators/subclass.js";import{libraryLayoutToWebSpecLayoutMap as n,convertLayoutSettingsAPIFormatToInMemoryFormat as o,convertLayoutTypeToJSONFormat as s}from"./layers/knowledgeGraph/supportUtils.js";import h from"./linkChart/ChronologicalLayoutSettings.js";import c from"./linkChart/LayoutSettings.js";import l from"./linkChart/LinkChartProperties.js";import p from"./linkChart/NonspatialDataDisplay.js";import y from"./webmap/InitialViewProperties.js";import{currentVersion as u}from"./webmap/utils.js";import{Version as L}from"./webmap/Version.js";var g;const k={currentVersion:u,createInitialViewProperties:()=>new y,parseVersion:L.parse,itemType:"Web Link Chart",name:"linkchart",origin:"link-chart"};let C=g=class extends r{constructor(t){super(t),this.mapType="webLinkChart",this.linkChartProperties=new l}get activeLinkChartLayer(){return this.layers.find((({type:t})=>"link-chart"===t))}get context(){return k}async applyLayout(t="RADIAL_TREE",r){return this.linkChartProperties.layoutType=n[t],r?.chronologicalLayoutSettings&&r?.organicLayoutSettings||!this.linkChartProperties.layoutSettings?this.linkChartProperties.layoutSettings=new c({organicLayoutSettings:o({organicLayoutSettings:r?.organicLayoutSettings}).organicLayoutSettings,chronologicalLayoutSettings:new h(r?.chronologicalLayoutSettings)}):this.linkChartProperties.layoutSettings=new c({organicLayoutSettings:r?.organicLayoutSettings?o({organicLayoutSettings:r?.organicLayoutSettings}).organicLayoutSettings:this.linkChartProperties.layoutSettings?.organicLayoutSettings,chronologicalLayoutSettings:r?.chronologicalLayoutSettings?new h(r?.chronologicalLayoutSettings):this.linkChartProperties.layoutSettings?.chronologicalLayoutSettings}),this.activeLinkChartLayer?.applyNewLinkChartLayout(t,r)}changeNonspatialDataDisplay(t){this.activeLinkChartLayer&&(this.linkChartProperties.nonspatialDataDisplay||(this.linkChartProperties.nonspatialDataDisplay=new p),this.linkChartProperties.nonspatialDataDisplay.mode=t)}async addRecords(t){return this.activeLinkChartLayer?.addRecords(t)}async removeRecords(t){this.activeLinkChartLayer?.removeRecords(t)}async expand(t,r){const e=await(this.activeLinkChartLayer?.expand(t,r));return e?.records??[]}async refreshLinkChartData(t){return this.activeLinkChartLayer?.refreshLinkChartCache(t)}async connectBetweenEntities(t){const r=await(this.activeLinkChartLayer?.connectBetweenEntities(t));return r?.records??[]}async connectFromEntities(t){const r=await(this.activeLinkChartLayer?.connectFromEntities(t));return r?.records??[]}getMemberIdsByType(t){return this.activeLinkChartLayer?Array.from(this.activeLinkChartLayer.dataManager.sublayerCaches.get(t)?.keys()??[]):[]}get diagramNodesExtent(){return this.activeLinkChartLayer?.linkChartExtent}get entityCount(){return this.activeLinkChartLayer?.entityLinkChartDiagramLookup.size??0}get relationshipCount(){return this.activeLinkChartLayer?.relationshipLinkChartDiagramLookup.size??0}get knowledgeGraph(){return this.activeLinkChartLayer?.knowledgeGraph}add(t){if(this.activeLinkChartLayer&&"type"in t&&"link-chart"===t.type)throw new e("linkchart:one-link-chart-layer","Web Link Charts can only have one Link Chart Layer, another cannot be added");if(super.add(t),"type"in t&&"link-chart"===t.type){const r=t.defaultLinkChartConfig?.layoutMode;r&&(this.linkChartProperties.layoutType=s(r));const e=t.defaultLinkChartConfig?.layoutOptions;e&&(this.linkChartProperties.layoutSettings=o(e))}}static fromJSON(t){if(t)return new g({resourceInfo:t});throw new e("linkchart:empty-resource","Expected a JSON resource but got nothing")}};t([a({readOnly:!0})],C.prototype,"activeLinkChartLayer",null),t([a({json:{write:!0}})],C.prototype,"mapType",void 0),t([a({type:l,nonNullable:!0,json:{write:!0}})],C.prototype,"linkChartProperties",void 0),t([a({readOnly:!0})],C.prototype,"diagramNodesExtent",null),t([a({readOnly:!0})],C.prototype,"entityCount",null),t([a({readOnly:!0})],C.prototype,"relationshipCount",null),t([a({readOnly:!0})],C.prototype,"knowledgeGraph",null),C=g=t([i("esri.WebLinkChart")],C);const m=C;export{m as default};
@@ -0,0 +1,4 @@
1
+ import "../../interfaces";
2
+
3
+ import generalSharedKgUtils = __esri.generalSharedKgUtils;
4
+ export = generalSharedKgUtils;
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
+ */
5
+ import n from"../../core/Error.js";function e(e){if(!e.spatialReference.isWGS84)throw new n("knowledge-graph:layer-support-utils","The extentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map((n=>[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]))}export{e as extentToInBoundsRings};
@@ -0,0 +1,4 @@
1
+ import "../../interfaces";
2
+
3
+ import layerInternalAccessUtils = __esri.layerInternalAccessUtils;
4
+ export = layerInternalAccessUtils;
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
+ */
5
+ function n(n){return n.dataManager.inclusionModeDefinition}function i(n){n.dataManager.inclusionModeDefinition=null}export{n as getInclusionDefinitionFromLayer,i as removeInclusionDefinitionFromLayer};
@@ -0,0 +1,4 @@
1
+ import "../../interfaces";
2
+
3
+ import resourceSerializationUtils = __esri.resourceSerializationUtils;
4
+ export = resourceSerializationUtils;
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
+ */
5
+ import e from"../../request.js";import t from"../../core/Error.js";import{getOrCreateMapValue as r}from"../../core/MapUtils.js";import{convertFromGeometry as i}from"../../layers/graphics/featureConversionUtils.js";import n from"../../layers/graphics/OptimizedGeometry.js";import{ProtoOutboundRelationshipFeatureCollectionAttributionIndexes as s,ProtoInboundFeatureCollectionAttributionNames as a,ProtoOutboundEntityFeatureCollectionAttributionIndexes as o}from"../../rest/knowledgeGraph/ProtoFeatureCollection.js";import{getWasmInterface as l}from"../../rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js";import{EsriFieldTypes as c}from"../../rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js";import{WasmQuantizeOriginPositionTypeCode as d,SqlTypeCode as u,IdArrayType as y}from"../../rest/knowledgeGraph/wasmInterface/WasmSerializedLayerData.js";import{wasmToProtoFeatureCollection as f}from"../../rest/knowledgeGraph/wasmInterface/wasmToFeatureFactories.js";async function p(e){const t=[],r={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&t.push(E(e.entitiesUrl).then((e=>{I(e,r)}))),e.relationshipsUrl&&t.push(E(e.relationshipsUrl).then((e=>{I(e,r)}))),await Promise.all(t),r}async function m(e,t){t??=!1;const r={generateAllSublayers:t,namedTypeDefinitions:new Map};return await k(e).then((e=>{M(e,r)})),r}async function _(e,t,r){const i=await l(),n=new i.FeatureCollection,s=new i.FeatureCollection;try{T(n,i,e,"entities",t,r),T(s,i,e,"relationships",t,r);const a=new i.FeatureCollectionEncoder,o=new i.FeatureCollectionEncoder,l=C(n,a),c=structuredClone(l),d=C(s,o),u={entitiesFC:c,relationshipsFC:structuredClone(d)};return a.delete(),o.delete(),u}finally{n.delete(),s.delete()}}async function w(e,t,r){const i=await l(),n=new i.FeatureCollection;try{T(n,i,e,"entities",t,r);const s=new i.FeatureCollectionEncoder,a=C(n,s),o=structuredClone(a);return s.delete(),o}finally{n.delete()}}async function g(e,t,r){const i=await l(),n=new i.FeatureCollection;try{T(n,i,e,"relationships",t,r);const s=new i.FeatureCollectionEncoder,a=C(n,s),o=structuredClone(a);return s.delete(),o}finally{n.delete()}}async function h(e){const r=await l(),i=new r.MapOfObjectIdentifierSets;b(i,r,e);const n=new r.MapOfObjectIdentifierSetsEncoder;try{n.set_map_of_identifier_sets(i),n.encode();const e=n.get_encoding_result();if(0!==e.error.error_code)throw new t("knowledge-graph:layer-support-utils",e.error.error_message);const r=structuredClone(e.get_byte_buffer());return n.delete(),r}finally{i.delete()}}function T(e,t,r,n,a,l){e.version="";const y=new t.QueryResult,f=new t.FeatureResult,p="entities"===n?o:s;f.unique_id_field={name:p[p.ELEMENTUID],isSystemMaintained:!1},f.globalid_field_name=p[p.ELEMENTUID],f.geohash_field_name="",f.geometry_properties={shapeAreaFieldName:"",shapeLengthFieldName:"",units:""},f.spatial_reference={wkid:4326,latestWkid:4326,vcsWkid:0,latestVcsWkid:0,wkt:""},f.exceeded_transfer_limit=!1,f.has_z=!1,f.has_m=!1,f.transform={quantizeOriginPosition:{value:d.upperLeft},scale:{xScale:1e-9,yScale:1e-9,mScale:1e-4,zScale:1e-4},translate:{xTranslate:-400,yTranslate:-400,mTranslate:-1e5,zTranslate:-1e5}};for(const i of Object.keys(p).filter((e=>isNaN(Number(e))))){const e=new t.Field;if(e.name=i,e.alias=i,e.sql_type={value:u.sqlTypeBigInt},"entities"===n)switch(i){case p[p.ELEMENTUID]:case p[p.TYPENAME]:e.field_type={value:c.esriFieldTypeString}}else switch(i){case p[p.ELEMENTUID]:case p[p.TYPENAME]:case s[s.FROMUID]:case s[s.TOUID]:e.field_type={value:c.esriFieldTypeString}}e.domain="",f.add_field(e),e.delete()}const m=new Map;for(const i of a.dataModel.entityTypes)m.set(i.name,"entities");for(const i of a.dataModel.relationshipTypes)m.set(i.name,"relationships");for(const[o,c]of r.namedTypeDefinitions)if(n===m.get(o))for(const e of c.members.values()){const r=new t.Feature;for(const i of Object.keys(p).filter((e=>isNaN(Number(e)))))if("entities"===n)switch(i){case p[p.ELEMENTUID]:r.add_attribute(e.id,t.esriFieldType.esriFieldTypeString);break;case p[p.TYPENAME]:r.add_attribute(o,t.esriFieldType.esriFieldTypeString)}else switch(i){case p[p.ELEMENTUID]:r.add_attribute(e.id,t.esriFieldType.esriFieldTypeString);break;case s[s.FROMUID]:r.add_attribute(l.has(e.id)?l.get(e.id)[0]:"",t.esriFieldType.esriFieldTypeString);break;case s[s.TOUID]:r.add_attribute(l.has(e.id)?l.get(e.id)[1]:"",t.esriFieldType.esriFieldTypeString);break;case p[p.TYPENAME]:r.add_attribute(o,t.esriFieldType.esriFieldTypeString)}let a;if(e.linkChartLocation&&"x"in e.linkChartLocation?a=i(e.linkChartLocation):e.linkChartLocation&&(a=e.linkChartLocation),e.linkChartLocation&&a){const e=new t.FeatureCollectionGeometry;let i=!1;switch(n){case"entities":e.geometry_type=t.esriGeometryType.esriGeometryPoint,i=!0;break;case"relationships":e.geometry_type=t.esriGeometryType.esriGeometryPolyline}e.coords=new Float64Array(a.coords),e.lengths=new Uint32Array(i?[1]:a.lengths),r.set_compressed_geometry(e),e.delete()}f.add_feature(r),r.delete()}switch(n){case"entities":f.geometry_type=t.esriGeometryType.esriGeometryPoint;break;case"relationships":f.geometry_type=t.esriGeometryType.esriGeometryPolyline}return y.set_feature_result(f),e.set_query_result(y),f.delete(),y.delete(),e}function b(e,t,r){for(const[i,n]of r.namedTypeDefinitions){if(!n.members||n.useAllData)continue;const r=n.members.keys();let s=!1,a=!0;const o=new t.ObjectIdArray,l=new t.StringArray,c=new t.GlobalIdArray,d=new t.IdentifierArray,u=new t.ObjectIdentifierSet;for(const e of r)a&&(s=!isNaN(Number(e)),a=!1),s?o.add_objectid(Number(e)):(l.add_string(e),c.add_globalid(e)),d.add_identifier(e);u.set_oid_array(o),u.set_string_array(l),u.set_globalid_array(c),u.set_identifier_array(d),o.delete(),l.delete(),c.delete(),d.delete(),e.put_identifier_set(i,u),u.delete()}return e}async function E(t){const r=await e(t,{responseType:"array-buffer"});return F(await r.data)}async function F(e){const r=new((await l()).FeatureCollectionDecoder),i=r.decode(new Uint8Array(e));if(0!==i.error_code)throw new t("knowledge-graph:layer-support-utils",i.error_message);const n=r.get_feature_collection(),s=f(n);return r.delete(),s}async function k(t){const r=await e(t,{responseType:"array-buffer"}),i=await r.data;return A(new Uint8Array(i))}async function A(e){const r=new((await l()).MapOfObjectIdentifierSetsDecoder),i=r.decode(new Uint8Array(e)),n=new Map;if(0!==i.error_code)throw new t("knowledge-graph:layer-support-utils",i.error_message);const s=r.get_map_of_identifier_sets(),a=s.keys,o=a.size();for(let l=0;l<o;l++){const e=a.get(l),r=s.query_identifier_set(e),i=[];if(r.id_array_type.value===y.GLOBALID_ARRAY){const e=r.get_globalid_array(),t=e.count();for(let r=0;r<t;r++)i.push(e.get_globalid_at(r))}else if(r.id_array_type.value===y.IDENTIFIER_ARRAY){const e=r.get_identifier_array(),t=e.count();for(let r=0;r<t;r++)i.push(e.get_identifier_at(r).toString())}else if(r.id_array_type.value===y.STRING_ARRAY){const e=r.get_string_array(),t=e.count();for(let r=0;r<t;r++)i.push(e.get_string_at(r))}else{if(r.id_array_type.value!==y.OID_ARRAY)throw new t("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=r.get_oid_array(),t=e.count();for(let r=0;r<t;r++)i.push(e.get_objectid_at(r).toString())}}n.set(e,i)}return r.delete(),n}function I(e,t){if(!e?.queryResult?.featureResult)return t;const i=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(const s of e.queryResult.featureResult.features){const e=s.attributes[i[a.TYPENAME]],o=r(t.namedTypeDefinitions,e,(()=>({useAllData:!1,members:new Map}))),l=s.attributes[i[a.ELEMENTUID]];if(s.compressedGeometry?.coords?.length>0){let e=s.compressedGeometry.lengths;"esriGeometryPoint"===s.compressedGeometry.geometryType&&(e=[]),o.members.set(l,{id:l,linkChartLocation:new n(e,s.compressedGeometry.coords)})}else o.members.set(l,{id:l})}return t}function M(e,t){for(const[i,n]of e){const e=r(t.namedTypeDefinitions,i,(()=>({useAllData:!1,members:new Map})));for(const t of n)e.members.has(t)||e.members.set(t,{id:t})}return t}const C=(e,r)=>{r.set_feature_collection(e),r.encode();const i=r.get_encoding_result();if(0!==i.error.error_code)throw new t("knowledge-graph:layer-support-utils",i.error.error_message);return i.get_byte_buffer()},D={fetchAndConvertSerializedLinkChart:e=>p(e)};export{I as addFeatureCollectionToInclusionDefinition,M as addIdMapToInclusionDefinition,F as deserializeFeatureCollection,A as deserializeIdCollectionMap,m as fetchAndConvertSerializedKnowledgeIdMap,p as fetchAndConvertSerializedLinkChart,E as fetchAndDeserializeFeatureCollection,k as fetchAndDeserializeIdCollectionMap,D as serializationUtilsModuleWrapper,_ as serializeInclusionDefinitionToAllPbf,w as serializeInclusionDefinitionToEntitiesPbf,h as serializeInclusionDefinitionToIdCollectionsMapPbf,g as serializeInclusionDefinitionToRelationshipsPbf,T as setFeatureCollectionProperties};