@arcgis/core 5.0.0-next.84 → 5.0.0-next.85

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 (100) hide show
  1. package/applications/Components/applySetUtils.d.ts +237 -0
  2. package/applications/Components/applySetUtils.js +5 -0
  3. package/applications/Components/editUtils.d.ts +92 -0
  4. package/applications/Components/editUtils.js +5 -0
  5. package/applications/Components/symbolUtils.d.ts +37 -0
  6. package/applications/Components/symbolUtils.js +5 -0
  7. package/applications/Components/templateUtils.d.ts +106 -0
  8. package/applications/Components/templateUtils.js +5 -0
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/001fd3d30e5bb0d180c6.js +1 -0
  11. package/assets/esri/core/workers/chunks/008a555ce169640e2a35.js.LICENSE.txt +1 -1
  12. package/assets/esri/core/workers/chunks/0402b7996940ba0f8cc8.js +2 -0
  13. package/assets/esri/core/workers/chunks/{534ed6574e4a1613ba05.js.LICENSE.txt → 0402b7996940ba0f8cc8.js.LICENSE.txt} +1 -1
  14. package/assets/esri/core/workers/chunks/{5b0ca8d2154ef59da600.js → 055aead7135a2f8bca29.js} +1 -1
  15. package/assets/esri/core/workers/chunks/0889e3d1a034be031c9e.js +2 -0
  16. package/assets/esri/core/workers/chunks/{e3d3fc87789fd711f161.js.LICENSE.txt → 0889e3d1a034be031c9e.js.LICENSE.txt} +1 -1
  17. package/assets/esri/core/workers/chunks/21739c37160061f229ef.js +1 -0
  18. package/assets/esri/core/workers/chunks/{76d6843d56bff0d4c45e.js → 301fa6276f4098521106.js} +1 -1
  19. package/assets/esri/core/workers/chunks/4c07b2d1a14906371fc5.js +2 -0
  20. package/assets/esri/core/workers/chunks/{21ac84b5c7dedcfd747d.js.LICENSE.txt → 4c07b2d1a14906371fc5.js.LICENSE.txt} +1 -1
  21. package/assets/esri/core/workers/chunks/{e881629bf230a148963d.js → 52ae2073604deef63ea2.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{3909217130048b5feeae.js → 5543de9a0435c319f4f9.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5eee48b02e1683f022df.js +2 -0
  24. package/assets/esri/core/workers/chunks/{ef519984fa691aad8d87.js.LICENSE.txt → 5eee48b02e1683f022df.js.LICENSE.txt} +1 -1
  25. package/assets/esri/core/workers/chunks/{911912b0ef7ffed875be.js → 7a1ec6ac88d974cc5074.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{5e3dd05f1ecfdb21350e.js → 7f7c4ffbdf7b20dc7a54.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{dc57400b835724204909.js → 8b1fa59d436e2815b2f1.js} +2 -2
  28. package/assets/esri/core/workers/chunks/{dc57400b835724204909.js.LICENSE.txt → 8b1fa59d436e2815b2f1.js.LICENSE.txt} +1 -1
  29. package/assets/esri/core/workers/chunks/9264cce4699284eae97c.js +2 -0
  30. package/assets/esri/core/workers/chunks/{5aee84e827e6fcc9c4c4.js.LICENSE.txt → 9264cce4699284eae97c.js.LICENSE.txt} +1 -1
  31. package/assets/esri/core/workers/chunks/95e93884b39ca4b312d1.js +2 -0
  32. package/assets/esri/core/workers/chunks/{90a53bfe95ed687c28c1.js.LICENSE.txt → 95e93884b39ca4b312d1.js.LICENSE.txt} +1 -1
  33. package/assets/esri/core/workers/chunks/{2a1898c5b8d7757e39e3.js → a09099697955eb44bfac.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{6610d23d8539f06e64ca.js → adecd31fd64d6753682d.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{df40be5a050b8d20617a.js → b190a776de4859ac00f8.js} +1 -1
  36. package/assets/esri/core/workers/chunks/c18a2948ae3cb527d8bb.js +1 -0
  37. package/assets/esri/core/workers/chunks/{d8c8f54532714d4db2cd.js → c791e8ebf3ee0805c479.js} +1 -1
  38. package/assets/esri/core/workers/chunks/f5ed6953a9255f0bed6a.js.LICENSE.txt +1 -1
  39. package/assets/esri/themes/dark/main.css +1 -1
  40. package/assets/esri/themes/light/main.css +1 -1
  41. package/assets/esri/themes/light/view.css +1 -1
  42. package/chunks/HUDMaterial.glsl.js +1 -1
  43. package/config.js +1 -1
  44. package/copyright.txt +2 -2
  45. package/editing/sharedTemplates/templateLoader.js +5 -0
  46. package/editing/templateUtils.js +1 -1
  47. package/interfaces.d.ts +6 -0
  48. package/kernel.js +1 -1
  49. package/layers/mixins/ImageryTileMixin.js +1 -1
  50. package/layers/raster/datasets/FunctionRaster.js +1 -1
  51. package/layers/raster/functions/BaseRasterFunction.js +1 -1
  52. package/layers/raster/functions/StretchFunction.js +1 -1
  53. package/layers/support/RasterJobHandler.js +1 -1
  54. package/layers/support/RasterWorker.js +1 -1
  55. package/networks/CircuitManager.d.ts +1 -1
  56. package/networks/support/jsonTypes.d.ts +65 -0
  57. package/package.json +1 -1
  58. package/rest/featureService/types.d.ts +42 -5
  59. package/rest/networks/circuits/exportCircuits.js +1 -1
  60. package/rest/networks/circuits/support/ExportCircuitsParameters.d.ts +10 -2
  61. package/rest/networks/circuits/support/ExportCircuitsParameters.js +1 -1
  62. package/rest/support/Query.d.ts +12 -1
  63. package/support/revision.js +1 -1
  64. package/symbols/support/symbolUtils.js +1 -1
  65. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  66. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  67. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  68. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  69. package/views/3d/camera/intersectionUtils.js +1 -1
  70. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  71. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  72. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  73. package/views/interactive/snapping/SelfSnappingEngine.js +1 -1
  74. package/views/interactive/snapping/SnappingContext.js +1 -1
  75. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +18 -0
  76. package/widgets/BatchAttributeForm.d.ts +2 -0
  77. package/widgets/BatchAttributeForm.js +1 -1
  78. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  79. package/widgets/Editor/workflowUtils.js +1 -1
  80. package/widgets/Feature/support/featureUtils.js +1 -1
  81. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +43 -4
  82. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  83. package/widgets/FeatureTable/Grid/types.d.ts +7 -1
  84. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  85. package/widgets/FeatureTable.d.ts +43 -4
  86. package/widgets/FeatureTable.js +1 -1
  87. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  88. package/widgets/Search/SearchViewModel.d.ts +5 -0
  89. package/widgets/Search/SearchViewModel.js +1 -1
  90. package/widgets/Search/support/layerSearchUtils.js +1 -1
  91. package/widgets/Search.js +1 -1
  92. package/assets/esri/core/workers/chunks/21ac84b5c7dedcfd747d.js +0 -2
  93. package/assets/esri/core/workers/chunks/22503abc06354741d28a.js +0 -1
  94. package/assets/esri/core/workers/chunks/534ed6574e4a1613ba05.js +0 -2
  95. package/assets/esri/core/workers/chunks/5aee84e827e6fcc9c4c4.js +0 -2
  96. package/assets/esri/core/workers/chunks/7b2f848947b296c7c785.js +0 -1
  97. package/assets/esri/core/workers/chunks/90a53bfe95ed687c28c1.js +0 -2
  98. package/assets/esri/core/workers/chunks/c16115cfbca879dd6717.js +0 -1
  99. package/assets/esri/core/workers/chunks/e3d3fc87789fd711f161.js +0 -2
  100. package/assets/esri/core/workers/chunks/ef519984fa691aad8d87.js +0 -2
@@ -0,0 +1,237 @@
1
+ /**
2
+ * Shared ApplySet utils for Components.
3
+ *
4
+ * @experimental
5
+ * @internal
6
+ */
7
+ import type Graphic from "../../Graphic.js";
8
+ import type FeatureLayer from "../../layers/FeatureLayer.js";
9
+ import type SubtypeGroupLayer from "../../layers/SubtypeGroupLayer.js";
10
+ import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
11
+
12
+ /**
13
+ * @experimental
14
+ * @internal
15
+ */
16
+ export type ApplySetItem = ApplySetAddItem | ApplySetModifyItem | ApplySetDeleteItem;
17
+
18
+ /**
19
+ * @experimental
20
+ * @internal
21
+ */
22
+ export type ApplySetSupportedLayer = FeatureLayer | SubtypeGroupLayer;
23
+
24
+ /**
25
+ * The set of changes which are to be applied to different features and services.
26
+ *
27
+ * @experimental
28
+ * @internal
29
+ */
30
+ export interface ApplySet {
31
+ /**
32
+ * A feature state provider which will automatically show temporary edits
33
+ *
34
+ * @experimental
35
+ */
36
+ featureState: FeatureStateProvider | null;
37
+ /**
38
+ * The list of edits held in the ApplySet
39
+ *
40
+ * @experimental
41
+ */
42
+ get items(): ApplySetItem[];
43
+ /**
44
+ * Add an edit to the ApplySet
45
+ *
46
+ * @param item
47
+ * @experimental
48
+ */
49
+ push(item: ApplySetItem): void;
50
+ /**
51
+ * Remove all edits from the ApplySet.
52
+ *
53
+ * @experimental
54
+ */
55
+ revert(): void;
56
+ }
57
+
58
+ /**
59
+ * Creates an ApplySet to hold edits across multiple layers
60
+ *
61
+ * @experimental
62
+ * @internal
63
+ */
64
+ export function createApplySet(): ApplySet;
65
+
66
+ /**
67
+ * The properties required to create an ApplySetItem
68
+ *
69
+ * @experimental
70
+ * @internal
71
+ */
72
+ export interface ApplySetItemProperties {
73
+ /**
74
+ * The graphic that is affected
75
+ *
76
+ * @experimental
77
+ */
78
+ graphic: Graphic;
79
+ /**
80
+ * The layer on which this change is occurring
81
+ *
82
+ * @experimental
83
+ */
84
+ layer: ApplySetSupportedLayer;
85
+ /**
86
+ * The reason the change is being applied
87
+ *
88
+ * @experimental
89
+ */
90
+ reason?: string;
91
+ }
92
+
93
+ /**
94
+ * An ApplySet item that represents adding a feature to a layer
95
+ *
96
+ * @experimental
97
+ * @internal
98
+ */
99
+ export interface ApplySetAddItem extends Omit<ApplySetItemProperties, "reason"> {
100
+ /**
101
+ * The type of change
102
+ *
103
+ * @experimental
104
+ */
105
+ type: "add";
106
+ }
107
+
108
+ /**
109
+ * Create an ApplySet Add Item
110
+ *
111
+ * @param properties
112
+ * @experimental
113
+ * @internal
114
+ */
115
+ export function createApplySetAddItem(properties: ApplySetItemProperties): ApplySetAddItem;
116
+
117
+ /**
118
+ * The properties required to create an ApplySetItem modify item
119
+ *
120
+ * @experimental
121
+ * @internal
122
+ */
123
+ export interface ApplySetModifyItemProperties {
124
+ /**
125
+ * The graphic that is affected
126
+ *
127
+ * @experimental
128
+ */
129
+ graphic: Graphic;
130
+ /**
131
+ * The layer on which this change is occurring
132
+ *
133
+ * @experimental
134
+ */
135
+ layer: ApplySetSupportedLayer;
136
+ /**
137
+ * The original version of the graphic, before applying the change
138
+ *
139
+ * @experimental
140
+ */
141
+ originalGraphic: Graphic;
142
+ /**
143
+ * The reason the change is being applied
144
+ *
145
+ * @experimental
146
+ */
147
+ reason?: string;
148
+ }
149
+
150
+ /**
151
+ * An ApplySet item that represents modifying a feature in a layer
152
+ *
153
+ * @experimental
154
+ * @internal
155
+ */
156
+ export interface ApplySetModifyItem extends Omit<ApplySetItemProperties, "reason" | "originalGraphic"> {
157
+ /**
158
+ * The original version of the graphic, before applying the change
159
+ *
160
+ * @experimental
161
+ */
162
+ revertGraphic: Graphic;
163
+ /**
164
+ * The type of change
165
+ *
166
+ * @experimental
167
+ */
168
+ type: "modify";
169
+ }
170
+
171
+ /**
172
+ * Create an ApplySet Modify Item
173
+ *
174
+ * @param properties
175
+ * @experimental
176
+ * @internal
177
+ */
178
+ export function createApplySetModifyItem(properties: ApplySetModifyItemProperties): ApplySetModifyItem;
179
+
180
+ /**
181
+ * An ApplySet item that represents deleting a feature in a layer
182
+ *
183
+ * @experimental
184
+ * @internal
185
+ */
186
+ export interface ApplySetDeleteItem extends Omit<ApplySetItemProperties, "reason"> {
187
+ /**
188
+ * The type of change
189
+ *
190
+ * @experimental
191
+ */
192
+ type: "delete";
193
+ }
194
+
195
+ /**
196
+ * Create an ApplySet Delete Item
197
+ *
198
+ * @param properties
199
+ * @experimental
200
+ * @internal
201
+ */
202
+ export function createApplySetDeleteItem(properties: ApplySetItemProperties): ApplySetDeleteItem;
203
+
204
+ /**
205
+ * Writes all the changes listed in an ApplySet, to their respective services.
206
+ *
207
+ * @param applySet
208
+ * @param view
209
+ * @experimental
210
+ * @internal
211
+ */
212
+ export function writeApplySetToService(applySet: ApplySet, view: MapViewOrSceneView): Promise<void>;
213
+
214
+ /**
215
+ * Manages temporary feature edits which are displayed in LayerViews.
216
+ *
217
+ * @experimental
218
+ * @internal
219
+ */
220
+ export interface FeatureStateProvider {
221
+ /**
222
+ * Clears all temporary feature state from the map
223
+ *
224
+ * @experimental
225
+ */
226
+ clearAll: () => void;
227
+ }
228
+
229
+ /**
230
+ * Creates a feature state provider, that will automatically show temporary feature changes
231
+ * on a map.
232
+ *
233
+ * @param view
234
+ * @experimental
235
+ * @internal
236
+ */
237
+ export function createFeatureStateProvider(view: MapViewOrSceneView): FeatureStateProvider | null;
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
+ */
5
+ import e from"../../core/Error.js";import t from"../../core/Logger.js";import{getOrCreateMapValue as a}from"../../core/MapUtils.js";import{ApplySet as r}from"../../undoredo/support/ApplySet.js";import{ApplySetAddItem as i,ApplySetModifyItem as s,ApplySetDeleteItem as l}from"../../undoredo/support/ApplySetItem.js";import{getServices as d}from"../../undoredo/support/Services.js";function o(){return new r}function n(e){return new i(e)}function h(e){return new s(e)}function u(e){return new l(e)}async function c(e,t){const a=await y(e,t);for(const r of a)if(r.layer){const e=[],t=[],a=[];r.items.forEach(r=>{switch(r.type){case"add":e.push(r.graphic);break;case"delete":t.push(r.graphic);break;case"modify":a.push(r.graphic)}}),await r.layer.applyEdits({addFeatures:e,deleteFeatures:t,updateFeatures:a})}else{const e=[],t=new Map;for(const a of r.items){let r=null;t.has(a.layer.layerId)?r=t.get(a.layer.layerId):(r={id:a.layer.layerId,addFeatures:[],deleteFeatures:[],updateFeatures:[]},t.set(r.id,r),e.push(r)),"add"===a.type?r.addFeatures.push(a.graphic):"delete"===a.type?r.deleteFeatures.push(a.graphic):"modify"===a.type&&r.updateFeatures.push(a.graphic)}for(const a of e)0===a.addFeatures.length&&delete a.addFeatures,0===a.deleteFeatures.length&&delete a.deleteFeatures,0===a.updateFeatures.length&&delete a.updateFeatures;await r.featureService.applyEdits(e)}}async function y(t,r){const i=d(r),s=[],l=new Map;for(const d of t.items)if("feature"!==d.layer.type&&"subtype-group"!==d.layer.type||!d.layer.url){if(!l.has(d.layer.id)){const e=i.tablesAndLayersLookup.get(d.layer)??null;e&&await e.load();const t={service:null,items:[],canUseGlobalId:!1,layer:d.layer,featureService:null};l.set(d.layer.id,t),s.push(t)}l.get(d.layer.id).items.push(d)}else{const t=i.tablesAndLayersLookup.get(d.layer);if(!t)throw new e("getservices:metadata-not-found","Meta data for the layer not found");await t.load();const r=t.featureService.url,o=a(l,r,()=>{const e={items:[],layer:null,canUseGlobalId:!0,featureService:t.featureService};return s.push(e),e});d.layer.capabilities?.editing.supportsGlobalId||(o.canUseGlobalId=!1),d.layer.globalIdField||(o.canUseGlobalId=!1),o.items.push(d)}return s}const p=()=>t.getLogger("esri.applications.Components.applySetUtils.FeatureState2D");class f{constructor(e){this._view=e,this._featureState=new Map,this.sealed=!1,this._hiddenFeatures=[]}ensureHighlighted(e){const t=this._featureState.get(e.featureChangeId);t&&!t.highlighted&&(t.highlighted=t.layerView?.highlight([t.objectId]))}hideFeatures(e){const t=this._view.allLayerViews.find(t=>t.layer===e.layer);if(t)for(const a of e.objectIds)t.setVisibility(a,!1),this._hiddenFeatures.push({layer:e.layer,objectId:a,layerView:t})}applyLocalState(e){if(!e.layer.isTable&&!this.sealed)switch(e.type){case"modify":{const t={change:e,layerView:null},a=this._view.allLayerViews.find(t=>t.layer===e.layer),r=e.revertGraphic.attributes[e.layer.objectIdField];t.layerView=a,t.objectId=r,t.layerView&&t.layerView.addOverrides({added:[],removed:[],updated:[t.change.graphic.clone()]}),this._featureState.set(e.featureChangeId,t)}break;case"add":{const t={change:e,layerView:null},a=this._view.allLayerViews.find(t=>t.layer===e.layer),r=e.graphic.attributes[e.layer.objectIdField];t.layerView=a,t.objectId=r,t.layerView&&t.layerView.addOverrides({added:[t.change.graphic.clone()],removed:[],updated:[]}),this._featureState.set(e.featureChangeId,t)}break;case"delete":{const t=this._view.allLayerViews.find(t=>t.layer===e.layer),a=e.graphic.attributes[e.layer.objectIdField],r={objectId:a,layerView:t??null,change:e,graphic:null};r.layerView&&r.layerView.addOverrides({added:[],removed:[a],updated:[]}),this._featureState.set(e.featureChangeId,r)}}}removeLocalState(e){if(e.layer.isTable||this.sealed)return;const t=this._featureState.get(e.featureChangeId);if(t&&(this._featureState.delete(e.featureChangeId),t.layerView&&t.layerView.removeOverrides([t.objectId]),t.highlighted))try{t.highlighted.remove(),t.highlighted=void 0}catch(a){p().warn("Failed removing highlight",a)}}updateLocalState(e){if(e.layer.isTable||this.sealed)return;const t=this._featureState.get(e.featureChangeId);t&&(t.change=e,t.layerView&&t.layerView.addOverrides({added:[],removed:[],updated:[t.change.graphic]}))}objectIdChanged(e,t,a){if(e.layer.isTable||this.sealed)return;const r=this._featureState.get(t);r&&(this._featureState.delete(t),this._featureState.set(e.featureChangeId,r),r.layerView?.removeOverrides([a]),r.layerView?.addOverrides({added:[],removed:[],updated:[r.change.graphic.clone()]}))}clearAll(){try{for(const t of this._hiddenFeatures)t.layerView.setVisibility(t.objectId,!0);this._hiddenFeatures=[];const e=new Map;this._featureState.forEach(t=>{if(t.layerView){a(e,t.layerView,()=>[]).push(t.objectId)}t.highlighted&&(t.highlighted.remove(),delete t.highlighted)});for(const[t,a]of e)t.removeOverrides(a);this._featureState.clear()}catch(e){p().warn("Failed during feature state clear",e)}}}function g(e){return"3d"===e.type?null:new f(e)}export{o as createApplySet,n as createApplySetAddItem,u as createApplySetDeleteItem,h as createApplySetModifyItem,g as createFeatureStateProvider,c as writeApplySetToService};
@@ -0,0 +1,92 @@
1
+ import type Graphic from "../../Graphic.js";
2
+ import type MapView from "../../views/MapView.js";
3
+
4
+ /**
5
+ * @experimental
6
+ * @internal
7
+ */
8
+ export interface GraphicMover {
9
+ /**
10
+ * Destroys the graphics mover, and releases resources.
11
+ *
12
+ * @experimental
13
+ */
14
+ destroy: () => void;
15
+ }
16
+
17
+ /**
18
+ * @experimental
19
+ * @internal
20
+ */
21
+ export interface GraphicMoverCallbacks {
22
+ /**
23
+ * Callback for `"graphic-move-stop"` event.
24
+ *
25
+ * @experimental
26
+ */
27
+ onGraphicMoveStop: () => Promise<void>;
28
+ /**
29
+ * Callback for `"graphic-pointer-out"` event.
30
+ *
31
+ * @experimental
32
+ */
33
+ onGraphicPointerOut: () => void;
34
+ /**
35
+ * Callback for `"graphic-pointer-over"` event.
36
+ *
37
+ * @experimental
38
+ */
39
+ onGraphicPointerOver: () => void;
40
+ }
41
+
42
+ /**
43
+ * @experimental
44
+ * @internal
45
+ */
46
+ export interface GraphicMoverProperties {
47
+ /**
48
+ * Set of callbacks which can be used to respond to graphic move events
49
+ *
50
+ * @experimental
51
+ */
52
+ callbacks: GraphicMoverCallbacks;
53
+ /**
54
+ * Flag to decide if all graphics should be moved
55
+ *
56
+ * @experimental
57
+ */
58
+ enableMoveAllGraphics: boolean;
59
+ /**
60
+ * The graphics to move
61
+ *
62
+ * @experimental
63
+ */
64
+ graphics: Graphic[];
65
+ /**
66
+ * Flag whether highlights are enabled
67
+ *
68
+ * @experimental
69
+ */
70
+ highlightsEnabled: boolean;
71
+ /**
72
+ * Flag whether indicators are enabled
73
+ *
74
+ * @experimental
75
+ */
76
+ indicatorsEnabled: boolean;
77
+ /**
78
+ * The view on which to move graphics
79
+ *
80
+ * @experimental
81
+ */
82
+ view: MapView;
83
+ }
84
+
85
+ /**
86
+ * creates a graphics mover to move several graphics on a Graphics layer all at once.
87
+ *
88
+ * @param props
89
+ * @experimental
90
+ * @internal
91
+ */
92
+ export function createGraphicsMover(props: GraphicMoverProperties): GraphicMover;
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
+ */
5
+ import r from"../../views/draw/support/GraphicMover.js";function o(o){return new r(o)}export{o as createGraphicsMover};
@@ -0,0 +1,37 @@
1
+ import type Graphic from "../../Graphic.js";
2
+ import type { SymbolUnion } from "../../symbols/types.js";
3
+
4
+ /**
5
+ * @experimental
6
+ * @internal
7
+ */
8
+ export interface PreviewGraphicOptions {
9
+ /** Symbol to use, if no symbol is found. */
10
+ fallbackSymbol?: null | undefined | SymbolUnion;
11
+ /** Format of generated preview image */
12
+ format?: null | undefined | "element" | "string";
13
+ /** Height in pixels for the generated preview image */
14
+ heightInPixels?: number;
15
+ /** Ignore opacity of symbol */
16
+ ignoreOpacity?: boolean;
17
+ /** Ignore rotation variables */
18
+ ignoreRotationVariables?: boolean;
19
+ /** Ignore size variables */
20
+ ignoreSizeVariables?: boolean;
21
+ /** Use actual graphic geometry for swatch */
22
+ useGeometryForShape: boolean;
23
+ /** Use marker symbol size */
24
+ useMarkerSymbolSize?: boolean;
25
+ /** Width in pixels for the generated preview image */
26
+ widthInPixels?: number;
27
+ }
28
+
29
+ /**
30
+ * Calculates a preview image for a Graphic, either as a string or html element.
31
+ *
32
+ * @param graphic
33
+ * @param options
34
+ * @experimental
35
+ * @internal
36
+ */
37
+ export function previewGraphic(graphic: Graphic | null, options: PreviewGraphicOptions): Promise<HTMLElement | string | null>;
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
+ */
5
+ import{previewGraphic as r}from"../../symbols/support/symbolUtils.js";function o(o,s){return r(o,s)}export{o as previewGraphic};
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Shared template utils for Components.
3
+ *
4
+ * @experimental
5
+ * @internal
6
+ */
7
+ import type SharedTemplate from "../../editing/sharedTemplates/SharedTemplate.js";
8
+ import type SharedTemplateMetadata from "../../editing/sharedTemplates/SharedTemplateMetadata.js";
9
+ import type FeatureTemplate from "../../layers/support/FeatureTemplate.js";
10
+ import type { AnyEditingTemplate, AnyEditingTemplateInfo } from "../../editing/types.js";
11
+ import type { MapViewOrSceneView } from "../../views/MapViewOrSceneView.js";
12
+
13
+ /**
14
+ * @experimental
15
+ * @internal
16
+ */
17
+ export type AnyLoadedEditingTemplate = FeatureTemplate | LoadedSharedTemplate;
18
+
19
+ /**
20
+ * @experimental
21
+ * @internal
22
+ */
23
+ export type LoadedSharedTemplate = SharedTemplate;
24
+
25
+ /**
26
+ * Test if template is a Shared Group Template
27
+ *
28
+ * @param template
29
+ * @experimental
30
+ * @internal
31
+ */
32
+ export function isSharedGroupTemplate(template: AnyEditingTemplate | null | undefined): boolean;
33
+
34
+ /**
35
+ * Test if template is a Shared Preset Template
36
+ *
37
+ * @param template
38
+ * @experimental
39
+ * @internal
40
+ */
41
+ export function isSharedPresetTemplate(template: AnyEditingTemplate | null | undefined): boolean;
42
+
43
+ /**
44
+ * Test if template is a standard Feature Template
45
+ *
46
+ * @param template
47
+ * @experimental
48
+ * @internal
49
+ */
50
+ export function isStandardFeatureTemplate(template: AnyEditingTemplateInfo | null | undefined): template is FeatureTemplate;
51
+
52
+ /**
53
+ * Test if template is a shared feature template
54
+ *
55
+ * @param template
56
+ * @experimental
57
+ * @internal
58
+ */
59
+ export function isSharedFeatureTemplate(template: AnyEditingTemplate | null | undefined): template is FeatureTemplate;
60
+
61
+ /**
62
+ * Test if template info is Meta data for a Shared Template
63
+ *
64
+ * @param template
65
+ * @experimental
66
+ * @internal
67
+ */
68
+ export function isSharedTemplateMetadata(template: AnyEditingTemplateInfo | null | undefined): template is SharedTemplateMetadata;
69
+
70
+ /**
71
+ * Test if template is a Shared Template
72
+ *
73
+ * @param template
74
+ * @experimental
75
+ * @internal
76
+ */
77
+ export function isSharedTemplate(template: AnyEditingTemplateInfo | null | undefined): template is SharedTemplate;
78
+
79
+ /**
80
+ * Test if template is a Template or Template Info
81
+ *
82
+ * @param template
83
+ * @experimental
84
+ * @internal
85
+ */
86
+ export function isSharedTemplateOrMetadata(template: AnyEditingTemplateInfo | null | undefined): template is SharedTemplateMetadata;
87
+
88
+ /**
89
+ * Load a full template definition from its meta data
90
+ *
91
+ * @param view
92
+ * @param templateInfo
93
+ * @experimental
94
+ * @internal
95
+ */
96
+ export function getFullTemplate(view: MapViewOrSceneView, templateInfo: AnyEditingTemplateInfo): Promise<AnyLoadedEditingTemplate | null>;
97
+
98
+ /**
99
+ * Create the set of attributes specified in a template
100
+ *
101
+ * @param template
102
+ * @param overrides
103
+ * @experimental
104
+ * @internal
105
+ */
106
+ export function getCreationAttributes(template: AnyEditingTemplate | null | undefined, overrides?: Record<string, unknown>): Record<string, unknown>;
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
+ */
5
+ import{isSharedGroupTemplate as e,isSharedPresetTemplate as t,isStandardFeatureTemplate as a,isSharedFeatureTemplate as r,isSharedTemplateMetadata as n,isSharedTemplate as i,isSharedTemplateOrMetadata as s,getCreationAttributes as u}from"../../editing/templateUtils.js";import{getFullTemplate as o}from"../../editing/sharedTemplates/templateLoader.js";function m(t){return e(t)}function p(e){return t(e)}function d(e){return a(e)}function l(e){return r(e)}function f(e){return n(e)}function c(e){return i(e)}function T(e){return s(e)}async function h(e,t){return await o(e,t)}function S(e,t={}){return u(e,t)}export{S as getCreationAttributes,h as getFullTemplate,l as isSharedFeatureTemplate,m as isSharedGroupTemplate,p as isSharedPresetTemplate,c as isSharedTemplate,f as isSharedTemplateMetadata,T as isSharedTemplateOrMetadata,d as isStandardFeatureTemplate};