@arcgis/core 4.34.0-next.115 → 4.34.0-next.116

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 (53) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/7010d1eb303a13c72f81.js +1 -0
  3. package/assets/esri/core/workers/chunks/{9bbf1ee424d480b62d48.js → 7748356f4d848254fc66.js} +1 -1
  4. package/assets/esri/core/workers/chunks/9786e854ae9f40975cee.js +1 -0
  5. package/assets/esri/core/workers/chunks/be1b8e5ff2b1be26845a.js +1 -0
  6. package/assets/esri/core/workers/chunks/ecd6f163c1bb039d9736.js +1 -0
  7. package/config.js +1 -1
  8. package/graphic/graphicOriginUtils.js +1 -1
  9. package/interfaces.d.ts +66 -26
  10. package/kernel.js +1 -1
  11. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  12. package/layers/video/VideoController.js +1 -1
  13. package/package.json +1 -1
  14. package/portal/Portal.js +1 -1
  15. package/support/revision.js +1 -1
  16. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  17. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +1 -1
  18. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  19. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
  20. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  21. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  22. package/views/2d/layers/features/Processor.js +1 -1
  23. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  24. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  25. package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
  26. package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
  27. package/views/3d/analysis/ElevationProfile/ElevationProfileGeometryVisualization3D.js +1 -1
  28. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  29. package/views/3d/layers/FlowSubView3D.js +1 -1
  30. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  31. package/views/3d/layers/TiledLayerView3D.js +1 -1
  32. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  33. package/views/3d/support/DisplayQualityProfile.js +1 -1
  34. package/views/3d/support/QualitySettings.js +1 -1
  35. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  36. package/views/3d/support/flow/StreamlineResources3D.js +1 -1
  37. package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
  38. package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
  39. package/views/3d/support/flow/constants.js +1 -1
  40. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  41. package/views/analysis/ElevationProfile/types.d.ts +5 -0
  42. package/views/analysis/ElevationProfile/types.js +5 -0
  43. package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
  44. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  45. package/widgets/FeatureTable/FieldColumn.js +1 -1
  46. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  47. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  48. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  49. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  50. package/assets/esri/core/workers/chunks/57aaebcd2022659f9c19.js +0 -1
  51. package/assets/esri/core/workers/chunks/630efe10c871425b6a95.js +0 -1
  52. package/assets/esri/core/workers/chunks/78b35a19332e58c8c279.js +0 -1
  53. package/assets/esri/core/workers/chunks/e7c9d9e1205a8e246bfa.js +0 -1
package/interfaces.d.ts CHANGED
@@ -1163,11 +1163,6 @@ declare namespace __esri {
1163
1163
  viewOptions?: ElevationProfileViewOptionsProperties;
1164
1164
  }
1165
1165
 
1166
- export interface ElevationProfileEffectiveDisplayUnits {
1167
- distance: LengthUnit;
1168
- elevation: LengthUnit;
1169
- }
1170
-
1171
1166
  export interface LengthDimension extends Accessor, Clonable {
1172
1167
  }
1173
1168
 
@@ -34057,7 +34052,7 @@ declare namespace __esri {
34057
34052
  * Converts the given {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html mapPoint} to a
34058
34053
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#SourcePoint sourcePoint}.
34059
34054
  *
34060
- * @param point A point geometry. In the case where the point is not in the same spatial reference as the one in the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html mapPoint} of the first control point, it will be reprojected. {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html Projection engine} would need to be loaded to perform the reprojection, otherwise `null` is returned.
34055
+ * @param point A point geometry. In the case where the point is not in the same spatial reference as the one in the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html mapPoint} of the first control point, it will be reprojected. The {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-projectOperator.html projectOperator} would need to be loaded to perform the reprojection, otherwise `null` is returned.
34061
34056
  *
34062
34057
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#toSource Read more...}
34063
34058
  */
