@arcgis/core 5.2.0-next.55 → 5.2.0-next.56

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 (41) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{7e2bf6dd26c3cf0b49b0.js → 2190034c14ab3a25ac20.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{a239f1e82dde4f7ada32.js → 2c29085c5e649971b31b.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{77f19d204a4673b1e676.js → 46756a7f014d9d5b3f6c.js} +2 -2
  5. package/assets/esri/core/workers/chunks/4abd54518e35050feb90.js +1 -0
  6. package/assets/esri/core/workers/chunks/61d0ada7627f21988183.js +1 -0
  7. package/assets/esri/core/workers/chunks/{c38992b250731137cb1a.js → 6e84140c6129c5a666f7.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{5d6d07ecebf881ad913f.js → 8b80dd993ed14ec263c8.js} +1 -1
  9. package/assets/esri/core/workers/chunks/8ce649e55fefc8eca55c.js +1 -0
  10. package/assets/esri/core/workers/chunks/{2fbb00a29faeaa02912b.js → a4d9985391126e8ea06d.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{0ffd0190adfed8e5937a.js → a633291cdaff7fb7ce80.js} +1 -1
  12. package/assets/esri/core/workers/chunks/c25dc9073e73d6b44d88.js +1 -0
  13. package/assets/esri/core/workers/chunks/{2d6d2d4df05bba9fa4a6.js → daae34cd086c0c6a5900.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{ce719d3aec8b52bfe160.js → ecff3a6ca99f2c88c837.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{847ce06b14a921cd16f0.js → facf7e07e758601b642f.js} +1 -1
  16. package/config.js +1 -1
  17. package/core/has.js +1 -1
  18. package/geometry/support/normalizeUtilsSync.js +1 -1
  19. package/kernel.js +1 -1
  20. package/package.json +5 -5
  21. package/support/revision.js +1 -1
  22. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  23. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  24. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  25. package/views/3d/layers/I3SMeshView3D.js +1 -1
  26. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  27. package/views/3d/layers/SceneLayerWorkerHandle.js +1 -1
  28. package/views/3d/layers/graphics/SpatialIndex2D.js +1 -1
  29. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  30. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  31. package/views/3d/support/ElevationUpdateEvent.js +2 -0
  32. package/views/3d/support/elevationUpdateExtentUtils.js +2 -0
  33. package/views/3d/terrain/TerrainSurface.js +1 -1
  34. package/views/SceneView.js +1 -1
  35. package/assets/esri/core/workers/chunks/2da337d7fd9295f6b967.js +0 -1
  36. package/assets/esri/core/workers/chunks/9e474465d069cb9e94f5.js +0 -1
  37. package/assets/esri/core/workers/chunks/c5043c42a6aaa276a521.js +0 -1
  38. package/assets/esri/core/workers/chunks/c8db0a4fb5bc982dc9fc.js +0 -1
  39. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +0 -2
  40. package/views/3d/terrain/ElevationUpdateEvent.js +0 -2
  41. /package/assets/esri/core/workers/chunks/{77f19d204a4673b1e676.js.LICENSE.txt → 46756a7f014d9d5b3f6c.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,8325],{80200(e,t,s){s.d(t,{d:()=>p});const n={Base64:0,Hex:1,String:2,Raw:3};function r(e,t){const s=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(s>>16)<<16|65535&s}function o(e,t,s,n,o,i){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(n,i)),o),s)}function i(e,t,s,n,r,i,a){return o(t&s|~t&n,e,t,r,i,a)}function a(e,t,s,n,r,i,a){return o(t&n|s&~n,e,t,r,i,a)}function c(e,t,s,n,r,i,a){return o(t^s^n,e,t,r,i,a)}function l(e,t,s,n,r,i,a){return o(s^(t|~n),e,t,r,i,a)}function u(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let s=1732584193,n=-271733879,o=-1732584194,u=271733878;for(let t=0;t<e.length;t+=16){const p=s,h=n,f=o,d=u;s=i(s,n,o,u,e[t],7,-680876936),u=i(u,s,n,o,e[t+1],12,-389564586),o=i(o,u,s,n,e[t+2],17,606105819),n=i(n,o,u,s,e[t+3],22,-1044525330),s=i(s,n,o,u,e[t+4],7,-176418897),u=i(u,s,n,o,e[t+5],12,1200080426),o=i(o,u,s,n,e[t+6],17,-1473231341),n=i(n,o,u,s,e[t+7],22,-45705983),s=i(s,n,o,u,e[t+8],7,1770035416),u=i(u,s,n,o,e[t+9],12,-1958414417),o=i(o,u,s,n,e[t+10],17,-42063),n=i(n,o,u,s,e[t+11],22,-1990404162),s=i(s,n,o,u,e[t+12],7,1804603682),u=i(u,s,n,o,e[t+13],12,-40341101),o=i(o,u,s,n,e[t+14],17,-1502002290),n=i(n,o,u,s,e[t+15],22,1236535329),s=a(s,n,o,u,e[t+1],5,-165796510),u=a(u,s,n,o,e[t+6],9,-1069501632),o=a(o,u,s,n,e[t+11],14,643717713),n=a(n,o,u,s,e[t],20,-373897302),s=a(s,n,o,u,e[t+5],5,-701558691),u=a(u,s,n,o,e[t+10],9,38016083),o=a(o,u,s,n,e[t+15],14,-660478335),n=a(n,o,u,s,e[t+4],20,-405537848),s=a(s,n,o,u,e[t+9],5,568446438),u=a(u,s,n,o,e[t+14],9,-1019803690),o=a(o,u,s,n,e[t+3],14,-187363961),n=a(n,o,u,s,e[t+8],20,1163531501),s=a(s,n,o,u,e[t+13],5,-1444681467),u=a(u,s,n,o,e[t+2],9,-51403784),o=a(o,u,s,n,e[t+7],14,1735328473),n=a(n,o,u,s,e[t+12],20,-1926607734),s=c(s,n,o,u,e[t+5],4,-378558),u=c(u,s,n,o,e[t+8],11,-2022574463),o=c(o,u,s,n,e[t+11],16,1839030562),n=c(n,o,u,s,e[t+14],23,-35309556),s=c(s,n,o,u,e[t+1],4,-1530992060),u=c(u,s,n,o,e[t+4],11,1272893353),o=c(o,u,s,n,e[t+7],16,-155497632),n=c(n,o,u,s,e[t+10],23,-1094730640),s=c(s,n,o,u,e[t+13],4,681279174),u=c(u,s,n,o,e[t],11,-358537222),o=c(o,u,s,n,e[t+3],16,-722521979),n=c(n,o,u,s,e[t+6],23,76029189),s=c(s,n,o,u,e[t+9],4,-640364487),u=c(u,s,n,o,e[t+12],11,-421815835),o=c(o,u,s,n,e[t+15],16,530742520),n=c(n,o,u,s,e[t+2],23,-995338651),s=l(s,n,o,u,e[t],6,-198630844),u=l(u,s,n,o,e[t+7],10,1126891415),o=l(o,u,s,n,e[t+14],15,-1416354905),n=l(n,o,u,s,e[t+5],21,-57434055),s=l(s,n,o,u,e[t+12],6,1700485571),u=l(u,s,n,o,e[t+3],10,-1894986606),o=l(o,u,s,n,e[t+10],15,-1051523),n=l(n,o,u,s,e[t+1],21,-2054922799),s=l(s,n,o,u,e[t+8],6,1873313359),u=l(u,s,n,o,e[t+15],10,-30611744),o=l(o,u,s,n,e[t+6],15,-1560198380),n=l(n,o,u,s,e[t+13],21,1309151649),s=l(s,n,o,u,e[t+4],6,-145523070),u=l(u,s,n,o,e[t+11],10,-1120210379),o=l(o,u,s,n,e[t+2],15,718787259),n=l(n,o,u,s,e[t+9],21,-343485551),s=r(s,p),n=r(n,h),o=r(o,f),u=r(u,d)}return[s,n,o,u]}function p(e,t=n.Hex){const s=t||n.Base64,r=u(function(e){const t=[];for(let s=0,n=8*e.length;s<n;s+=8)t[s>>5]|=(255&e.charCodeAt(s/8))<<s%32;return t}(e),8*e.length);switch(s){case n.Raw:return r;case n.Hex:return function(e){const t="0123456789abcdef",s=[];for(let n=0,r=4*e.length;n<r;n++)s.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return s.join("")}(r);case n.String:return function(e){const t=[];for(let s=0,n=32*e.length;s<n;s+=8)t.push(String.fromCharCode(e[s>>5]>>>s%32&255));return t.join("")}(r);case n.Base64:return function(e){const t=[];for(let s=0,n=4*e.length;s<n;s+=3){const n=(e[s>>2]>>s%4*8&255)<<16|(e[s+1>>2]>>(s+1)%4*8&255)<<8|e[s+2>>2]>>(s+2)%4*8&255;for(let r=0;r<4;r++)8*s+6*r>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-r)&63))}return t.join("")}(r)}}s.d(t,["T",0,n])},87024(e,t,s){s.d(t,{P:()=>f});var n=s(49186),r=s(80200),o=s(76553),i=s(84952),a=s(13069),c=s(96156),l=s(35666),u=s(10107),p=s(85648),h=s(97159);function f(e){const t=e?.origins??[void 0];return(s,n)=>{const r=function(e,t,s){if("resource"===e?.type)return function(e,t,s){const n=(0,c.z4)(t,s);return{type:String,read:(e,t,s)=>{const r=(0,h.r)(e,t,s);return n.type===String?r:"function"==typeof n.type?new n.type({url:r}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,r,a,c){if(!c?.resources)return"string"==typeof t?void(r[a]=(0,h.t)(t,c)):void(r[a]=t.write({},c));const u=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),f=(0,h.t)(u,{...c,verifyItemRelativeUrls:c?.verifyItemRelativeUrls?{writtenUrls:c.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=n.type!==String&&(!(0,o.H)(this)||c?.origin&&this.originIdOf(s)>(0,l.aB)(c.origin)),_={object:this,propertyName:s,value:t,targetUrl:f,dest:r,targetPropertyName:a,context:c,params:e};c?.portalItem&&f&&!(0,i.oP)(f)?y&&e?.contentAddressed?d(_):y?function(e){const{context:t,targetUrl:s,params:n,value:r,dest:o,targetPropertyName:a}=e;if(!t.portalItem)return;const c=t.portalItem.resourceFromPath(s),l=g(r,s,t),u=(0,p.n)(l),h=(0,i.Zo)(c.path),f=n?.compress??!1;u===h?(t.resources&&m({...e,resource:c,content:l,compress:f,updates:t.resources.toUpdate}),o[a]=s):d(e)}(_):function({context:e,targetUrl:t,dest:s,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),s[n]=t)}(_):c?.portalItem&&(null==f||null!=(0,h.i)(f)||(0,i.w8)(f)||y)?d(_):r[a]=f}}}}(e,t,s);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=h.b;return{read:e,write:t}}}}(e,s,n);for(const e of t){const t=(0,u.rM)(s,e,n);for(const e in r)t[e]=r[e]}}}function d(e){const{targetUrl:t,params:s,value:o,context:c,dest:l,targetPropertyName:u}=e;if(!c.portalItem)return;const f=(0,h.p)(t),d=g(o,t,c);if(s?.contentAddressed&&"json"!==d.type)return void c.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const y=s?.contentAddressed&&"json"===d.type?(0,r.d)(d.jsonString):f?.filename??(0,a.lk)(),_=(0,i.fj)(s?.prefix??f?.prefix,y),v=`${_}.${(0,p.n)(d)}`;if(s?.contentAddressed&&c.resources&&"json"===d.type){const e=c.resources.toKeep.find(({resource:e})=>e.path===v)??c.resources.toAdd.find(({resource:e})=>e.path===v);if(e)return void(l[u]=e.resource.itemRelativeUrl)}const w=c.portalItem.resourceFromPath(v);(0,i.w8)(t)&&c.resources&&c.resources.pendingOperations.push((0,i.tk)(t).then(e=>{w.path=`${_}.${(0,p.n)({type:"blob",blob:e})}`,l[u]=w.itemRelativeUrl}).catch(()=>{}));const b=s?.compress??!1;c.resources&&m({...e,resource:w,content:d,compress:b,updates:c.resources.toAdd}),l[u]=w.itemRelativeUrl}function m({object:e,propertyName:t,updates:s,resource:n,content:r,compress:o}){s.push({resource:n,content:r,compress:o,finish:s=>{!function(e,t,s){"string"==typeof e[t]?e[t]=s.url:e[t].url=s.url}(e,t,s)}})}function g(e,t,s){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(s))}}},13069(e,t,s){s.d(t,{AG:()=>a,lk:()=>r,vD:()=>i,yS:()=>o});const n="randomUUID"in crypto;function r(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${r().toUpperCase()}}`}function i(){return`{${r()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},83027(e,t,s){const n=s(29953).ho;s.d(t,["h",0,n])},35982(e,t,s){s.d(t,{B:()=>u});var n=s(4576),r=s(71511),o=s(36563),i=s(53966),a=s(97768),c=s(17676),l=s(83027);class u{constructor(e,t,s,n,r={}){this._mainMethod=t,this._transferLists=s,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,l.h)(e,{...r,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const s=new p(e,t);return this._listeners.push(s),this._connectListener(s),(0,o.hA)(()=>{(0,n.TF)(this._listeners,s),s.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,s){return this.invokeMethod(this._mainMethod,e,t,s)}invokeMethod(e,t,s,n){if(this._thread){const r=this._transferLists[e],o=r?r(t):[];return this._thread.invoke(e,t,{transferList:o,signal:s,jobPriority:n})}return this._promise?this._promise.then(()=>((0,c.Te)(s),this.invokeMethod(e,t,s))):Promise.reject((0,c.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(h):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,c.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class p{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function h(){}},58325(e,t,s){s.d(t,{A:()=>S});var n,r=s(5482),o=s(11254),i=s(7762),a=s(25482),c=s(84952),l=s(91429),u=s(4718),p=s(67076),h=s(87024),f=s(39829),d=s(91218),m=s(16930),g=s(21325),y=s(88546),_=s(72772),v=s(98697),w=s(43937);let b=n=class extends a.o{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,s,n){if(this._needWGS84Conversion(n))this._doWGS84Conversion(t,s,n);else if(n.layer?.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,d.canProjectWithoutEngine)(e.spatialReference,n.layer.spatialReference))return void(n?.messages&&n.messages.push(new p.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));const r=new f.A;(0,d.projectPolygon)(e,r,n.layer.spatialReference),t[s]=r.toJSON(n)}else t[s]=e.toJSON(n)}_needWGS84Conversion(e){if("integrated-mesh-3dtiles"===e.layer?.type){const t=e.layer;return!t.esriCrsSpatialReference||!(0,g.aI)(t.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(e,t,s){let n=!0;if((0,_.isInitialized)()){const r=(0,v.Ir)(null,[this],m.A.WGS84);if(r.length>1){const o=(0,_.switchMeshModificationPolygonVCSSync)({modifications:r,inVCS:5773});if(o.success&&o.modifications){const r=[this.clone()];(0,v.H1)(o.modifications,r),1===r.length&&r[0].geometry&&(r[0].geometry.spatialReference=y.Zx,e[t]=r[0].geometry.toJSON(s),n=!1)}}}n&&s?.messages&&s.messages.push(new p.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:s}))}clone(){return new n({geometry:(0,u.o8)(this.geometry),type:this.type})}};var C;(0,r.Cg)([(0,l.MZ)({type:f.A}),(0,h.P)()],b.prototype,"geometry",void 0),(0,r.Cg)([(0,w.K)(["web-scene","portal-item"],"geometry")],b.prototype,"writeGeometry",null),(0,r.Cg)([(0,l.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,h.P)()],b.prototype,"type",void 0),b=n=(0,r.Cg)([(0,l.$K)("esri.layers.support.SceneModification")],b);let S=C=class extends((0,a.T)(i.A.ofType(b))){constructor(e){super(e),this.url=null}clone(){return new C({url:this.url,items:this.items.map(e=>e.clone())})}toJSON(e){return this.toArray().map(t=>t.toJSON(e)).filter(e=>!!e.geometry)}static fromJSON(e,t){const s=new C;for(const n of e)s.add(b.fromJSON(n,t));return s}static async fromUrl(e,t,s,n=!1){const r={url:(0,c.An)(e),origin:"service"},i=await(0,o.A)(e,{responseType:"json",signal:s?.signal}),a=t.toJSON(),l=[];for(const e of i.data){let t=a;n&&e.geometry.spatialReference&&(t=e.geometry.spatialReference),l.push(b.fromJSON({...e,geometry:{spatialReference:t,...e.geometry}},r))}return new C({url:e,items:l})}};(0,r.Cg)([(0,l.MZ)({type:String})],S.prototype,"url",void 0),S=C=(0,r.Cg)([(0,l.$K)("esri.layers.support.SceneModifications")],S)},85648(e,t,s){s.d(t,{n:()=>r});var n=s(84952);function r(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,n.Zo)(e);return c[t]||i}(e.url)}(e)]||a}const o={},i="text/plain",a=o[i],c={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in c)o[c[e]]=e},72772(e,t,s){s.r(t),s.d(t,{addSpatialReferenceInfo:()=>c,destroyWasm:()=>u,initialize:()=>p,isInitialized:()=>h,process:()=>a,switchMeshModificationPolygonVCSSync:()=>l});var n=s(2741);function r(e){return(0,n.s)(`esri/libs/lyr3d/${e}`)}let o,i=null;async function a(e){await p();const t={status:1,error:"",jobDescJson:"",data:new Uint8Array(0),missingInputUrls:[]};if(e.inputs.length<1)return{result:t,transferList:[]};const s={ptrs:[],sizes:[]};for(const t of e.inputs){const e=i._malloc(t.byteLength);new Uint8Array(i.HEAPU8.buffer,e,t.byteLength).set(new Uint8Array(t)),s.ptrs.push(e),s.sizes.push(t.byteLength)}const n=i.process(e.jobDescJson,e.id,s,e.isMissingResourceCase);t.status=n.status,t.missingInputUrls=n.missingInputUrls.slice();const r=0===n.status&&n.data,o=2===t.status&&t.missingInputUrls.length>0;t.jobDescJson=n.jobDescJson.slice(),t.error=n.error.slice(),r?t.data=n.data.slice():o&&(t.originalInputs=e.inputs.slice());for(let e=0;e<s.ptrs.length;++e)i._free(s.ptrs[e]);const a=[];if(r)a.push(t.data.buffer);else if(o)for(const t of e.inputs)a.push(t);return{result:t,transferList:a}}async function c(e){await p(),i.add_spatial_reference_info(e.sr,e.isGCS,e.toMetersXY,e.toMetersZ)}function l(e){if(!i)return{success:!1,modifications:null};const t=i._malloc(8*e.modifications.length),s=new Float64Array(i.HEAPF64.buffer,t,e.modifications.length);s.set(e.modifications);const n=i.switch_mesh_modification_polygon_vcs(t,e.modifications.length,e.inVCS);let r=null;return n&&(r=s.slice()),i._free(t),{success:n,modifications:r}}function u(){i&&(i.uninitialize_lyr3d_worker_wasm(),i=null)}function p(){return h()?Promise.resolve():(o||(o=new Promise(e=>s.e(2343).then(s.bind(s,2343)).then(({default:t})=>{const s=t({locateFile:r,onRuntimeInitialized:()=>e(s)})})).catch(e=>{throw e}).then(e=>{i=e,i.initialize_lyr3d_worker_wasm(),o=null})),o)}function h(){return null!==i}},98697(e,t,s){s.d(t,{H1:()=>d,Ir:()=>f,_b:()=>l,sQ:()=>u});var n=s(53966),r=s(15142),o=s(51850),i=s(35982),a=s(91218),c=s(27993);class l{constructor(e,t,s,n,r,o){this.layout=e,this.interleavedVertexData=t,this.indices=s,this.hasColors=n,this.hasModifications=r,this.positionData=o}}class u{constructor(e,t,s,n,r,o,i,a,c){this.componentOffsets=e,this.featureIds=t,this.anchorIds=s,this.anchors=n,this.transformedGeometry=r,this.globalTrafo=o,this.obb=i,this.geometryMinElevation=a,this.geometryMaxElevation=c}}i.B;const p=new r.A({deallocator:null}),h=(0,o.vt)();function f(e,t,s){p.clear();let r=1/0,o=1/0,i=-1/0,l=-1/0,u=!1;for(const e of t){const t="clip"===e.type?2:"mask"===e.type?1:0,f=e.geometry;let d=e=>e;if(f.spatialReference){if(!(0,a.canProjectWithoutEngine)(f.spatialReference,s)){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}d=e=>((0,c.F)(e,f.spatialReference,h,s),h)}u=u||1===t;const m=f.rings.length,g=f.rings.some(e=>e.length<3);if(0===m||g)n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (no rings or rings with less than 3 vertices).",{polygon:f});else{p.push(t),p.push(m);for(const e of f.rings){p.push(e.length);for(const t of e){const e=d(t);p.push(e[0]),p.push(e[1]),p.push(e[2]??0),r=Math.min(r,e[0]),o=Math.min(o,e[1]),i=Math.max(i,e[0]),l=Math.max(l,e[1])}}}}if(null!=e)if(u){const t=1e-4;p.push(2),p.push(2),p.push(4),p.push(r-t),p.push(o-t),p.push(0),p.push(i+t),p.push(o-t),p.push(0),p.push(i+t),p.push(l+t),p.push(0),p.push(r-t),p.push(l+t),p.push(0),p.push(4),p.push(e[0]),p.push(e[1]),p.push(0),p.push(e[2]),p.push(e[1]),p.push(0),p.push(e[2]),p.push(e[3]),p.push(0),p.push(e[0]),p.push(e[3]),p.push(0)}else p.push(1),p.push(1),p.push(4),p.push(e[0]),p.push(e[1]),p.push(0),p.push(e[2]),p.push(e[1]),p.push(0),p.push(e[2]),p.push(e[3]),p.push(0),p.push(e[0]),p.push(e[3]),p.push(0);p.push(3);const f=new Float64Array(p.length);for(let e=0;e<p.length;++e)f[e]=p.at(e);return f}function d(e,t){let s=0;for(const n of t){const t=n.geometry,r=t.rings.length,o=t.rings.some(e=>e.length<3);if(0!==r&&!o){s+=1,s+=1;for(let n=0;n<t.rings.length;++n){const r=t.rings[n];s+=1;for(let o=0;o<r.length;++o){const r=[e[s+0],e[s+1],e[s+2]];s+=3,t.setPoint(n,o,r)}}}}}}}]);
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{makeHandle as t}from"../../../../core/handleUtils.js";import"../../../../core/has.js";import{watch as i,syncAndInitial as s}from"../../../../core/reactiveUtils.js";import{property as o,subclass as a}from"../../../../core/accessorSupport/decorators.js";import n from"../../../../symbols/support/ElevationInfo.js";import{LineOfSightPlacementController as r}from"./LineOfSightPlacementController.js";import{LineOfSightRayIntersector as l}from"./LineOfSightRayIntersector.js";import{LineOfSightReshapeTool3D as h}from"./LineOfSightReshapeTool3D.js";import{ExclusiveOperationManager as c}from"../../../analysis/ExclusiveOperationManager.js";import{ViewEventPriorities as p}from"../../../input/InputManager.js";import{AnalysisToolBase as v}from"../../../interactive/AnalysisToolBase.js";import{deactivevateTool as d}from"../../../interactive/interactiveToolUtils.js";import{sketchKeys as y}from"../../../interactive/keybindings.js";const _={ready:"ready",creating:"creating",created:"created"};let u=class extends v{constructor(e){super(e),this._operationManager=new c,this._syncingActiveTool=!1,this.analysisViewData=null,this.removeIncompleteOnCancel=!1,this._reshapeIntersector=new l({view:e.view}),this._reshapeTool=new h({analysis:e.analysis,analysisViewData:e.analysisViewData,intersector:this._reshapeIntersector,view:e.view}),this._placementController=new r({...e,parent:this,shouldPreventVertexAdd:(e,t)=>this._reshapeTool.hasManipulatorAt(e,t)})}get active(){return this._reshapeTool.active||this._placementController.active}get canRedo(){return this._activeUndoRedoComponent?.canRedo??!1}get canUndo(){return this._activeUndoRedoComponent?.canUndo??!1}get state(){return this._placementController.active?_.creating:null!=this.analysis.observer?.position?_.created:_.ready}get cursor(){return this._placementController.active?"crosshair":null}get updating(){return this._reshapeTool.updating||this._placementController.updating}initialize(){this.addHandles([this.view.on("key-down",e=>this._onKeyDown(e),p.WIDGET),i(()=>({editable:this.editable,interactive:this.analysisViewData.interactive,placementActive:this._placementController.active,valid:this.analysis.valid,visible:this.visible}),()=>this._syncActiveTool(),s),i(()=>this.state===_.created,e=>{e?this.finishToolCreation():this._set("created",!1)},s),i(()=>this.analysisViewData.visible,e=>{this.visible=e},s),i(()=>{const{analysis:e}=this,{observer:t,targets:i}=e;return{observer:t,observerPosition:t?.position,observerElevationInfo:t?.elevationInfo,observerFeature:t?.feature,targets:i.toArray().map(e=>[e,e.position,e.elevationInfo,e.feature])}},()=>this._syncItemsFromAnalysis(),s),i(()=>this.editable,e=>{this.analysisViewData.editable=e},s)])}destroy(){this._operationManager.destroy(),this._reshapeTool.stop(),this._placementController.stop(),this._reshapeTool.destroy(),this._placementController.destroy(),this._reshapeIntersector.destroy()}place(e){return this.analysisViewData.interactive=!0,this._operationManager.start("place",async(o,a)=>{const{elevationInfo:n}=e??{},r=n&&"observer"in n?n.observer:n,l=n&&"targets"in n?n.targets:n;this._placementController.observerPlacementElevationInfo=m(r),this._placementController.targetPlacementElevationInfo=m(l);const h=this.analysis.clone();let c=!1,p=!1;const v=()=>{if(!p){if(p=!0,this.stop(),!this.analysis.valid)return this.analysis.clear(),void o.reject();a.aborted||this.analysis.equals(h)?o.reject():o.resolve({})}};o.handles.push(t(()=>this.stop()),i(()=>this._placementController.active,e=>{e?c=!0:c&&v()},s)),this.continue()},e)}activate(){this.view.focus(),this.analysisViewData.interactive=!0,this._syncActiveTool(),this.analysis.valid||this._placementController.active||this.continue()}deactivate(){this.onDeactivate()}continue(){this.analysisViewData.interactive=!0,this._placementController.continue()}stop(){this._placementController.stop(),this._placementController.observerPlacementElevationInfo=null,this._placementController.targetPlacementElevationInfo=null,this._syncActiveTool()}redo(){this._activeUndoRedoComponent?.redo()}undo(){this._activeUndoRedoComponent?.undo()}get testInfo(){}onEditableChange(){this.analysisViewData.editable=this.editable,this._reshapeTool.setEditableFlag(1,!0),this._reshapeTool.setEditableFlag(0,this.editable),this._syncActiveTool()}_hideReshapeTool(){this._reshapeTool.stop(),this._reshapeTool.visible=!1}_onKeyDown(e){const t=e.key;t===y.undo&&this.canUndo?(e.stopPropagation(),this.undo()):t===y.redo&&this.canRedo?(e.stopPropagation(),this.redo()):t===y.cancel&&!this.active&&this._reshapeTool.hasSelection&&this._reshapeTool.clearSelection()}get _activeUndoRedoComponent(){return this.analysisViewData.interactive?this._placementController.active||!this._canActivateReshapeTool?this._placementController.active?this._placementController:null:this._reshapeTool:null}get _canActivateReshapeTool(){return this.visible&&this.editable&&this.analysis.valid&&null!=this.analysis.observer?.position}_syncActiveTool(){if(!this._syncingActiveTool){this._syncingActiveTool=!0;try{const e=this.analysisViewData.interactive,t=this._canActivateReshapeTool;if(this._placementController.visible=this.visible&&e,this._reshapeTool.isParentToolInteracting=e&&this._placementController.active,!e)return this._placementController.stop(),this._hideReshapeTool(),this.analysisViewData.cursorTarget=null,void d(this.view,this);if(this._placementController.active)return this._reshapeTool.stop(),this._reshapeTool.visible=this.visible,void d(this.view,this);if(!t)return this._hideReshapeTool(),void d(this.view,this);if(this._reshapeTool.visible=!0,this.analysisViewData.cursorTarget=null,!this._reshapeTool.active&&!this._reshapeTool.hasSelection){const e=this.analysis.targets.at(-1);null!=e&&this._reshapeTool.applySelection({type:"target",target:e})}d(this.view,this)}finally{this._syncingActiveTool=!1}}}_syncItemsFromAnalysis(){this._syncActiveTool()}};function m(e){if(null==e)return null;const{featureExpressionInfo:t,mode:i,offset:s,unit:o}=e;return new n({featureExpressionInfo:t,mode:i,offset:s,unit:o})}e([o({constructOnly:!0})],u.prototype,"view",void 0),e([o({constructOnly:!0})],u.prototype,"analysis",void 0),e([o({constructOnly:!0})],u.prototype,"analysisViewData",void 0),e([o()],u.prototype,"active",null),e([o()],u.prototype,"canRedo",null),e([o()],u.prototype,"canUndo",null),e([o()],u.prototype,"state",null),e([o()],u.prototype,"cursor",null),e([o()],u.prototype,"updating",null),e([o()],u.prototype,"removeIncompleteOnCancel",void 0),e([o()],u.prototype,"_canActivateReshapeTool",null),u=e([a("esri.views.3d.analysis.LineOfSight.LineOfSightTool2")],u);export{u as LineOfSightTool2};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{empty as t}from"../../../geometry/support/aaBoundingRect.js";class e{constructor(e="scene"){this.context=e,this.extent=t(),this.spatialReference=null}}export{e as ElevationUpdateEvent};