@arcgis/core 6.0.0-next.2 → 6.0.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/19bb07942c265d64e321.js +1 -0
  3. package/assets/esri/core/workers/chunks/25e6013e2c095629b236.js +1 -0
  4. package/assets/esri/core/workers/chunks/347bf269c2b1583d2dca.js +1 -0
  5. package/assets/esri/core/workers/chunks/{40fb1910f780e78c128c.js → 8b54589f173259c1ba55.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{61ad8306ab79aca79505.js → 8ba32d3a0df4a206ef1c.js} +1 -1
  7. package/assets/esri/core/workers/chunks/b1008bdfca995ebf98ed.js +1 -0
  8. package/assets/esri/core/workers/chunks/bc7b9a5a8942aa3ea249.js +1 -0
  9. package/assets/esri/core/workers/chunks/d4926545193414cf2f16.js +1 -0
  10. package/assets/esri/core/workers/chunks/{4310c8d2b40ae69c3681.js → fccbb902fe08448f91de.js} +1 -1
  11. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  12. package/config.js +1 -1
  13. package/kernel.js +1 -1
  14. package/layers/GeospatialPDFLayer.d.ts +2 -5
  15. package/layers/GeospatialPDFLayer.js +1 -1
  16. package/layers/ParquetLayer.d.ts +8 -1
  17. package/layers/ParquetLayer.js +1 -1
  18. package/layers/geospatialPDF/renderExtentUtils.js +1 -1
  19. package/package.json +3 -3
  20. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  21. package/views/DOMContainer.d.ts +1 -0
  22. package/views/layers/FeatureLikeLayerView.d.ts +1 -0
  23. package/views/layers/GraphicsLayerView.d.ts +1 -0
  24. package/views/layers/ImageryLayerView.d.ts +1 -0
  25. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  26. package/widgets/OrientedImageryViewer/types.d.ts +20 -0
  27. package/widgets/OrientedImageryViewer.d.ts +9 -1
  28. package/assets/esri/core/workers/chunks/01b00fbf6a6a22d573ee.js +0 -1
  29. package/assets/esri/core/workers/chunks/1f3148cebee1961249a4.js +0 -1
  30. package/assets/esri/core/workers/chunks/380cc538c1ab453870fa.js +0 -1
  31. package/assets/esri/core/workers/chunks/ae2181805d8ba130babc.js +0 -1
  32. package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +0 -1
  33. package/assets/esri/core/workers/chunks/d6d5a9e73ee43d6066d3.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7063],{26887(e,t,i){function r(){return[1,0,0,1,0,0]}function n(e,t,i,r,n,a){return[e,t,i,r,n,a]}i.d(t,{fA:()=>n,vt:()=>r});Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:[1,0,0,1,0,0],clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5]]},create:r,fromValues:n},Symbol.toStringTag,{value:"Module"}))},4144(e,t,i){i.r(t),i.d(t,{clipToSpatialReference:()=>s,execute:()=>u,executeMany:()=>p,foldInto360Range:()=>h,foldInto360RangeGeodetic:()=>c,isLoaded:()=>o,load:()=>l,normalizeGeometry:()=>d,supportsCurves:()=>f,transform:()=>g});var r=i(76061),n=i(83290);let a;function o(){return!!a&&(0,n.i)()}async function l(){if(!o()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(9192)]).then(()=>i(9192)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(5756)]).then(()=>i(15756)).then(({injectPe:e})=>e),(0,n.l)()]);a=new e.OperatorProject,t(n.p)}}function s(e,t,i){return a.clipToSpatialReference(e,t,null,i)}function u(e,t){return a.execute(e,t,null)}function p(e,t){let i=a.executeMany(new r.S(e),t,null);return Array.from(i)}function h(e,t){return a.foldInto360Range(e,t)}function c(e,t,i){return a.foldInto360RangeGeodetic(e,t,i)}function d(e,t,i){return a.normalizeGeometry(e,t,i)}function f(){return a.supportsCurves()}function g(e,t,i,r,n){return a.transform(e,t,i,r,n)}},83276(e,t,i){i.r(t),i.d(t,{execute:()=>y,executeMany:()=>x,isLoaded:()=>f,load:()=>m,projectExecute:()=>_,projectExecuteMany:()=>w,projectIsLoaded:()=>d,projectLoad:()=>g,projectSupportsCurves:()=>h,supportsCurves:()=>c});var r=i(4144),n=i(85036),a=i(17499);let o,l,s,u,p,h,c;function d(){return!!o&&(0,r.isLoaded)()}function f(){return(0,n.Q)("projectOperator","isLoaded","projectIsLoaded"),d()}async function g(){if(!d()){let[e,t]=await Promise.all([Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9567),i.e(9829),i.e(1666)]).then(()=>i(78125)),Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(6129)]).then(()=>i(86129)),(0,r.load)()]);o=e.fromGeometry,l=e.fromSpatialReference,s=e.getSpatialReference,u=e.toGeometry,p=t.createProjectionTransformation,h=(0,r.supportsCurves)(),c=h}}function m(){return(0,n.Q)("projectOperator","load","projectLoad"),g()}function _(e,t,i){let n=s(e),h=p(l(n),l(t),i),c=u((0,r.execute)(o(e),h),t);return!i?.zConversionDisabled&&c?.hasZ&&(0,a.g)([c],n,t),c}function y(e,t,i){return(0,n.Q)("projectOperator","execute","projectExecute"),_(e,t,i)}function w(e,t,i){let n=e.map(o),h=s(e),c=p(l(h),l(t),i),d=(0,r.executeMany)(n,c).map(e=>u(e,t));return!i?.zConversionDisabled&&d&&(0,a.g)(d,h,t),d}function x(e,t,i){return(0,n.Q)("projectOperator","executeMany","projectExecuteMany"),w(e,t,i)}},17499(e,t,i){i.d(t,{g:()=>a});var r=i(60408),n=i(62815);function a(e,t,i){let a;for(let o of e)if(o&&(0,r.Pv)(o)&&!("vertexAttributes"in o)){if(!a){let e="type"in o?o.type:(0,r.$B)(o);if(a=(0,n.N)(e,t,i),!a)return}a(o)}}},62815(e,t,i){i.d(t,{N:()=>l,d:()=>s});var r=i(86211),n=i(73941),a=i(21325),o=i(52006);function l(e,t,i){let r=s(t,i);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(let i of e.curvePaths)for(let e of i){let i=(0,o.yP)(e);i.length>2&&(i[2]*=t)}if(e.paths)for(let i of e.paths)for(let e of i)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(let i of e.curveRings)for(let e of i){let i=(0,o.yP)(e);i.length>2&&(i[2]*=t)}if(e.rings)for(let i of e.rings)for(let e of i)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(let i of e.points)i.length>2&&(i[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function s(e,t){return null==e||null==t||(0,a.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},87063(e,t,i){i.r(t),i.d(t,{default:()=>xe});var r=i(32198),n=i(49186),a=i(25728),o=i(91429),l=i(16930),s=i(21325),u=i(4146),p=i(63074),h=i(72545),c=i(25036),d=i(86738),f=i(92474),g=i(83027),m=i(17676),_=i(48163),y=i(37585),w=i(5443),x=i(39829),P=i(88411),A=i(83276);class v{constructor(e){this.ctm=e.ctm,this.spatialReference=e.toSpatialReference(),this.pairedNeatline=e.pairedNeatline,this.outerExtentMediabox=this._getExtentFromArray(e.outerExtentMediaBox),this.geoControlPoints=e.geoControlPoints,this.outerMediaBox=e.outerExtentMediaBox,this.sourceMediaBoxPolygon=this.createSourceMediaBoxPolygon(),this.sourceNeatlinePolygon=this.createSourceNeatlinePolygon()}createSourceMediaBoxPolygon(){let e=[];for(let[t,i]of this.outerMediaBox){let r=M(this.ctm,t,i);e.push([r[0],r[1]])}return new x.A({rings:[e],spatialReference:this.spatialReference})}createSourceNeatlinePolygon(){let e=[];for(let[t,i]of this.pairedNeatline){let r=M(this.ctm,t,i);e.push([r[0],r[1]])}return new x.A({rings:[e],spatialReference:this.spatialReference})}createProjectedPolygon(e,t,i){(0,m.Te)(i);let r=e;if(r.spatialReference.equals(t))return r;if(!r||!r.extent)throw new n.A("geospatial-pdf-layer:load","Could not project neatline");let a=Math.max(r.extent.width,r.extent.height)/256,o=(0,P.densifyExecute)(r,a);return(0,A.projectExecute)(o,t)}toExtent(){return this._getExtentFromArray(this.pairedNeatline)}_getExtentFromArray(e){let t=1/0,i=1/0,r=-1/0,n=-1/0;for(let a=0;a<e.length;a++){let o=M(this.ctm,e[a][0],e[a][1]);t=Math.min(t,o[0]),i=Math.min(i,o[1]),r=Math.max(r,o[0]),n=Math.max(n,o[1])}return new w.A({xmin:t,ymin:i,xmax:r,ymax:n,spatialReference:this.spatialReference})}}function M(e,t,i){let[r,n,a,o,l,s]=e,u=(0,_.vt)();return(0,y.hZ)(u,r*t+a*i+l,n*t+o*i+s),u}i(44208);var R=i(26887),C=i(48237);function T(e,t,i,r){let n=Math.min(e.length,t.length,3),a=e.slice(0,n).map((e,r)=>({sourcePoint:{x:e[0],y:e[1]},mapPoint:new d.A({x:t[r][0],y:t[r][1],spatialReference:i})}));return new C.A({controlPoints:a,width:r.xmax-r.xmin,height:r.ymax-r.ymin})}function F(e){if(!e?.transform||e.transform.length<6)throw new n.A("geospatial-pdf-layer:georefrencer","created georeferencer does not have valid transform");return e.transform}function E(e){return(0,R.fA)(e[0],-e[1],-e[3],e[4],e[2],e[5])}function S(e){return[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]}class b{constructor(e){let t=this.inputValidation(e);this._registration=t.registration,this._projection=t.projection,this._neatline=t.neatline,this.pairedNeatline=this._pairNeatline(),this.outerExtentMediaBox=S(t.mediaBox),this.geoControlPoints=this._getRegistrationPoints("geo"),this.ctm=t.ctm??this._buildCTMFromRegistration(),this.outputValidation()}inputValidation(e){let{ctm:t,registration:i,projection:r,display:a,neatline:o,mediaBox:l}=e;if(t&&6!==t.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict has invalid CTM.");if(!t&&(!i||i.length<3))throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing CTM and minimum registration points");if(!l||4!==l.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid MediaBox.");if(!o||o.length<4||o.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid amount of neatline points");return{ctm:t?(0,R.fA)(t[0],t[1],t[2],t[3],t[4],t[5]):void 0,registration:i??[],projection:r,display:a,neatline:o,mediaBox:l}}outputValidation(){if(6!==this.ctm.length)throw new n.A("geospatial-pdf-layer:invalid-frame","LGIDict missing or invalid CTM");if(this.pairedNeatline.length<4)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 4 neatline points.");if(4!==this.outerExtentMediaBox.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Failed to generate outerextent from mediaBox.");if(!this.ctm&&this.geoControlPoints.length<2)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 2 geoControlPoints if defaulting.")}toSpatialReference(){return this._projection}_buildCTMFromRegistration(){let e=[],t=[];for(let i of this._registration)i.length<4||(e.push((0,_.fA)(i[0],i[1])),t.push((0,_.fA)(i[2],i[3])));let i=this._getSourceRect();return E(F(T(e,t,this.toSpatialReference(),i)))}_extentFromArray(e){let t=1/0,i=1/0,r=-1/0,a=-1/0;for(let n=0;n<e.length;n++){let o=e[n];t=Math.min(t,o[0]),i=Math.min(i,o[1]),r=Math.max(r,o[0]),a=Math.max(a,o[1])}if(!(Number.isFinite(t)&&Number.isFinite(i)&&Number.isFinite(r)&&Number.isFinite(a)))throw new n.A("geospatial-pdf-layer: invalid-frame","Failed to compute extent from registration.");return{xmin:t,ymin:i,xmax:r,ymax:a}}_getSourceRect(){if(4===this.outerExtentMediaBox?.length)return this._extentFromArray(this.outerExtentMediaBox);if(this._neatline.length>=6)return this._extentFromArray(this.pairedNeatline);let e=this._getRegistrationPoints("page");if(e.length>=2)return this._extentFromArray(e);throw new n.A("geospatial-pdf-layer: invalid-frame","Cannot build source rectangle from Neatline or Registration points.")}_getRegistrationPoints(e){let[t,i]="page"===e?[0,1]:[2,3];return this._registration.filter(e=>e.length>i).map(e=>[e[t],e[i]])}_pairNeatline(){let e=[];for(let t=0;t<this._neatline.length;t+=2){let i=this._neatline[t],r=this._neatline[t+1];Number.isFinite(i)&&Number.isFinite(r)&&e.push([i,r])}return 2===e.length&&(e.splice(1,0,[e[1][0],e[0][1]]),e.push([e[0][0],e[2][1]])),e}}const j={OriginLatitude:"Origin_Latitude",CentralMeridian:"Central_Meridian",ScaleFactor:"Scale_Factor",FalseEasting:"False_Easting",FalseNorthing:"False_Northing",Zone:"Zone",Hemisphere:"Hemisphere",StandardParallelOne:"Standard_Parallel_One",StandardParallelTwo:"Standard_Parallel_Two"},D=/^(?:NAD83|NORTH AMERICAN 1983|NAR(?:-[A-Z])?)$/i,L=/^(?:NAD27|NORTH AMERICAN 1927|NAS(?:-[A-Z])?)$/i,G=/^(?:WGS84|WGS 84|WGE)$/i;function N(e){let t=function(e){return function(e){let t,i=function(e){switch(e){case"Projection":case"Display":return e;default:return}}(e.Type),r=function(e){switch(e){case"TC":case"PH":case"UT":case"AC":case"LE":case"SPCS":return e;default:return}}(e.Projection_Type);if(r||(t="Projection is missing or has unsupported ProjectionType"),i||(t="Projection dictionary is missing or has invalid Type. Expected Projection or Display."),e.Datum||(t="Projection is missing a Datum"),t)throw new n.A("geospatial-pdf-layer:invalid-projection",t);return I(e,r),{kind:"projected",dictionaryType:i,projectionType:r,datum:e.Datum}}(e)}(e);if("projected"===t.kind){let{projectionType:i,datum:r}=t;return"SPCS"===i?function(e,t){let i=$(t);if(2800===e.Zone&&i&&z(i))return new l.A({wkid:32110});throw new n.A("geospatial-pdf-layer:invalid-projection",`Unsupported State Plane projection: datum ${t.name}, zone ${e.Zone}`)}(e,r):new l.A({wkt:O(e,i,r)})}}function I(e,t){let i=function(e){switch(e){case"TC":return["OriginLatitude","CentralMeridian","ScaleFactor","FalseEasting","FalseNorthing"];case"PH":return["OriginLatitude","CentralMeridian","FalseEasting","FalseNorthing"];case"UT":return["Zone","Hemisphere"];case"AC":case"LE":return["OriginLatitude","CentralMeridian","StandardParallelOne","StandardParallelTwo","FalseEasting","FalseNorthing"];case"SPCS":return["Zone"]}}(t);for(let r of i){let i=e[j[r]];if(void 0===i||""===i)throw new n.A("geospatial-pdf-layer:invalid-projection",`Projection ${t} missing required parameter ${r}.`)}}function O(e,t,i){let r=function(e,t,i){let r=function(e){let t=$(e);return t?z(t)?"NAD_1983":B(t)?"NAD_1927":Z(t)?"WGS_1984":"geospatialPDF":"geospatialPDF"}(i);switch(t){case"TC":return`${r}_GeospatialPDF_Transverse_Mercator`;case"PH":return`${r}_GeospatialPDF_Polyconic`;case"UT":return`${r}_GeospatialPDF_UTM_Zone_${e.Zone}_${e.Hemisphere}`;case"AC":return`${r}_GeospatialPDF_Albers_Equal_Area`;case"LE":return`${r}_GeospatialPDF_Lambert_Conformal_Conic`}}(e,t,i),a=function(e){switch(e){case"TC":case"UT":return"Transverse_Mercator";case"PH":return"Polyconic";case"AC":return"Albers";case"LE":return"Lambert_Conformal_Conic"}}(t),o=function(e){if("definition"===e.kind){let t=e.ellipsoid;if(!t?.semi_Major_Axis)throw new n.A("geospatial-pdf-layer:invalid-Datum","Datum definition requires semi-major axis");let i=function(e){if(null!=e.inverse_Flattening)return e.inverse_Flattening;let t=e.semi_Major_Axis,i=e.semi_Minor_Axis;if(null==t||null==i)throw new n.A("geospatial-pdf-layer:invalid-Datum","Ellipsoid definition missing InvFlattening or SemiMinorAxis.");return t===i?0:t/(t-i)}(t),r=e.name??"GeospatialPDF_Datum",a=`SPHEROID["${t.description??"GeospatialPDF_Spheroid"}",${t.semi_Major_Axis},${i}]`,o=e.to_WGS84;return`DATUM["${r}",${a}${o?`,TOWGS84[${o.dx??0},${o.dy??0},${o.dz??0},${o.rx??0},${o.ry??0},${o.rz??0},${o.sf??0}]`:""}]`}if(e.name){let t=e.name.toUpperCase();if(z(t))return'DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]]';if(B(t))return'DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]]';if(Z(t))return'DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]]'}throw new n.A("geospatial-pdf-layer:invalid-Datum","Unsupported datum "+e.name)}(i),l=function(e){let t=e.toLowerCase();return["m","meter","meters","metre","metres"].includes(t)?'UNIT["Meter",1.0]':["ft","foot","feet"].includes(t)?'UNIT["Foot",0.3048]':`UNIT["${e}",1.0]`}(e.Units??"M"),s=function(e,t){switch(t){case"TC":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`,`PARAMETER["Scale_Factor",${e.Scale_Factor}]`];case"PH":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`];case"AC":case"LE":return[`PARAMETER["False_Easting",${e.False_Easting}]`,`PARAMETER["False_Northing",${e.False_Northing}]`,`PARAMETER["Central_Meridian",${e.Central_Meridian}]`,`PARAMETER["Latitude_Of_Origin",${e.Origin_Latitude}]`,`PARAMETER["Standard_Parallel_1",${e.Standard_Parallel_One}]`,`PARAMETER["Standard_Parallel_2",${e.Standard_Parallel_Two}]`];case"UT":return function(e){if(!e.Zone)throw new n.A("geospatial-pdf-layer:invalid-projection","No zone found for projection code UT");let t=6*e.Zone-183;return['PARAMETER["False_Easting",500000]',`PARAMETER["False_Northing",${/^s/i.test(e.Hemisphere??"")?1e7:0}]`,`PARAMETER["Central_Meridian",${t}]`,'PARAMETER["Latitude_Of_Origin",0]','PARAMETER["Scale_Factor",0.9996]']}(e)}}(e,t);return`PROJCS["${r}",GEOGCS["${function(e){let t=$(e);return t?z(t)?"GCS_North_American_1983":B(t)?"GCS_North_American_1927":Z(t)?"GCS_WGS_1984":"GCS_GeospatialPDF":"GCS_GeospatialPDF"}(i)}",${o},PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],PROJECTION["${a}"],${s.join(",\n ")},${l}]`}function $(e){return e.name?function(e){return e.trim().toUpperCase().replace(/_/g," ").replace(/\s+/g," ")}(e.name):null}function z(e){return D.test(e)}function B(e){return L.test(e)}function Z(e){return G.test(e)}class H{constructor(e){let{bbox:t,bounds:i,gpts:r,lpts:n,gcs:a,mediaBox:o}=this.inputValidation(e);this._bbox=t,this._bounds=i,this._gpts=r,this._lpts=n,this._gcs=a,this.outerExtentMediaBox=S(o),this.geoControlPoints=this._getProjectedGeoControlPoints().map(e=>[e[0],e[1]]);let l=this._getBoundsPolygonPage()??this._getPageControlPoints();this.pairedNeatline=l.map(e=>[e[0],e[1]]),this.neatLine=this.pairedNeatline.flat(),this._georeference=this._createControlPointsGeoreference();let s=F(this._georeference);this.ctm=E(s),this.outputValidation()}toSpatialReference(){return new l.A({wkt:this._gcs.WKT})}inputValidation(e){let{bbox:t,bounds:i,gpts:r,lpts:a,gcs:o,mediaBox:l}=e;if(!t||4!==t.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Viewport missing or invalid BBox.");if(!l||4!==l.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Viewport missing or invalid MediaBox.");if(!r||r.length<6||r.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid GPTS.");if(!a||a.length<6||a.length%2!=0)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid LPTS.");if(a.length!==r.length)throw new n.A("geospatial-pdf-layer: invalid-frame","MeasureFrame LPTS and GPTS must be same length");if(!o?.WKT)throw new n.A("geospatial-pdf-layer:invalid-frame","MeasureFrame missing or invalid WKT.");return{bbox:t,bounds:i,gpts:r,lpts:a,gcs:{WKT:o.WKT},mediaBox:l}}outputValidation(){if(4!==this.outerExtentMediaBox.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Failed to generate outer extent from mediaBox.");if(this.geoControlPoints.length<2)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 2 geoControlPoints.");if(this.pairedNeatline.length<4)throw new n.A("geospatial-pdf-layer:invalid-frame","Map Frame should have at least 4 neatline points.");if(!this.ctm||6!==this.ctm.length)throw new n.A("geospatial-pdf-layer:invalid-frame","Missing or invalid Map Frame CTM")}_createControlPointsGeoreference(){let e=this._getPageControlPoints(),t=this._getProjectedGeoControlPoints(),i=this._getViewportRect();return T(e,t,this.toSpatialReference(),i)}_getBoundsPolygonLocal(){if(!this._bounds||this._bounds.length<8||this._bounds.length%2!=0)return null;let e=[];for(let t=0;t<this._bounds.length;t+=2)e.push({u:this._bounds[t],v:this._bounds[t+1]});return e}_getBoundsPolygonPage(){return this._getBoundsPolygonLocal()?.map(e=>this._localToPage(e.u,e.v))??null}_getPageControlPoints(){let e=[];for(let t=0;t<this._lpts.length;t+=2){let i=this._lpts[t],r=this._lpts[t+1];e.push(this._localToPage(i,r))}return e}_getProjectedGeoControlPoints(){let e=this.toSpatialReference(),t=[];for(let i=0;i<this._gpts.length;i+=2){let r=this._gpts[i],n=this._gpts[i+1],a=new d.A({x:n,y:r}),o=(0,A.projectExecute)(a,e);t.push((0,_.fA)(o.x,o.y))}return t}_getViewportRect(){let[e,t,i,r]=this._bbox;return{xmin:Math.min(e,i),ymin:Math.min(t,r),xmax:Math.max(e,i),ymax:Math.max(t,r)}}_localToPage(e,t){let[i,r,n,a]=this._bbox;return(0,_.fA)(i+e*(n-i),r+t*(a-r))}}function U(e){let t=re(e,"LGIDict map frame must be an object.");return{CTM:Q(t.CTM),Registration:X(t.Registration),Neatline:Q(t.Neatline),Projection:W(t.Projection),Display:W(t.Display)}}function k(e){let t=re(e,"Viewport frame must be an object."),i=function(e){if(ie(e))return{Bounds:Q(e.Bounds),GPTS:Q(e.GPTS),LPTS:Q(e.LPTS),GCS:V(e.GCS)}}(t.Measure);return{BBox:Q(t.BBox),Measure_Raw:t.Measure,Measure:i,Raw:t}}function V(e){if(ie(e))return{WKT:Y(e.WKT)}}function W(e){if(ie(e))return{Type:ee(e.Type),Units:ee(e.Units),Datum:J(e.Datum),Projection_Type:ee(e.ProjectionType),Central_Meridian:te(e.CentralMeridian),False_Easting:te(e.FalseEasting),False_Northing:te(e.FalseNorthing),Height:te(e.Height),Hemisphere:ee(e.Hemisphere),Latitude_One:te(e.LatitudeOne),Latitude_Two:te(e.LatitudeTwo),Latitude_Of_True_Scale:te(e.LatitudeOfTrueScale),Longitude_One:te(e.LongitudeOne),Longitude_Two:te(e.LongitudeTwo),Longitude_Down_From_Pole:te(e.LongitudeDownFromPole),Orientation:ee(e.Orientation),Origin_Height:te(e.OriginHeight),Origin_Latitude:te(e.OriginLatitude),Origin_Longitude:te(e.OriginLongitude),Scale_Factor:te(e.ScaleFactor),Standard_Parallel:te(e.StandardParallel),Standard_Parallel_One:te(e.StandardParallelOne),Standard_Parallel_Two:te(e.StandardParallelTwo),Zone:te(e.Zone),Description:ee(e.Description),raw:e}}function J(e){return null==e?null:"string"==typeof e?{kind:"name",name:ee(e),ellipsoid:null,to_WGS84:null,raw:e}:ie(e)?{kind:"definition",name:ee(e.Description),ellipsoid:K(e.Ellipsoid),to_WGS84:q(e.ToWGS84),raw:e}:{kind:"unknown",name:ee(e),ellipsoid:null,to_WGS84:null,raw:e}}function K(e){if(ie(e))return{semi_Major_Axis:te(e.SemiMajorAxis),inverse_Flattening:te(e.InvFlattening),semi_Minor_Axis:te(e.SemiMinorAxis),description:ee(e.Description)}}function q(e){if(ie(e))return{dx:te(e.dx)??0,dy:te(e.dy)??0,dz:te(e.dz)??0,rx:te(e.rx)??0,ry:te(e.ry)??0,rz:te(e.rz)??0,sf:te(e.sf)??0}}function Q(e){if(!Array.isArray(e))return;let t=[];for(let i of e){let e=te(i);if(void 0===e)return;t.push(e)}return t}function X(e){if(Array.isArray(e))return e.filter(e=>Array.isArray(e)).map(e=>e.map(e=>te(e)).filter(e=>void 0!==e))}function Y(e){if(null!=e)return"string"==typeof e?e:String(e)}function ee(e){let t=Y(e);if(void 0!==t)return t.trim()}function te(e){if(null==e)return;if("number"==typeof e)return Number.isFinite(e)?e:void 0;if("string"!=typeof e)return;let t=e.trim();if(""===t)return;let i=Number(t);return Number.isFinite(i)?i:void 0}function ie(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}function re(e,t){if(!ie(e))throw new n.A("geospatial-pdf-layer:parse",t);return e}let ne=class extends f.x_{constructor(){super(...arguments),this._connection=null,this._workerHandler=null}load(e){let t=(0,g.h)("GeospatialPDFLayerWorker",{...e,strategy:"dedicated",registryTarget:this}).then(e=>{this._connection=e,this._workerHandler=this._connection.createInvokeProxy()});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null,super.destroy()}async loadPDF(e,t={}){await this.load(t);let{geospatialMetadata:i}=await this._workerHandler.loadPDF(e,t),r=function(e,t=0){let i={mediaBox:Q(e.MediaBox),rotate:te(e.Rotate),hasLGIDict:null!=e.LGIDict,hasVP:null!=e.VP},r=(a=t,function(e){return null==e?[]:Array.isArray(e)?e.map(e=>U(e)):[U(e)]}(e.LGIDict)[a]);var a;if(r){if(!r.Projection)throw new n.A("geospatial-pdf-layer:parse","LGIDict map frame missing Projection.");let t,a=N(r.Projection);try{t=r.Display?N(r.Display):void 0}catch{t=a}return{result:i,lgiDictFrame:new b({ctm:r.CTM,registration:r.Registration,projection:a,display:t,neatline:r.Neatline,mediaBox:Q(e.MediaBox)})}}let o=function(e,t){return function(e){return null==e?[]:Array.isArray(e)?e.map(e=>k(e)):[k(e)]}(e)[t]}(e.VP,t);return o?{result:i,vpFrame:new H({bbox:o.BBox,bounds:o.Measure?.Bounds,gpts:o.Measure?.GPTS,lpts:o.Measure?.LPTS,gcs:o.Measure?.GCS,mediaBox:Q(e.MediaBox)})}:{result:i}}(i,0),a=r.lgiDictFrame??r.vpFrame;if(!a)throw new n.A("geospatial-pdf-layer:load","pdf does not contain supported LGIDict or VP/Measure.");let o=new v(a);return{frame:o,sourceSpatialReference:o.spatialReference.toJSON(),fullExtent:o.toExtent()}}async render(e,t,i,r,n,a){let o={sourceExtentAsJSON:e.toJSON(),width:t,height:i,ctm:r,currentRing:n};return this._workerHandler.renderPDF(o,a)}};ne=(0,r.Cg)([(0,o.$K)("esri.layers.geospatialPDF.GeospatialPDFWorkerClient")],ne);var ae=i(49859),oe=i(14140),le=i(87186);let se=class extends ae.A{constructor(){super(...arguments),this._workerClient=new ne,this._extent=null,this._ctm=null,this._neatlineRing=[],this._width=0,this._height=0,this._tileSize=512,this.datasetFormat="PDF",this.frame=null,this.neatlineExtent=null,this.page=1,this.tileType="Raster"}destroy(){this._workerClient.destroy(),this.neatlineExtent=null,this._extent=null,this._ctm=null,this._neatlineRing=[]}async fetchRawTile(e,t,i,r={}){let n=this._extent,a=this._ctm,o=this.getTileExtentPDF(e,t,i);return o.intersects(n)?function(e){return new oe.A({width:e.width,height:e.height,pixelType:"u8",pixels:[e.red,e.green,e.blue],mask:e.mask})}(await this._workerClient.render(o,this._tileSize,this._tileSize,a,this._neatlineRing,r)):null}async _open(e){if(!this.url)throw new n.A("geospatial-pdf-raster:open","GeospatialPDFRaster requires a url.");let t=await this._workerClient.loadPDF({url:this.url,page:this.page},e);this.frame=t.frame;let i=this.frame.outerExtentMediabox;if(!i)throw new n.A("geospatial-pdf-raster:open","Failed to compute Geospatial PDF extent.");this.neatlineExtent=t.fullExtent,this._extent=i,this._ctm=this.frame.ctm,this._neatlineRing=this.frame.sourceMediaBoxPolygon.rings[0];let r=function(e,t){let[i,r,a,o]=e,l=i*o-r*a;if(!Number.isFinite(l)||0===l)throw new n.A("geospatial-pdf-raster:open","Failed to derive raster dimensions from an invalid PDF CTM.");let s=10*Math.hypot(o,r)/Math.abs(l),u=10*Math.hypot(a,i)/Math.abs(l),p=Math.max(1,Math.ceil(t.width*s)),h=Math.max(1,Math.ceil(t.height*u));if(!Number.isFinite(p)||!Number.isFinite(h))throw new n.A("geospatial-pdf-raster:open","PDF CTM produced invalid raster dimensions.");return[p,h]}(this.frame.ctm,this._extent);this._width=r[0],this._height=r[1];let a={x:i.width/this._width,y:i.height/this._height},o=new le.A({width:this._width,height:this._height,pixelType:"u8",extent:i,pixelSize:a,spatialReference:i.spatialReference,bandCount:3,keyProperties:{DataType:"Processed"}});this.createRemoteDatasetStorageInfo(o,this._tileSize,this._tileSize),this._set("rasterInfo",o),this.updateTileInfo()}getTileExtentPDF(e,t,i){let r=this._extent,n=2**e,a=r.width/this._width*n,o=r.height/this._height*n,l=new d.A({x:r.xmin,y:r.ymax});return this.getTileExtent({x:a,y:o},t,i,l,r.spatialReference,[512,512])}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],se.prototype,"datasetFormat",void 0),(0,r.Cg)([(0,o.MZ)({constructOnly:!0})],se.prototype,"page",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],se.prototype,"tileType",void 0),se=(0,r.Cg)([(0,o.$K)("esri.layers.raster.datasets.GeospatialPDFRaster")],se);var ue=i(34930),pe=i(69540),he=i(25482),ce=i(64108),de=i(80812),fe=i(36005),ge=i(43937);let me=class extends((0,he.T)(pe.Pw)){constructor(e){super(e),this.type="portal-item"}readPortalItem(e,t,i){if(t.itemId)return new de.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}};(0,r.Cg)([(0,o.MZ)({type:["portal-item"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],me.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:de.default,json:{write:{isRequired:!0}}})],me.prototype,"portalItem",void 0),(0,r.Cg)([(0,fe.w)("portalItem",["itemId"])],me.prototype,"readPortalItem",null),(0,r.Cg)([(0,ge.K)("portalItem",{itemId:{type:String}})],me.prototype,"writePortalItem",null),me=(0,r.Cg)([(0,ce.$)("esri.layers.support.PortalItemData")],me);var _e=i(87045);let ye=class extends((0,p.dM)((0,c.j)((0,h.G)((0,a.M)(u.A))))){constructor(e){super(e),this.serviceRasterInfo=null,this._frame=null,this._objectURL=null,this.clippedToNeatline=!1,this.data=null,this.raster=null,this.spatialReference=null,this.type="geospatial-pdf"}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}destroy(){this._shutdownJobHandler(),this.raster?.destroy(),this._objectURL&&=(URL.revokeObjectURL(this._objectURL),null)}get fullExtent(){return this.serviceRasterInfo?.extent}async fetchImageBitmapTile(){throw new n.A("geospatial-pdf-layer:fetch-image-bitmap-tile","GeospatialPDFLayer does not expose pre-rendered image tile URLs.")}async fetchPixels(e,t,i,r={}){return we(this),await this._initJobHandler(),this.raster.fetchPixels(e,Math.round(t),Math.round(i),r)}async fetchTile(e,t,i,r={}){if(we(this),r.requestAsImageElement)throw new n.A("geospatial-pdf-layer:fetch-tile","GeospatialPDFLayer does not support requestAsImageElement.");await this._initJobHandler();let a=await this.raster.fetchTile(e,t,i,r);return this.clippedToNeatline&&a.pixelBlock&&this._frame&&a.srcExtent&&(a.pixelBlock=await(0,ue.$Q)(a.pixelBlock,a.srcExtent,this._frame.sourceNeatlinePolygon)),a}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;let r=(0,s.Vp)(e);return _e.A.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})}getRawDisplayBandIds(){return we(this),[0,1,2]}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(()=>{this._rasterJobHandler&&(we(this),this.raster.rasterJobHandler=this._rasterJobHandler)}).catch(()=>{})}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}async _getDataUrl(e){let{data:t}=this;if("string"==typeof t)return t;if(t instanceof File)return this._objectURL=URL.createObjectURL(t),this._objectURL;if(t instanceof me){await t.portalItem.load({signal:e?.signal});let i=t.portalItem.url;if(!i)throw new n.A("geospatial-pdf-layer:load","Portal item does not have a valid data URL.");return i}throw new n.A("geospatialpdf-layer:missing-data","A data source must be specified.")}async _load(e){let t=await this._getDataUrl(e);await this._openRaster(t,e?.signal)}async _openRaster(e,t){let i=new se({url:e});if(await i.open({signal:t}),!i.rasterInfo)throw i.destroy(),new n.A("geospatialpdf-layer:load","cannot load resources on "+e);let{rasterInfo:r}=i;this._set("serviceRasterInfo",r),this.setAtOrigin("spatialReference",r.spatialReference,"service"),this.setAtOrigin("tileInfo",r.storageInfo.tileInfo,"service"),this._frame=i.frame,this.raster=i}};function we(e){if(!e.raster||!e.serviceRasterInfo)throw new n.A("imagery-tile","no raster")}(0,r.Cg)([(0,o.MZ)()],ye.prototype,"serviceRasterInfo",void 0),(0,r.Cg)([(0,o.MZ)({clonable:!1})],ye.prototype,"_compatibleFullExtent",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean})],ye.prototype,"clippedToNeatline",void 0),(0,r.Cg)([(0,o.MZ)()],ye.prototype,"data",void 0),(0,r.Cg)([(0,o.MZ)({json:{read:!1}})],ye.prototype,"fullExtent",null),(0,r.Cg)([(0,o.MZ)()],ye.prototype,"raster",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0,type:l.A,json:{read:!1}})],ye.prototype,"spatialReference",void 0),(0,r.Cg)([(0,o.MZ)({type:_e.A,readOnly:!0})],ye.prototype,"tileInfo",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0,value:"geospatial-pdf"})],ye.prototype,"type",void 0),ye=(0,r.Cg)([(0,o.$K)("esri.layers.GeospatialPDFLayer")],ye);const xe=ye},91806(e,t,i){i.d(t,{A:()=>s});var r,n=i(32198),a=i(25482),o=i(91429),l=i(78888);let s=class extends a.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:l.jz,json:{write:!0}})],s.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],s.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],s.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],s.prototype,"scale",void 0),s=r=(0,n.Cg)([(0,o.$K)("esri.layers.support.LOD")],s)},87045(e,t,i){i.d(t,{A:()=>w});var r,n=i(32198),a=i(66552),o=i(25482),l=i(86211),s=i(91429),u=i(78888),p=i(86738),h=i(16930),c=i(21325),d=i(28735),f=i(91806),g=i(72802),m=i(36005),_=i(43937);const y=new a.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let w=class extends o.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:a=h.A.WebMercator,numLODs:o=24}=e;if(!(0,c.fn)(a)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new f.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new f.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new p.A(0,0,a),size:[n,n],spatialReference:a})}let s=(0,c.Vp)(a),u=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:a}):s?new p.A({x:s.origin[0],y:s.origin[1],spatialReference:a}):new p.A({x:0,y:0,spatialReference:a}),d=1/(39.37*(0,l.GA)(a)*96),g=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*d;g.push(new f.A({level:e,scale:t,resolution:r}))}else{let e=(0,c.EA)(a)?512/n*591657527.5917094:256/n*591657527.591555,i=Math.ceil(o/t);g.push(new f.A({level:0,scale:e,resolution:e*d}));for(let r=1;r<i;r++){let i=e/2**t,n=i*d;g.push(new f.A({level:r,scale:i,resolution:n})),e=i}}return new r({dpi:96,lods:g,origin:u,size:[n,n],spatialReference:a})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,c.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],n=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}tileAt(e,t,i,r){let n,a,o=this.lodAt(e);if(!o)return null;if("number"==typeof t)n=t,a=i;else if((0,c.aI)(t.spatialReference,this.spatialReference))n=t.x,a=t.y,r=i;else{let e=(0,d.Cv)(t,this.spatialReference);if(null==e)return null;n=e.x,a=e.y,r=i}let l=o.resolution*this.size[0],s=o.resolution*this.size[1];return r??=new g.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-a)/s+.001),r.col=Math.floor((n-this.origin.x)/l+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,n=i.resolution*this.size[0]/2**r,a=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*a,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+a,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,n=r*this.size[0],a=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*a,e[2]=e[0]+n,e[3]=e[1]+a,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],n=this.lods.length-t;for(let e=0;e<n;e++){let r=e+t,{scale:n,resolution:a}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new f.A({level:e,scale:n,resolution:a}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{read:y.read,write:y.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,n.Cg)([(0,s.MZ)({type:p.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,n.Cg)([(0,m.w)("origin")],w.prototype,"readOrigin",null),(0,n.Cg)([(0,s.MZ)({type:[f.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,n.Cg)([(0,s.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,n.Cg)([(0,m.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,n.Cg)([(0,_.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],w.prototype,"writeSize",null),(0,n.Cg)([(0,s.MZ)({type:h.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,n.Cg)([(0,s.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,i){i.d(t,{U:()=>n});var r=i(19419);class n{constructor(e,t,i,n=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909],{92009(e,a,r){r.d(a,{L:()=>u});var t=r(70333),n=r(56507),l=r(49186),i=r(17676),s=r(60694),y=r(20655),o=r(80812);async function u(e,a){let r=(0,s.qg)(e);if(!r)throw new l.A("invalid-url","Invalid scene service url");let u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){let a=(await c(e)).serviceItemId;if(!a)return null;let r=new o.default({id:a,apiKey:e.apiKey}),l=await async function(e){let a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=l&&(r.portal=new y.A({url:l}));try{return await r.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);let d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;let t=new o.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,i.QP)(e),null}}(u);if(!d?.url)throw new l.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;let m=await f(d.url,u);return m.portalItem=d,m}async function c(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,n.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){let r=(0,s.qg)(e);if(!r)throw new l.A("invalid-feature-service-url","Invalid feature service url");let t=r.url.path,i=a.layerId;if(null==i)return{serverUrl:t};let y=c(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,f=e=>{let r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},d=f("anonymous").catch(()=>f("no-prompt")),[m,L]=await Promise.all([d,y]),w=L?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw Error("expected layers array");if(Array.isArray(w)){for(let e=0;e<Math.min(w.length,h.length);e++)if(w[e].id===i)return{serverUrl:t,layerId:h[e].id}}else if(null!=i&&i<h.length)return{serverUrl:t,layerId:h[i].id};throw Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>s,Aq:()=>L,Jo:()=>m,QM:()=>i});var t=r(77548),n=r(7861);const l=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){let{serviceJSON:r,layersJSON:t,...n}=await s(e,a);u(r);let l={serviceJSON:r,...n};return t&&(u(t),l.layersJSON=t),l}async function s(e,a){let{loadContext:r,...l}=a||{},i=r?await r.fetchServiceMetadata(e,l):await(0,n.L)(e,l),s=(0,t.G$)();d(i);let y={serviceJSON:i,preferredHost:s};if((i.currentVersion??0)<10.5)return y;let o=`${(0,t.$x)()??e}/layers`,u=r?await r.fetchServiceMetadata(o,l):await(0,n.L)(o,l);return d(u),y.layersJSON={layers:u.layers,tables:u.tables},y}function y(e){return l.has(e.type)}function o(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(y),e.tables=e.tables?.filter(o)}function c(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function L(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(7283),r.e(7537)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(7005),r.e(9480),r.e(8505),r.e(9389)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(5683)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(9789),r.e(4674),r.e(893),r.e(7283),r.e(7013),r.e(7067),r.e(3312)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(7283),r.e(8361)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(3813)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(8732),r.e(3169)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6217)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2047),r.e(6475)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(221)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9657)]).then(()=>r(63201))).default,GeospatialPDFLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9187),r.e(8885),r.e(7865),r.e(9117),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(3299),r.e(9944),r.e(2754),r.e(6007),r.e(9859),r.e(5485),r.e(4642),r.e(7063)]).then(()=>r(87063))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5356),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(893),r.e(9944),r.e(6007),r.e(5676),r.e(2254),r.e(7772)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(9944),r.e(2754),r.e(6007),r.e(5676),r.e(9859),r.e(9235),r.e(2254),r.e(1003),r.e(2806),r.e(7870)]).then(()=>r(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(2047),r.e(6451),r.e(9229)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(7552),r.e(1843),r.e(7005),r.e(9480),r.e(2047),r.e(8197),r.e(6451),r.e(3527)]).then(()=>r(49013))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(1214),r.e(5051),r.e(6854),r.e(4859)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(6151),r.e(3902),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(4470),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(6151),r.e(3902),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(4674),r.e(893),r.e(8470),r.e(2241)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6151),r.e(4403)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5485),r.e(3121)]).then(()=>r(99557))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(8505),r.e(5977)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(1402)]).then(()=>r(16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(3819),r.e(3483),r.e(2100)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(7984),r.e(7885)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(1214),r.e(5051),r.e(6854),r.e(4779)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(7005),r.e(9480),r.e(8505),r.e(4844)]).then(()=>r(2e4))).default,SketchLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6151),r.e(4152)]).then(()=>r(15056))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(557)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(9789),r.e(4674),r.e(7283),r.e(1951)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(4674),r.e(893),r.e(8470),r.e(6811)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(146)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(5165)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9953),r.e(5228),r.e(7499),r.e(9260)]).then(()=>r(50638))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(3910),r.e(5128),r.e(4674),r.e(575)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(4470),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(167)]).then(()=>r(90167))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(9944),r.e(2754),r.e(6007),r.e(5676),r.e(9859),r.e(9235),r.e(2254),r.e(2806),r.e(2061)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9281)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(1904)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},7861(e,a,r){r.d(a,{L:()=>n});var t=r(56507);async function n(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909],{92009(e,a,r){r.d(a,{L:()=>u});var t=r(70333),n=r(56507),l=r(49186),i=r(17676),s=r(60694),y=r(20655),o=r(80812);async function u(e,a){let r=(0,s.qg)(e);if(!r)throw new l.A("invalid-url","Invalid scene service url");let u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){let a=(await c(e)).serviceItemId;if(!a)return null;let r=new o.default({id:a,apiKey:e.apiKey}),l=await async function(e){let a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=l&&(r.portal=new y.A({url:l}));try{return await r.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);let d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;let t=new o.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,i.QP)(e),null}}(u);if(!d?.url)throw new l.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;let m=await f(d.url,u);return m.portalItem=d,m}async function c(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,n.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){let r=(0,s.qg)(e);if(!r)throw new l.A("invalid-feature-service-url","Invalid feature service url");let t=r.url.path,i=a.layerId;if(null==i)return{serverUrl:t};let y=c(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,f=e=>{let r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},d=f("anonymous").catch(()=>f("no-prompt")),[m,L]=await Promise.all([d,y]),w=L?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw Error("expected layers array");if(Array.isArray(w)){for(let e=0;e<Math.min(w.length,h.length);e++)if(w[e].id===i)return{serverUrl:t,layerId:h[e].id}}else if(null!=i&&i<h.length)return{serverUrl:t,layerId:h[i].id};throw Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>s,Aq:()=>L,Jo:()=>m,QM:()=>i});var t=r(77548),n=r(7861);const l=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){let{serviceJSON:r,layersJSON:t,...n}=await s(e,a);u(r);let l={serviceJSON:r,...n};return t&&(u(t),l.layersJSON=t),l}async function s(e,a){let{loadContext:r,...l}=a||{},i=r?await r.fetchServiceMetadata(e,l):await(0,n.L)(e,l),s=(0,t.G$)();d(i);let y={serviceJSON:i,preferredHost:s};if((i.currentVersion??0)<10.5)return y;let o=`${(0,t.$x)()??e}/layers`,u=r?await r.fetchServiceMetadata(o,l):await(0,n.L)(o,l);return d(u),y.layersJSON={layers:u.layers,tables:u.tables},y}function y(e){return l.has(e.type)}function o(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(y),e.tables=e.tables?.filter(o)}function c(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function L(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(7283),r.e(7537)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(7005),r.e(9480),r.e(8505),r.e(9389)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(5683)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(9789),r.e(4674),r.e(893),r.e(7283),r.e(7013),r.e(7067),r.e(3312)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(4674),r.e(7283),r.e(8361)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(3813)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(8732),r.e(3169)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6217)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2047),r.e(6475)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(221)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9657)]).then(()=>r(63201))).default,GeospatialPDFLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9187),r.e(8885),r.e(7865),r.e(9117),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(3299),r.e(9944),r.e(2754),r.e(6841),r.e(9859),r.e(5485),r.e(4642),r.e(7063)]).then(()=>r(87063))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5356),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(893),r.e(9944),r.e(6841),r.e(5676),r.e(3452),r.e(7772)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(9944),r.e(2754),r.e(6841),r.e(5676),r.e(9859),r.e(9235),r.e(3452),r.e(1003),r.e(2806),r.e(7870)]).then(()=>r(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(2047),r.e(6451),r.e(9229)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(9953),r.e(7552),r.e(1843),r.e(7005),r.e(9480),r.e(2047),r.e(8197),r.e(6451),r.e(3527)]).then(()=>r(49013))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(1214),r.e(5051),r.e(6854),r.e(4859)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(6151),r.e(3902),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(4470),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(6151),r.e(3902),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(4674),r.e(893),r.e(8470),r.e(2241)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6151),r.e(4403)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5485),r.e(3121)]).then(()=>r(99557))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(8505),r.e(5977)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(1402)]).then(()=>r(16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(3819),r.e(3483),r.e(2100)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(7984),r.e(7885)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(1214),r.e(5051),r.e(6854),r.e(4779)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(7005),r.e(9480),r.e(8505),r.e(4844)]).then(()=>r(2e4))).default,SketchLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(6151),r.e(4152)]).then(()=>r(15056))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(557)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(2889),r.e(9789),r.e(4674),r.e(7283),r.e(1951)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(4674),r.e(893),r.e(8470),r.e(6811)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(146)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(5165)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(9953),r.e(5228),r.e(7499),r.e(9260)]).then(()=>r(50638))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(3910),r.e(5128),r.e(4674),r.e(575)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(4470),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(2869),r.e(167)]).then(()=>r(90167))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(9944),r.e(2754),r.e(6841),r.e(5676),r.e(9859),r.e(9235),r.e(3452),r.e(2806),r.e(2061)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(564),r.e(7552),r.e(1214),r.e(5051),r.e(2889),r.e(6854),r.e(1017),r.e(9281)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(3910),r.e(5128),r.e(1904)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(6914),r.e(7865),r.e(5732),r.e(7269)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},7861(e,a,r){r.d(a,{L:()=>n});var t=r(56507);async function n(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={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}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),!t.assetsPath&&(t.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.1/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
2
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={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}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),!t.assetsPath&&(t.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.2/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import has from"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`6.0.0-next.1`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}has(`host-webworker`)||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has(`host-webworker`);export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
2
+ import has from"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`6.0.0-next.2`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}has(`host-webworker`)||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has(`host-webworker`);export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
@@ -3,12 +3,11 @@ import type Layer from "./Layer.js";
3
3
  import type TileInfo from "./support/TileInfo.js";
4
4
  import type { MultiOriginJSONSupportMixin } from "../core/MultiOriginJSONSupport.js";
5
5
  import type { BlendLayer, BlendLayerProperties } from "./mixins/BlendLayer.js";
6
- import type { PortalLayer, PortalLayerProperties } from "./mixins/PortalLayer.js";
7
6
  import type { ScaleRangeLayer, ScaleRangeLayerProperties } from "./mixins/ScaleRangeLayer.js";
8
7
  import type { GeospatialPDFDataUnion } from "./support/types.js";
9
8
  import type { LayerProperties } from "./Layer.js";
10
9
 
11
- export interface GeospatialPDFLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, BlendLayerProperties, Partial<Pick<GeospatialPDFLayer, "clippedToNeatline" | "data" | "url">> {}
10
+ export interface GeospatialPDFLayerProperties extends LayerProperties, ScaleRangeLayerProperties, BlendLayerProperties, Partial<Pick<GeospatialPDFLayer, "clippedToNeatline" | "data">> {}
12
11
 
13
12
  export default class GeospatialPDFLayer extends GeospatialPDFLayerSuperclass {
14
13
  constructor(properties?: GeospatialPDFLayerProperties);
@@ -26,7 +25,5 @@ export default class GeospatialPDFLayer extends GeospatialPDFLayerSuperclass {
26
25
  get tileInfo(): TileInfo | null | undefined;
27
26
  /** The layer type provides a convenient way to check the type of the layer without the need to import specific layer modules. */
28
27
  get type(): "geospatial-pdf";
29
- /** The URL to the PDF file. */
30
- accessor url: string;
31
28
  }
32
- declare const GeospatialPDFLayerSuperclass: typeof Layer & typeof MultiOriginJSONSupportMixin & typeof PortalLayer & typeof ScaleRangeLayer & typeof BlendLayer
29
+ declare const GeospatialPDFLayerSuperclass: typeof Layer & typeof MultiOriginJSONSupportMixin & typeof ScaleRangeLayer & typeof BlendLayer
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../core/Error.js";import n from"../core/Logger.js";import{MultiOriginJSONSupportMixin as r}from"../core/MultiOriginJSONSupport.js";import{property as i,subclass as a}from"../core/accessorSupport/decorators.js";import o from"../geometry/SpatialReference.js";import{getInfo as s}from"../geometry/support/spatialReferenceUtils.js";import c from"./Layer.js";import{BlendLayer as l}from"./mixins/BlendLayer.js";import{PortalLayer as u}from"./mixins/PortalLayer.js";import{RasterJobHandlerMixin as d}from"./mixins/RasterJobHandlerMixin.js";import{ScaleRangeLayer as f}from"./mixins/ScaleRangeLayer.js";import p from"./raster/datasets/GeospatialPDFRaster.js";import{clip as m}from"./raster/functions/clipUtils.js";import{sanitizeUrl as h}from"./support/arcgisLayerUrl.js";import g from"./support/PortalItemData.js";import _ from"./support/TileInfo.js";let v=class extends l(f(u(d(r(c))))){constructor(e){super(e),this.serviceRasterInfo=null,this._frame=null,this._objectURL=null,this.clippedToNeatline=!1,this.data=null,this.raster=null,this.spatialReference=null,this.type=`geospatial-pdf`}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}destroy(){this._shutdownJobHandler(),this.raster?.destroy(),this._objectURL&&=(URL.revokeObjectURL(this._objectURL),null)}get fullExtent(){return this.serviceRasterInfo?.extent}set url(e){this._set(`url`,h(e,n.getLogger(this)))}async fetchImageBitmapTile(){throw new t(`geospatial-pdf-layer:fetch-image-bitmap-tile`,`GeospatialPDFLayer does not expose pre-rendered image tile URLs.`)}async fetchPixels(e,t,n,r={}){return y(this),await this._initJobHandler(),this.raster.fetchPixels(e,Math.round(t),Math.round(n),r)}async fetchTile(e,n,r,i={}){if(y(this),i.requestAsImageElement)throw new t(`geospatial-pdf-layer:fetch-tile`,`GeospatialPDFLayer does not support requestAsImageElement.`);await this._initJobHandler();let a=await this.raster.fetchTile(e,n,r,i);return this.clippedToNeatline&&a.pixelBlock&&this._frame&&a.srcExtent&&(a.pixelBlock=await m(a.pixelBlock,a.srcExtent,this._frame.sourceNeatlinePolygon)),a}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}getCompatibleTileInfo(e,t,n=!1){if(!this.loaded||t==null)return null;if(n&&e.equals(this.spatialReference))return this.tileInfo;let r=s(e);return _.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})}getRawDisplayBandIds(){return y(this),[0,1,2]}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(()=>{this._rasterJobHandler&&(y(this),this.raster.rasterJobHandler=this._rasterJobHandler)}).catch(()=>{})}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}async _getDataUrl(e){let{data:n}=this;if(typeof n==`string`)return n;if(n instanceof File)return this._objectURL=URL.createObjectURL(n),this._objectURL;if(n instanceof g){await n.portalItem.load({signal:e?.signal});let r=n.portalItem.url;if(!r)throw new t(`geospatial-pdf-layer:load`,`Portal item does not have a valid data URL.`);return r}throw new t(`geospatialpdf-layer:missing-data`,`A data source must be specified.`)}async _load(e){let t=await this._getDataUrl(e);await this._openRaster(t,e?.signal)}async _openRaster(e,n){let r=new p({url:e});if(await r.open({signal:n}),!r.rasterInfo)throw r.destroy(),new t(`geospatialpdf-layer:load`,`cannot load resources on `+e);let{rasterInfo:i}=r;this._set(`serviceRasterInfo`,i),this.setAtOrigin(`spatialReference`,i.spatialReference,`service`),this.setAtOrigin(`tileInfo`,i.storageInfo.tileInfo,`service`),this._frame=r.frame,this.raster=r}};e([i()],v.prototype,`serviceRasterInfo`,void 0),e([i({clonable:!1})],v.prototype,`_compatibleFullExtent`,void 0),e([i({type:Boolean})],v.prototype,`clippedToNeatline`,void 0),e([i()],v.prototype,`data`,void 0),e([i({json:{read:!1}})],v.prototype,`fullExtent`,null),e([i()],v.prototype,`raster`,void 0),e([i({readOnly:!0,type:o,json:{read:!1}})],v.prototype,`spatialReference`,void 0),e([i({type:_,readOnly:!0})],v.prototype,`tileInfo`,void 0),e([i({readOnly:!0,value:`geospatial-pdf`})],v.prototype,`type`,void 0),e([i()],v.prototype,`url`,null),v=e([a(`esri.layers.GeospatialPDFLayer`)],v);function y(e){if(!e.raster||!e.serviceRasterInfo)throw new t(`imagery-tile`,`no raster`)}const b=v;export{b as default};
2
+ import{__decorate as e}from"tslib";import t from"../core/Error.js";import{MultiOriginJSONSupportMixin as n}from"../core/MultiOriginJSONSupport.js";import{property as r,subclass as i}from"../core/accessorSupport/decorators.js";import a from"../geometry/SpatialReference.js";import{getInfo as o}from"../geometry/support/spatialReferenceUtils.js";import s from"./Layer.js";import{BlendLayer as c}from"./mixins/BlendLayer.js";import{RasterJobHandlerMixin as l}from"./mixins/RasterJobHandlerMixin.js";import{ScaleRangeLayer as u}from"./mixins/ScaleRangeLayer.js";import d from"./raster/datasets/GeospatialPDFRaster.js";import{clip as f}from"./raster/functions/clipUtils.js";import p from"./support/PortalItemData.js";import m from"./support/TileInfo.js";let h=class extends c(u(l(n(s)))){constructor(e){super(e),this.serviceRasterInfo=null,this._frame=null,this._objectURL=null,this.clippedToNeatline=!1,this.data=null,this.raster=null,this.spatialReference=null,this.type=`geospatial-pdf`}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}destroy(){this._shutdownJobHandler(),this.raster?.destroy(),this._objectURL&&=(URL.revokeObjectURL(this._objectURL),null)}get fullExtent(){return this.serviceRasterInfo?.extent}async fetchImageBitmapTile(){throw new t(`geospatial-pdf-layer:fetch-image-bitmap-tile`,`GeospatialPDFLayer does not expose pre-rendered image tile URLs.`)}async fetchPixels(e,t,n,r={}){return g(this),await this._initJobHandler(),this.raster.fetchPixels(e,Math.round(t),Math.round(n),r)}async fetchTile(e,n,r,i={}){if(g(this),i.requestAsImageElement)throw new t(`geospatial-pdf-layer:fetch-tile`,`GeospatialPDFLayer does not support requestAsImageElement.`);await this._initJobHandler();let a=await this.raster.fetchTile(e,n,r,i);return this.clippedToNeatline&&a.pixelBlock&&this._frame&&a.srcExtent&&(a.pixelBlock=await f(a.pixelBlock,a.srcExtent,this._frame.sourceNeatlinePolygon)),a}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}getCompatibleTileInfo(e,t,n=!1){if(!this.loaded||t==null)return null;if(n&&e.equals(this.spatialReference))return this.tileInfo;let r=o(e);return m.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})}getRawDisplayBandIds(){return g(this),[0,1,2]}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(()=>{this._rasterJobHandler&&(g(this),this.raster.rasterJobHandler=this._rasterJobHandler)}).catch(()=>{})}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}async _getDataUrl(e){let{data:n}=this;if(typeof n==`string`)return n;if(n instanceof File)return this._objectURL=URL.createObjectURL(n),this._objectURL;if(n instanceof p){await n.portalItem.load({signal:e?.signal});let r=n.portalItem.url;if(!r)throw new t(`geospatial-pdf-layer:load`,`Portal item does not have a valid data URL.`);return r}throw new t(`geospatialpdf-layer:missing-data`,`A data source must be specified.`)}async _load(e){let t=await this._getDataUrl(e);await this._openRaster(t,e?.signal)}async _openRaster(e,n){let r=new d({url:e});if(await r.open({signal:n}),!r.rasterInfo)throw r.destroy(),new t(`geospatialpdf-layer:load`,`cannot load resources on `+e);let{rasterInfo:i}=r;this._set(`serviceRasterInfo`,i),this.setAtOrigin(`spatialReference`,i.spatialReference,`service`),this.setAtOrigin(`tileInfo`,i.storageInfo.tileInfo,`service`),this._frame=r.frame,this.raster=r}};e([r()],h.prototype,`serviceRasterInfo`,void 0),e([r({clonable:!1})],h.prototype,`_compatibleFullExtent`,void 0),e([r({type:Boolean})],h.prototype,`clippedToNeatline`,void 0),e([r()],h.prototype,`data`,void 0),e([r({json:{read:!1}})],h.prototype,`fullExtent`,null),e([r()],h.prototype,`raster`,void 0),e([r({readOnly:!0,type:a,json:{read:!1}})],h.prototype,`spatialReference`,void 0),e([r({type:m,readOnly:!0})],h.prototype,`tileInfo`,void 0),e([r({readOnly:!0,value:`geospatial-pdf`})],h.prototype,`type`,void 0),h=e([i(`esri.layers.GeospatialPDFLayer`)],h);function g(e){if(!e.raster||!e.serviceRasterInfo)throw new t(`imagery-tile`,`no raster`)}const _=h;export{_ as default};
@@ -46,7 +46,7 @@ import type { ParquetFilesDataProperties } from "./support/ParquetFilesData.js";
46
46
  import type { ReadonlyArrayOrCollection } from "../core/Collection.js";
