@arcgis/core 4.33.0-next.20250401 → 4.33.0-next.20250402

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 (38) hide show
  1. package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -0
  2. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  3. package/arcade/functions/knowledgegraph.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/0cd5f15b8558b23e5fcd.js +1 -0
  6. package/assets/esri/core/workers/chunks/48fbf887da6d19838bf0.js +1 -0
  7. package/assets/esri/core/workers/chunks/{ba4d91816f6a0bf0d812.js → 4dc135e0133d58a06d67.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{3577909b8e84959d415b.js → 6a8cf1f51cc4adc268d3.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{bdeac9196f28aff93e68.js → 93d06a1a0b700ddb3807.js} +1 -1
  10. package/assets/esri/core/workers/chunks/b28b699de6deb7e9fa53.js +1 -0
  11. package/assets/esri/core/workers/chunks/{1a5f96b1b892ecceb36a.js → b4a1f3f3a036226d6810.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{738e4f46feb3758456e0.js → baa9fd23414f03ef90bc.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{e2029267cddb8e2effab.js → d58fae2fc9d148e015ae.js} +1 -1
  14. package/core/sql/WhereClause.js +1 -1
  15. package/core/typedArrayUtil.js +1 -1
  16. package/interfaces.d.ts +89 -6
  17. package/layers/graphics/data/QueryEngineResult.js +1 -1
  18. package/layers/support/VideoElement.js +1 -1
  19. package/package.json +1 -1
  20. package/support/revision.js +1 -1
  21. package/symbols/support/ElevationInfo.js +1 -1
  22. package/views/3d/layers/I3SMeshView3D.js +1 -1
  23. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  24. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  25. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  26. package/views/3d/layers/i3s/I3SQueryFeatureAdapter.js +1 -1
  27. package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
  28. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  29. package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
  30. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  31. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  32. package/views/interactive/snapping/FeatureSnappingSourceInfo.js +1 -1
  33. package/views/layers/PointCloudLayerView.d.ts +1 -1
  34. package/views/layers/PointCloudLayerView.js +5 -0
  35. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  36. package/assets/esri/core/workers/chunks/093421648cc61afdeb3c.js +0 -1
  37. package/assets/esri/core/workers/chunks/4816cf647eca2f4cecc2.js +0 -1
  38. package/assets/esri/core/workers/chunks/8725580f6d2a495051b5.js +0 -1
@@ -5,6 +5,7 @@ export const closeCatalogLayer: __esri.sceneViewerUtils["closeCatalogLayer"];
5
5
  export const createTilingScheme: __esri.sceneViewerUtils["createTilingScheme"];
6
6
  export const editorHasPendingEdits: __esri.sceneViewerUtils["editorHasPendingEdits"];
7
7
  export const editorNavigateBack: __esri.sceneViewerUtils["editorNavigateBack"];
8
+ export const fetchPopupFeaturesFromGraphics: __esri.sceneViewerUtils["fetchPopupFeaturesFromGraphics"];
8
9
  export const getCompatibleTileInfoForVTL: __esri.sceneViewerUtils["getCompatibleTileInfoForVTL"];
9
10
  export const initializeSchemaValidators: __esri.sceneViewerUtils["initializeSchemaValidators"];
10
11
  export const isHostedAgolServiceUrl: __esri.sceneViewerUtils["isHostedAgolServiceUrl"];
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../core/Collection.js";import r from"../../core/Logger.js";import{isHostedAgolService as t}from"../../layers/support/arcgisLayerUrl.js";import{registerLoader as o}from"../../layers/support/schemaValidatorLoader.js";import{schemaValidationErrorName as n}from"../../support/webSceneUtils.js";import{renderSVG as i}from"../../symbols/support/svgUtils.js";import{viewingModeFromString as s}from"../../views/ViewingMode.js";import{ZoomControllerGlobal as a}from"../../views/3d/state/controllers/ZoomControllerGlobal.js";import{ZoomControllerLocal as p}from"../../views/3d/state/controllers/ZoomControllerLocal.js";import{TilingScheme as u}from"../../views/3d/terrain/TilingScheme.js";import{isSpatialReferenceSupported as c}from"../../views/support/spatialReferenceSupport.js";import{registerLoader as l}from"../../webscene/support/schemaValidatorLoader.js";function f(r,{defaultSpatialReference:t,isSpatialReferenceSupported:o,priorityLayers:n,required:i}){const s={...r.defaultsFromMapSettings};t&&(s.defaultSpatialReference=t),o&&(s.getSpatialReferenceSupport=(e,t)=>o(e,t)?r.getSpatialReferenceSupport(e,t):null),n&&(s.priorityCollection={layers:new e(n)}),i&&(s.required=i),r.defaultsFromMapSettings=s}function m(e){return e.back()}function d(e){return e.hasPendingEdits}function S(e,t){return r.getLogger("sceneViewer.appState.saveState").warn(e,t)}function g(e){return t(e)}function j(e,r,t,o){return i(e,r,t,o)}function w(e){return!e.canNotSaveAs()}function y(e,r){return c(e,s(r))}function L(e,r){return e.getCompatibleForVTL(r)}function v(e){return new u(e)}function V(e){return null==u.checkUnsupported(e)}function b(){o((()=>import("../../layers/support/schemaValidator.js"))),l((()=>import("../../webscene/support/schemaValidator.js")))}function h(e){return e&&e.name===n}function R(e){const r=e.state.cameraController;return r instanceof a||r instanceof p?r.dragBeginPoint:null}function C(e){e.openedLayers.pop()}export{w as canSaveAs,C as closeCatalogLayer,v as createTilingScheme,d as editorHasPendingEdits,m as editorNavigateBack,L as getCompatibleTileInfoForVTL,b as initializeSchemaValidators,g as isHostedAgolServiceUrl,h as isSchemaValidationError,y as isSpatialReferenceSupported,V as isSupportedTileInfo,j as renderSVG,S as saveStateWarning,f as setDefaultsFromMapSettings,R as zoomDragBeginPoint};
5
+ import e from"../../core/Collection.js";import r from"../../core/Error.js";import t from"../../core/Logger.js";import{isHostedAgolService as o}from"../../layers/support/arcgisLayerUrl.js";import{registerLoader as n}from"../../layers/support/schemaValidatorLoader.js";import{schemaValidationErrorName as i}from"../../support/webSceneUtils.js";import{renderSVG as s}from"../../symbols/support/svgUtils.js";import{viewingModeFromString as a}from"../../views/ViewingMode.js";import{ZoomControllerGlobal as p}from"../../views/3d/state/controllers/ZoomControllerGlobal.js";import{ZoomControllerLocal as u}from"../../views/3d/state/controllers/ZoomControllerLocal.js";import{TilingScheme as c}from"../../views/3d/terrain/TilingScheme.js";import{isSpatialReferenceSupported as l}from"../../views/support/spatialReferenceSupport.js";import{registerLoader as f}from"../../webscene/support/schemaValidatorLoader.js";function m(r,{defaultSpatialReference:t,isSpatialReferenceSupported:o,priorityLayers:n,required:i}){const s={...r.defaultsFromMapSettings};t&&(s.defaultSpatialReference=t),o&&(s.getSpatialReferenceSupport=(e,t)=>o(e,t)?r.getSpatialReferenceSupport(e,t):null),n&&(s.priorityCollection={layers:new e(n)}),i&&(s.required=i),r.defaultsFromMapSettings=s}function d(e){return e.back()}function S(e){return e.hasPendingEdits}function g(e,r){return t.getLogger("sceneViewer.appState.saveState").warn(e,r)}function h(e){return o(e)}function j(e,r,t,o){return s(e,r,t,o)}function w(e){return!e.canNotSaveAs()}function y(e,r){return l(e,a(r))}function F(e,r){return e.getCompatibleForVTL(r)}function v(e){return new c(e)}function L(e){return null==c.checkUnsupported(e)}function P(){n((()=>import("../../layers/support/schemaValidator.js"))),f((()=>import("../../webscene/support/schemaValidator.js")))}function V(e){return e&&e.name===i}function b(e){const r=e.state.cameraController;return r instanceof p||r instanceof u?r.dragBeginPoint:null}function G(e){e.openedLayers.pop()}function R(e,t){return e&&"layer"in e&&"fetchPopupFeaturesFromGraphics"in e&&"function"==typeof e.fetchPopupFeaturesFromGraphics?e.fetchPopupFeaturesFromGraphics(t):Promise.reject(new r("layerview:fetchPopupFeaturesFromGraphics","The input layerview does not support fetchPopupFeaturesFromGraphics"))}export{w as canSaveAs,G as closeCatalogLayer,v as createTilingScheme,S as editorHasPendingEdits,d as editorNavigateBack,R as fetchPopupFeaturesFromGraphics,F as getCompatibleTileInfoForVTL,P as initializeSchemaValidators,h as isHostedAgolServiceUrl,V as isSchemaValidationError,y as isSpatialReferenceSupported,L as isSupportedTileInfo,j as renderSVG,g as saveStateWarning,m as setDefaultsFromMapSettings,b as zoomDragBeginPoint};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../config.js";import r from"../ArcadePortal.js";import t from"../Dictionary.js";import{ArcadeExecutionError as n,ExecutionErrorCodes as o}from"../executionError.js";import{D as a,f as i,r as s,K as p,L as l,g as c,j as f,k as u,q as m,l as d}from"../../chunks/languageUtils.js";import{getPortal as g}from"../portalUtils.js";import h from"../../geometry/Geometry.js";import{isLoaded as w,load as y,project as j}from"../../geometry/projection.js";import S from"../../geometry/SpatialReference.js";import{webMercatorToGeographic as R,geographicToWebMercator as v}from"../../geometry/support/webMercatorUtils.js";import G from"../../portal/Portal.js";import k from"../../portal/PortalItem.js";import{project as x}from"../../rest/geometryService/project.js";import P from"../../rest/knowledgeGraph/Entity.js";import b from"../../rest/knowledgeGraph/GraphQueryStreaming.js";import I from"../../rest/knowledgeGraph/ObjectValue.js";import D from"../../rest/knowledgeGraph/Path.js";import W from"../../rest/knowledgeGraph/Relationship.js";import T from"../../rest/support/ProjectParameters.js";import{isString as q,isArray as A,isNumber as N,isDate as U}from"../../support/guards.js";let F=null;async function J(r){const t=e.geometryServiceUrl??"";if(!t){w()||await y();for(const e of r)e.container[e.indexer]=j(e.container[e.indexer],S.WGS84);return}const n=r.map((e=>e.container[e.indexer])),o=new T({geometries:n,outSpatialReference:S.WGS84}),a=await x(t,o);for(let e=0;e<a.length;e++){const t=r[e];t.container[t.indexer]=a[e]}}async function M(e,r){const t=new k({portal:e,id:r});return await t.load(),null===F&&(F=await import("../../rest/knowledgeGraphService.js")),await F.fetchKnowledgeGraph(t.url)}function Q(e,r,t,n,o){if(null===e)return null;if(q(e)||N(e))return e;if(c(e))return e.toJSDate();if(c(e))return e.toJSDate();if(f(e))return e.toStorageFormat();if(u(e))return e.toStorageString();if(m(e)){const a={};for(const i of e.keys())a[i]=Q(e.field(i),r,t,n,o),a[i]instanceof h&&o.push({container:a,indexer:i});return a}if(A(e)){const a=e.map((e=>Q(e,r,t,n,o)));for(let e=0;e<a.length;e++)a[e]instanceof h&&o.push({container:a,indexer:e});return a}return d(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&r?R(e):e:void 0}function E(e,r){if(!e)return e;if(e.spatialReference.isWGS84&&r.spatialReference.isWebMercator)return v(e);if(e.spatialReference.equals(r.spatialReference))return e;throw new n(r,o.WrongSpatialReference,null)}function K(e,r){if(!e)return null;const t={};for(const n in e)t[n]=V(e[n],r);return t}function V(e,r){return null===e?null:A(e)?e.map((e=>V(e,r))):e instanceof P?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:K(e.properties,r)}:e instanceof I?{graphType:"object",properties:K(e.properties,r)}:e instanceof W?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:K(e.properties,r)}:e instanceof D?{graphType:"path",path:e.path?e.path.map((e=>V(e,r))):null}:d(e)?E(e,r):q(e)||N(e)||U(e)?e:null}function C(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,s){return e.standardFunctionAsync(t,s,((e,p,l)=>{if(a(l,2,2,t,s),null===l[0])throw new n(t,o.PortalRequired,s);if(l[0]instanceof r){const e=i(l[1]);let r;r=t.services?.portal?t.services.portal:G.getDefault();return M(g(l[0],r),e)}if(!1===q(l[0]))throw new n(t,o.InvalidParameter,s);const c=i(l[0]);return M(t.services?.portal??G.getDefault(),c)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(r,i){return e.standardFunctionAsync(r,i,(async(e,c,f)=>{a(f,2,4,r,i);const u=f[0];if(!s(u))throw new n(r,o.InvalidParameter,i);const m=f[1];if(!q(m))throw new n(r,o.InvalidParameter,i);null===F&&(F=await import("../../rest/knowledgeGraphService.js"));let d=null;const g=p(f[2],null);if(!(g instanceof t||null===g))throw new n(r,o.InvalidParameter,i);if(g){let e=[];d=Q(g,!0,!1,r,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await J(e)}const h=new b({openCypherQuery:m,bindParameters:d});(u?.serviceDefinition?.currentVersion??11.3)>11.2&&(h.outputSpatialReference=r.spatialReference);const w=(await F.executeQueryStreaming(u,h)).resultRowsStream.getReader(),y=[];try{for(;;){const{done:e,value:t}=await w.read();if(e)break;if(A(t))for(const n of t)y.push(V(n,r));else{const e=[];for(const n of t)e.push(V(t[n],r));y.push(e)}}}catch(j){throw j}return t.convertJsonToArcade(y,l(r),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}export{C as registerFunctions};
5
+ import e from"../../config.js";import r from"../ArcadePortal.js";import t from"../Dictionary.js";import{ArcadeExecutionError as n,ExecutionErrorCodes as o}from"../executionError.js";import{D as a,f as i,r as s,K as p,L as l,g as c,j as f,k as u,q as m,l as d}from"../../chunks/languageUtils.js";import{getPortal as g}from"../portalUtils.js";import h from"../../geometry/Geometry.js";import{isLoaded as w,load as y,project as j}from"../../geometry/projection.js";import S from"../../geometry/SpatialReference.js";import{webMercatorToGeographic as v,geographicToWebMercator as R}from"../../geometry/support/webMercatorUtils.js";import G from"../../portal/Portal.js";import k from"../../portal/PortalItem.js";import{project as x}from"../../rest/geometryService/project.js";import P from"../../rest/knowledgeGraph/Entity.js";import b from"../../rest/knowledgeGraph/GraphQueryStreaming.js";import I from"../../rest/knowledgeGraph/ObjectValue.js";import D from"../../rest/knowledgeGraph/Path.js";import W from"../../rest/knowledgeGraph/Relationship.js";import T from"../../rest/support/ProjectParameters.js";import{isString as q,isArray as A,isNumber as N,isDate as U}from"../../support/guards.js";let F=null;async function J(r){const t=e.geometryServiceUrl??"";if(!t){w()||await y();for(const e of r)e.container[e.indexer]=j(e.container[e.indexer],S.WGS84);return}const n=r.map((e=>e.container[e.indexer])),o=new T({geometries:n,outSpatialReference:S.WGS84}),a=await x(t,o);for(let e=0;e<a.length;e++){const t=r[e];t.container[t.indexer]=a[e]}}async function M(e,r){const t=new k({portal:e,id:r});return await t.load(),null===F&&(F=await import("../../rest/knowledgeGraphService.js")),await F.fetchKnowledgeGraph(t.url)}function Q(e,r,t,n,o){if(null===e)return null;if(q(e)||N(e))return e;if(c(e))return e.toJSDate();if(c(e))return e.toJSDate();if(f(e))return e.toStorageFormat();if(u(e))return e.toStorageString();if(m(e)){const a={};for(const i of e.keys())a[i]=Q(e.field(i),r,t,n,o),a[i]instanceof h&&o.push({container:a,indexer:i});return a}if(A(e)){const a=e.map((e=>Q(e,r,t,n,o)));for(let e=0;e<a.length;e++)a[e]instanceof h&&o.push({container:a,indexer:e});return a}return d(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&r?v(e):e:void 0}function E(e,r){if(!e)return e;if(e.spatialReference.isWGS84&&r.spatialReference.isWebMercator)return R(e);if(e.spatialReference.equals(r.spatialReference))return e;throw new n(r,o.WrongSpatialReference,null)}function K(e,r){if(!e)return null;const t={};for(const n in e)t[n]=V(e[n],r);return t}function V(e,r){return null===e?null:A(e)?e.map((e=>V(e,r))):e instanceof P?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:K(e.properties,r)}:e instanceof I?{graphType:"object",properties:K(e.properties,r)}:e instanceof W?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:K(e.properties,r)}:e instanceof D?{graphType:"path",path:e.path?e.path.map((e=>V(e,r))):null}:d(e)?E(e,r):q(e)||N(e)||U(e)?e:null}function B(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,s){return e.standardFunctionAsync(t,s,((e,p,l)=>{if(a(l,2,2,t,s),null===l[0])throw new n(t,o.PortalRequired,s);if(l[0]instanceof r){const e=i(l[1]);let r;r=t.services?.portal?t.services.portal:G.getDefault();return M(g(l[0],r),e)}if(!1===q(l[0]))throw new n(t,o.InvalidParameter,s);const c=i(l[0]);return M(t.services?.portal??G.getDefault(),c)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(r,i){return e.standardFunctionAsync(r,i,(async(e,c,f)=>{a(f,2,4,r,i);const u=f[0];if(!s(u))throw new n(r,o.InvalidParameter,i);const m=f[1];if(!q(m))throw new n(r,o.InvalidParameter,i);null===F&&(F=await import("../../rest/knowledgeGraphService.js"));let d=null;const g=p(f[2],null);if(!(g instanceof t||null===g))throw new n(r,o.InvalidParameter,i);if(g){let e=[];d=Q(g,!0,!1,r,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await J(e)}const h=p(f[3],!1),w=new b({openCypherQuery:m,bindParameters:d,provenanceBehavior:h?"include":"exclude"});(u?.serviceDefinition?.currentVersion??11.3)>11.2&&(w.outputSpatialReference=r.spatialReference);const y=(await F.executeQueryStreaming(u,w)).resultRowsStream.getReader(),j=[];try{for(;;){const{done:e,value:t}=await y.read();if(e)break;if(A(t))for(const n of t)j.push(V(n,r));else{const e=[];for(const n of t)e.push(V(t[n],r));j.push(e)}}}catch(S){throw S}return t.convertJsonToArcade(j,l(r),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}export{B as registerFunctions};