@arcgis/core 4.34.0-next.28 → 4.34.0-next.29
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.
- package/applications/Components/featureUtils.d.ts +6 -0
- package/applications/Components/featureUtils.js +5 -0
- package/arcade/arcade.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/track.js +5 -0
- package/arcade/treeAnalysis.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/086f3bc5938bf9a37274.js +1 -0
- package/assets/esri/core/workers/chunks/{7e5d3735a9c718591d64.js → 22f38cad0213f2112394.js} +1 -1
- package/assets/esri/core/workers/chunks/{746c78e1c84f9612d69b.js → 2f54776ff86f397adc55.js} +1 -1
- package/assets/esri/core/workers/chunks/{edfd8b482182803b44ca.js → 2fdf457786d2d5d7414f.js} +1 -1
- package/assets/esri/core/workers/chunks/5192f38682f1f9be7da0.js +1 -0
- package/assets/esri/core/workers/chunks/{7ee50f75914d8d650af4.js → 63cb3dcd359e96733b1b.js} +1 -1
- package/assets/esri/core/workers/chunks/{e49a95f2126ef9a994d3.js → 6ccd6171d3c572883034.js} +1 -1
- package/assets/esri/core/workers/chunks/89999baefa341bd3329c.js +1 -0
- package/assets/esri/core/workers/chunks/{629a924e99d5d6eb1998.js → 90a9b618058dc41294de.js} +1 -1
- package/assets/esri/core/workers/chunks/98f6d4ea026ed96fd3f3.js +1 -0
- package/assets/esri/core/workers/chunks/d3b1d1c389d70919fb02.js +1 -0
- package/assets/esri/core/workers/chunks/db81d881805f6f92a2e4.js +1 -0
- package/assets/esri/core/workers/chunks/e89698fc404379627349.js +1 -0
- package/assets/esri/core/workers/chunks/{0254ef9fb7f8ebb25304.js → ecc15622d6c434ea842b.js} +1 -1
- package/assets/esri/core/workers/chunks/{aa781b28dbe457427afc.js → fb71e533995c54cd806f.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/Terrain.glsl.js +11 -11
- package/chunks/UnitFactory.js +1 -1
- package/chunks/arcade.js +1 -1
- package/chunks/bundle.js +1 -1
- package/config.js +1 -1
- package/geometry/operators/gx/operatorGeodeticDistance.js +1 -1
- package/interfaces.d.ts +80 -2
- package/kernel.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/orientedImagery/transformations/worldToImage.js +1 -1
- package/layers/support/ParquetEncodingWkb.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +2 -2
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +5 -0
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +5 -0
- package/views/2d/layers/features/sources/strategies/chunks/FeatureSourceEndChunk.js +5 -0
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSourceChunk.js +5 -0
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/2d/layers/features/support/XZOrder.js +5 -0
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/shaders/{ReadShadowMapConfiguration.js → ReceiveShadowsConfiguration.js} +1 -1
- package/views/draw/support/ConnectedReshapeManager.js +5 -0
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/layerUtils.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/16ff0bf4cb74f478ec1e.js +0 -1
- package/assets/esri/core/workers/chunks/1aff43dad2302677b4f4.js +0 -1
- package/assets/esri/core/workers/chunks/c6be02d2dff6e0734dab.js +0 -1
- package/assets/esri/core/workers/chunks/c8719205518e97131375.js +0 -1
- package/views/2d/layers/features/sources/strategies/ParquetLoadStrategy.js +0 -5
package/chunks/arcade.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{compileScript as e,extend as r,enableAsyncSupport as t}from"../arcade/arcadeCompiler.js";import{
|
|
5
|
+
import{compileScript as e,extend as r,enableAsyncSupport as t}from"../arcade/arcadeCompiler.js";import{toSymbolId as n}from"../arcade/arcadeEnvironment.js";import{ArcadeModuleResolver as s}from"../arcade/ArcadeModuleResolver.js";import{executeScript as a,extend as c}from"../arcade/arcadeRuntime.js";import{ArcadeExecutionError as o}from"../arcade/executionError.js";import{parseScript as u}from"../arcade/parser.js";import{referencesMember as i,referencesFunction as l,findLiteralMemberAccesses as d,findExpectedFieldLiterals as p,findScriptDependencies as f,findModuleImports as m,findFunctionCalls as y}from"../arcade/treeAnalysis.js";import{loadOperators as S}from"../arcade/functions/geomsync.js";import{loadOperators as w}from"../arcade/functions/track.js";import has from"../core/has.js";import{assertIsSome as b}from"../core/maybe.js";const A=new Set(["feature","angle","bearing","centroid","envelopeintersects","extent","geometry","ringisclockwise","trackgeometrywindow"]),h=new Set(["TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackDistanceAt","TrackDistanceWindow","TrackSpeedAt","TrackSpeedWindow"].map(e=>n(e))),k=new Set([...h,"TrackCurrentTime","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackStartTime","TrackWindow"].map(e=>n(e)));let T=!1,j=!1,x=null,g=[],v=!1;function F(r,t){if(!0===t.useAsync||!0===r.isAsync)return M(r,t);if(has("esri-csp-restrictions"))return function(e){return a(r,e)};try{return e(r,t)}catch(n){if("esri.arcade.arcadeuncompilableerror"===n.declaredRootClass)return function(e){return a(r,e)};throw n}}function M(r,t){if(null===x)throw new o(null,"AsyncNotEnabled",null);if(has("esri-csp-restrictions"))return function(e){return x.executeScript(r,e)};try{return e(r,t,!0)}catch(n){if("esri.arcade.arcadeuncompilableerror"===n.declaredRootClass)return function(e){return x.executeScript(r,e)};throw n}}function G(e){c(e),r(e,"sync"),null===x?g.push(e):(r(e,"async"),x.extend(e))}function C(e,r=[]){return u(e,r)}function E(e,r,t=[]){return I(u(e,t),r)}function I(e,r){if(!0===r.useAsync||!0===e.isAsync){if(null===x)throw new o(null,"AsyncNotEnabled",null);return x.executeScript(e,r)}return a(e,r)}function D(e,r){return i(e,r)}function U(e,r){return l(e,r)}function W(e,r=!1){return void 0===r&&(r=!1),d(e).map(({varId:e,memberId:r})=>`${e}.${r}`)}function _(e){return p(e)}function R(e,r=[]){return void 0===e.usesGeometry&&f(e,r),!0===e.usesGeometry}let O=null;function P(){return O||(O=z(),O)}async function z(){return await S(),j=!0,!0}let L=null;function $(){return null!==L||(L=N()),L}async function N(){await t(),x=await import("../arcade/arcadeAsyncRuntime.js");for(const e of g)x.extend(e),r(e,"async");return g=null,!0}function q(){return T}function B(){return!!x}function V(){return j}let H,J=null;function K(){return J||(J=Q(),J)}async function Q(){await $();const[e,t,n,s,a,c]=await Promise.all([import("../arcade/featureSetUtils.js"),import("../arcade/functions/featuresetbase.js"),import("../arcade/functions/featuresetgeom.js"),import("../arcade/functions/featuresetstats.js"),import("../arcade/functions/featuresetstring.js"),import("../arcade/functions/knowledgegraph.js")]);return oe=e,x.extend([t,n,s,a,c]),r([t,n,s,a,c],"async"),T=!0,!0}function X(){return H??=w().then(()=>{v=!0})}function Y(e,r=[]){return void 0===e.usesFeatureSet&&f(e,r),!0===e.usesFeatureSet}function Z(e,r=[]){return void 0===e.isAsync&&f(e,r),!0===e.isAsync}function ee(e,r){if(r){for(const t of r)if(D(e,t))return!0;return!1}return!1}async function re(e,r,t=[],n=!1,s=null){return te(new Set,e,r,t,n,s)}async function te(e,r,t,n=[],s=!1,a=null){const c="string"==typeof r?C(r):r,o=[];return c&&(!1===V()&&(R(c)||s)&&o.push(P()),!1===B()&&(!0===c.isAsync||t)&&o.push($()),!1===q()&&(Y(c)||ee(c,n))&&o.push(K()),v||ie(c)&&o.push(X())),o.length&&await Promise.all(o),await se(e,c,a,t,s),!0}function ne(e,r=[]){return void 0===e.usesModules&&f(e,r),!0===e.usesModules}async function se(e,r,t=null,n=!1,a=!1){const c=m(r);null===t&&c.length>0&&(t=s.getDefault()),r.loadedModules={};for(const s of c){b(t);const c=t.normalizeModuleUri(s.source);if(e.has(c.uri))throw new o(null,"CircularModules",null);e.add(c.uri);const u=await t.fetchModule(c);await te(e,u,n,[],a,t),e.delete(c.uri),u.isAsync&&(r.isAsync=!0),u.usesFeatureSet&&(r.usesFeatureSet=!0),u.usesGeometry&&(r.usesGeometry=!0),r.loadedModules[s.libname]={uri:c.uri,script:u}}}function ae(e){if(R(e))return!0;const r=y(e);let t=!1;for(let n=0;n<r.length;n++)if(A.has(r[n])){t=!0;break}return t}function ce(e,r){const t=null==r?null:new Set(r.map(e=>e.toLowerCase()));return d(e).some(({varId:e,memberId:r})=>"$view"===e&&(null==t||t.has(r)))}let oe=null;function ue(){return oe}function ie(e){return y(e).some(e=>h.has(e))}function le(e){return y(e).some(e=>k.has(e))}const de=Object.freeze(Object.defineProperty({__proto__:null,_loadScriptDependenciesImpl:te,compileScript:F,enableAsyncSupport:$,enableAsyncSupportImpl:N,enableFeatureSetSupport:K,enableFeatureSetSupportImpl:Q,enableGeometrySupport:P,enableGeometrySupportImpl:z,executeScript:I,extend:G,extractExpectedFieldLiterals:_,extractFieldLiterals:W,featureSetUtils:ue,isAsyncEnabled:B,isFeatureSetSupportEnabled:q,isGeometryEnabled:V,loadDependentModules:se,loadScriptDependencies:re,loadTrackGeometryOperators:X,parseAndExecuteScript:E,parseScript:C,referencesFunction:U,referencesMember:D,scriptIsAsync:Z,scriptTouchesGeometry:ae,scriptUsesFeatureSet:Y,scriptUsesGeometryEngine:R,scriptUsesModules:ne,scriptUsesTrack:le,scriptUsesViewProperties:ce},Symbol.toStringTag,{value:"Module"}));export{Z as A,ne as B,se as C,ce as D,te as _,_ as a,P as b,F as c,K as d,I as e,ue as f,ae as g,R as h,de as i,G as j,E as k,re as l,U as m,W as n,z as o,C as p,$ as q,D as r,le as s,N as t,q as u,B as v,V as w,Q as x,X as y,Y as z};
|
package/chunks/bundle.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
|
-
let t;const e=new Array(128).fill(void 0);function _(t){return e[t]}e.push(void 0,null,!0,!1);let n=e.length;function r(t){n===e.length&&e.push(e.length+1);const _=n;return n=e[_],e[_]=t,_}function i(e,_){try{return e.apply(this,_)}catch(n){t.__wbindgen_exn_store(r(n))}}const o="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&o.decode();let s=null;function a(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(t.memory.buffer)),s}function g(t,e){return t>>>=0,o.decode(a().subarray(t,t+e))}let c=0;const d="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},u="function"==typeof d.encodeInto?function(t,e){return d.encodeInto(t,e)}:function(t,e){const _=d.encode(t);return e.set(_),{read:t.length,written:_.length}};function w(t,e,_){if(void 0===_){const _=d.encode(t),n=e(_.length,1)>>>0;return a().subarray(n,n+_.length).set(_),c=_.length,n}let n=t.length,r=e(n,1)>>>0;const i=a();let o=0;for(;o<n;o++){const e=t.charCodeAt(o);if(e>127)break;i[r+o]=e}if(o!==n){0!==o&&(t=t.slice(o)),r=_(r,n,n=o+3*t.length,1)>>>0;const e=a().subarray(r+o,r+n);o+=u(t,e).written,r=_(r,n,o,1)>>>0}return c=o,r}let l=null;function b(){return(null===l||!0===l.buffer.detached||void 0===l.buffer.detached&&l.buffer!==t.memory.buffer)&&(l=new DataView(t.memory.buffer)),l}function p(t){return null==t}function f(t){t<132||(e[t]=n,n=t)}function y(t){const e=_(t);return f(t),e}const h="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{t.__wbindgen_export_4.get(e.dtor)(e.a,e.b)});function m(e,_,n,r){const i={a:e,b:_,cnt:1,dtor:n},o=(...e)=>{i.cnt++;const _=i.a;i.a=0;try{return r(_,i.b,...e)}finally{0===--i.cnt?(t.__wbindgen_export_4.get(i.dtor)(_,i.b),h.unregister(i)):i.a=_}};return o.original=i,h.register(o,i,i),o}function k(t,e){return t>>>=0,a().subarray(t/1,t/1+e)}function I(){t.enableTracing()}let F=null;function v(){return null!==F&&0!==F.byteLength||(F=new Float64Array(t.memory.buffer)),F}function T(t,e){return t>>>=0,v().subarray(t/8,t/8+e)}let x=null;function z(){return null!==x&&0!==x.byteLength||(x=new Uint32Array(t.memory.buffer)),x}function q(t,e){return t>>>=0,z().subarray(t/4,t/4+e)}function R(t,e){t>>>=0;const _=b(),n=[];for(let r=t;r<t+4*e;r+=4)n.push(y(_.getUint32(r,!0)));return n}let O=null;function M(){return null!==O&&0!==O.byteLength||(O=new Uint16Array(t.memory.buffer)),O}function A(t,e){const _=e(2*t.length,2)>>>0;return M().set(t,_/2),c=t.length,_}function j(e,_,n){const i=w(e,t.__wbindgen_malloc,t.__wbindgen_realloc),o=c;return y(t.readMetadata(i,o,r(_),r(n)))}function W(t,e){const _=e(1*t.length,1)>>>0;return a().set(t,_/1),c=t.length,_}function C(e){const _=W(e,t.__wbindgen_malloc),n=c;return y(t.readMetadataFromFile(_,n))}function L(t,e){if(!(t instanceof e))throw new Error(`expected instance of ${e.name}`)}function B(e,_,n,i,o){const s=w(e,t.__wbindgen_malloc,t.__wbindgen_realloc),a=c;L(i,N);var g=i.__destroy_into_raw();let d=0;p(o)||(L(o,J),d=o.__destroy_into_raw());return y(t.readFile(s,a,r(_),r(n),g,d))}function S(e,_){let n=0;p(e)||(L(e,J),n=e.__destroy_into_raw());const r=W(_,t.__wbindgen_malloc),i=c;return y(t.readFileFromBinary(n,r,i))}function U(e,_,n){t._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h94c9328f486d7193(e,_,r(n))}function D(e,_,n,i){t.wasm_bindgen__convert__closures__invoke2_mut__ha20fd0c25f0fd1fd(e,_,r(n),r(i))}const E=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"}),P=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_columndescriptor_free(e>>>0,1));class V{static __wrap(t){t>>>=0;const e=Object.create(V.prototype);return e.__wbg_ptr=t,G.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_columndescriptor_free(e,0)}name(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_name(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}physicalType(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_physicalType(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}logicalType(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_logicalType(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=g(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}encodings(){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_encodings(r,this.__wbg_ptr);var e=b().getInt32(r+0,!0),_=b().getInt32(r+4,!0),n=R(e,_).slice();return t.__wbindgen_free(e,4*_,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}pageEncodings(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_pageEncodings(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=R(e,_).slice(),t.__wbindgen_free(e,4*_,4)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}numValues(){return t.columndescriptor_numValues(this.__wbg_ptr)}compression(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_compression(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}compressedSize(){return t.columndescriptor_compressedSize(this.__wbg_ptr)}uncompressedSize(){return t.columndescriptor_uncompressedSize(this.__wbg_ptr)}nullCount(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_nullCount(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getBigInt64(n+8,!0);return 0===e?void 0:_}finally{t.__wbindgen_add_to_stack_pointer(16)}}distinctCount(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_distinctCount(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getBigInt64(n+8,!0);return 0===e?void 0:_}finally{t.__wbindgen_add_to_stack_pointer(16)}}minValue(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_minValue(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=k(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}maxValue(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.columndescriptor_maxValue(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=k(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_fieldmetadata_free(e>>>0,1));class Y{static __wrap(t){t>>>=0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,X.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_fieldmetadata_free(e,0)}get name(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.fieldmetadata_name(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}get index(){return t.fieldmetadata_index(this.__wbg_ptr)}get type(){const e=t.fieldmetadata_esri_type(this.__wbg_ptr);return P[e]}get physicalType(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.fieldmetadata_physical_type(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=g(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}get logicalType(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.fieldmetadata_logical_type(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=g(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}}const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_filemetadata_free(e>>>0,1));class N{static __wrap(t){t>>>=0;const e=Object.create(N.prototype);return e.__wbg_ptr=t,H.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_filemetadata_free(e,0)}version(){return t.filemetadata_version(this.__wbg_ptr)}numRows(){return t.filemetadata_numRows(this.__wbg_ptr)>>>0}numFields(){return t.filemetadata_numFields(this.__wbg_ptr)>>>0}numColumns(){return t.filemetadata_numColumns(this.__wbg_ptr)>>>0}createdBy(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.filemetadata_createdBy(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=g(e,_).slice(),t.__wbindgen_free(e,1*_,1)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}keyValueMetadata(e){try{const r=t.__wbindgen_add_to_stack_pointer(-16),i=w(e,t.__wbindgen_malloc,t.__wbindgen_realloc),o=c;t.filemetadata_keyValueMetadata(r,this.__wbg_ptr,i,o);var _=b().getInt32(r+0,!0),n=b().getInt32(r+4,!0);let s;return 0!==_&&(s=g(_,n).slice(),t.__wbindgen_free(_,1*n,1)),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}keys(){try{const n=t.__wbindgen_add_to_stack_pointer(-16);t.filemetadata_keys(n,this.__wbg_ptr);var e=b().getInt32(n+0,!0),_=b().getInt32(n+4,!0);let r;return 0!==e&&(r=R(e,_).slice(),t.__wbindgen_free(e,4*_,4)),r}finally{t.__wbindgen_add_to_stack_pointer(16)}}getFieldIndex(e){const _=w(e,t.__wbindgen_malloc,t.__wbindgen_realloc),n=c,r=t.filemetadata_getFieldIndex(this.__wbg_ptr,_,n);return 16777215===r?void 0:r}getFieldByIndex(e){const _=t.filemetadata_getFieldByIndex(this.__wbg_ptr,e);return 0===_?void 0:Y.__wrap(_)}getFields(){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.filemetadata_getFields(r,this.__wbg_ptr);var e=b().getInt32(r+0,!0),_=b().getInt32(r+4,!0),n=R(e,_).slice();return t.__wbindgen_free(e,4*_,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_geometryinfodescriptor_free(e>>>0,1));class J{static __wrap(t){t>>>=0;const e=Object.create(J.prototype);return e.__wbg_ptr=t,$.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_geometryinfodescriptor_free(e,0)}get geometryType(){const e=t.__wbg_get_geometryinfodescriptor_geometryType(this.__wbg_ptr);return 4===e?void 0:e}set geometryType(e){t.__wbg_set_geometryinfodescriptor_geometryType(this.__wbg_ptr,p(e)?4:e)}get wkbIndex(){const e=t.__wbg_get_geometryinfodescriptor_wkbIndex(this.__wbg_ptr);return 16777215===e?void 0:e}set wkbIndex(e){t.__wbg_set_geometryinfodescriptor_wkbIndex(this.__wbg_ptr,p(e)?16777215:e)}get lngIndex(){const e=t.__wbg_get_geometryinfodescriptor_lngIndex(this.__wbg_ptr);return 16777215===e?void 0:e}set lngIndex(e){t.__wbg_set_geometryinfodescriptor_lngIndex(this.__wbg_ptr,p(e)?16777215:e)}get latIndex(){const e=t.__wbg_get_geometryinfodescriptor_latIndex(this.__wbg_ptr);return 16777215===e?void 0:e}set latIndex(e){t.__wbg_set_geometryinfodescriptor_latIndex(this.__wbg_ptr,p(e)?16777215:e)}get xIndex(){const e=t.__wbg_get_geometryinfodescriptor_xIndex(this.__wbg_ptr);return 16777215===e?void 0:e}set xIndex(e){t.__wbg_set_geometryinfodescriptor_xIndex(this.__wbg_ptr,p(e)?16777215:e)}get inWkid(){const e=t.__wbg_get_geometryinfodescriptor_inWkid(this.__wbg_ptr);return 4294967297===e?void 0:e}set inWkid(e){t.__wbg_set_geometryinfodescriptor_inWkid(this.__wbg_ptr,p(e)?4294967297:e>>>0)}get outWkid(){const e=t.__wbg_get_geometryinfodescriptor_outWkid(this.__wbg_ptr);return 4294967297===e?void 0:e}set outWkid(e){t.__wbg_set_geometryinfodescriptor_outWkid(this.__wbg_ptr,p(e)?4294967297:e>>>0)}static new(){const e=t.geometryinfodescriptor_new();return J.__wrap(e)}setMultiscaleInfo(e){L(e,Q);var _=e.__destroy_into_raw();t.geometryinfodescriptor_setMultiscaleInfo(this.__wbg_ptr,_)}}const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_multiscaleinfo_free(e>>>0,1));class Q{static __wrap(t){t>>>=0;const e=Object.create(Q.prototype);return e.__wbg_ptr=t,K.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_multiscaleinfo_free(e,0)}static new(){const e=t.multiscaleinfo_new();return Q.__wrap(e)}push(e,_,n,r,i){t.multiscaleinfo_push(this.__wbg_ptr,e,_,n,r,i)}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_pageencodingdescriptor_free(e>>>0,1));class tt{static __wrap(t){t>>>=0;const e=Object.create(tt.prototype);return e.__wbg_ptr=t,Z.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_pageencodingdescriptor_free(e,0)}pageType(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.pageencodingdescriptor_pageType(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}encoding(){let e,_;try{const i=t.__wbindgen_add_to_stack_pointer(-16);t.pageencodingdescriptor_encoding(i,this.__wbg_ptr);var n=b().getInt32(i+0,!0),r=b().getInt32(i+4,!0);return e=n,_=r,g(n,r)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_free(e,_,1)}}count(){return t.pageencodingdescriptor_count(this.__wbg_ptr)}}const et="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_parquetchunk_free(e>>>0,1));class _t{static __wrap(t){t>>>=0;const e=Object.create(_t.prototype);return e.__wbg_ptr=t,et.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_parquetchunk_free(e,0)}size(){return t.parquetchunk_size(this.__wbg_ptr)>>>0}hasField(e){return 0!==t.parquetchunk_hasField(this.__wbg_ptr,e)}readX(e){return t.parquetchunk_readX(this.__wbg_ptr,e)}readY(e){return t.parquetchunk_readY(this.__wbg_ptr,e)}readCoords(e){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.parquetchunk_readCoords(r,this.__wbg_ptr,e);var _=b().getInt32(r+0,!0),n=b().getInt32(r+4,!0);let i;return 0!==_&&(i=T(_,n).slice(),t.__wbindgen_free(_,8*n,8)),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}readLengths(e){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.parquetchunk_readLengths(r,this.__wbg_ptr,e);var _=b().getInt32(r+0,!0),n=b().getInt32(r+4,!0);let i;return 0!==_&&(i=q(_,n).slice(),t.__wbindgen_free(_,4*n,4)),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}readGeometryTransformed(e,_,n,r,i){const o=t.parquetchunk_readGeometryTransformed(this.__wbg_ptr,e,_,n,r,i);return 0===o?void 0:ot.__wrap(o)}boundsXMin(e){return t.parquetchunk_boundsXMin(this.__wbg_ptr,e)}boundsYMin(e){return t.parquetchunk_boundsYMin(this.__wbg_ptr,e)}boundsXMax(e){return t.parquetchunk_boundsXMax(this.__wbg_ptr,e)}boundsYMax(e){return t.parquetchunk_boundsYMax(this.__wbg_ptr,e)}readAttribute(e,_){return y(t.parquetchunk_readAttribute(this.__wbg_ptr,e,_))}}const nt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_parquetfile_free(e>>>0,1));class rt{static __wrap(t){t>>>=0;const e=Object.create(rt.prototype);return e.__wbg_ptr=t,nt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_parquetfile_free(e,0)}metadata(){const e=t.parquetfile_metadata(this.__wbg_ptr);return N.__wrap(e)}rowGroups(){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.parquetfile_rowGroups(r,this.__wbg_ptr);var e=b().getInt32(r+0,!0),_=b().getInt32(r+4,!0),n=R(e,_).slice();return t.__wbindgen_free(e,4*_,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}readChunksWithCallback(e,_){const n=A(e,t.__wbindgen_malloc),i=c;return y(t.parquetfile_readChunksWithCallback(this.__wbg_ptr,n,i,r(_)))}readFirstChunk(e){const _=A(e,t.__wbindgen_malloc),n=c;return y(t.parquetfile_readFirstChunk(this.__wbg_ptr,_,n))}readAllChunks(e){const _=A(e,t.__wbindgen_malloc),n=c;return y(t.parquetfile_readAllChunks(this.__wbg_ptr,_,n))}updateChunks(e){const _=A(e,t.__wbindgen_malloc),n=c;return y(t.parquetfile_updateChunks(this.__wbg_ptr,_,n))}}const it="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_quantizedgeometry_free(e>>>0,1));class ot{static __wrap(t){t>>>=0;const e=Object.create(ot.prototype);return e.__wbg_ptr=t,it.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,it.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_quantizedgeometry_free(e,0)}readCoordsUnsafe(){return y(t.quantizedgeometry_readCoordsUnsafe(this.__wbg_ptr))}readLengthsUnsafe(){return y(t.quantizedgeometry_readLengthsUnsafe(this.__wbg_ptr))}}const st="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_rangeproviderjs_free(e>>>0,1));class at{static __wrap(t){t>>>=0;const e=Object.create(at.prototype);return e.__wbg_ptr=t,st.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,st.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_rangeproviderjs_free(e,0)}static new(e,_){const n=t.rangeproviderjs_new(r(e),r(_));return at.__wrap(n)}static withFetch(){const e=t.rangeproviderjs_withFetch();return at.__wrap(e)}}const gt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_rowgroup_free(e>>>0,1));class ct{static __wrap(t){t>>>=0;const e=Object.create(ct.prototype);return e.__wbg_ptr=t,gt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),t}free(){const e=this.__destroy_into_raw();t.__wbg_rowgroup_free(e,0)}columns(){try{const r=t.__wbindgen_add_to_stack_pointer(-16);t.rowgroup_columns(r,this.__wbg_ptr);var e=b().getInt32(r+0,!0),_=b().getInt32(r+4,!0),n=R(e,_).slice();return t.__wbindgen_free(e,4*_,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}}async function dt(t,e){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,e)}catch(_){if("application/wasm"==t.headers.get("Content-Type"))throw _;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_)}const n=await t.arrayBuffer();return await WebAssembly.instantiate(n,e)}{const _=await WebAssembly.instantiate(t,e);return _ instanceof WebAssembly.Instance?{instance:_,module:t}:_}}function ut(){const e={wbg:{}};return e.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return r(_(t).buffer)},e.wbg.__wbg_call_672a4d21634d4a24=function(){return i(function(t,e){return r(_(t).call(_(e)))},arguments)},e.wbg.__wbg_call_7cccdd69e0791ae2=function(){return i(function(t,e,n){return r(_(t).call(_(e),_(n)))},arguments)},e.wbg.__wbg_call_b8adc8b1d0a0d8eb=function(){return i(function(t,e,n,i,o){return r(_(t).call(_(e),_(n),_(i),_(o)))},arguments)},e.wbg.__wbg_columndescriptor_new=function(t){return r(V.__wrap(t))},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,_){let n,r;try{n=e,r=_,console.error(g(e,_))}finally{t.__wbindgen_free(n,r,1)}},e.wbg.__wbg_fieldmetadata_new=function(t){return r(Y.__wrap(t))},e.wbg.__wbg_filemetadata_new=function(t){return r(N.__wrap(t))},e.wbg.__wbg_length_a446193dc22c12f8=function(t){return _(t).length},e.wbg.__wbg_new_23a2665fac83c611=function(t,e){try{var _={a:t,b:e},n=(t,e)=>{const n=_.a;_.a=0;try{return D(n,_.b,t,e)}finally{_.a=n}};return r(new Promise(n))}finally{_.a=_.b=0}},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return r(new Error)},e.wbg.__wbg_new_a12002a7f91c75be=function(t){return r(new Uint8Array(_(t)))},e.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,e){return r(new Function(g(t,e)))},e.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212=function(t,e,n){return r(new Uint32Array(_(t),e>>>0,n>>>0))},e.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff=function(t,e,n){return r(new Int16Array(_(t),e>>>0,n>>>0))},e.wbg.__wbg_pageencodingdescriptor_new=function(t){return r(tt.__wrap(t))},e.wbg.__wbg_parquetchunk_new=function(t){return r(_t.__wrap(t))},e.wbg.__wbg_parquetfile_new=function(t){return r(rt.__wrap(t))},e.wbg.__wbg_queueMicrotask_98e746b9f850fe3d=function(t){queueMicrotask(_(t))},e.wbg.__wbg_queueMicrotask_c847cc8372bec908=function(t){return r(_(t).queueMicrotask)},e.wbg.__wbg_resolve_4851785c9c5f573d=function(t){return r(Promise.resolve(_(t)))},e.wbg.__wbg_rowgroup_new=function(t){return r(ct.__wrap(t))},e.wbg.__wbg_set_65595bdd868b3009=function(t,e,n){_(t).set(_(e),n>>>0)},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const r=w(_(n).stack,t.__wbindgen_malloc,t.__wbindgen_realloc),i=c;b().setInt32(e+4,i,!0),b().setInt32(e+0,r,!0)},e.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t="undefined"==typeof global?null:global;return p(t)?0:r(t)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t="undefined"==typeof globalThis?null:globalThis;return p(t)?0:r(t)},e.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t="undefined"==typeof self?null:self;return p(t)?0:r(t)},e.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t="undefined"==typeof window?null:window;return p(t)?0:r(t)},e.wbg.__wbg_then_44b73946d2fb3e7d=function(t,e){return r(_(t).then(_(e)))},e.wbg.__wbg_then_48b406749878a531=function(t,e,n){return r(_(t).then(_(e),_(n)))},e.wbg.__wbg_valueOf_fdbb54fcdfe33477=function(t){return _(t).valueOf()},e.wbg.__wbindgen_array_new=function(){return r([])},e.wbg.__wbindgen_array_push=function(t,e){_(t).push(y(e))},e.wbg.__wbindgen_cb_drop=function(t){const e=y(t).original;if(1==e.cnt--)return e.a=0,!0;return!1},e.wbg.__wbindgen_closure_wrapper1479=function(t,e,_){return r(m(t,e,79,U))},e.wbg.__wbindgen_is_function=function(t){return"function"==typeof _(t)},e.wbg.__wbindgen_is_undefined=function(t){return void 0===_(t)},e.wbg.__wbindgen_memory=function(){return r(t.memory)},e.wbg.__wbindgen_number_new=function(t){return r(t)},e.wbg.__wbindgen_object_clone_ref=function(t){return r(_(t))},e.wbg.__wbindgen_object_drop_ref=function(t){y(t)},e.wbg.__wbindgen_string_new=function(t,e){return r(g(t,e))},e.wbg.__wbindgen_throw=function(t,e){throw new Error(g(t,e))},e.wbg.__wbindgen_uint8_array_new=function(e,_){var n=k(e,_).slice();t.__wbindgen_free(e,1*_,1);return r(n)},e}function wt(e,_){return t=e.exports,bt.__wbindgen_wasm_module=_,l=null,F=null,O=null,x=null,s=null,t.__wbindgen_start(),t}function lt(e){if(void 0!==t)return t;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const _=ut();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return wt(new WebAssembly.Instance(e,_),e)}async function bt(e){if(void 0!==t)return t;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const _=ut();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await dt(await e,_);return wt(n,r)}export{V as ColumnDescriptor,Y as FieldMetadata,N as FileMetadata,J as GeometryInfoDescriptor,E as GeometryType,Q as MultiScaleInfo,tt as PageEncodingDescriptor,_t as ParquetChunk,rt as ParquetFile,ot as QuantizedGeometry,at as RangeProviderJs,ct as RowGroup,bt as default,I as enableTracing,lt as initSync,B as readFile,S as readFileFromBinary,j as readMetadata,C as readMetadataFromFile};
|
|
5
|
+
let e;function t(t){const r=e.__externref_table_alloc();return e.__wbindgen_export_2.set(r,t),r}function r(r,n){try{return r.apply(this,n)}catch(_){const r=t(_);e.__wbindgen_exn_store(r)}}Symbol.dispose||(Symbol.dispose=Symbol("Symbol.dispose"));const n="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&n.decode();let _=null;function i(){return null!==_&&0!==_.byteLength||(_=new Uint8Array(e.memory.buffer)),_}function o(e,t){return e>>>=0,n.decode(i().subarray(e,e+t))}let s=0;const a="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},c="function"==typeof a.encodeInto?function(e,t){return a.encodeInto(e,t)}:function(e,t){const r=a.encode(e);return t.set(r),{read:e.length,written:r.length}};function u(e,t,r){if(void 0===r){const r=a.encode(e),n=t(r.length,1)>>>0;return i().subarray(n,n+r.length).set(r),s=r.length,n}let n=e.length,_=t(n,1)>>>0;const o=i();let u=0;for(;u<n;u++){const t=e.charCodeAt(u);if(t>127)break;o[_+u]=t}if(u!==n){0!==u&&(e=e.slice(u)),_=r(_,n,n=u+3*e.length,1)>>>0;const t=i().subarray(_+u,_+n);u+=c(e,t).written,_=r(_,n,u,1)>>>0}return s=u,_}let g=null;function l(){return(null===g||!0===g.buffer.detached||void 0===g.buffer.detached&&g.buffer!==e.memory.buffer)&&(g=new DataView(e.memory.buffer)),g}function w(e){return null==e}const b="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{e.__wbindgen_export_6.get(t.dtor)(t.a,t.b)});function d(t,r,n,_){const i={a:t,b:r,cnt:1,dtor:n},o=(...t)=>{i.cnt++;const r=i.a;i.a=0;try{return _(r,i.b,...t)}finally{0===--i.cnt?(e.__wbindgen_export_6.get(i.dtor)(r,i.b),b.unregister(i)):i.a=r}};return o.original=i,b.register(o,i,i),o}function f(e,t){return e>>>=0,i().subarray(e/1,e/1+t)}function p(){e.enableTracing()}let y=null;function h(){return null!==y&&0!==y.byteLength||(y=new Float64Array(e.memory.buffer)),y}function m(e,t){return e>>>=0,h().subarray(e/8,e/8+t)}let F=null;function q(){return null!==F&&0!==F.byteLength||(F=new Uint32Array(e.memory.buffer)),F}function v(e,t){return e>>>=0,q().subarray(e/4,e/4+t)}function T(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function k(t,r){t>>>=0;const n=l(),_=[];for(let i=t;i<t+4*r;i+=4)_.push(e.__wbindgen_export_2.get(n.getUint32(i,!0)));return e.__externref_drop_slice(t,r),_}function z(e,t){const r=t(8*e.length,8)>>>0;return h().set(e,r/8),s=e.length,r}function R(e,r){const n=r(4*e.length,4)>>>0;for(let _=0;_<e.length;_++){const r=t(e[_]);l().setUint32(n+4*_,r,!0)}return s=e.length,n}function O(e,t){const r=t(1*e.length,1)>>>0;return i().set(e,r/1),s=e.length,r}let S=null;function x(){return null!==S&&0!==S.byteLength||(S=new Uint16Array(e.memory.buffer)),S}function A(e,t){const r=t(2*e.length,2)>>>0;return x().set(e,r/2),s=e.length,r}function M(t,r,n){e.closure83_externref_shim(t,r,n)}function j(t,r,n,_){e.closure9_externref_shim(t,r,n,_)}const I=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"}),C=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_columndescriptor_free(t>>>0,1));class U{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_columndescriptor_free(t,0)}[Symbol.dispose](){this.free()}name(){let t,r;try{const n=e.columndescriptor_name(this.__wbg_ptr);return t=n[0],r=n[1],o(n[0],n[1])}finally{e.__wbindgen_free(t,r,1)}}physicalType(){let t,r;try{const n=e.columndescriptor_physicalType(this.__wbg_ptr);return t=n[0],r=n[1],o(n[0],n[1])}finally{e.__wbindgen_free(t,r,1)}}logicalType(){const t=e.columndescriptor_logicalType(this.__wbg_ptr);let r;return 0!==t[0]&&(r=o(t[0],t[1]).slice(),e.__wbindgen_free(t[0],1*t[1],1)),r}encodings(){const t=e.columndescriptor_encodings(this.__wbg_ptr);var r=k(t[0],t[1]).slice();return e.__wbindgen_free(t[0],4*t[1],4),r}pageEncodings(){const t=e.columndescriptor_pageEncodings(this.__wbg_ptr);let r;return 0!==t[0]&&(r=k(t[0],t[1]).slice(),e.__wbindgen_free(t[0],4*t[1],4)),r}numValues(){return e.columndescriptor_numValues(this.__wbg_ptr)}compression(){let t,r;try{const n=e.columndescriptor_compression(this.__wbg_ptr);return t=n[0],r=n[1],o(n[0],n[1])}finally{e.__wbindgen_free(t,r,1)}}compressedSize(){return e.columndescriptor_compressedSize(this.__wbg_ptr)}uncompressedSize(){return e.columndescriptor_uncompressedSize(this.__wbg_ptr)}nullCount(){const t=e.columndescriptor_nullCount(this.__wbg_ptr);return 0===t[0]?void 0:t[1]}distinctCount(){const t=e.columndescriptor_distinctCount(this.__wbg_ptr);return 0===t[0]?void 0:t[1]}minValue(){return e.columndescriptor_minValue(this.__wbg_ptr)}maxValue(){return e.columndescriptor_maxValue(this.__wbg_ptr)}}const W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_fieldmetadata_free(t>>>0,1));class E{static __wrap(e){e>>>=0;const t=Object.create(E.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_fieldmetadata_free(t,0)}[Symbol.dispose](){this.free()}get id(){return e.__wbg_get_fieldmetadata_id(this.__wbg_ptr)}set id(t){e.__wbg_set_fieldmetadata_id(this.__wbg_ptr,t)}get name(){let t,r;try{const n=e.fieldmetadata_name(this.__wbg_ptr);return t=n[0],r=n[1],o(n[0],n[1])}finally{e.__wbindgen_free(t,r,1)}}get type(){const t=e.fieldmetadata_esri_type(this.__wbg_ptr);return C[t]}get physicalType(){const t=e.fieldmetadata_physical_type(this.__wbg_ptr);let r;return 0!==t[0]&&(r=o(t[0],t[1]).slice(),e.__wbindgen_free(t[0],1*t[1],1)),r}get logicalType(){const t=e.fieldmetadata_logical_type(this.__wbg_ptr);let r;return 0!==t[0]&&(r=o(t[0],t[1]).slice(),e.__wbindgen_free(t[0],1*t[1],1)),r}}const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_geometryinfo_free(t>>>0,1));class B{static __wrap(e){e>>>=0;const t=Object.create(B.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_geometryinfo_free(t,0)}[Symbol.dispose](){this.free()}static new(t,r,n,_,i){T(_,J);var o=_.__destroy_into_raw();const a=R(i,e.__wbindgen_malloc),c=s,u=e.geometryinfo_new(t,r,n,o,a,c);return B.__wrap(u)}}const P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_multiscalegeometryfield_free(t>>>0,1));class G{static __wrap(e){e>>>=0;const t=Object.create(G.prototype);return t.__wbg_ptr=e,P.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof G?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_multiscalegeometryfield_free(t,0)}[Symbol.dispose](){this.free()}get level(){return e.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}set level(t){e.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,t)}static new(t,r,n,_){const i=u(r,e.__wbindgen_malloc,e.__wbindgen_realloc),o=s,a=z(n,e.__wbindgen_malloc),c=s,g=z(_,e.__wbindgen_malloc),l=s,w=e.multiscalegeometryfield_new(t,i,o,a,c,g,l);return G.__wrap(w)}has_field(t){const r=u(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=s;return 0!==e.multiscalegeometryfield_has_field(this.__wbg_ptr,r,n)}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_pageencodingdescriptor_free(t>>>0,1));class X{static __wrap(e){e>>>=0;const t=Object.create(X.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_pageencodingdescriptor_free(t,0)}[Symbol.dispose](){this.free()}pageType(){let t,r;try{const n=e.pageencodingdescriptor_pageType(this.__wbg_ptr);return t=n[0],r=n[1],o(n[0],n[1])}finally{e.__wbindgen_free(t,r,1)}}encoding(){let t,r;try{const n=e.pageencodingdescriptor_encoding(this.__wbg_ptr);return t=n[0],r=n[1],o(n[0],n[1])}finally{e.__wbindgen_free(t,r,1)}}count(){return e.pageencodingdescriptor_count(this.__wbg_ptr)}}const Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_parquetchunk_free(t>>>0,1));class Z{static __wrap(e){e>>>=0;const t=Object.create(Z.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_parquetchunk_free(t,0)}[Symbol.dispose](){this.free()}size(){return e.parquetchunk_size(this.__wbg_ptr)>>>0}isEmpty(t){return 0!==e.parquetchunk_isEmpty(this.__wbg_ptr,t)}rowId(t){return e.parquetchunk_rowId(this.__wbg_ptr,t)}readX(t){const r=e.parquetchunk_readX(this.__wbg_ptr,t);return 0===r[0]?void 0:r[1]}readY(t){const r=e.parquetchunk_readY(this.__wbg_ptr,t);return 0===r[0]?void 0:r[1]}readCoords(t){const r=e.parquetchunk_readCoords(this.__wbg_ptr,t);let n;return 0!==r[0]&&(n=m(r[0],r[1]).slice(),e.__wbindgen_free(r[0],8*r[1],8)),n}readLengths(t){const r=e.parquetchunk_readLengths(this.__wbg_ptr,t);let n;return 0!==r[0]&&(n=v(r[0],r[1]).slice(),e.__wbindgen_free(r[0],4*r[1],4)),n}transformGeometry(t,r,n,_,i,o){T(t,Q);const s=e.parquetchunk_transformGeometry(this.__wbg_ptr,t.__wbg_ptr,r,n,_,i,o);return 16777215===s?void 0:0!==s}boundsXMin(t){const r=e.parquetchunk_boundsXMin(this.__wbg_ptr,t);return 0===r[0]?void 0:r[1]}boundsYMin(t){const r=e.parquetchunk_boundsYMin(this.__wbg_ptr,t);return 0===r[0]?void 0:r[1]}boundsXMax(t){const r=e.parquetchunk_boundsXMax(this.__wbg_ptr,t);return 0===r[0]?void 0:r[1]}boundsYMax(t){const r=e.parquetchunk_boundsYMax(this.__wbg_ptr,t);return 0===r[0]?void 0:r[1]}readAttribute(t,r){return e.parquetchunk_readAttribute(this.__wbg_ptr,t,r)}}const N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_parquetfile_free(t>>>0,1));class H{static __wrap(e){e>>>=0;const t=Object.create(H.prototype);return t.__wbg_ptr=e,N.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_parquetfile_free(t,0)}[Symbol.dispose](){this.free()}static fromUrl(t,r,n,_){const i=u(t,e.__wbindgen_malloc,e.__wbindgen_realloc),o=s;let a=0;w(_)||(T(_,B),a=_.__destroy_into_raw());return e.parquetfile_fromUrl(i,o,r,n,a)}static fromBinary(t,r){const n=O(t,e.__wbindgen_malloc),_=s;let i=0;w(r)||(T(r,B),i=r.__destroy_into_raw());return e.parquetfile_fromBinary(n,_,i)}version(){return e.parquetfile_version(this.__wbg_ptr)}numRows(){return e.parquetfile_numRows(this.__wbg_ptr)>>>0}numFields(){return e.parquetfile_numFields(this.__wbg_ptr)>>>0}numColumns(){return e.parquetfile_numColumns(this.__wbg_ptr)>>>0}createdBy(){const t=e.parquetfile_createdBy(this.__wbg_ptr);let r;return 0!==t[0]&&(r=o(t[0],t[1]).slice(),e.__wbindgen_free(t[0],1*t[1],1)),r}keyValueMetadata(t){const r=u(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=s,_=e.parquetfile_keyValueMetadata(this.__wbg_ptr,r,n);let i;return 0!==_[0]&&(i=o(_[0],_[1]).slice(),e.__wbindgen_free(_[0],1*_[1],1)),i}keys(){const t=e.parquetfile_keys(this.__wbg_ptr);let r;return 0!==t[0]&&(r=k(t[0],t[1]).slice(),e.__wbindgen_free(t[0],4*t[1],4)),r}attributeIdFor(t){const r=u(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=s;return e.parquetfile_attributeIdFor(this.__wbg_ptr,r,n)}fields(){const t=e.parquetfile_fields(this.__wbg_ptr);var r=k(t[0],t[1]).slice();return e.__wbindgen_free(t[0],4*t[1],4),r}rowGroups(){const t=e.parquetfile_rowGroups(this.__wbg_ptr);var r=k(t[0],t[1]).slice();return e.__wbindgen_free(t[0],4*t[1],4),r}ensureFields(t){const r=A(t,e.__wbindgen_malloc),n=s;return e.parquetfile_ensureFields(this.__wbg_ptr,r,n)}readFirstChunk(t){const r=A(t,e.__wbindgen_malloc),n=s;return e.parquetfile_readFirstChunk(this.__wbg_ptr,r,n)}readAllChunks(t,r,n){const _=A(t,e.__wbindgen_malloc),i=s;return e.parquetfile_readAllChunks(this.__wbg_ptr,_,i,r,n)}queryZChunks(t,r,n,_){const i=A(r,e.__wbindgen_malloc),o=s;return e.parquetfile_queryZChunks(this.__wbg_ptr,t,i,o,n,_)}queryXZChunks(t,r,n){return e.parquetfile_queryXZChunks(this.__wbg_ptr,t,r,n)}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_primarygeometryfield_free(t>>>0,1));class J{static __wrap(e){e>>>=0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,$.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_primarygeometryfield_free(t,0)}[Symbol.dispose](){this.free()}static fromNative(t){const r=u(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=s,_=e.primarygeometryfield_fromNative(r,n);return J.__wrap(_)}static fromWkb(t){const r=u(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=s,_=e.primarygeometryfield_fromWkb(r,n);return J.__wrap(_)}static fromLocation(t,r){const n=u(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=s,i=u(r,e.__wbindgen_malloc,e.__wbindgen_realloc),o=s,a=e.primarygeometryfield_fromLocation(n,_,i,o);return J.__wrap(a)}}const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_quantizedgeometrybuffer_free(t>>>0,1));class Q{static __wrap(e){e>>>=0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,K.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_quantizedgeometrybuffer_free(t,0)}[Symbol.dispose](){this.free()}static new(){const t=e.quantizedgeometrybuffer_new();return Q.__wrap(t)}readCoordsUnsafe(){return e.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return e.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}const ee="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_rangeproviderjs_free(t>>>0,1));class te{static __wrap(e){e>>>=0;const t=Object.create(te.prototype);return t.__wbg_ptr=e,ee.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_rangeproviderjs_free(t,0)}[Symbol.dispose](){this.free()}static new(t,r){const n=e.rangeproviderjs_new(t,r);return te.__wrap(n)}static withFetch(){const t=e.rangeproviderjs_withFetch();return te.__wrap(t)}}const re="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_rowgroup_free(t>>>0,1));class ne{static __wrap(e){e>>>=0;const t=Object.create(ne.prototype);return t.__wbg_ptr=e,re.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,re.unregister(this),e}free(){const t=this.__destroy_into_raw();e.__wbg_rowgroup_free(t,0)}[Symbol.dispose](){this.free()}}async function _e(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if("application/wasm"==e.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}function ie(){const n={wbg:{}};return n.wbg.__wbg_aborted_c078e36031795a9a=function(e){return e.aborted},n.wbg.__wbg_apply_36be6a55257c99bf=function(){return r(function(e,t,r){return e.apply(t,r)},arguments)},n.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},n.wbg.__wbg_call_672a4d21634d4a24=function(){return r(function(e,t){return e.call(t)},arguments)},n.wbg.__wbg_call_7cccdd69e0791ae2=function(){return r(function(e,t,r){return e.call(t,r)},arguments)},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,r){let n,_;try{n=t,_=r,console.error(o(t,r))}finally{e.__wbindgen_free(n,_,1)}},n.wbg.__wbg_fieldmetadata_new=function(e){return E.__wrap(e)},n.wbg.__wbg_get_67b2ba62fc30de12=function(){return r(function(e,t){return Reflect.get(e,t)},arguments)},n.wbg.__wbg_length_8cfd2c6409af88ad=function(e){return e.length},n.wbg.__wbg_length_a446193dc22c12f8=function(e){return e.length},n.wbg.__wbg_multiscalegeometryfield_unwrap=function(e){return G.__unwrap(e)},n.wbg.__wbg_new_23a2665fac83c611=function(e,t){try{var r={a:e,b:t},n=(e,t)=>{const n=r.a;r.a=0;try{return j(n,r.b,e,t)}finally{r.a=n}};return new Promise(n)}finally{r.a=r.b=0}},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},n.wbg.__wbg_new_9fee97a409b32b68=function(e){return new Uint16Array(e)},n.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},n.wbg.__wbg_newnoargs_105ed471475aaf50=function(e,t){return new Function(o(e,t))},n.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212=function(e,t,r){return new Uint32Array(e,t>>>0,r>>>0)},n.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff=function(e,t,r){return new Int16Array(e,t>>>0,r>>>0)},n.wbg.__wbg_newwithlength_c4c419ef0bc8a1f8=function(e){return new Array(e>>>0)},n.wbg.__wbg_pageencodingdescriptor_new=function(e){return X.__wrap(e)},n.wbg.__wbg_parquetchunk_new=function(e){return Z.__wrap(e)},n.wbg.__wbg_parquetfile_new=function(e){return H.__wrap(e)},n.wbg.__wbg_queueMicrotask_98e746b9f850fe3d=function(e){queueMicrotask(e)},n.wbg.__wbg_queueMicrotask_c847cc8372bec908=function(e){return e.queueMicrotask},n.wbg.__wbg_resolve_4851785c9c5f573d=function(e){return Promise.resolve(e)},n.wbg.__wbg_rowgroup_new=function(e){return ne.__wrap(e)},n.wbg.__wbg_set_37837023f3d740e8=function(e,t,r){e[t>>>0]=r},n.wbg.__wbg_set_65595bdd868b3009=function(e,t,r){e.set(t,r>>>0)},n.wbg.__wbg_set_f4f1f0daa30696fc=function(e,t,r){e.set(t,r>>>0)},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,r){const n=u(r.stack,e.__wbindgen_malloc,e.__wbindgen_realloc),_=s;l().setInt32(t+4,_,!0),l().setInt32(t+0,n,!0)},n.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const e="undefined"==typeof global?null:global;return w(e)?0:t(e)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const e="undefined"==typeof globalThis?null:globalThis;return w(e)?0:t(e)},n.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const e="undefined"==typeof self?null:self;return w(e)?0:t(e)},n.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const e="undefined"==typeof window?null:window;return w(e)?0:t(e)},n.wbg.__wbg_then_44b73946d2fb3e7d=function(e,t){return e.then(t)},n.wbg.__wbg_then_48b406749878a531=function(e,t,r){return e.then(t,r)},n.wbg.__wbg_valueOf_fdbb54fcdfe33477=function(e){return e.valueOf()},n.wbg.__wbindgen_bigint_from_i64=function(e){return e},n.wbg.__wbindgen_cb_drop=function(e){const t=e.original;if(1==t.cnt--)return t.a=0,!0;return!1},n.wbg.__wbindgen_closure_wrapper1681=function(e,t,r){return d(e,t,84,M)},n.wbg.__wbindgen_init_externref_table=function(){const t=e.__wbindgen_export_2,r=t.grow(4);t.set(0,void 0),t.set(r+0,void 0),t.set(r+1,null),t.set(r+2,!0),t.set(r+3,!1)},n.wbg.__wbindgen_is_function=function(e){return"function"==typeof e},n.wbg.__wbindgen_is_undefined=function(e){return void 0===e},n.wbg.__wbindgen_memory=function(){return e.memory},n.wbg.__wbindgen_number_get=function(e,t){const r="number"==typeof t?t:void 0;l().setFloat64(e+8,w(r)?0:r,!0),l().setInt32(e+0,!w(r),!0)},n.wbg.__wbindgen_number_new=function(e){return e},n.wbg.__wbindgen_string_new=function(e,t){return o(e,t)},n.wbg.__wbindgen_throw=function(e,t){throw new Error(o(e,t))},n.wbg.__wbindgen_uint8_array_new=function(t,r){var n=f(t,r).slice();e.__wbindgen_free(t,1*r,1);return n},n}function oe(t,r){return e=t.exports,ae.__wbindgen_wasm_module=r,g=null,y=null,S=null,F=null,_=null,e.__wbindgen_start(),e}function se(t){if(void 0!==e)return e;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module:t}=t):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const r=ie();t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t));return oe(new WebAssembly.Instance(t,r),t)}async function ae(t){if(void 0!==e)return e;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module_or_path:t}=t):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const r=ie();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:n,module:_}=await _e(await t,r);return oe(n,_)}export{U as ColumnDescriptor,E as FieldMetadata,B as GeometryInfo,I as GeometryType,G as MultiscaleGeometryField,X as PageEncodingDescriptor,Z as ParquetChunk,H as ParquetFile,J as PrimaryGeometryField,Q as QuantizedGeometryBuffer,te as RangeProviderJs,ne as RowGroup,ae as default,p as enableTracing,se as initSync};
|
package/config.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"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.34.0-next.
|
|
5
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.34.0-next.29";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
|
|
@@ -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{l as e,
|
|
5
|
+
import{l as e,p as t,i as n}from"../../../chunks/pe.js";let r;function i(){return!!r&&n()}async function s(){if(!i()){const[n,i]=await Promise.all([import("../../../chunks/OperatorGeodeticDistance.js"),import("../../../chunks/SpatialReference.js").then(({injectPe:e})=>e),e()]);r=new n.OperatorGeodeticDistance,i(t)}}function c(e,t,n,i){return r.execute(e,t,n,i,null)}function o(){return r.supportsCurves()}export{c as execute,i as isLoaded,s as load,o as supportsCurves};
|
package/interfaces.d.ts
CHANGED
|
@@ -1519,6 +1519,50 @@ declare namespace __esri {
|
|
|
1519
1519
|
|
|
1520
1520
|
export const drawUtils: drawUtils;
|
|
1521
1521
|
|
|
1522
|
+
/**
|
|
1523
|
+
* Note: reserved for internal use only, this is not part of the stable public API.
|
|
1524
|
+
*
|
|
1525
|
+
* Feature utils for Components.
|
|
1526
|
+
*/
|
|
1527
|
+
interface featureUtils {
|
|
1528
|
+
/**
|
|
1529
|
+
* Note: reserved for internal use only, this is not part of the stable public API.
|
|
1530
|
+
*
|
|
1531
|
+
* Finds a related layer for a given layer and relationship info.
|
|
1532
|
+
*
|
|
1533
|
+
* @param map The map containing the layers.
|
|
1534
|
+
* @param layer The layer to find relationships for.
|
|
1535
|
+
* @param relationship The relationship info to use for finding related layers.
|
|
1536
|
+
*/
|
|
1537
|
+
findRelatedLayer(map: Map | WebMap, layer: any, relationship: Relationship): any | nullish;
|
|
1538
|
+
/**
|
|
1539
|
+
* Note: reserved for internal use only, this is not part of the stable public API.
|
|
1540
|
+
*
|
|
1541
|
+
* Determines if a layer is a feature-supported layer.
|
|
1542
|
+
*
|
|
1543
|
+
* @param layer A layer to check.
|
|
1544
|
+
*/
|
|
1545
|
+
isFeatureSupportedLayer(layer: any): boolean;
|
|
1546
|
+
/**
|
|
1547
|
+
* Note: reserved for internal use only, this is not part of the stable public API.
|
|
1548
|
+
*
|
|
1549
|
+
* Determines if a layer is both relatable and feature-supported.
|
|
1550
|
+
*
|
|
1551
|
+
* @param layer A layer to check.
|
|
1552
|
+
*/
|
|
1553
|
+
isRelatableFeatureSupportedLayer(layer: any): boolean;
|
|
1554
|
+
/**
|
|
1555
|
+
* Note: reserved for internal use only, this is not part of the stable public API.
|
|
1556
|
+
*
|
|
1557
|
+
* Determines if a layer supports relationships.
|
|
1558
|
+
*
|
|
1559
|
+
* @param layer A layer to check.
|
|
1560
|
+
*/
|
|
1561
|
+
isRelatableLayer(layer: any): boolean;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
export const featureUtils: featureUtils;
|
|
1565
|
+
|
|
1522
1566
|
/**
|
|
1523
1567
|
* Note: reserved for internal use only, this is not part of the stable public API.
|
|
1524
1568
|
*
|
|
@@ -64837,7 +64881,7 @@ declare namespace __esri {
|
|
|
64837
64881
|
|
|
64838
64882
|
export interface knowledgeGraphServiceExecuteUpdateSearchIndexSearchProperties {
|
|
64839
64883
|
addSearchProperties: SearchIndexSearchProperties;
|
|
64840
|
-
|
|
64884
|
+
removeSearchProperties: SearchIndexSearchProperties;
|
|
64841
64885
|
}
|
|
64842
64886
|
|
|
64843
64887
|
export interface knowledgeGraphServiceFetchClientDataAtKeysOptions {
|
|
@@ -115255,6 +115299,12 @@ declare namespace __esri {
|
|
|
115255
115299
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#map Read more...}
|
|
115256
115300
|
*/
|
|
115257
115301
|
map: Map | nullish;
|
|
115302
|
+
/**
|
|
115303
|
+
* A read-only map containing information about related features for the current feature.
|
|
115304
|
+
*
|
|
115305
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#relatedInfos Read more...}
|
|
115306
|
+
*/
|
|
115307
|
+
readonly relatedInfos: globalThis.Map<string, RelatedInfo>;
|
|
115258
115308
|
/**
|
|
115259
115309
|
* The view model's state.
|
|
115260
115310
|
*
|
|
@@ -115426,7 +115476,7 @@ declare namespace __esri {
|
|
|
115426
115476
|
|
|
115427
115477
|
export interface FeatureViewModelFormattedAttributes {
|
|
115428
115478
|
global?: any;
|
|
115429
|
-
content?: any;
|
|
115479
|
+
content?: any[];
|
|
115430
115480
|
}
|
|
115431
115481
|
|
|
115432
115482
|
export interface FeatureViewModelLastEditInfo {
|
|
@@ -115435,6 +115485,34 @@ declare namespace __esri {
|
|
|
115435
115485
|
type: "edit" | "create";
|
|
115436
115486
|
}
|
|
115437
115487
|
|
|
115488
|
+
/**
|
|
115489
|
+
* Information about the layer associated with the feature.
|
|
115490
|
+
*
|
|
115491
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#LayerInfo Read more...}
|
|
115492
|
+
*/
|
|
115493
|
+
export interface FeatureViewModelLayerInfo {
|
|
115494
|
+
fields: Field[];
|
|
115495
|
+
relationships: Relationship[];
|
|
115496
|
+
objectIdField: string;
|
|
115497
|
+
supportsStatistics: boolean;
|
|
115498
|
+
}
|
|
115499
|
+
|
|
115500
|
+
/**
|
|
115501
|
+
* Information about the features that are related to the current feature.
|
|
115502
|
+
*
|
|
115503
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#RelatedInfo Read more...}
|
|
115504
|
+
*/
|
|
115505
|
+
export interface RelatedInfo {
|
|
115506
|
+
url: string;
|
|
115507
|
+
outStatistics?: StatisticDefinition[];
|
|
115508
|
+
relatedFields?: string[];
|
|
115509
|
+
relatedFeatures?: Graphic[];
|
|
115510
|
+
relatedStatsFeatures?: Graphic[];
|
|
115511
|
+
relation?: Relationship;
|
|
115512
|
+
layerInfo?: FeatureViewModelLayerInfo;
|
|
115513
|
+
sourceSpatialReference?: SpatialReference;
|
|
115514
|
+
}
|
|
115515
|
+
|
|
115438
115516
|
export interface VisibleContentElements {
|
|
115439
115517
|
attachments?: boolean;
|
|
115440
115518
|
fields?: boolean;
|
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.
|
|
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.29",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 i from"../core/Error.js";import r from"../core/Logger.js";import{rad2deg as o}from"../core/mathUtils.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as a}from"../core/promiseUtils.js";import{on as n,sync as l}from"../core/reactiveUtils.js";import{property as m}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 c}from"../core/accessorSupport/decorators/subclass.js";import{persistable as f}from"../core/accessorSupport/decorators/persistable.js";import{d,f as h,t as y,c as u,A as x,z as g,a as v}from"../chunks/vec32.js";import{fromValues as j,create as S}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{WGS84ECEFSpatialReferenceLike as b}from"../geometry/ellipsoidUtils.js";import _ from"../geometry/Extent.js";import A from"../geometry/SpatialReference.js";import{projectBuffer as w}from"../geometry/projection/projectBuffer.js";import L from"./Layer.js";import{APIKeyMixin as M}from"./mixins/APIKeyMixin.js";import{ArcGISService as E}from"./mixins/ArcGISService.js";import{CustomParametersMixin as I}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as T}from"./mixins/OperationalLayer.js";import{PortalLayer as R}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as U}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as N,url as O}from"./support/commonProperties.js";import z from"./support/SceneModifications.js";import{logInvalidElevationInfoWarning as D,elevationModeRequiredMessage as P,featureExpressionUnsupportedMessage as V}from"../support/elevationInfoUtils.js";import{f as X}from"../chunks/persistableUrlUtils.js";let k=class extends(E(T(R(U(s(I(M(L)))))))){readModifications(e,t,i){this._modificationsSource={url:X(e,i),context:i}}initialize(){this.addHandles(n(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,l))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new A({wkid:4326,vcsWkid:115700}),this.fullExtent=new _(-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}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}_verifyArray(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(const i of e)if("number"!=typeof i)return!1;return!0}_initFullExtent(){const e=this.rootTilesetJSON?.root?.boundingVolume;if(!e)return;if(e.box){const t=e?.box;if(t[3]>
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"../request.js";import i from"../core/Error.js";import r from"../core/Logger.js";import{rad2deg as o}from"../core/mathUtils.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as a}from"../core/promiseUtils.js";import{on as n,sync as l}from"../core/reactiveUtils.js";import{property as m}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 c}from"../core/accessorSupport/decorators/subclass.js";import{persistable as f}from"../core/accessorSupport/decorators/persistable.js";import{d,f as h,t as y,c as u,A as x,z as g,a as v}from"../chunks/vec32.js";import{fromValues as j,create as S}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{WGS84ECEFSpatialReferenceLike as b}from"../geometry/ellipsoidUtils.js";import _ from"../geometry/Extent.js";import A from"../geometry/SpatialReference.js";import{projectBuffer as w}from"../geometry/projection/projectBuffer.js";import L from"./Layer.js";import{APIKeyMixin as M}from"./mixins/APIKeyMixin.js";import{ArcGISService as E}from"./mixins/ArcGISService.js";import{CustomParametersMixin as I}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as T}from"./mixins/OperationalLayer.js";import{PortalLayer as R}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as U}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as N,url as O}from"./support/commonProperties.js";import z from"./support/SceneModifications.js";import{logInvalidElevationInfoWarning as D,elevationModeRequiredMessage as P,featureExpressionUnsupportedMessage as V}from"../support/elevationInfoUtils.js";import{f as X}from"../chunks/persistableUrlUtils.js";let k=class extends(E(T(R(U(s(I(M(L)))))))){readModifications(e,t,i){this._modificationsSource={url:X(e,i),context:i}}initialize(){this.addHandles(n(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,l))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new A({wkid:4326,vcsWkid:115700}),this.fullExtent=new _(-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}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}_verifyArray(e,t){if(!Array.isArray(e)||e.length<t)return!1;for(const i of e)if("number"!=typeof i)return!1;return!0}_initFullExtent(){const e=this.rootTilesetJSON?.root?.boundingVolume;if(!e)return;if(e.box){const t=e?.box;if(t[3]>7645211&&t[7]>7645211&&t[11]>7645211)return}const t=this.rootTilesetJSON?.root?.transform,i=S();if(e.region&&this._verifyArray(e.region,6)){const t=e.region,i=o(t[0]),r=o(t[1]),s=t[4],a=o(t[2]),n=o(t[3]),l=t[5];this.fullExtent=new _({xmin:i,ymin:r,zmin:s,xmax:a,ymax:n,zmax:l,spatialReference:this.spatialReference})}else if(e.sphere&&this._verifyArray(e.sphere,4)){const r=e.sphere,o=j(r[0],r[1],r[2]),s=r[3]/Math.sqrt(3),a=S();d(a,o,j(s,s,s));const n=S();if(h(n,o,j(s,s,s)),t&&this._verifyArray(t,16)){const e=t;y(i,a,e),u(a,i),y(i,n,e),u(n,i)}w(a,b,0,a,A.WGS84,0),w(n,b,0,n,A.WGS84,0);const l=S(),m=S();x(l,a,n),g(m,a,n),this.fullExtent=new _({xmin:l[0],ymin:l[1],zmin:l[2],xmax:m[0],ymax:m[1],zmax:m[2],spatialReference:this.spatialReference})}else if(e.box&&this._verifyArray(e.box,12)){const i=e.box,r=j(i[0],i[1],i[2]),o=j(i[3],i[4],i[5]),s=j(i[6],i[7],i[8]),a=j(i[9],i[10],i[11]),n=[];for(let e=0;e<8;++e)n.push(S());if(h(n[0],r,o),h(n[0],n[0],s),h(n[0],n[0],a),v(n[1],r,o),h(n[1],n[1],s),h(n[1],n[1],a),h(n[2],r,o),v(n[2],n[2],s),h(n[2],n[2],a),v(n[3],r,o),v(n[3],n[3],s),h(n[3],n[3],a),h(n[4],r,o),h(n[4],n[4],s),v(n[4],n[4],a),v(n[5],r,o),h(n[5],n[5],s),v(n[5],n[5],a),h(n[6],r,o),v(n[6],n[6],s),v(n[6],n[6],a),v(n[7],r,o),v(n[7],n[7],s),v(n[7],n[7],a),t&&this._verifyArray(t,16)){const e=t;for(let t=0;t<8;++t)y(n[t],n[t],e)}const l=j(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),m=j(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let e=0;e<8;++e)w(n[e],b,0,n[e],A.WGS84,0),x(m,m,n[e]),g(l,l,n[e]);this.fullExtent=new _({xmin:m[0],ymin:m[1],zmin:m[2],xmax:l[0],ymax:l[1],zmax:l[2],spatialReference:this.spatialReference})}}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const r=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new i("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(o){a(o)}if(null!=this._modificationsSource){const t=await z.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}if(this.url){const e=t(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:r}).then(e=>{this.rootTilesetJSON=e.data,this._initFullExtent()},e=>{a(e)});await e}}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async fetchAttributionData(){return this.load().then(()=>({}))}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";D(r.getLogger(this),P(t,"absolute-height",e)),D(r.getLogger(this),V(t,e))}};e([m({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),e([m({type:z,clonable:e=>e.clone()}),f({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],k.prototype,"modifications",void 0),e([p(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),e([m({type:A})],k.prototype,"spatialReference",void 0),e([m({type:_})],k.prototype,"fullExtent",void 0),e([m(N)],k.prototype,"elevationInfo",null),e([m({type:["show","hide"]})],k.prototype,"listMode",void 0),e([m(O)],k.prototype,"url",void 0),e([m({readOnly:!0})],k.prototype,"type",void 0),e([m({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),e([m({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),e([m({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),k=e([c("esri.layers.IntegratedMesh3DTilesLayer")],k);const G=k;export{G as default};
|
package/layers/ParquetLayer.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{__decorate as e}from"tslib";import t from"../PopupTemplate.js";import r from"../core/Clonable.js";import
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"../PopupTemplate.js";import r from"../core/Clonable.js";import i from"../core/Collection.js";import o from"../core/Error.js";import s from"../core/Logger.js";import{MultiOriginJSONMixin as p}from"../core/MultiOriginJSONSupport.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import l from"../geometry/SpatialReference.js";import m from"./Layer.js";import{ParquetSource as d}from"./graphics/sources/ParquetSource.js";import{createCapabilities as u}from"./graphics/sources/support/clientSideDefaults.js";import{BlendLayer as c}from"./mixins/BlendLayer.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as y}from"./mixins/DisplayFilteredLayer.js";import{FeatureEffectLayer as g}from"./mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as h}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as j}from"./mixins/OperationalLayer.js";import{OrderedLayer as b}from"./mixins/OrderedLayer.js";import{PortalLayer as w}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as v}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as I}from"./mixins/TemporalLayer.js";import{labelsVisible as q}from"./support/commonProperties.js";import x from"./support/FeatureTemplate.js";import P from"./support/Field.js";import{defineFieldProperties as T}from"./support/fieldProperties.js";import{fixRendererFields as F,fixTimeInfoFields as S}from"./support/fieldUtils.js";import O from"./support/LabelClass.js";import{reader as R}from"./support/labelingInfo.js";import{ParquetEncodingBase as L}from"./support/ParquetEncodingBase.js";import U from"./support/ParquetEncodingLocation.js";import D from"./support/ParquetEncodingWkb.js";import{completeParquetLayerInfo as G,parquetGeometryTypeKebabDict as W}from"./support/parquetUtils.js";import{rendererTypes as z}from"../renderers/support/typeUtils.js";import C from"../rest/support/Query.js";import{createPopupTemplate as E}from"../support/popupUtils.js";const M=T(),_={types:{key:"type",base:L,typeMap:{wkb:D,location:U}}};let k=class extends(y(h(g(c(b(I(v(j(w(p(f(r.ClonableMixin(m))))))))))))){constructor(e){super(e),this.capabilities=u(!1,!1),this.copyright=null,this.displayOptimization=null,this.fields=null,this.fieldsIndex=null,this.encoding=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.objectIdField=null,this.outFields=null,this.popupTemplate=null,this.source=null,this.spatialReference=l.WGS84,this.templates=null,this.title="Parquet",this.type="parquet",this.urls=new i}async load(e){return this.addResolvingPromise(this._load(e)),this}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){F(e,this.fieldsIndex),this._set("renderer",e)}createPopupTemplate(e){return E(this,e)}createQuery(){const e=new C;return e.returnGeometry=!0,e.outFields=["*"],e}async createSource(e){const t=await G({urls:this.urls,fields:this.fields,encoding:this.encoding,geometryType:this.geometryType,spatialReference:this.spatialReference,file:this.file},{customParameters:this.customParameters});let{fields:r,geometryType:i,encoding:p,spatialReference:a,urls:n,file:m,displayOptimization:u}=t;if(null==r)throw new o("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",t);if(null==i)throw new o("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer geometryType",t);if(null==p)throw new o("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer encoding",t);if(null==a)throw new o("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer spatialReference",t);if(!a.isGeographic&&!a.isWebMercator)throw new o("parquet-layer:unsupported","Unable to create parquet source: currently only geographic and Web Mercator supported",t);a.isGeographic&&!a.isWGS84&&(s.getLogger("parquet-layer").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:t.spatialReference}),a=l.WGS84);const c="__OBJECTID";r.push(new P({name:c,type:"oid",alias:c}));const f=new d({urls:n.items,fields:r,objectIdField:c,spatialReference:a,encoding:p,geometryType:i,file:m,customParameters:this.customParameters??void 0,displayOptimization:u});return await f.load(e),f}getFieldDomain(e,t){return null}getField(e){return this.fieldsIndex.get(e)}async _load(e){const t=await this.createSource(e);this._set("source",t),this.fields=t.fields,this.objectIdField=t.objectIdField,this.encoding=t.encoding,this.file=t.file,this.geometryType=t.geometryType,this.spatialReference=t.spatialReference,this.displayOptimization=t.displayOptimization,F(this.renderer,this.fieldsIndex),S(this.timeInfo,this.fieldsIndex)}};e([a({readOnly:!0,json:{read:!1,write:!1}})],k.prototype,"capabilities",void 0),e([a({type:String})],k.prototype,"copyright",void 0),e([a({readOnly:!0})],k.prototype,"defaultPopupTemplate",null),e([a()],k.prototype,"displayOptimization",void 0),e([a({type:[P],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],k.prototype,"fields",void 0),e([a(M.fieldsIndex)],k.prototype,"fieldsIndex",void 0),e([a(_)],k.prototype,"encoding",void 0),e([a({json:{read:{reader:W.read}}})],k.prototype,"geometryType",void 0),e([a(q)],k.prototype,"labelsVisible",void 0),e([a({type:[O],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:R},write:!0}})],k.prototype,"labelingInfo",void 0),e([a()],k.prototype,"file",void 0),e([a({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],k.prototype,"objectIdField",void 0),e([a(M.outFields)],k.prototype,"outFields",void 0),e([a({type:t,json:{name:"popupInfo",write:!0}})],k.prototype,"popupTemplate",void 0),e([a({types:z,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"}}}})],k.prototype,"renderer",null),e([a({json:{read:!1},cast:null,type:d,readOnly:!0})],k.prototype,"source",void 0),e([a({type:l})],k.prototype,"spatialReference",void 0),e([a({type:[x]})],k.prototype,"templates",void 0),e([a()],k.prototype,"title",void 0),e([a({json:{read:!1},readOnly:!0})],k.prototype,"type",void 0),e([a({type:i.ofType(String)})],k.prototype,"urls",void 0),k=e([n("esri.layers.ParquetLayer")],k);const B=k;export{B as default};
|
|
@@ -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 o}from"tslib";import e from"../../../core/Loadable.js";import{throwIfAborted as t}from"../../../core/promiseUtils.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import{subclass as
|
|
5
|
+
import{__decorate as o}from"tslib";import e from"../../../core/Loadable.js";import{throwIfAborted as t}from"../../../core/promiseUtils.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import{subclass as i}from"../../../core/accessorSupport/decorators/subclass.js";let s=class extends e{constructor(o){super(o),this.type="parquet",this.urls=null,this.fields=null,this.encoding=null,this.geometryType=null,this.objectIdField=null,this.spatialReference=null}load(o){const e=null!=o?o.signal:null;return this.addResolvingPromise(this._initialize(e)),Promise.resolve(this)}async _initialize(o){t(o)}};o([r()],s.prototype,"type",void 0),o([r()],s.prototype,"urls",void 0),o([r()],s.prototype,"fields",void 0),o([r()],s.prototype,"encoding",void 0),o([r()],s.prototype,"geometryType",void 0),o([r()],s.prototype,"objectIdField",void 0),o([r()],s.prototype,"spatialReference",void 0),o([r()],s.prototype,"file",void 0),o([r()],s.prototype,"customParameters",void 0),o([r()],s.prototype,"displayOptimization",void 0),s=o([i("esri.layers.graphics.sources.ParquetSource")],s);export{s as ParquetSource};
|
|
@@ -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"../../../core/Clonable.js";import r from"../../../core/Error.js";import o from"../../../core/JSONSupport.js";import a from"../../../core/Logger.js";import{property as i}from"../../../core/accessorSupport/decorators/property.js";import{cast as n}from"../../../core/accessorSupport/decorators/cast.js";import{enumeration as s}from"../../../core/accessorSupport/decorators/enumeration.js";import{reader as p}from"../../../core/accessorSupport/decorators/reader.js";import{subclass as c}from"../../../core/accessorSupport/decorators/subclass.js";import{writer as l}from"../../../core/accessorSupport/decorators/writer.js";import m from"../../../geometry/Point.js";import{getGeometryZScaler as u}from"../../../geometry/support/zscale.js";import y from"./CameraOrientation.js";import d from"./cameraOrientationFactory.js";import{appendPrefixAndSuffix as f,getEffectiveElevationSource as g,getMetersPerUnitOfSR as h,orientedImageryTypeMap as v}from"./utils.js";import{ltpToGeographic as w}from"../transformations/utils.js";function O(e){throw new r("exposure-point:missing-default-value",`a value for ${e} is missing in default properties`)}function b(e,t){throw new r("exposure-point:missing-attribute-value",`a value for ${e} is missing in attribute table`,{exposurePoint:t})}const j=e=>({cast:e=>{const t=parseFloat(e);return Number.isFinite(t)?t:void 0},json:{name:e,write:{writer:(e,t,r)=>{t[r]=Number.isFinite(e)?e:void 0}}}}),S=e=>({cast:e=>"string"==typeof e?e.split(";").map(Number):e,json:{default:e,write:{writer:(e,t,r)=>{t[r]=e?.join(";")}}}});let N=class extends(t.ClonableMixin(o)){constructor(e){super(e),this._geometry=null,this.cameraOrientation=null,this.elevation=null,this.elevationSource=null,this.name=null,this.sourceMap=null}read(e,t){const r={},{attributes:o,geometry:a}=e,i={};for(const s in o)r[s.toLowerCase()]=o[s],i[s.toLowerCase()]=s;const n=e.layer??{};n.sequenceOrderField?.length&&(r.sequenceorder=o[n.sequenceOrderField],i.sequenceorder=n.sequenceOrderField),super.read({geometry:a,layer:n,sourceMap:i,...r},t)}write(e,t){const r=super.write(e,t),{sourceMap:o}=this;if(!o||!r)return r;const a={};for(const i in r){const e=o[i.toLowerCase()];e&&(a[e]=r[i])}return a}readCameraHeading(e,t){const{cameraheading:r,camheading:o,layer:a}=t;return r??o??a.cameraHeading}readCameraHeight(e,t){const{cameraheight:r,avghtag:o,layer:a}=t;return r??o??a.cameraHeight}readCamOffset(e,t){const{cameraoffset:r,camoffset:o}=t;return r?.split(";").map(Number)??o?.split(";").map(Number)??null}writeCameraOffset(e,t){e&&(t.cameraOffset=e.join(";"))}readCameraOrientation(e,t){const{cameraorientation:r,camori:o}=t;return r??o}readCameraPitch(e,t){const{camerapitch:r,campitch:o,layer:a}=t;return r??o??a.cameraPitch}readCameraRoll(e,t){const{cameraroll:r,camroll:o,layer:a}=t;return r??o??a.cameraRoll}readDepthImage(e,t){const{depthimage:r,depthimg:o,layer:a}=t,i=r??o??null,{depthImagePathPrefix:n,depthImagePathSuffix:s}=a??{};return f(i,n,s)}readElevationSource(e,t){const{elevationsource:r,layer:o}=t,{demPathSuffix:a,demPathPrefix:i}=o;if(r){const e=this._parseIfJSON(r);return g(e,i,a)}return o.effectiveElevationSource}readFarDistance(e,t){const{fardistance:r,fardist:o,layer:a}=t;return r??o??a.farDistance}get geometry(){const e=this._geometry.clone();if(!e)return null;const{cameraOffset:t}=this;if(t){const[r,o,a]=t;e.x+=r,e.y+=o,null!=e.z&&null!=a&&(e.z+=a)}return e}set geometry(e){this._geometry=e}writeGeometry(e,t){t.geometry=this._geometry.toJSON()}readHFOV(e,t){const{horizontalfieldofview:r,hfov:o,layer:a}=t;return r??o??a.horizontalFieldOfView}readImageURL(e,t){const{imagepath:r,layer:o}=t;r||b("imagePath",this);const{imagePathPrefix:a,imagePathSuffix:i}=o;return f(r,a,i)}readImageRotation(e,t){const{imagerotation:r,imgrot:o,layer:a}=t;return r??o??a.imageRotation}get isHorizontal(){return"horizontal"===this.orientedImageryType}get isInspection(){return"inspection"===this.orientedImageryType}get isNadir(){return"nadir"===this.orientedImageryType}get isOblique(){return"oblique"===this.orientedImageryType}get isSpherical(){return"360"===this.orientedImageryType}get location(){const{cameraOrientation:e,cameraHeight:t,elevation:r}=this;if(e){const{type:t,x:r,y:o,z:a,horizontalWKID:i,verticalWKID:n}=e,s="number"==typeof i?{wkid:i}:{wkt:i};if(4===t){const{latitude:t,longitude:r,ellipsoidRadius:o,squaredEccentricity:a,properties:i}=e,{x:n,y:s,z:p}=i;return new m(w([n,s,p],[t,r,o,a]))}const p=new m({x:r,y:o,z:a,spatialReference:s}),c=n?u("point",{wkid:n},s):null;return c&&c(p),p}if("number"!=typeof t)throw O("cameraHeight");const o=this.geometry.clone();return o.z=o.hasZ?o.z:(r??0)+t/h(o.spatialReference),o}set matrix(e){if(!e||9!==e.length)return a.getLogger(this).warn("Ignoring rotation matrix because it doesn't have 9 values",{value:e}),void this._set("matrix",null);this._set("matrix",e)}readNearDistance(e,t){const{neardistance:r,neardist:o,layer:a}=t;return r??o??a.nearDistance}readOffsetFromStart(e,t){return t.offsetfromstart??null}readOrientationAccuracy(e,t){const{accuracy:r,orientationaccuracy:o}=t;return o?.split(";").map(Number)??r?.split(";").map(Number)??null}writeOrientationAccuracy(e,t){e&&(t.orientationAccuracy=e.join(";"))}readOIType(e,t){const{orientedimagerytype:r,oitype:o,camerapitch:a,campitch:i,layer:n}=t,s=v.read(r??o??n.orientedImageryType),p=a??i??n.cameraPitch;return"oblique"===s?p<10?"nadir":"oblique":s}set radial(e){if(e){if("string"==typeof e){const[t,r,o]=e.split(";").map(Number);return void this._set("radial",[t??0,r??0,o??0])}this._set("radial",e)}else this._set("radial",[0,0,0])}readSequenceOrder(e,t){const{layer:r}=t;return t[r.sequenceOrderField.toLowerCase()]}writeSequenceOrder(e,t){if(!e)return;const{sourceMap:r}=this;if(r){t[r.sequenceorder]=e}}set tangential(e){if(e){if("string"==typeof e){const[t,r]=e.split(";").map(Number);return void this._set("tangential",[t??0,r??0])}this._set("tangential",e)}else this._set("tangential",[0,0])}readVFOV(e,t){const{verticalfieldofview:r,vfov:o,layer:a}=t;return r??o??a.verticalFieldOfView}_parseIfJSON(e){let t=null;try{t=JSON.parse(e)}catch(r){a.getLogger(this).error("couldn't parse the given elevation source JSON",e,r)}return t}clone(){const e=super.clone();return e._geometry=this._geometry.clone(),e}};e([i()],N.prototype,"_geometry",void 0),e([i(j())],N.prototype,"a0",void 0),e([i(j())],N.prototype,"a1",void 0),e([i(j())],N.prototype,"a2",void 0),e([i({type:Date,json:{write:{enabled:!0,target:"acquisitionDate"},name:"acquisitiondate"}})],N.prototype,"acquisitionDate",void 0),e([i(j())],N.prototype,"b0",void 0),e([i(j())],N.prototype,"b1",void 0),e([i(j())],N.prototype,"b2",void 0),e([i({type:Number,json:{write:!0,read:{source:["cameraheading","camheading","layer.cameraHeading"]}}})],N.prototype,"cameraHeading",void 0),e([p("cameraHeading")],N.prototype,"readCameraHeading",null),e([i({type:Number,json:{write:!0}})],N.prototype,"cameraHeight",void 0),e([p("cameraHeight",["cameraheight","avghtag","layer.cameraHeight"])],N.prototype,"readCameraHeight",null),e([i()],N.prototype,"cameraOffset",void 0),e([p("cameraOffset",["cameraoffset","camoffset"])],N.prototype,"readCamOffset",null),e([l("cameraOffset")],N.prototype,"writeCameraOffset",null),e([i({json:{write:{writer:(e,t,r)=>{t[r]=e.toString()}}},type:y}),n(e=>e?d.getCameraOrientation(e):null)],N.prototype,"cameraOrientation",void 0),e([p("cameraOrientation",["cameraorientation","camori"])],N.prototype,"readCameraOrientation",null),e([i({type:Number,json:{write:!0}})],N.prototype,"cameraPitch",void 0),e([p("cameraPitch",["camerapitch","campitch","layer.cameraPitch"])],N.prototype,"readCameraPitch",null),e([i({type:Number,json:{write:!0}})],N.prototype,"cameraRoll",void 0),e([p("cameraRoll",["cameraroll","camroll","layer.cameraRoll"])],N.prototype,"readCameraRoll",null),e([i({json:{write:!0},type:String})],N.prototype,"depthImage",void 0),e([p("depthImage",["depthimage","depthimg"])],N.prototype,"readDepthImage",null),e([i({type:Number,json:{write:!0}})],N.prototype,"elevation",void 0),e([i({json:{write:!0},clonable:"reference"})],N.prototype,"elevationSource",void 0),e([p("elevationSource",["elevationsource","layer.effectiveElevationSource"])],N.prototype,"readElevationSource",null),e([i({json:{name:"exposurestationid",write:{target:"exposureStationId"}},type:String})],N.prototype,"exposureStationId",void 0),e([i({type:Number,json:{write:!0}})],N.prototype,"farDistance",void 0),e([p("farDistance",["fardistance","fardist","layer.farDistance"])],N.prototype,"readFarDistance",null),e([i(j("focallength"))],N.prototype,"focalLength",void 0),e([i({type:m,json:{name:"geometry"}})],N.prototype,"geometry",null),e([l("geometry")],N.prototype,"writeGeometry",null),e([i({type:Number,json:{write:!0}})],N.prototype,"horizontalFieldOfView",void 0),e([p("horizontalFieldOfView",["horizontalfieldofview","hfov","layer.horizontalFieldOfView"])],N.prototype,"readHFOV",null),e([i({json:{write:!0},type:String})],N.prototype,"imagePath",void 0),e([p("imagePath",["imagepath"])],N.prototype,"readImageURL",null),e([i({type:Number,json:{write:!0}})],N.prototype,"imageRotation",void 0),e([p("imageRotation",["imagerotation","imgrot","layer.imageRotation"])],N.prototype,"readImageRotation",null),e([i()],N.prototype,"isHorizontal",null),e([i()],N.prototype,"isInspection",null),e([i()],N.prototype,"isNadir",null),e([i()],N.prototype,"isOblique",null),e([i()],N.prototype,"isSpherical",null),e([i()],N.prototype,"location",null),e([i(S())],N.prototype,"matrix",null),e([i({json:{write:!0},type:String})],N.prototype,"name",void 0),e([i({type:Number,json:{write:!0}})],N.prototype,"nearDistance",void 0),e([p("nearDistance",["neardistance","neardist","layer.nearDistance"])],N.prototype,"readNearDistance",null),e([i({json:{write:!0,name:"objectid"},type:Number})],N.prototype,"objectId",void 0),e([i({type:Number,json:{write:!0}})],N.prototype,"offsetFromStart",void 0),e([p("offsetFromStart",["offsetfromstart"])],N.prototype,"readOffsetFromStart",null),e([i()],N.prototype,"orientationAccuracy",void 0),e([p("orientationAccuracy",["accuracy","orientationaccuracy"])],N.prototype,"readOrientationAccuracy",null),e([l("orientationAccuracy")],N.prototype,"writeOrientationAccuracy",null),e([s(v)],N.prototype,"orientedImageryType",void 0),e([p("orientedImageryType",["orientedimagerytype","oitype","layer.orientedImageryType"])],N.prototype,"readOIType",null),e([i({type:Number,json:{write:!0,read:{source:"principalx"}}})],N.prototype,"principalX",void 0),e([i({type:Number,json:{write:!0,read:{source:"principaly"}}})],N.prototype,"principalY",void 0),e([i(S([0,0,0]))],N.prototype,"radial",null),e([i({type:String})],N.prototype,"sequenceOrder",void 0),e([p("sequenceOrder",["sequenceorder","layer.sequenceOrderField"])],N.prototype,"readSequenceOrder",null),e([l("sequenceOrder")],N.prototype,"writeSequenceOrder",null),e([i({type:Object})],N.prototype,"sourceMap",void 0),e([i(S([0,0]))],N.prototype,"tangential",null),e([i({type:Number,json:{write:!0}})],N.prototype,"verticalFieldOfView",void 0),e([p("verticalFieldOfView",["verticalfieldofview","vfov","layer.verticalFieldOfView"])],N.prototype,"readVFOV",null),N=e([c("esri.layers.orientedImagery.core.ExposurePoint")],N);export{N as default};
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"../../../core/Clonable.js";import r from"../../../core/Error.js";import o from"../../../core/JSONSupport.js";import a from"../../../core/Logger.js";import{property as i}from"../../../core/accessorSupport/decorators/property.js";import{cast as n}from"../../../core/accessorSupport/decorators/cast.js";import{enumeration as s}from"../../../core/accessorSupport/decorators/enumeration.js";import{reader as p}from"../../../core/accessorSupport/decorators/reader.js";import{subclass as c}from"../../../core/accessorSupport/decorators/subclass.js";import{writer as l}from"../../../core/accessorSupport/decorators/writer.js";import m from"../../../geometry/Point.js";import{getGeometryZScaler as u}from"../../../geometry/support/zscale.js";import y from"./CameraOrientation.js";import d from"./cameraOrientationFactory.js";import{appendPrefixAndSuffix as f,getEffectiveElevationSource as g,getMetersPerUnitOfSR as h,orientedImageryTypeMap as v}from"./utils.js";import{ltpToGeographic as w}from"../transformations/utils.js";function O(e){throw new r("exposure-point:missing-default-value",`a value for ${e} is missing in default properties`)}function b(e,t){throw new r("exposure-point:missing-attribute-value",`a value for ${e} is missing in attribute table`,{exposurePoint:t})}const j=e=>({cast:e=>{const t=parseFloat(e);return Number.isFinite(t)?t:void 0},json:{name:e,write:{writer:(e,t,r)=>{t[r]=Number.isFinite(e)?e:void 0}}}}),S=e=>({cast:e=>"string"==typeof e?e.split(";").map(Number):e,json:{default:e,write:{writer:(e,t,r)=>{t[r]=e?.join(";")}}}});let I=class extends(t.ClonableMixin(o)){constructor(e){super(e),this._geometry=null,this.cameraOrientation=null,this.elevation=null,this.elevationSource=null,this.name=null,this.sourceMap=null}read(e,t){const r={},{attributes:o,geometry:a}=e,i={};for(const s in o)r[s.toLowerCase()]=o[s],i[s.toLowerCase()]=s;const n=e.layer??{};n.sequenceOrderField?.length&&(r.sequenceorder=o[n.sequenceOrderField],i.sequenceorder=n.sequenceOrderField),super.read({geometry:a,layer:n,sourceMap:i,...r},t)}write(e,t){const r=super.write(e,t),{sourceMap:o}=this;if(!o||!r)return r;const a={};for(const i in r){const e=o[i.toLowerCase()];e&&(a[e]=r[i])}return a}readCameraHeading(e,t){const{cameraheading:r,camheading:o,layer:a}=t;return r??o??a.cameraHeading}readCameraHeight(e,t){const{cameraheight:r,avghtag:o,layer:a}=t;return r??o??a.cameraHeight}readCamOffset(e,t){const{cameraoffset:r,camoffset:o}=t;return r?.split(";").map(Number)??o?.split(";").map(Number)??null}writeCameraOffset(e,t){e&&(t.cameraOffset=e.join(";"))}readCameraOrientation(e,t){const{cameraorientation:r,camori:o}=t;return r??o}readCameraPitch(e,t){const{camerapitch:r,campitch:o,layer:a}=t;return r??o??a.cameraPitch}readCameraRoll(e,t){const{cameraroll:r,camroll:o,layer:a}=t;return r??o??a.cameraRoll}readDepthImage(e,t){const{depthimage:r,depthimg:o,layer:a}=t,i=r??o??null,{depthImagePathPrefix:n,depthImagePathSuffix:s}=a??{};return f(i,n,s)}readElevationSource(e,t){const{elevationsource:r,layer:o}=t,{demPathSuffix:a,demPathPrefix:i}=o;if(r){const e=this._parseIfJSON(r);return g(e,i,a)}return o.effectiveElevationSource}readFarDistance(e,t){const{fardistance:r,fardist:o,layer:a}=t;return r??o??a.farDistance}get geometry(){const e=this._geometry.clone();if(!e)return null;const{cameraOffset:t}=this;if(t){const[r,o,a]=t;e.x+=r,e.y+=o,null!=e.z&&null!=a&&(e.z+=a)}return e}set geometry(e){this._geometry=e}writeGeometry(e,t){t.geometry=this._geometry.toJSON()}readHFOV(e,t){const{horizontalfieldofview:r,hfov:o,layer:a}=t;return r??o??a.horizontalFieldOfView}readImageURL(e,t){const{imagepath:r,layer:o}=t;r||b("imagePath",this);const{imagePathPrefix:a,imagePathSuffix:i}=o;return f(r,a,i)}readImageRotation(e,t){const{imagerotation:r,imgrot:o,layer:a}=t;return r??o??a.imageRotation}get isHorizontal(){return"horizontal"===this.orientedImageryType}get isInspection(){return"inspection"===this.orientedImageryType}get isNadir(){return"nadir"===this.orientedImageryType}get isOblique(){return"oblique"===this.orientedImageryType}get isSpherical(){return"360"===this.orientedImageryType}get location(){const{cameraOrientation:e,cameraHeight:t,elevation:r}=this;if(e){const{type:t,x:r,y:o,z:a,horizontalWKID:i,verticalWKID:n}=e,s="number"==typeof i?{wkid:i}:{wkt:i};if(4===t){const{latitude:t,longitude:r,ellipsoidRadius:o,squaredEccentricity:a,properties:i}=e,{x:n,y:s,z:p}=i;return new m(w([n,s,p],[t,r,o,a]))}const p=new m({x:r,y:o,z:a,spatialReference:s}),c=n?u("point",{wkid:n},s):null;return c&&c(p),p}if("number"!=typeof t)throw O("cameraHeight");const o=this.geometry.clone(),i=(r??0)+t/h(o.spatialReference);if("360"===this.orientedImageryType&&o.hasZ){const e=i-o.z;return null!=r&&Math.abs(e)>.001&&(a.getLogger(this).warnOnce("The elevation value is different from the geometry's z value. The geometry's z value will be updated.",{elevation:r,geometryZ:o.z}),o.z=i),o}return o.z=o.hasZ?o.z:i,o}set matrix(e){if(e)return 9!==e.length?(a.getLogger(this).warnOnce("Ignoring rotation matrix because it doesn't have 9 values",{value:e}),void this._set("matrix",null)):void this._set("matrix",e)}readNearDistance(e,t){const{neardistance:r,neardist:o,layer:a}=t;return r??o??a.nearDistance}readOffsetFromStart(e,t){return t.offsetfromstart??null}readOrientationAccuracy(e,t){const{accuracy:r,orientationaccuracy:o}=t;return o?.split(";").map(Number)??r?.split(";").map(Number)??null}writeOrientationAccuracy(e,t){e&&(t.orientationAccuracy=e.join(";"))}readOIType(e,t){const{orientedimagerytype:r,oitype:o,camerapitch:a,campitch:i,layer:n}=t,s=v.read(r??o??n.orientedImageryType),p=a??i??n.cameraPitch;return"oblique"===s?p<10?"nadir":"oblique":s}set radial(e){if(e){if("string"==typeof e){const[t,r,o]=e.split(";").map(Number);return void this._set("radial",[t??0,r??0,o??0])}this._set("radial",e)}else this._set("radial",[0,0,0])}readSequenceOrder(e,t){const{layer:r}=t;return t[r.sequenceOrderField.toLowerCase()]}writeSequenceOrder(e,t){if(!e)return;const{sourceMap:r}=this;if(r){t[r.sequenceorder]=e}}set tangential(e){if(e){if("string"==typeof e){const[t,r]=e.split(";").map(Number);return void this._set("tangential",[t??0,r??0])}this._set("tangential",e)}else this._set("tangential",[0,0])}readVFOV(e,t){const{verticalfieldofview:r,vfov:o,layer:a}=t;return r??o??a.verticalFieldOfView}_parseIfJSON(e){let t=null;try{t=JSON.parse(e)}catch(r){a.getLogger(this).error("couldn't parse the given elevation source JSON",e,r)}return t}clone(){const e=super.clone();return e._geometry=this._geometry.clone(),e}};e([i()],I.prototype,"_geometry",void 0),e([i(j())],I.prototype,"a0",void 0),e([i(j())],I.prototype,"a1",void 0),e([i(j())],I.prototype,"a2",void 0),e([i({type:Date,json:{write:{enabled:!0,target:"acquisitionDate"},name:"acquisitiondate"}})],I.prototype,"acquisitionDate",void 0),e([i(j())],I.prototype,"b0",void 0),e([i(j())],I.prototype,"b1",void 0),e([i(j())],I.prototype,"b2",void 0),e([i({type:Number,json:{write:!0,read:{source:["cameraheading","camheading","layer.cameraHeading"]}}})],I.prototype,"cameraHeading",void 0),e([p("cameraHeading")],I.prototype,"readCameraHeading",null),e([i({type:Number,json:{write:!0}})],I.prototype,"cameraHeight",void 0),e([p("cameraHeight",["cameraheight","avghtag","layer.cameraHeight"])],I.prototype,"readCameraHeight",null),e([i()],I.prototype,"cameraOffset",void 0),e([p("cameraOffset",["cameraoffset","camoffset"])],I.prototype,"readCamOffset",null),e([l("cameraOffset")],I.prototype,"writeCameraOffset",null),e([i({json:{write:{writer:(e,t,r)=>{t[r]=e.toString()}}},type:y}),n(e=>e?d.getCameraOrientation(e):null)],I.prototype,"cameraOrientation",void 0),e([p("cameraOrientation",["cameraorientation","camori"])],I.prototype,"readCameraOrientation",null),e([i({type:Number,json:{write:!0}})],I.prototype,"cameraPitch",void 0),e([p("cameraPitch",["camerapitch","campitch","layer.cameraPitch"])],I.prototype,"readCameraPitch",null),e([i({type:Number,json:{write:!0}})],I.prototype,"cameraRoll",void 0),e([p("cameraRoll",["cameraroll","camroll","layer.cameraRoll"])],I.prototype,"readCameraRoll",null),e([i({json:{write:!0},type:String})],I.prototype,"depthImage",void 0),e([p("depthImage",["depthimage","depthimg"])],I.prototype,"readDepthImage",null),e([i({type:Number,json:{write:!0}})],I.prototype,"elevation",void 0),e([i({json:{write:!0},clonable:"reference"})],I.prototype,"elevationSource",void 0),e([p("elevationSource",["elevationsource","layer.effectiveElevationSource"])],I.prototype,"readElevationSource",null),e([i({json:{name:"exposurestationid",write:{target:"exposureStationId"}},type:String})],I.prototype,"exposureStationId",void 0),e([i({type:Number,json:{write:!0}})],I.prototype,"farDistance",void 0),e([p("farDistance",["fardistance","fardist","layer.farDistance"])],I.prototype,"readFarDistance",null),e([i(j("focallength"))],I.prototype,"focalLength",void 0),e([i({type:m,json:{name:"geometry"}})],I.prototype,"geometry",null),e([l("geometry")],I.prototype,"writeGeometry",null),e([i({type:Number,json:{write:!0}})],I.prototype,"horizontalFieldOfView",void 0),e([p("horizontalFieldOfView",["horizontalfieldofview","hfov","layer.horizontalFieldOfView"])],I.prototype,"readHFOV",null),e([i({json:{write:!0},type:String})],I.prototype,"imagePath",void 0),e([p("imagePath",["imagepath"])],I.prototype,"readImageURL",null),e([i({type:Number,json:{write:!0}})],I.prototype,"imageRotation",void 0),e([p("imageRotation",["imagerotation","imgrot","layer.imageRotation"])],I.prototype,"readImageRotation",null),e([i()],I.prototype,"isHorizontal",null),e([i()],I.prototype,"isInspection",null),e([i()],I.prototype,"isNadir",null),e([i()],I.prototype,"isOblique",null),e([i()],I.prototype,"isSpherical",null),e([i()],I.prototype,"location",null),e([i(S())],I.prototype,"matrix",null),e([i({json:{write:!0},type:String})],I.prototype,"name",void 0),e([i({type:Number,json:{write:!0}})],I.prototype,"nearDistance",void 0),e([p("nearDistance",["neardistance","neardist","layer.nearDistance"])],I.prototype,"readNearDistance",null),e([i({json:{write:!0,name:"objectid"},type:Number})],I.prototype,"objectId",void 0),e([i({type:Number,json:{write:!0}})],I.prototype,"offsetFromStart",void 0),e([p("offsetFromStart",["offsetfromstart"])],I.prototype,"readOffsetFromStart",null),e([i()],I.prototype,"orientationAccuracy",void 0),e([p("orientationAccuracy",["accuracy","orientationaccuracy"])],I.prototype,"readOrientationAccuracy",null),e([l("orientationAccuracy")],I.prototype,"writeOrientationAccuracy",null),e([s(v)],I.prototype,"orientedImageryType",void 0),e([p("orientedImageryType",["orientedimagerytype","oitype","layer.orientedImageryType"])],I.prototype,"readOIType",null),e([i({type:Number,json:{write:!0,read:{source:"principalx"}}})],I.prototype,"principalX",void 0),e([i({type:Number,json:{write:!0,read:{source:"principaly"}}})],I.prototype,"principalY",void 0),e([i(S([0,0,0]))],I.prototype,"radial",null),e([i({type:String})],I.prototype,"sequenceOrder",void 0),e([p("sequenceOrder",["sequenceorder","layer.sequenceOrderField"])],I.prototype,"readSequenceOrder",null),e([l("sequenceOrder")],I.prototype,"writeSequenceOrder",null),e([i({type:Object})],I.prototype,"sourceMap",void 0),e([i(S([0,0]))],I.prototype,"tangential",null),e([i({type:Number,json:{write:!0}})],I.prototype,"verticalFieldOfView",void 0),e([p("verticalFieldOfView",["verticalfieldofview","vfov","layer.verticalFieldOfView"])],I.prototype,"readVFOV",null),I=e([c("esri.layers.orientedImagery.core.ExposurePoint")],I);export{I as default};
|
|
@@ -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{isArrayLike as e}from"../../../core/arrayUtils.js";import{
|
|
5
|
+
import{isArrayLike as e}from"../../../core/arrayUtils.js";import{deg2rad as r}from"../../../core/mathUtils.js";import{clone as a,zeros as t}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{a as i}from"../../../chunks/vec32.js";import o from"../../../geometry/Point.js";import{isElevationSource as n}from"../core/ElevationSourceDefinitions.js";import{rectifyMapPointPanoramic as c,rectifyMapPoint as s}from"./rectifyMapPoint.js";import{getWebMercatorScalingFactor as f,hasAngles as l,convertPixelToHeadingPitch as m,isElevationSampler as p,reducerFn as y,validatePixelsToTransform as u,validateRotationMatrix as h,computeFarplaneVertices as d,computeHFOVAndVFOV as g,vecToPoint as w,or as v,isUpdateElevationWithElevationSource as x,scaleWithFactor as M,scaleAndAddWithFactor as A,computeNewReferenceCoordinates as P,projectiveTransform as j}from"./utils.js";import{worldToImage as R}from"./worldToImage.js";import{viewingLimit as V}from"../../../widgets/OrientedImageryViewer/constants.js";async function F(e,r,a){const{verticalFieldOfView:t,imageBoundaries:i,scalingFactor:o,farPlaneVertices:n,cameraLocation:c,pixelsToTransform:s,vecToPoint:f}=q(e,r),l=new Array;return await T(s,n,i,f,r,l,c,o,t,a),Array.isArray(e)?l:l[0]}async function T(e,r,a,t,i,o,n,c,f,l){let m=i.averageElevation;for(const y of e){const e=L(r,a,y,t,i);if(l&&v(p(l.elevationSample),x(l))){m=(await s(t(e),{x:y[0],y:y[1]},{...i,...l,farPlaneVertices:r.map(t)}))[2]}o.push(t(O(e,n,c,m,i.cameraPitch,f)))}}function O(e,r,o,n,c,s){let f=a(e);const l=Math.sqrt((e[2]-r[2])**2+(Math.sqrt((e[0]-r[0])**2+(e[1]-r[1])**2)/o)**2)*o,m=M(i(t(),e,r),1/l,1/o);if(b(e[2],n,c,s)){const e=Math.abs((r[2]-n)/-m[2])*o;f=A(r,m,e,o)}else f[2]=n;return f}function b(e,r,a,t){return e<r||a+t/2<V}function L(e,r,a,t,i){let o=null;const n=9;let c,s=0,f=e,l=r;for(;s<=n;){const e=S(a,l,f,i);if(c=e.error,o=e.transformedPoint,v(c<=1,s===n))break;f=P(f,c,a,r),l=E(f,t,i),s++}return o}function E(e,r,a){return R(e.map(r),a).map(({x:e,y:r})=>[e,r,1])}function S(e,r,a,t){const{cameraLocation:i}=t,n=j(e,r,a),{x:c,y:s}=R(new o(n,i.spatialReference),t);return{transformedPoint:n,error:k(e,[c,s,1])}}function k(e,r){return Math.abs(e[0]-r[0])+Math.abs(e[1]-r[1])}function q(r,a){const t=e(r)||"items"in r?r:[r],{cameraLocation:i,rotationMatrix:n}=a;if(u(t,i),h(n),9!==n?.length)throw new Error("Rotation matrix is not provided or is not a valid 3x3 matrix");const c=f(i.y,i.spatialReference),s=d({...a,scalingFactor:c}),l=R(s.map(e=>new o(e,i.spatialReference)),a),{vfov:m}=g(a.horizontalFieldOfView,a.verticalFieldOfView,a.cameraRoll);return{cameraLocation:i.toArray(),imageBoundaries:l.map(({x:e,y:r})=>[e,r,1]),verticalFieldOfView:m,farPlaneVertices:s,scalingFactor:c,pixelsToTransform:t.map(e=>[e.x,e.y,1]),vecToPoint:w(i.spatialReference)}}async function B(e,a,t){const{cameraHeading:i,cameraLocation:s,farDistance:u,imageHeight:h,imageWidth:d,verticalFieldOfView:g}=a,w=f(s.y,s.spatialReference),v=u*w,x=new Array,[M,A,P]=s.toArray(),j=Array.isArray(e)?e:[e];for(const f of j){let e,j;if(l(f))e=f.heading,j=f.pitch;else{const r=m({x:f.x,y:f.y},d,h);e=r.heading,j=r.pitch}e=(e+i)%360;const R=[M+Math.sin(r(e))*Math.sin(r(j))*v,A+Math.cos(r(e))*Math.sin(r(j))*v,P+-Math.cos(r(j))*u];let V=a.averageElevation;if(t&&(n(t)||p(t.elevationSample))){V=(await c(new o(R,s.spatialReference),{heading:e,pitch:j},{...a,...t,farPlaneVertices:y(u,u).map(([e,r])=>new o([s.x+e,s.y+r],s.spatialReference))}))[2]}x.push(new o(O(R,s.toArray(),w,V,j,g),s.spatialReference))}return Array.isArray(e)?x:x[0]}export{F as imageToWorld,B as imageToWorldPanoramic};
|
|
@@ -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{deepClone as e}from"../../../arcade/deepClone.js";import"../../../core/Error.js";import"../../../core/has.js";import"../../../core/Logger.js";import{create as t}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import
|
|
5
|
+
import{deepClone as e}from"../../../arcade/deepClone.js";import"../../../core/Error.js";import"../../../core/has.js";import"../../../core/Logger.js";import{create as t}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import a from"../../../geometry/Point.js";import r from"../../../geometry/Polygon.js";import{fromArray as n,intersectLine as i,fromPoints as o}from"../../../geometry/support/plane.js";import s from"./updateElevation.js";import{pointToArray as c,or as m}from"./utils.js";import{worldToImagePanoramic as p,worldToImage as f}from"./worldToImage.js";import{normalizeDegrees as l}from"../../../widgets/OrientedImageryViewer/components/imageNavigationUtils.js";async function g(e,r,n,s=w){const{cameraLocation:p,farPlaneVertices:f}=n,l=c(p),g=new Array;await d(f,n,g);let h=o(g[0],g[1],g[2]),u=e.clone();for(let w=0;w<s;w++){const s=t();if(!i(h,l,c(e),s))break;let f=0,w=null;if(({error:f,imagePoint:w,pointWithZ:u}=await j(r,new a(s,p.spatialReference),n)),f<=1)break;const[d,b]=y(p.spatialReference,g);if(m(d<=1,b<=1))break;g.splice(0,g.length,...await R(d,b,new a(s,p.spatialReference),n)),h=o(g[0],g[1],g[2])}return c(u)}async function h(e,r,o,s=w){const{cameraLocation:p,farPlaneVertices:f}=o,l=c(p),g=new Array;await d(f,o,g);const h=[0,0,0,0];let u=n(h,g.flat(),!1),j=e.clone();for(let w=0;w<s;w++){const s=t();if(!i(h,l,c(e),s)||!u)break;let f,w=0;if(({error:w,imagePoint:f,pointWithZ:j}=await b(r,new a(s,p.spatialReference),o)),w<=1)break;const[d,x]=y(p.spatialReference,g);if(m(d<=1,x<=1))break;g.splice(0,g.length,...await R(d,x,new a(s,p.spatialReference),o)),u=n(h,g.flat(),!1)}return c(j)}const w=10,u=10;function y(e,t){const a=new r({spatialReference:e});a.addRing(t);return[a.extent?.width?a.extent.width/u:1,a.extent?.height?a.extent.height/u:1]}async function d(t,a,r){const n=e(t),i=await s(n,a);r.push(...i.map(c))}async function j(e,t,a){const r=await s(t,a),n=f(r,a);return{error:x(n,e),imagePoint:n,pointWithZ:r}}async function b(e,t,a){const r=await s(t,a),n=p(r,a),i=l(n.heading+a.cameraHeading);return{error:Math.abs(i-e.heading)+Math.abs(n.pitch-e.pitch),imagePoint:n,pointWithZ:r}}const x=(e,t)=>Math.abs(e.x-t.x)+Math.abs(e.y-t.y);async function R(e,t,r,n){const i=[[-e,-t],[e,-t],[e,t],[-e,t]].map(([e,t])=>new a([r.x+e,r.y+t],r.spatialReference));return s(i,n).then(e=>e.map(e=>e.toArray()))}export{g as rectifyMapPoint,h as rectifyMapPointPanoramic};
|