47
47
  import type { LayerProperties } from "./Layer.js";
48
48
 
49
- export interface ParquetLayerProperties extends LayerProperties, CustomParametersMixinProperties, OperationalLayerProperties, RefreshableLayerProperties, ScaleRangeLayerProperties, DataSeriesLayerProperties, OrderedLayerProperties, BlendLayerProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties, Partial<Pick<ParquetLayer, "copyright" | "definitionExpression" | "geometryType" | "labelsVisible" | "legendEnabled" | "outFields" | "popupEnabled">> {
49
+ export interface ParquetLayerProperties extends LayerProperties, CustomParametersMixinProperties, OperationalLayerProperties, RefreshableLayerProperties, ScaleRangeLayerProperties, DataSeriesLayerProperties, OrderedLayerProperties, BlendLayerProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties, Partial<Pick<ParquetLayer, "charts" | "copyright" | "definitionExpression" | "geometryType" | "labelsVisible" | "legendEnabled" | "outFields" | "popupEnabled">> {
50
50
  /**
51
51
  * The data source for the ParquetLayer. Set this property to [parquet files](https://developers.arcgis.com/javascript/latest/references/core/layers/support/ParquetFilesData/)
52
52
  * or a [portal item](https://developers.arcgis.com/javascript/latest/references/core/layers/support/ParquetPortalItemData/) to define which Parquet content the layer loads.
@@ -332,6 +332,12 @@ export default class ParquetLayer extends ParquetLayerSuperclass {
332
332
  constructor(properties?: ParquetLayerProperties);
333
333
  /** Describes the layer's supported capabilities. */
334
334
  get capabilities(): FeatureLayerCapabilities | null | undefined;
335
+ /**
336
+ * Array of Chart Items of type WebMapWebChart available on the parquet layer.
337
+ *
338
+ * @since 5.2
339
+ */
340
+ accessor charts: object[] | null | undefined;
335
341
  /** Copyright information for the layer. */
336
342
  accessor copyright: string | null | undefined;
337
343
  /**
@@ -622,6 +628,7 @@ export default class ParquetLayer extends ParquetLayerSuperclass {
622
628
  * });
623
629
  */
624
630
  get urls(): Collection<string>;
631
+ /** @deprecated */
625
632
  set urls(value: ReadonlyArrayOrCollection<string> | string[] | null | undefined);
626
633
  /**
627
634
  * Creates a popup template for the layer, populated with all the fields of the layer.
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../PopupTemplate.js";import{ClonableMixin as n}from"../core/Clonable.js";import r from"../core/Collection.js";import{deprecatedProperty as i}from"../core/deprecate.js";import a from"../core/Error.js";import has from"../core/has.js";import o from"../core/Logger.js";import{MultiOriginJSONSupportMixin as s}from"../core/MultiOriginJSONSupport.js";import{setDeepValue as c}from"../core/object.js";import{on as l}from"../core/reactiveUtils.js";import{getFilename as u}from"../core/urlUtils.js";import{property as d}from"../core/accessorSupport/decorators/property.js";import{subclass as f}from"../core/accessorSupport/decorators/subclass.js";import{writer as p}from"../core/accessorSupport/decorators/writer.js";import m from"../geometry/Extent.js";import h from"../geometry/SpatialReference.js";import g from"../graphic/ParquetGraphicOrigin.js";import _ from"./Layer.js";import{ParquetSource as v}from"./graphics/sources/ParquetSource.js";import{BlendLayer as y}from"./mixins/BlendLayer.js";import{CustomParametersMixin as b}from"./mixins/CustomParametersMixin.js";import{DataSeriesLayer as x}from"./mixins/DataSeriesLayer.js";import{FeatureEffectLayer as S}from"./mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as C}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as w}from"./mixins/OperationalLayer.js";import{OrderedLayer as T}from"./mixins/OrderedLayer.js";import{RefreshableLayer as E}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as D}from"./mixins/ScaleRangeLayer.js";import{labelsVisible as O,legendEnabled as k,popupEnabled as A}from"./support/commonProperties.js";import j from"./support/FeatureTemplate.js";import M from"./support/Field.js";import{defineFieldProperties as N}from"./support/fieldProperties.js";import{fixRendererFields as P}from"./support/fieldUtils.js";import F from"./support/GeometryEncodingLocation.js";import I from"./support/GeometryEncodingWkb.js";import L from"./support/LabelClass.js";import{reader as R}from"./support/labelingInfo.js";import z from"./support/ParquetFilesData.js";import B from"./support/ParquetPortalItemData.js";import{parquetGeometryTypeKebabDict as V}from"./support/parquetUtils.js";import{rendererTypes as H}from"../renderers/support/typeUtils.js";import U from"../rest/support/Query.js";import{createPopupTemplate as W}from"../support/popupUtils.js";import{utc as G}from"../time/constants.js";const K=N(),q=`__OBJECTID`,J={types:{key:`type`,base:null,typeMap:{wkb:I,location:F}},json:{name:`layerDefinition.geometryEncoding`,write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:`geometryEncoding`}}}}};let Y=class extends C(S(y(T(x(D(E(w(s(b(n(_))))))))))){constructor(e){super(e),this._emptyUrls=new r,this.copyright=null,this.definitionExpression=null,this.returnM=void 0,this.returnZ=void 0,this.displayOptimization=null,this.fields=null,this.fieldsIndex=null,this.geometryEncoding=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new g(this),this.labelsVisible=!0,this.labelingInfo=null,this.objectIdField=q,this.operationalLayerType=`ParquetLayer`,this.outFields=null,this.persistenceEnabled=!!has(`parquetlayer-persistence-enabled`),this.popupTemplate=null,this.source=null,this.spatialReference=null,this.templates=null,this.type=`parquet`,this.data=null}initialize(){this.addHandles(l(()=>this.source,`source-changed`,()=>{this.emit(`refresh`,{dataChanged:!0})}))}destroy(){this.source?.destroy()}async load(e){return this.addResolvingPromise(this._load(e)),this}get capabilities(){return this.source?.capabilities}get dateFieldsTimeZone(){return G}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,n,r){let i=e.filter(e=>e.name!==q||e.type!==`oid`).map(e=>e.toJSON(r));c(n,i,t)}get isTable(){return this.geometryEncoding==null&&this.displayOptimization==null}set renderer(e){P(e,this.fieldsIndex),this._set(`renderer`,e)}get title(){let e=this._get(`title`);if(e&&this.originOf(`title`)!==`defaults`)return e;switch(this.data?.type){case`files`:{let t=this.data.urls?.at(0);e=t?u(t,[`parquet`]):null;break}case`portal-item`:e=this.data.portalItem?.title}return e||`Parquet`}set title(e){this._set(`title`,e)}writeData(e,t,n,r){if(!e)return;if(e.type===`portal-item`&&e.portalItem?.type!==`Parquet Feature Layer`){r.messages?.push(new a(`parquet-layer:unsupported-data`,`Portal item with type '${e.portalItem?.type}' is not supported in web maps`,{layer:this,itemId:e.portalItem?.id}));return}let i=e.write({},r);i&&(t.source=i)}get urls(){return this.data?.type===`files`?this.data.urls:this._emptyUrls}set urls(e){i(o.getLogger(this),`urls`,{replacement:`data`,version:`5.1`,warnOnce:!0}),this.data=new z({urls:this._normalizeUrls(e)})}createPopupTemplate(e){return W(this,e)}createQuery(){let e=new U;return e.returnGeometry=!0,e.outFields=[`*`],e.where=this.definitionExpression||`1=1`,e}async createSource(e){let t=new v({layer:this});return await t.load(e),t}getFieldDomain(e,t){return null}getField(e){return this.fieldsIndex.get(e)}async queryFeatures(e,t){await this.load();let n=await this.source.queryFeatures(this._normalizeQuery(e),t),r=this.graphicOrigin;if(n?.features)for(let e of n.features)e.layer=e.sourceLayer=this,e.origin=r;return n}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(this._normalizeQuery(e),t)}async queryFeatureCount(e,t){return await this.load(),this.source.queryFeatureCount(this._normalizeQuery(e),t)}async queryExtent(e,t){return await this.load(),this.source.queryExtent(this._normalizeQuery(e),t)}async hasDataChanged(){if(this.data?.type===`portal-item`){let e=this.data.portalItem,t=e.modified?.getTime();if(await e.reload(),t===e.modified?.getTime())return!1}return await this.source.reload(null),!0}_normalizeQuery(e){return U.from(e)??this.createQuery()}_normalizeUrls(e){return Array.isArray(e)?new r(e):e??new r}async _load(e){this.data?.type===`portal-item`&&await this.data.portalItem.load();let t=await this.createSource(e);this._set(`source`,t),this.read(t.sourceJSON,{origin:`service`}),[`fields`].forEach(e=>this.revertToOrigin(e,`service`)),P(this.renderer,this.fieldsIndex),this.spatialReference??=h.WGS84}};e([d({readOnly:!0,json:{read:!1,write:!1}})],Y.prototype,`capabilities`,null),e([d({type:String})],Y.prototype,`copyright`,void 0),e([d({readOnly:!0})],Y.prototype,`dateFieldsTimeZone`,null),e([d({readOnly:!0})],Y.prototype,`defaultPopupTemplate`,null),e([d({type:String,json:{name:`layerDefinition.definitionExpression`,write:{enabled:!0,allowNull:!0}}})],Y.prototype,`definitionExpression`,void 0),e([d({type:Boolean})],Y.prototype,`returnM`,void 0),e([d({type:Boolean})],Y.prototype,`returnZ`,void 0),e([d()],Y.prototype,`displayOptimization`,void 0),e([d({type:[M],json:{name:`layerDefinition.fields`,write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:`fields`}}}})],Y.prototype,`fields`,void 0),e([p(`fields`)],Y.prototype,`writeFields`,null),e([d(K.fieldsIndex)],Y.prototype,`fieldsIndex`,void 0),e([d(J)],Y.prototype,`geometryEncoding`,void 0),e([d({type:m,json:{name:`extent`}})],Y.prototype,`fullExtent`,void 0),e([d({type:V.apiValues,json:{name:`layerDefinition.geometryType`,read:{reader:V.read},write:{writer:V.write,ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:`geometryType`,reader:V.read}}}}})],Y.prototype,`geometryType`,void 0),e([d({readOnly:!0,clonable:!1})],Y.prototype,`graphicOrigin`,void 0),e([d(O)],Y.prototype,`labelsVisible`,void 0),e([d({type:[L],json:{name:`layerDefinition.drawingInfo.labelingInfo`,read:{reader:R},write:!0}})],Y.prototype,`labelingInfo`,void 0),e([d(k)],Y.prototype,`legendEnabled`,void 0),e([d()],Y.prototype,`file`,void 0),e([d({type:String,readOnly:!0})],Y.prototype,`objectIdField`,void 0),e([d({type:[`ParquetLayer`]})],Y.prototype,`operationalLayerType`,void 0),e([d(K.outFields)],Y.prototype,`outFields`,void 0),e([d(A)],Y.prototype,`popupEnabled`,void 0),e([d({type:t,json:{name:`popupInfo`,write:!0}})],Y.prototype,`popupTemplate`,void 0),e([d({types:H,json:{name:`layerDefinition.drawingInfo.renderer`,write:!0,origins:{service:{read:{source:`drawingInfo.renderer`}}}}})],Y.prototype,`renderer`,null),e([d({type:v,readOnly:!0,cast:null,json:{read:!1}})],Y.prototype,`source`,void 0),e([d({type:h,json:{name:`layerDefinition.spatialReference`,write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:`extent.spatialReference`}}}}})],Y.prototype,`spatialReference`,void 0),e([d({type:[j]})],Y.prototype,`templates`,void 0),e([d()],Y.prototype,`title`,null),e([d({json:{read:!1},readOnly:!0})],Y.prototype,`type`,void 0),e([d({types:{key:`type`,base:null,typeMap:{files:z,"portal-item":B}},json:{name:`source`,origins:{"web-map":{write:{target:`source`,ignoreOrigin:!0}}}}})],Y.prototype,`data`,void 0),e([p(`web-map`,`data`)],Y.prototype,`writeData`,null),e([d({type:r.ofType(String),json:{read:!1,write:!1}})],Y.prototype,`urls`,null),Y=e([f(`esri.layers.ParquetLayer`)],Y);export{Y as default};
2
+ import{__decorate as e}from"tslib";import t from"../PopupTemplate.js";import{ClonableMixin as n}from"../core/Clonable.js";import r from"../core/Collection.js";import{deprecatedProperty as i}from"../core/deprecate.js";import a from"../core/Error.js";import has from"../core/has.js";import o from"../core/Logger.js";import{MultiOriginJSONSupportMixin as s}from"../core/MultiOriginJSONSupport.js";import{setDeepValue as c}from"../core/object.js";import{on as l}from"../core/reactiveUtils.js";import{getFilename as u}from"../core/urlUtils.js";import{property as d}from"../core/accessorSupport/decorators/property.js";import{subclass as f}from"../core/accessorSupport/decorators/subclass.js";import{writer as p}from"../core/accessorSupport/decorators/writer.js";import m from"../geometry/Extent.js";import h from"../geometry/SpatialReference.js";import g from"../graphic/ParquetGraphicOrigin.js";import _ from"./Layer.js";import{ParquetSource as v}from"./graphics/sources/ParquetSource.js";import{BlendLayer as y}from"./mixins/BlendLayer.js";import{CustomParametersMixin as b}from"./mixins/CustomParametersMixin.js";import{DataSeriesLayer as x}from"./mixins/DataSeriesLayer.js";import{FeatureEffectLayer as S}from"./mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as C}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as w}from"./mixins/OperationalLayer.js";import{OrderedLayer as T}from"./mixins/OrderedLayer.js";import{RefreshableLayer as E}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as D}from"./mixins/ScaleRangeLayer.js";import{labelsVisible as O,legendEnabled as k,popupEnabled as A}from"./support/commonProperties.js";import j from"./support/FeatureTemplate.js";import M from"./support/Field.js";import{defineFieldProperties as N}from"./support/fieldProperties.js";import{fixRendererFields as P}from"./support/fieldUtils.js";import F from"./support/GeometryEncodingLocation.js";import I from"./support/GeometryEncodingWkb.js";import L from"./support/LabelClass.js";import{reader as R}from"./support/labelingInfo.js";import z from"./support/ParquetFilesData.js";import B from"./support/ParquetPortalItemData.js";import{parquetGeometryTypeKebabDict as V}from"./support/parquetUtils.js";import{rendererTypes as H}from"../renderers/support/typeUtils.js";import U from"../rest/support/Query.js";import{createPopupTemplate as W}from"../support/popupUtils.js";import{utc as G}from"../time/constants.js";const K=N(),q=`__OBJECTID`,J={types:{key:`type`,base:null,typeMap:{wkb:I,location:F}},json:{name:`layerDefinition.geometryEncoding`,write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:`geometryEncoding`}}}}};let Y=class extends C(S(y(T(x(D(E(w(s(b(n(_))))))))))){constructor(e){super(e),this._emptyUrls=new r,this.charts=null,this.copyright=null,this.definitionExpression=null,this.returnM=void 0,this.returnZ=void 0,this.displayOptimization=null,this.fields=null,this.fieldsIndex=null,this.geometryEncoding=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new g(this),this.labelsVisible=!0,this.labelingInfo=null,this.objectIdField=q,this.operationalLayerType=`ParquetLayer`,this.outFields=null,this.persistenceEnabled=!!has(`parquetlayer-persistence-enabled`),this.popupTemplate=null,this.source=null,this.spatialReference=null,this.templates=null,this.type=`parquet`,this.data=null}initialize(){this.addHandles(l(()=>this.source,`source-changed`,()=>{this.emit(`refresh`,{dataChanged:!0})}))}destroy(){this.source?.destroy()}async load(e){return this.addResolvingPromise(this._load(e)),this}get capabilities(){return this.source?.capabilities}get dateFieldsTimeZone(){return G}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,n,r){let i=e.filter(e=>e.name!==q||e.type!==`oid`).map(e=>e.toJSON(r));c(n,i,t)}get isTable(){return this.geometryEncoding==null&&this.displayOptimization==null}set renderer(e){P(e,this.fieldsIndex),this._set(`renderer`,e)}get title(){let e=this._get(`title`);if(e&&this.originOf(`title`)!==`defaults`)return e;switch(this.data?.type){case`files`:{let t=this.data.urls?.at(0);e=t?u(t,[`parquet`]):null;break}case`portal-item`:e=this.data.portalItem?.title}return e||`Parquet`}set title(e){this._set(`title`,e)}writeData(e,t,n,r){if(!e)return;if(e.type===`portal-item`&&e.portalItem?.type!==`Parquet Feature Layer`){r.messages?.push(new a(`parquet-layer:unsupported-data`,`Portal item with type '${e.portalItem?.type}' is not supported in web maps`,{layer:this,itemId:e.portalItem?.id}));return}let i=e.write({},r);i&&(t.source=i)}get urls(){return this.data?.type===`files`?this.data.urls:this._emptyUrls}set urls(e){i(o.getLogger(this),`urls`,{replacement:`data`,version:`5.1`,warnOnce:!0}),this.data=new z({urls:this._normalizeUrls(e)})}createPopupTemplate(e){return W(this,e)}createQuery(){let e=new U;return e.returnGeometry=!0,e.outFields=[`*`],e.where=this.definitionExpression||`1=1`,e}async createSource(e){let t=new v({layer:this});return await t.load(e),t}getFieldDomain(e,t){return null}getField(e){return this.fieldsIndex.get(e)}async queryFeatures(e,t){await this.load();let n=await this.source.queryFeatures(this._normalizeQuery(e),t),r=this.graphicOrigin;if(n?.features)for(let e of n.features)e.layer=e.sourceLayer=this,e.origin=r;return n}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(this._normalizeQuery(e),t)}async queryFeatureCount(e,t){return await this.load(),this.source.queryFeatureCount(this._normalizeQuery(e),t)}async queryExtent(e,t){return await this.load(),this.source.queryExtent(this._normalizeQuery(e),t)}async hasDataChanged(){if(this.data?.type===`portal-item`){let e=this.data.portalItem,t=e.modified?.getTime();if(await e.reload(),t===e.modified?.getTime())return!1}return await this.source.reload(null),!0}_normalizeQuery(e){return U.from(e)??this.createQuery()}_normalizeUrls(e){return Array.isArray(e)?new r(e):e??new r}async _load(e){this.data?.type===`portal-item`&&await this.data.portalItem.load();let t=await this.createSource(e);this._set(`source`,t),this.read(t.sourceJSON,{origin:`service`}),[`fields`].forEach(e=>this.revertToOrigin(e,`service`)),P(this.renderer,this.fieldsIndex),this.spatialReference??=h.WGS84}};e([d({readOnly:!0,json:{read:!1,write:!1}})],Y.prototype,`capabilities`,null),e([d({json:{origins:{"web-scene":{write:!1}},write:!0}})],Y.prototype,`charts`,void 0),e([d({type:String})],Y.prototype,`copyright`,void 0),e([d({readOnly:!0})],Y.prototype,`dateFieldsTimeZone`,null),e([d({readOnly:!0})],Y.prototype,`defaultPopupTemplate`,null),e([d({type:String,json:{name:`layerDefinition.definitionExpression`,write:{enabled:!0,allowNull:!0}}})],Y.prototype,`definitionExpression`,void 0),e([d({type:Boolean})],Y.prototype,`returnM`,void 0),e([d({type:Boolean})],Y.prototype,`returnZ`,void 0),e([d()],Y.prototype,`displayOptimization`,void 0),e([d({type:[M],json:{name:`layerDefinition.fields`,write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:`fields`}}}})],Y.prototype,`fields`,void 0),e([p(`fields`)],Y.prototype,`writeFields`,null),e([d(K.fieldsIndex)],Y.prototype,`fieldsIndex`,void 0),e([d(J)],Y.prototype,`geometryEncoding`,void 0),e([d({type:m,json:{name:`extent`}})],Y.prototype,`fullExtent`,void 0),e([d({type:V.apiValues,json:{name:`layerDefinition.geometryType`,read:{reader:V.read},write:{writer:V.write,ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:`geometryType`,reader:V.read}}}}})],Y.prototype,`geometryType`,void 0),e([d({readOnly:!0,clonable:!1})],Y.prototype,`graphicOrigin`,void 0),e([d(O)],Y.prototype,`labelsVisible`,void 0),e([d({type:[L],json:{name:`layerDefinition.drawingInfo.labelingInfo`,read:{reader:R},write:!0}})],Y.prototype,`labelingInfo`,void 0),e([d(k)],Y.prototype,`legendEnabled`,void 0),e([d()],Y.prototype,`file`,void 0),e([d({type:String,readOnly:!0})],Y.prototype,`objectIdField`,void 0),e([d({type:[`ParquetLayer`]})],Y.prototype,`operationalLayerType`,void 0),e([d(K.outFields)],Y.prototype,`outFields`,void 0),e([d(A)],Y.prototype,`popupEnabled`,void 0),e([d({type:t,json:{name:`popupInfo`,write:!0}})],Y.prototype,`popupTemplate`,void 0),e([d({types:H,json:{name:`layerDefinition.drawingInfo.renderer`,write:!0,origins:{service:{read:{source:`drawingInfo.renderer`}}}}})],Y.prototype,`renderer`,null),e([d({type:v,readOnly:!0,cast:null,json:{read:!1}})],Y.prototype,`source`,void 0),e([d({type:h,json:{name:`layerDefinition.spatialReference`,write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{read:{source:`extent.spatialReference`}}}}})],Y.prototype,`spatialReference`,void 0),e([d({type:[j]})],Y.prototype,`templates`,void 0),e([d()],Y.prototype,`title`,null),e([d({json:{read:!1},readOnly:!0})],Y.prototype,`type`,void 0),e([d({types:{key:`type`,base:null,typeMap:{files:z,"portal-item":B}},json:{name:`source`,origins:{"web-map":{write:{target:`source`,ignoreOrigin:!0}}}}})],Y.prototype,`data`,void 0),e([p(`web-map`,`data`)],Y.prototype,`writeData`,null),e([d({type:r.ofType(String),json:{read:!1,write:!1}})],Y.prototype,`urls`,null),Y=e([f(`esri.layers.ParquetLayer`)],Y);export{Y as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import e from"../../core/Error.js";import"../../core/has.js";import{onAbort as t,throwIfAborted as n}from"../../core/promiseUtils.js";import{fromValues as r,create as i}from"../../core/libs/gl-matrix-2/factories/mat2df64.js";import{multiply as a}from"../../core/libs/gl-matrix-2/math/mat2d.js";async function o(r,o,l,u,d,f,p,m,h){let g=s(r,o,l),_=i();a(_,g,u);let v=i();a(v,_,p);let y=new OffscreenCanvas(o,l),b=y.getContext(`2d`);if(!b)throw new e(`geospatial-pdf-layer:invalid-canvas`,`Failed to create bitmap canvas context.`);if(m.length){let e=c(m,r,o,l);b.save(),b.fillStyle=`white`,b.fill(e),b.restore()}let x=d.render({canvas:null,canvasContext:b,viewport:f,transform:v,annotationMode:0,background:`rgba(0,0,0,0)`}),S=t(h?.signal,()=>{x.cancel()});try{await x.promise}catch(e){throw n(h),e}finally{S?.remove()}return y}function s(e,t,n){let i=(e.xmax-e.xmin)/t,a=(e.ymax-e.ymin)/n;return r(1/i,0,0,-1/a,-e.xmin/i,e.ymax/a)}function c(e,t,n,r){let i=new Path2D,a=s(t,n,r);for(let t=0;t<e.length;t++){let[n,r]=e[t],o=a[0]*n+a[2]*r+a[4],s=a[1]*n+a[3]*r+a[5];t===0?i.moveTo(o,s):i.lineTo(o,s)}return i.closePath(),i}export{o as renderBitmap};
2
+ import e from"../../core/Error.js";import"../../core/has.js";import{onAbort as t,throwIfAborted as n}from"../../core/promiseUtils.js";import{fromValues as r,create as i}from"../../core/libs/gl-matrix-2/factories/mat2df64.js";import{multiply as a}from"../../core/libs/gl-matrix-2/math/mat2d.js";async function o(r,o,l,u,d,f,p,m,h){let g=s(r,o,l),_=i();a(_,g,u);let v=i();a(v,_,p);let y=new OffscreenCanvas(o,l),b=y.getContext(`2d`);if(!b)throw new e(`geospatial-pdf-layer:invalid-canvas`,`Failed to create bitmap canvas context.`);if(m.length){let e=c(m,r,o,l);b.save(),b.fillStyle=`white`,b.fill(e),b.restore()}let x=d.render({canvas:null,canvasContext:b,viewport:f,transform:v,annotationMode:2,background:`rgba(0,0,0,0)`}),S=t(h?.signal,()=>{x.cancel()});try{await x.promise}catch(e){throw n(h),e}finally{S?.remove()}return y}function s(e,t,n){let i=(e.xmax-e.xmin)/t,a=(e.ymax-e.ymin)/n;return r(1/i,0,0,-1/a,-e.xmin/i,e.ymax/a)}function c(e,t,n,r){let i=new Path2D,a=s(t,n,r);for(let t=0;t<e.length;t++){let[n,r]=e[t],o=a[0]*n+a[2]*r+a[4],s=a[1]*n+a[3]*r+a[5];t===0?i.moveTo(o,s):i.lineTo(o,s)}return i.closePath(),i}export{o as renderBitmap};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "6.0.0-next.2",
3
+ "version": "6.0.0-next.3",
4
4
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -19,8 +19,8 @@
19
19
  "type": "module",
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
- "@amcharts/amcharts5": "~5.20.8",
23
- "@arcgis/toolkit": "6.0.0-next.2",
22
+ "@amcharts/amcharts5": "~5.21.0",
23
+ "@arcgis/toolkit": "6.0.0-next.3",
24
24
  "@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
25
25
  "@esri/calcite-components": "^5.2.0-next.89",
26
26
  "@vaadin/grid": "~25.3.2",
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e,__param as t}from"tslib";import{location as n,option as r,input as i}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as o,Float as s,step as c,min as l,ifElse as u,greaterThan as d,max as f,Vec3 as p,length as m,clamp as h}from"../../graph/glsl.js";import{BaseHittestVertexInput as g,FeatureVertexInput as _,AFeatureShader as v,FeatureFragmentInput as y}from"./AFeatureShader.js";import{noHit as b,trueHit as x,epsilon as S,thinLineWidthFactor as C,thinLineHalfWidth as w}from"./constants.js";import{distPointSegment as T,isRectHittest as E,hittestMarkerRect as D,isPolygonHittest as O,hittestPolygon as k,isPointHittest as A}from"./hittestUtils.js";import{VisualVariableColor as j}from"./VisualVariableColor.js";import{VisualVariableOpacity as M}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as N}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as P}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as F}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as I}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as L,getVisualVariableOpacity as R,hasVisualVariableSize as z,getVisualVariableSize as B}from"./vvUtils.js";class V extends _{}e([n(3,a)],V.prototype,`color`,void 0),e([n(4,o)],V.prototype,`offset`,void 0),e([n(5,o)],V.prototype,`normal`,void 0),e([n(6,s)],V.prototype,`halfWidth`,void 0),e([n(7,s)],V.prototype,`referenceHalfWidth`,void 0),e([n(8,o)],V.prototype,`zoomRange`,void 0);class H extends y{}function U(e){return f(new s(C).multiply(c(e,new s(w))),new s(1))}function W(e,t){let{halfWidth:n,normal:r}=e,i=U(n),a=m(r).multiply(n);return h(i.multiply(n.subtract(a)).divide(t.add(i).subtract(new s(1))),new s(0),new s(1))}function G(e,t,n){let{halfWidth:r,referenceHalfWidth:i}=t;if(z(e)){let t=new s(2).multiply(i),a=B(e,n,t),o=new s(S),c=u(d(r,o),r.divide(f(i,o)),new s(1));return new s(.5).multiply(c).multiply(a)}return r}function K(e,t){let{id:n,offset:r,pos:i,normal:o,zoomRange:l}=t,u=e.getFeatureId(n,t.bitset),d=e.view.getDisplayViewMat3(),m=e.tile.getDisplayViewScreenMat3(e.view),h=L(e,u,t.color),g=R(e,u),_=G(e,t,u),v=new s(.5).multiply(e.view.getAntialiasing()),y=f(_.add(v),new s(.45)).add(new s(.1).multiply(v)),b=U(y).multiply(y).multiply(r).multiply(e.tileInfo.scaleFactor),x=e.getLabelOffset(b,t.bitset),S=d.multiply(new p(x,new s(0))),C=m.multiply(new p(e.getLabelPosition(i,n,t.bitset),new s(1))).add(S),w=new s(2).multiply(c(_,new s(0))).add(e.clip(n,t.bitset,l)),T=new a(C.xy,w,1);return{color:h,opacity:g,halfWidth:y,normal:o,scaledOffset:b,scaledHalfWidth:_,glPosition:new a(T.xy,w,1)}}function q(e,t){let{opacity:n,color:r}=e,i=W(e,t);return n.multiply(r).multiply(i)}class J extends v{constructor(){super(...arguments),this.type=`LineShader`,this.computeAttributes={pos:[`nextPos1`,`nextPos2`]}}vertex(e,t){let n=K(this,e);return{...n,...this.maybeRunHittest(e,t,n.halfWidth)}}fragment(e){let t=q(e,this.view.getAntialiasing());return this.getFragmentOutput(t,e)}hittest(e,t,n){let{pos0:r,pos1:i,pos2:a}=this.computeHittestTriangle(e,t,null),{distance:o,smallSymbolDistance:f,smallSymbolSizeThreshold:p}=this.hittestRequest,m=c(n,p.multiply(.5)).multiply(o.subtract(f)),h=this.hittestRequest.position,g=l(T(h,r,i),T(h,r,a)).subtract(n).add(m);return u(A(this.hittestRequest),u(d(g,o),new s(b),new s(x)),()=>u(E(this.hittestRequest),D({pos0:r,pos1:i,pos2:a},this.hittestRequest.rect.xy,this.hittestRequest.rect.zw),u(O(this.hittestRequest),k({pos0:r,pos1:i,pos2:a},this.hittestRequest.viewSize,this.hittestMaskTexture),new s(b))))}}e([r(j)],J.prototype,`visualVariableColor`,void 0),e([r(M)],J.prototype,`visualVariableOpacity`,void 0),e([r(N)],J.prototype,`visualVariableSizeMinMaxValue`,void 0),e([r(P)],J.prototype,`visualVariableSizeScaleStops`,void 0),e([r(F)],J.prototype,`visualVariableSizeStops`,void 0),e([r(I)],J.prototype,`visualVariableSizeUnitValue`,void 0),e([t(0,i(V)),t(1,i(g))],J.prototype,`vertex`,null),e([t(0,i(H))],J.prototype,`fragment`,null);export{H as LineFragmentInput,J as LineShader,V as LineVertexInput,W as getLineAntialiasing,q as getLineFragmentColor,U as getLineThinFactor,K as getLineVertexData};
2
+ import{__decorate as e,__param as t}from"tslib";import{location as n,option as r,input as i}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as o,Float as s,step as c,min as l,ifElse as u,greaterThan as d,max as f,Vec3 as p,cond as m,lessThanEqual as h,length as g,clamp as _}from"../../graph/glsl.js";import{BaseHittestVertexInput as v,FeatureVertexInput as y,AFeatureShader as b,FeatureFragmentInput as x}from"./AFeatureShader.js";import{noHit as S,trueHit as C,epsilon as w,thinLineWidthFactor as T,thinLineHalfWidth as E}from"./constants.js";import{distPointSegment as D,isRectHittest as O,hittestMarkerRect as k,isPolygonHittest as A,hittestPolygon as j,isPointHittest as M}from"./hittestUtils.js";import{VisualVariableColor as N}from"./VisualVariableColor.js";import{VisualVariableOpacity as P}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as F}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as I}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as L}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as R}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as z,getVisualVariableOpacity as B,hasVisualVariableSize as V,getVisualVariableSize as H}from"./vvUtils.js";class U extends y{}e([n(3,a)],U.prototype,`color`,void 0),e([n(4,o)],U.prototype,`offset`,void 0),e([n(5,o)],U.prototype,`normal`,void 0),e([n(6,s)],U.prototype,`halfWidth`,void 0),e([n(7,s)],U.prototype,`referenceHalfWidth`,void 0),e([n(8,o)],U.prototype,`zoomRange`,void 0);class W extends x{}function G(e){return f(new s(T).multiply(c(e,new s(E))),new s(1))}function K(e,t){let{halfWidth:n,normal:r}=e,i=G(n),a=g(r).multiply(n);return _(i.multiply(n.subtract(a)).divide(t.add(i).subtract(new s(1))),new s(0),new s(1))}function q(e,t,n){let{halfWidth:r,referenceHalfWidth:i}=t;if(V(e)){let t=new s(2).multiply(i),a=H(e,n,t),o=new s(.5).multiply(a),c=new s(w);return m([h(r,c),o],[h(i,c),r],[!0,r.divide(f(i,c)).multiply(o)])}return r}function J(e,t){let{id:n,offset:r,pos:i,normal:o,zoomRange:l}=t,u=e.getFeatureId(n,t.bitset),d=e.view.getDisplayViewMat3(),m=e.tile.getDisplayViewScreenMat3(e.view),h=z(e,u,t.color),g=B(e,u),_=q(e,t,u),v=new s(.5).multiply(e.view.getAntialiasing()),y=f(_.add(v),new s(.45)).add(new s(.1).multiply(v)),b=G(y).multiply(y).multiply(r).multiply(e.tileInfo.scaleFactor),x=e.getLabelOffset(b,t.bitset),S=d.multiply(new p(x,new s(0))),C=m.multiply(new p(e.getLabelPosition(i,n,t.bitset),new s(1))).add(S),w=new s(2).multiply(c(_,new s(0))).add(e.clip(n,t.bitset,l)),T=new a(C.xy,w,1);return{color:h,opacity:g,halfWidth:y,normal:o,scaledOffset:b,scaledHalfWidth:_,glPosition:new a(T.xy,w,1)}}function Y(e,t){let{opacity:n,color:r}=e,i=K(e,t);return n.multiply(r).multiply(i)}class X extends b{constructor(){super(...arguments),this.type=`LineShader`,this.computeAttributes={pos:[`nextPos1`,`nextPos2`]}}vertex(e,t){let n=J(this,e);return{...n,...this.maybeRunHittest(e,t,n.halfWidth)}}fragment(e){let t=Y(e,this.view.getAntialiasing());return this.getFragmentOutput(t,e)}hittest(e,t,n){let{pos0:r,pos1:i,pos2:a}=this.computeHittestTriangle(e,t,null),{distance:o,smallSymbolDistance:f,smallSymbolSizeThreshold:p}=this.hittestRequest,m=c(n,p.multiply(.5)).multiply(o.subtract(f)),h=this.hittestRequest.position,g=l(D(h,r,i),D(h,r,a)).subtract(n).add(m);return u(M(this.hittestRequest),u(d(g,o),new s(S),new s(C)),()=>u(O(this.hittestRequest),k({pos0:r,pos1:i,pos2:a},this.hittestRequest.rect.xy,this.hittestRequest.rect.zw),u(A(this.hittestRequest),j({pos0:r,pos1:i,pos2:a},this.hittestRequest.viewSize,this.hittestMaskTexture),new s(S))))}}e([r(N)],X.prototype,`visualVariableColor`,void 0),e([r(P)],X.prototype,`visualVariableOpacity`,void 0),e([r(F)],X.prototype,`visualVariableSizeMinMaxValue`,void 0),e([r(I)],X.prototype,`visualVariableSizeScaleStops`,void 0),e([r(L)],X.prototype,`visualVariableSizeStops`,void 0),e([r(R)],X.prototype,`visualVariableSizeUnitValue`,void 0),e([t(0,i(U)),t(1,i(v))],X.prototype,`vertex`,null),e([t(0,i(W))],X.prototype,`fragment`,null);export{W as LineFragmentInput,X as LineShader,U as LineVertexInput,K as getLineAntialiasing,Y as getLineFragmentColor,G as getLineThinFactor,J as getLineVertexData};
@@ -203,6 +203,7 @@ export abstract class DOMContainer {
203
203
  * view.ui.components = [ "attribution" ];
204
204
  */
205
205
  get ui(): DefaultUI;
206
+ /** @deprecated */
206
207
  set ui(value: DefaultUIProperties);
207
208
  /**
208
209
  * The width of the view in pixels read from the view container element.
@@ -340,6 +340,7 @@ export default abstract class FeatureLikeLayerView extends LayerView {
340
340
  * ```
341
341
  */
342
342
  get highlightOptions(): HighlightOptions | null | undefined;
343
+ /** @deprecated */
343
344
  set highlightOptions(value: HighlightOptionsProperties | null | undefined);
344
345
  /** The layer being viewed. */
345
346
  get layer(): FeatureLikeLayerViewLayer;
@@ -50,6 +50,7 @@ export default abstract class GraphicsLayerView extends LayerView {
50
50
  * ```
51
51
  */
52
52
  get highlightOptions(): HighlightOptions | null | undefined;
53
+ /** @deprecated */
53
54
  set highlightOptions(value: HighlightOptionsProperties | null | undefined);
54
55
  /** The layer being viewed. */
55
56
  get layer(): GraphicsLayer;
@@ -80,6 +80,7 @@ export default abstract class ImageryLayerView extends LayerView {
80
80
  * ```
81
81
  */
82
82
  get highlightOptions(): HighlightOptions | null | undefined;
83
+ /** @deprecated */
83
84
  set highlightOptions(value: HighlightOptionsProperties | null | undefined);
84
85
  /**
85
86
  * An object that provides the user access to