@@ -37832,13 +37827,13 @@ declare namespace __esri {
37832
37827
 
37833
37828
  export class ParquetEncodingLocation {
37834
37829
  /**
37835
- * The name of the field in the Parquet file that contains the latitude values.
37830
+ * The name of the field in the Parquet file that contains the y values.
37836
37831
  *
37837
37832
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ParquetEncodingLocation.html#latitudeFieldName Read more...}
37838
37833
  */
37839
37834
  latitudeFieldName: string;
37840
37835
  /**
37841
- * The name of the field in the Parquet file that contains the longitude values.
37836
+ * The name of the field in the Parquet file that contains the x values.
37842
37837
  *
37843
37838
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ParquetEncodingLocation.html#longitudeFieldName Read more...}
37844
37839
  */
@@ -37850,7 +37845,7 @@ declare namespace __esri {
37850
37845
  */
37851
37846
  readonly type: "location";
37852
37847
  /**
37853
- * The location format used to store geometries in Pparquet files.
37848
+ * The location format used to store geometries in Parquet files.
37854
37849
  *
37855
37850
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ParquetEncodingLocation.html Read more...}
37856
37851
  */
@@ -37875,13 +37870,13 @@ declare namespace __esri {
37875
37870
 
37876
37871
  interface ParquetEncodingLocationProperties {
37877
37872
  /**
37878
- * The name of the field in the Parquet file that contains the latitude values.
37873
+ * The name of the field in the Parquet file that contains the y values.
37879
37874
  *
37880
37875
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ParquetEncodingLocation.html#latitudeFieldName Read more...}
37881
37876
  */
37882
37877
  latitudeFieldName?: string;
37883
37878
  /**
37884
- * The name of the field in the Parquet file that contains the longitude values.
37879
+ * The name of the field in the Parquet file that contains the x values.
37885
37880
  *
37886
37881
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ParquetEncodingLocation.html#longitudeFieldName Read more...}
37887
37882
  */
@@ -96944,13 +96939,6 @@ declare namespace __esri {
96944
96939
  signal?: AbortSignal | nullish;
96945
96940
  }
96946
96941
 
96947
- export interface ElevationProfilePickResult {
96948
- feature: Graphic;
96949
- }
96950
-
96951
- export interface ElevationProfilePlacementResult {
96952
- }
96953
-
96954
96942
  export class BaseLayerView2D extends LayerView {
96955
96943
  /**
96956
96944
  * The array of {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile Tile} objects computed to cover the MapView's visible area.
@@ -98876,6 +98864,58 @@ declare namespace __esri {
98876
98864
  avgNegativeSlope: number | nullish;
98877
98865
  }
98878
98866
 
98867
+ /**
98868
+ * Types common to the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-analysis-ElevationProfileAnalysisView2D.html ElevationProfileAnalysisView2D} and
98869
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ElevationProfileAnalysisView3D.html ElevationProfileAnalysisView3D}.
98870
+ *
98871
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-ElevationProfile-types.html Read more...}
98872
+ */
98873
+ namespace ElevationProfileTypes {
98874
+ /**
98875
+ * Result of interactively placing an elevation profile line on the view.
98876
+ *
98877
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-ElevationProfile-types.html#ElevationProfilePlacementResult Read more...}
98878
+ */
98879
+ export interface ElevationProfilePlacementResult {
98880
+ }
98881
+
98882
+ /**
98883
+ * Result of picking a feature from the view to perform an elevation profile analysis.
98884
+ *
98885
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-ElevationProfile-types.html#ElevationProfilePickResult Read more...}
98886
+ */
98887
+ export interface ElevationProfilePickResult {
98888
+ feature: Graphic;
98889
+ }
98890
+
98891
+ export interface ElevationProfileEffectiveDisplayUnits {
98892
+ distance: LengthUnit;
98893
+ elevation: LengthUnit;
98894
+ }
98895
+ }
98896
+
98897
+ export interface ElevationProfileEffectiveDisplayUnits {
98898
+ distance: LengthUnit;
98899
+ elevation: LengthUnit;
98900
+ }
98901
+
98902
+ /**
98903
+ * Result of picking a feature from the view to perform an elevation profile analysis.
98904
+ *
98905
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-ElevationProfile-types.html#ElevationProfilePickResult Read more...}
98906
+ */
98907
+ export interface ElevationProfilePickResult {
98908
+ feature: Graphic;
98909
+ }
98910
+
98911
+ /**
98912
+ * Result of interactively placing an elevation profile line on the view.
98913
+ *
98914
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-ElevationProfile-types.html#ElevationProfilePlacementResult Read more...}
98915
+ */
98916
+ export interface ElevationProfilePlacementResult {
98917
+ }
98918
+
98879
98919
  /**
98880
98920
  * Represents the result of a LengthDimension.
98881
98921
  *
@@ -100473,7 +100513,7 @@ declare namespace __esri {
100473
100513
  */
100474
100514
  queryFeatureCount(query?: QueryProperties, options?: FeatureLayerViewMixinQueryFeatureCountOptions): Promise<number>;
100475
100515
  /**
100476
- * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the layerView
100516
+ * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the LayerView
100477
100517
  * and returns a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSet}.
100478
100518
  *
100479
100519
  * @param query Specifies the attributes and spatial filter of the query. When this parameter is not passed to `queryFeatures()` method, then a default query is created using {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CatalogFootprintLayerView.html#createQuery createQuery()} method and all features that pass the layer view {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CatalogFootprintLayerView.html#filter filter} are returned along with their attributes that are {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CatalogFootprintLayerView.html#availableFields available on the client}. To only return features visible in the view, set the `geometry` parameter in the query object to the view's extent.
@@ -100710,7 +100750,7 @@ declare namespace __esri {
100710
100750
  */
100711
100751
  queryFeatureCount(query?: QueryProperties, options?: FeatureLayerViewMixinQueryFeatureCountOptions): Promise<number>;
100712
100752
  /**
100713
- * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the layerView
100753
+ * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the LayerView
100714
100754
  * and returns a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSet}.
100715
100755
  *
100716
100756
  * @param query Specifies the attributes and spatial filter of the query. When this parameter is not passed to `queryFeatures()` method, then a default query is created using {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#createQuery createQuery()} method and all features that pass the layer view {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#filter filter} are returned along with their attributes that are {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#availableFields available on the client}. To only return features visible in the view, set the `geometry` parameter in the query object to the view's extent.
@@ -100998,7 +101038,7 @@ declare namespace __esri {
100998
101038
  */
100999
101039
  queryFeatureCount(query?: QueryProperties, options?: FeatureLayerViewMixinQueryFeatureCountOptions): Promise<number>;
101000
101040
  /**
101001
- * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the layerView
101041
+ * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the LayerView
101002
101042
  * and returns a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSet}.
101003
101043
  *
101004
101044
  * @param query Specifies the attributes and spatial filter of the query. When this parameter is not passed to `queryFeatures()` method, then a default query is created using {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#createQuery createQuery()} method and all features that pass the layer view {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#filter filter} are returned along with their attributes that are {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#availableFields available on the client}. To only return features visible in the view, set the `geometry` parameter in the query object to the view's extent.
@@ -101123,7 +101163,7 @@ declare namespace __esri {
101123
101163
  */
101124
101164
  queryFeatureCount(query?: QueryProperties, options?: FeatureLayerViewMixinQueryFeatureCountOptions): Promise<number>;
101125
101165
  /**
101126
- * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the layerView
101166
+ * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the LayerView
101127
101167
  * and returns a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSet}.
101128
101168
  *
101129
101169
  * @param query Specifies the attributes and spatial filter of the query. When this parameter is not passed to `queryFeatures()` method, then a default query is created using {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerViewMixin.html#createQuery createQuery()} method and all features that pass the layer view {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerViewMixin.html#filter filter} are returned along with their attributes that are {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerViewMixin.html#availableFields available on the client}. To only return features visible in the view, set the `geometry` parameter in the query object to the view's extent.
@@ -101321,7 +101361,7 @@ declare namespace __esri {
101321
101361
  */
101322
101362
  queryFeatureCount(query?: QueryProperties, options?: FeatureLayerViewMixinQueryFeatureCountOptions): Promise<number>;
101323
101363
  /**
101324
- * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the layerView
101364
+ * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the LayerView
101325
101365
  * and returns a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSet}.
101326
101366
  *
101327
101367
  * @param query Specifies the attributes and spatial filter of the query. When this parameter is not passed to `queryFeatures()` method, then a default query is created using {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#createQuery createQuery()} method and all features that pass the layer view {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#filter filter} are returned along with their attributes that are {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#availableFields available on the client}. To only return features visible in the view, set the `geometry` parameter in the query object to the view's extent.
@@ -102026,7 +102066,7 @@ declare namespace __esri {
102026
102066
  */
102027
102067
  queryFeatureCount(query?: QueryProperties, options?: FeatureLayerViewMixinQueryFeatureCountOptions): Promise<number>;
102028
102068
  /**
102029
- * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the layerView
102069
+ * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the LayerView
102030
102070
  * and returns a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSet}.
102031
102071
  *
102032
102072
  * @param query Specifies the attributes and spatial filter of the query. When this parameter is not passed to `queryFeatures()` method, then a default query is created using {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#createQuery createQuery()} method and all features that pass the layer view {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#filter filter} are returned along with their attributes that are {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#availableFields available on the client}. To only return features visible in the view, set the `geometry` parameter in the query object to the view's extent.
@@ -102230,7 +102270,7 @@ declare namespace __esri {
102230
102270
  */
102231
102271
  queryFeatureCount(query?: QueryProperties, options?: FeatureLayerViewMixinQueryFeatureCountOptions): Promise<number>;
102232
102272
  /**
102233
- * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the layerView
102273
+ * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the LayerView
102234
102274
  * and returns a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSet}.
102235
102275
  *
102236
102276
  * @param query Specifies the attributes and spatial filter of the query. When this parameter is not passed to `queryFeatures()` method, then a default query is created using {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ParquetLayerView.html#createQuery createQuery()} method and all features that pass the layer view {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ParquetLayerView.html#filter filter} are returned along with their attributes that are {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ParquetLayerView.html#availableFields available on the client}. To only return features visible in the view, set the `geometry` parameter in the query object to the view's extent.
@@ -102975,7 +103015,7 @@ declare namespace __esri {
102975
103015
  */
102976
103016
  queryFeatureCount(query?: QueryProperties, options?: FeatureLayerViewMixinQueryFeatureCountOptions): Promise<number>;
102977
103017
  /**
102978
- * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the layerView
103018
+ * Executes a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html Query} against features available for drawing in the LayerView
102979
103019
  * and returns a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html FeatureSet}.
102980
103020
  *
102981
103021
  * @param query Specifies the attributes and spatial filter of the query. When this parameter is not passed to `queryFeatures()` method, then a default query is created using {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#createQuery createQuery()} method and all features that pass the layer view {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#filter filter} are returned along with their attributes that are {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#availableFields available on the client}. To only return features visible in the view, set the `geometry` parameter in the query object to the view's extent.
package/kernel.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.34/esri/copyright.txt for details.
4
4
  */
5
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="4.34";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="4.34.0-next.115",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
5
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="4.34";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="4.34.0-next.116",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../request.js";import r from"../core/Error.js";import has from"../core/has.js";import o from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as a,sync as n}from"../core/reactiveUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import"../core/RandomLCG.js";import{reader as p}from"../core/accessorSupport/decorators/reader.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import{persistable as d}from"../core/accessorSupport/decorators/persistable.js";import c from"../geometry/Extent.js";import u from"../geometry/SpatialReference.js";import h from"./Layer.js";import{APIKeyMixin as f}from"./mixins/APIKeyMixin.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{CustomParametersMixin as g}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as _}from"./mixins/OperationalLayer.js";import{PortalLayer as S}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as T,url as v}from"./support/commonProperties.js";import L from"./support/SceneModifications.js";import{initFullExtent as b}from"./support/tiles3DUtils.js";import w from"../portal/Portal.js";import{logInvalidElevationInfoWarning as x,elevationModeRequiredMessage as P,featureExpressionUnsupportedMessage as I}from"../support/elevationInfoUtils.js";import{f as k}from"../chunks/persistableUrlUtils.js";import{isBasemap as R}from"../support/userTypeGuards/isBasemap.js";let D=class extends(y(_(S(j(i(g(f(h)))))))){readModifications(e,t,r){this._modificationsSource={url:k(e,r),context:r}}initialize(){this.addHandles(a(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,n))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new u({wkid:4326,vcsWkid:115700}),this.fullExtent=new c(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[o,i]of Object.entries(e)){if("uri"===o)try{const e=new URL("https://tmp"+i).searchParams.get("session");if(e)return e}catch(r){}"object"==typeof i&&null!==i&&t.push(i)}}return null}async requestRootAndSession(e){const i=(e,t)=>new r("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((r,a)=>{this.url||a(i("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null;new Promise((e,r)=>{if(this.replacesTerrain&&!this._key){const o=this.portalItem?.portal||this.parent?.portalItem?.portal||w.getDefault();o.signIn().then(()=>{o.g3dTilesEnabled?t(o.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>r(i("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):r(i("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+o.url))},()=>r(i("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{t(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",authMode:"anonymous",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(t){return void a(i("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=b(this._rootTilesetJSON),r(),this._rootRequestPromise=null):a(i("root-is-null","Root tile is null."))},e=>{s(e),a(i("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,o.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>a(e))})),this._rootRequestPromise}async _doLoad(e){const t=null!=e?e.signal:null;if(this._isUsedAsGroundLayer&&!has("enable-feature:basemap-groundlayers"))throw new r("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new r("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(o){s(o)}if(null!=this._modificationsSource){const t=await L.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},e=>{o.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})}get hasAttributionData(){return!1}async fetchAttributionData(){return{}}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";x(o.getLogger(this),P(t,"absolute-height",e)),x(o.getLogger(this),I(t,e))}get replacesTerrain(){return!!has("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return R(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};e([l({type:["IntegratedMesh3DTilesLayer"]})],D.prototype,"operationalLayerType",void 0),e([l({type:L,clonable:e=>e.clone()}),d({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],D.prototype,"modifications",void 0),e([p(["web-scene","portal-item"],"modifications")],D.prototype,"readModifications",null),e([l({type:u})],D.prototype,"spatialReference",void 0),e([l({type:c})],D.prototype,"fullExtent",void 0),e([l(T)],D.prototype,"elevationInfo",null),e([l({type:["show","hide"]})],D.prototype,"listMode",void 0),e([l(v)],D.prototype,"url",void 0),e([l({readOnly:!0})],D.prototype,"type",void 0),e([l({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],D.prototype,"path",void 0),e([l({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],D.prototype,"minScale",void 0),e([l({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],D.prototype,"maxScale",void 0),e([l()],D.prototype,"replacesTerrain",null),e([l()],D.prototype,"_isUsedAsGroundLayer",null),e([l()],D.prototype,"hasGoogleUrl",null),D=e([m("esri.layers.IntegratedMesh3DTilesLayer")],D);const U=D;export{U as default};
5
+ import{__decorate as e}from"tslib";import t from"../request.js";import o from"../core/Error.js";import r from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as n,sync as a}from"../core/reactiveUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as p}from"../core/accessorSupport/decorators/reader.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import{persistable as d}from"../core/accessorSupport/decorators/persistable.js";import c from"../geometry/Extent.js";import u from"../geometry/SpatialReference.js";import h from"./Layer.js";import{APIKeyMixin as f}from"./mixins/APIKeyMixin.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{CustomParametersMixin as g}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as _}from"./mixins/OperationalLayer.js";import{PortalLayer as S}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as T,url as v}from"./support/commonProperties.js";import L from"./support/SceneModifications.js";import{initFullExtent as w}from"./support/tiles3DUtils.js";import x from"../portal/Portal.js";import{logInvalidElevationInfoWarning as b,elevationModeRequiredMessage as P,featureExpressionUnsupportedMessage as I}from"../support/elevationInfoUtils.js";import{f as k}from"../chunks/persistableUrlUtils.js";import{isBasemap as R}from"../support/userTypeGuards/isBasemap.js";let D=class extends(y(_(S(j(i(g(f(h)))))))){readModifications(e,t,o){this._modificationsSource={url:k(e,o),context:o}}initialize(){this.addHandles(n(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,a))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new u({wkid:4326,vcsWkid:115700}),this.fullExtent=new c(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[r,i]of Object.entries(e)){if("uri"===r)try{const e=new URL("https://tmp"+i).searchParams.get("session");if(e)return e}catch(o){}"object"==typeof i&&null!==i&&t.push(i)}}return null}async requestRootAndSession(e){const i=(e,t)=>new o("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((o,n)=>{this.url||n(i("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null;new Promise((e,o)=>{if(this.replacesTerrain&&!this._key){const r=this.portalItem?.portal||this.parent?.portalItem?.portal||x.getDefault();r.signIn().then(()=>{r.g3dTilesEnabled?t(r.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>o(i("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):o(i("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+r.url))},()=>o(i("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{t(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",authMode:"anonymous",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(t){return void n(i("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=w(this._rootTilesetJSON),o(),this._rootRequestPromise=null):n(i("root-is-null","Root tile is null."))},e=>{s(e),n(i("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,r.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>n(e))})),this._rootRequestPromise}async _doLoad(e){const t=null!=e?e.signal:null;if(this._isUsedAsGroundLayer)throw new o("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(r){s(r)}if(null!=this._modificationsSource){const t=await L.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},e=>{r.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})}get hasAttributionData(){return!1}async fetchAttributionData(){return{}}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";b(r.getLogger(this),P(t,"absolute-height",e)),b(r.getLogger(this),I(t,e))}get replacesTerrain(){return!1}get _isUsedAsGroundLayer(){return R(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};e([l({type:["IntegratedMesh3DTilesLayer"]})],D.prototype,"operationalLayerType",void 0),e([l({type:L,clonable:e=>e.clone()}),d({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],D.prototype,"modifications",void 0),e([p(["web-scene","portal-item"],"modifications")],D.prototype,"readModifications",null),e([l({type:u})],D.prototype,"spatialReference",void 0),e([l({type:c})],D.prototype,"fullExtent",void 0),e([l(T)],D.prototype,"elevationInfo",null),e([l({type:["show","hide"]})],D.prototype,"listMode",void 0),e([l(v)],D.prototype,"url",void 0),e([l({readOnly:!0})],D.prototype,"type",void 0),e([l({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],D.prototype,"path",void 0),e([l({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],D.prototype,"minScale",void 0),e([l({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],D.prototype,"maxScale",void 0),e([l()],D.prototype,"replacesTerrain",null),e([l()],D.prototype,"_isUsedAsGroundLayer",null),e([l()],D.prototype,"hasGoogleUrl",null),D=e([m("esri.layers.IntegratedMesh3DTilesLayer")],D);const M=D;export{M as default};