@arcgis/core 5.1.0-next.60 → 5.1.0-next.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{ab223c508f3dd562e7d3.js → 32e9e92bbbd000fbbaf7.js} +2 -2
- package/assets/esri/core/workers/chunks/{68475eba323b4aa892a3.js → 354351ab3fc79dedf9a8.js} +1 -1
- package/assets/esri/core/workers/chunks/45f1e682668cffc00b44.js +1 -0
- package/assets/esri/core/workers/chunks/{6172715b2b2853819d8a.js → 5eeb6d3a7b815d41621e.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f74147597805828cb38.js → 5ff41f43e57be0557541.js} +22 -29
- package/assets/esri/core/workers/chunks/{6355de3ee89916b74dae.js → 6b32b3f98872771ff81e.js} +1 -1
- package/assets/esri/core/workers/chunks/{8083dface1ca2dbd12b2.js → 811b378fa5bf8a4d3d66.js} +1 -1
- package/assets/esri/core/workers/chunks/{8432ffc33843e898bab7.js → 8166ad6bbd7d7a8f91cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{58614f12796dbba013f4.js → 9d289cee96e7c7fe1029.js} +1 -1
- package/assets/esri/core/workers/chunks/{c4da2ca1dee0c44051d0.js → 9d7ffd83f69d6e639f09.js} +1 -1
- package/assets/esri/core/workers/chunks/{0622e238693c257abacb.js → 9eef3cd5f519c8ae88c0.js} +1 -1
- package/assets/esri/core/workers/chunks/{2541ac6e0ed1184edc9b.js → af3bd661b355eed3da21.js} +1 -1
- package/assets/esri/core/workers/chunks/{e4144ccc85ad4c76a9b7.js → af40e2e6eaf3d2226812.js} +1 -1
- package/assets/esri/core/workers/chunks/{0fd191f9c10b3b7c83f4.js → c319c3b85cdec73a9f45.js} +1 -1
- package/assets/esri/core/workers/chunks/{7e1ef2a55f8d123f31e2.js → cbb50415f7de8746ee1a.js} +1 -1
- package/assets/esri/core/workers/chunks/{48d289db3145ce6c02bb.js → d4368e281c12fa7c17c5.js} +1 -1
- package/assets/esri/core/workers/chunks/{266933f1139ed0e8919f.js → e645f992ec6f935ee3a5.js} +1 -1
- package/assets/esri/core/workers/chunks/{bf4bad2c9a541cd425f5.js → e9dd60d0220036545ebb.js} +1 -1
- package/assets/esri/core/workers/chunks/{a226ba96d9a3ecc14e3e.js → f550fc8c078ebd47d7a3.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
- package/chunks/GlowComposition.glsl.js +4 -5
- package/chunks/ShadowHighlight.glsl.js +5 -5
- package/config.js +1 -1
- package/geometry/libtess.js +1 -1
- package/geometry/support/curves/bezierCurveUtils.js +1 -1
- package/geometry/support/curves/circularArcUtils.js +1 -1
- package/geometry/support/curves/ellipticArc4Utils.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/kernel.js +1 -1
- package/layers/CSVLayer.d.ts +38 -6
- package/layers/CatalogLayer.d.ts +39 -8
- package/layers/FeatureLayer.d.ts +25 -23
- package/layers/GeoJSONLayer.d.ts +36 -6
- package/layers/ParquetLayer.d.ts +58 -0
- package/layers/SubtypeGroupLayer.d.ts +27 -25
- package/layers/WFSLayer.d.ts +51 -8
- package/layers/catalog/CatalogFootprintLayer.d.ts +37 -7
- package/layers/graphics/sources/csv/csv.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +41 -17
- package/layers/mixins/ArcGISImageService.d.ts +58 -0
- package/layers/support/csvUtils.js +1 -1
- package/package.json +3 -3
- package/popup/Feature.d.ts +25 -32
- package/support/revision.js +1 -1
- package/views/2d/analysis/analysisViewModuleImportUtils.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/analysis/analysisViewModuleImportUtils.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -11
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/{ScreenSpaceShadowHighlight.glsl.js → ShadowHighlightBuffer.glsl.js} +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +2 -0
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBufferTechnique.js +2 -0
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PolygonOffset.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +11 -11
- package/views/3d/webgl-engine/shaders/ReceiveShadowsConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ditherNoise.glsl.js +2 -0
- package/views/3d/webgl.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/draw/plugins/TangentArcSegmentPlugin.js +1 -1
- package/views/support/AnalysisViewManager.js +1 -1
- package/widgets/ElevationProfile/support/ElevationProfileView.js +1 -1
- package/widgets/ElevationProfile/support/ElevationProfileView3D.js +1 -1
- package/widgets/FeatureTable/ColumnVisibilityMenuVisibleElements.d.ts +27 -0
- package/widgets/FeatureTable/ColumnVisibilityMenuVisibleElements.js +2 -0
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +10 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/TableMenuVisibleElements.d.ts +0 -1
- package/widgets/FeatureTable/TableMenuVisibleElements.js +1 -1
- package/widgets/FeatureTable/VisibleElements.d.ts +23 -1
- package/widgets/FeatureTable/VisibleElements.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +10 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Widget.js +1 -1
- package/assets/esri/core/workers/chunks/16806f5044a9da553b66.js +0 -1
- package/views/3d/webgl-engine/effects/highlight/ScreenSpaceShadowHighlightRenderNode.js +0 -2
- package/views/3d/webgl-engine/effects/highlight/ScreenSpaceShadowHighlightTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/Dithering.glsl.js +0 -4
- /package/assets/esri/core/workers/chunks/{ab223c508f3dd562e7d3.js.LICENSE.txt → 32e9e92bbbd000fbbaf7.js.LICENSE.txt} +0 -0
- /package/chunks/{ScreenSpaceShadowHighlight.glsl.js → ShadowHighlightBuffer.glsl.js} +0 -0
package/geometry/libtess.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__addDisposableResource as t,__disposeResources as e}from"tslib";import{getAssetUrl as r}from"../assets.js";import n from"../core/Error.js";import has from"../core/has.js";import{roundUpToNearest as s}from"../core/mathUtils.js";let i=null,o=null,l=null,a=null;const u=100903,c=4,E={vertices:new Float32Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0},d={vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0},h=2,p=2;function g(t,e){const r=t.reduce((t,e)=>t+e,0),n=t.length,i=Math.max(0,t.length-1),o=Math.max(0,r+2*i-2),l=Math.max(0,Math.ceil(r*h)),a=Math.max(0,Math.ceil(3*o*p)),u=s(a,3),c=r>0?Math.max(2,Math.ceil(.25*r)):0,E=r>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:l,maxIndexCount:u,maxOutlineIndexCount:e?Math.max(0,r+n+c):0,maxOutlineRingCount:e?Math.max(0,n+E):0}}async function y(){return i??=
|
|
2
|
+
import{__addDisposableResource as t,__disposeResources as e}from"tslib";import{getAssetUrl as r}from"../assets.js";import n from"../core/Error.js";import has from"../core/has.js";import{roundUpToNearest as s}from"../core/mathUtils.js";let i=null,o=null,l=null,a=null;const u=100903,c=4,E={vertices:new Float32Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0},d={vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0},h=2,p=2;function g(t,e){const r=t.reduce((t,e)=>t+e,0),n=t.length,i=Math.max(0,t.length-1),o=Math.max(0,r+2*i-2),l=Math.max(0,Math.ceil(r*h)),a=Math.max(0,Math.ceil(3*o*p)),u=s(a,3),c=r>0?Math.max(2,Math.ceil(.25*r)):0,E=r>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:l,maxIndexCount:u,maxOutlineIndexCount:e?Math.max(0,r+n+c):0,maxOutlineRingCount:e?Math.max(0,n+E):0}}async function y(){return i??=C(),i}function f(){return null!==l}async function b(){return o??=m(),o}function w(){return null!==a}function x(){i=null,o=null,l=null,a=null}async function C(){const t=await import("../chunks/libtess-f32.js"),e=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});l=e}async function m(){const t=await import("../chunks/libtess-f64.js"),e=await t.default({locateFile:t=>r(`esri/core/libs/libtess/${t}`)});a=e}function _(r,s,i=2){const o={stack:[],error:void 0,hasError:!1};try{const e=l;if(!e)throw new n("libtess:not-loaded","libtessF32 not loaded");const a=t(o,S.from(e,r),!1),u=t(o,B.from(e,s),!1),E=c*(r.length/i),d=t(o,new S(e,E*i),!1),h=e.triangulate(a.ptr,u.ptr,u.size,i,d.ptr,E);if(has("esri-tessellation-debug")){const t=e.getError();0!==t&&console.warn("libtess:triangulation",N(t))}return{buffer:d.slice(0,h*i),vertexCount:h}}catch(a){o.error=a,o.hasError=!0}finally{e(o)}}function I(r,s,i=2,o=!0){const a={stack:[],error:void 0,hasError:!1};try{const d=l;if(!d)throw new n("libtess:not-loaded","libtessF32 not loaded");const h=t(a,S.from(d,r),!1),p=t(a,B.from(d,s),!1),y=t(a,new B(d,1),!1),f=t(a,new B(d,1),!1),b=t(a,new B(d,1),!1),w=t(a,new B(d,1),!1),{maxVertexCount:x,maxIndexCount:C,maxOutlineIndexCount:m,maxOutlineRingCount:_}=g(s,o);let I=0,R=0,T=0,A=0,M=0;{const r={stack:[],error:void 0,hasError:!1};try{const e=t(r,new S(d,x*i),!1),n=t(r,new B(d,C),!1),s=t(r,o?new B(d,m):null,!1),l=t(r,o?new B(d,_):null,!1);if(d.triangulateIndexed(h.ptr,p.ptr,p.size,i,e.ptr,x,i,n.ptr,C,y.ptr,f.ptr,s?.ptr??0,m,l?.ptr??0,_,b.ptr,w.ptr),M=d.getError(),I=L(d)[y.ptr/Int32Array.BYTES_PER_ELEMENT],R=L(d)[f.ptr/Int32Array.BYTES_PER_ELEMENT],T=L(d)[b.ptr/Int32Array.BYTES_PER_ELEMENT],A=L(d)[w.ptr/Int32Array.BYTES_PER_ELEMENT],0===M){const t=e.slice(0,I*i),r=n.slice(0,R),a=o&&s?s.slice(0,T):E.outlineIndices;return{vertices:t,indices:r,outlineIndices:a,outlineRingLengths:o&&l?l.slice(0,A):E.outlineRingLengths,vertexCount:I,indexCount:R,outlineIndexCount:o?T:0,outlineRingCount:o?A:0}}}catch(c){r.error=c,r.hasError=!0}finally{e(r)}}if(M!==u)return has("esri-tessellation-debug")&&0!==M&&console.warn("libtess:triangulation",N(M)),E;const P=t(a,new S(d,I*i),!1),v=t(a,new B(d,R),!1),Y=t(a,o?new B(d,T):null,!1),F=t(a,o?new B(d,A):null,!1);if(d.triangulateIndexed(h.ptr,p.ptr,p.size,i,P.ptr,I,i,v.ptr,R,y.ptr,f.ptr,Y?.ptr??0,o?T:0,F?.ptr??0,o?A:0,b.ptr,w.ptr),M=d.getError(),0!==M)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),E;const k=L(d)[y.ptr/Int32Array.BYTES_PER_ELEMENT],z=L(d)[f.ptr/Int32Array.BYTES_PER_ELEMENT],U=L(d)[b.ptr/Int32Array.BYTES_PER_ELEMENT],O=L(d)[w.ptr/Int32Array.BYTES_PER_ELEMENT],j=P.slice(0,k*i),H=v.slice(0,z),V=o&&Y?Y.slice(0,U):E.outlineIndices;return{vertices:j,indices:H,outlineIndices:V,outlineRingLengths:o&&F?F.slice(0,O):E.outlineRingLengths,vertexCount:k,indexCount:z,outlineIndexCount:o?U:0,outlineRingCount:o?O:0}}catch(d){a.error=d,a.hasError=!0}finally{e(a)}}function R(r,s,i=2){const o={stack:[],error:void 0,hasError:!1};try{const e=a;if(!e)throw new n("libtess:not-loaded","libtessF64 not loaded");const l=t(o,v.from(e,r),!1),u=t(o,B.from(e,s),!1),E=c*(r.length/i),d=t(o,new v(e,E*i),!1),h=e.triangulate(l.ptr,u.ptr,u.size,i,d.ptr,E);if(has("esri-tessellation-debug")){const t=e.getError();0!==t&&console.warn("libtess:triangulation",N(t))}return{buffer:d.slice(0,h*i),vertexCount:h}}catch(l){o.error=l,o.hasError=!0}finally{e(o)}}function T(r,s,i=2,o=!0){const l={stack:[],error:void 0,hasError:!1};try{const E=a;if(!E)throw new n("libtess:not-loaded","libtessF64 not loaded");const h=t(l,v.from(E,r),!1),p=t(l,B.from(E,s),!1),y=t(l,new B(E,1),!1),f=t(l,new B(E,1),!1),b=t(l,new B(E,1),!1),w=t(l,new B(E,1),!1),{maxVertexCount:x,maxIndexCount:C,maxOutlineIndexCount:m,maxOutlineRingCount:_}=g(s,o);let I=0,R=0,T=0,A=0,M=0;{const r={stack:[],error:void 0,hasError:!1};try{const e=t(r,new v(E,x*i),!1),n=t(r,new B(E,C),!1),s=t(r,o?new B(E,m):null,!1),l=t(r,o?new B(E,_):null,!1);if(E.triangulateIndexed(h.ptr,p.ptr,p.size,i,e.ptr,x,i,n.ptr,C,y.ptr,f.ptr,s?.ptr??0,m,l?.ptr??0,_,b.ptr,w.ptr),M=E.getError(),I=L(E)[y.ptr/Int32Array.BYTES_PER_ELEMENT],R=L(E)[f.ptr/Int32Array.BYTES_PER_ELEMENT],T=L(E)[b.ptr/Int32Array.BYTES_PER_ELEMENT],A=L(E)[w.ptr/Int32Array.BYTES_PER_ELEMENT],0===M){const t=e.slice(0,I*i),r=n.slice(0,R),a=o&&s?s.slice(0,T):d.outlineIndices;return{vertices:t,indices:r,outlineIndices:a,outlineRingLengths:o&&l?l.slice(0,A):d.outlineRingLengths,vertexCount:I,indexCount:R,outlineIndexCount:o?T:0,outlineRingCount:o?A:0}}}catch(c){r.error=c,r.hasError=!0}finally{e(r)}}if(M!==u)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),d;const P=t(l,new v(E,I*i),!1),S=t(l,new B(E,R),!1),Y=t(l,o?new B(E,T):null,!1),F=t(l,o?new B(E,A):null,!1);if(E.triangulateIndexed(h.ptr,p.ptr,p.size,i,P.ptr,I,i,S.ptr,R,y.ptr,f.ptr,Y?.ptr??0,o?T:0,F?.ptr??0,o?A:0,b.ptr,w.ptr),M=E.getError(),0!==M)return has("esri-tessellation-debug")&&console.warn("libtess:triangulation",N(M)),d;const k=L(E)[y.ptr/Int32Array.BYTES_PER_ELEMENT],z=L(E)[f.ptr/Int32Array.BYTES_PER_ELEMENT],U=L(E)[b.ptr/Int32Array.BYTES_PER_ELEMENT],O=L(E)[w.ptr/Int32Array.BYTES_PER_ELEMENT],j=P.slice(0,k*i),H=S.slice(0,z),V=o&&Y?Y.slice(0,U):d.outlineIndices;return{vertices:j,indices:H,outlineIndices:V,outlineRingLengths:o&&F?F.slice(0,O):d.outlineRingLengths,vertexCount:k,indexCount:z,outlineIndexCount:o?U:0,outlineRingCount:o?O:0}}catch(E){l.error=E,l.hasError=!0}finally{e(l)}}function A(t){return t.HEAPF64}function M(t){return t.HEAPF32}function L(t){return t.HEAP32}function P(t){const e=L(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}class S{static from(t,e){const r=new S(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){M(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return M(this._libtess).slice(r+t,r+e)}}class v{static from(t,e){const r=new v(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){A(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return A(this._libtess).slice(r+t,r+e)}}class B{static from(t,e){const r=new B(t,e.length);return r.set(e),r}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){L(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const r=this.ptr/this.bytesPerCoordinate;return P(this._libtess).slice(r+t,r+e)}}function N(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}export{f as isLibtessF32Loaded,w as isLibtessF64Loaded,y as loadLibtessF32,b as loadLibtessF64,_ as triangulateF32,R as triangulateF64,I as triangulateIndexedF32,T as triangulateIndexedF64,x as unload};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{floatEqualRelative as t,floatEqualAbsolute as n}from"../../../core/mathUtils.js";import{expandPointInPlace as
|
|
2
|
+
import{floatEqualRelative as t,floatEqualAbsolute as n}from"../../../core/mathUtils.js";import{exactEquals as o}from"../../../core/libs/gl-matrix-2/math/vec2.js";import{expandPointInPlace as r,containsXY as s,expandXInPlace as c,expandYInPlace as u}from"../aaBoundingRect.js";import{distance2 as e,interpolateSegment as f,findClosestAndFurthestCurveParametersToPoint as i}from"./mathUtils.js";const a=[0,0];function m(t){const n=1-t,o=n*n,r=t*t;return[o*n,3*t*o,3*r*n,r*t]}function h(t,n,o,r,s){const[c,u,e,f]=m(s);return[t[0]*c+n[0]*u+o[0]*e+r[0]*f,t[1]*c+n[1]*u+o[1]*e+r[1]*f]}function l(t,n,o,r,s){const[c,u,e,f]=m(s);return t*c+n*u+o*e+r*f}function b(t,n,o){const r=t,[s,c,u]=n.b;return h(r,c,u,s,o)}function p(t,n){const[[r,s],c,u]=n.b,e=[r,s];return o(e,u)?o(e,c)?o(e,t)?null:[r-t[0],s-t[1]]:[r-c[0],s-c[1]]:[r-u[0],s-u[1]]}function M(t,n,o){const r=t,[s,c,u]=n.b,e=f([0,0],r,c,o),i=f(a,c,u,o),m=f([0,0],u,s,o),h=f([0,0],e,i,o),l=f([0,0],i,m,o);return[{b:[f([],h,l,o),e,h]},{b:[[...s],l,m]}]}function q(o,r,s){const c=o,[u,e,f]=r.b,a=i(s,[.1,.5,.9],t=>{const n=1-t,[o,r]=h(c,e,f,u,t);return[o,r,3*n*n*(e[0]-c[0])+6*n*t*(f[0]-e[0])+3*t*t*(u[0]-f[0]),3*n*n*(e[1]-c[1])+6*n*t*(f[1]-e[1])+3*t*t*(u[1]-f[1]),6*n*(f[0]-2*e[0]+c[0])+6*t*(u[0]-2*f[0]+e[0]),6*n*(f[1]-2*e[1]+c[1])+6*t*(u[1]-2*f[1]+e[1])]}).map(t=>Math.min(1,Math.max(0,t)));a.push(0,1);let m=1/0;const l=a.map(t=>{const n=h(c,e,f,u,t),[o,r]=n,i=s[0]-o,a=s[1]-r,l=Math.sqrt(i*i+a*a);return m=Math.min(l,m),{t,curvePoint:n,distance:l}}),b=[];for(const i of l){const{t:o,distance:r}=i;t(r,m)&&!b.some(({t})=>n(t,o))&&b.push(i)}return b}function j(t,n,o){const e=n,[f,i,a]=o.b;if(r(t,e),r(t,f),s(t,i[0],i[1])&&s(t,a[0],a[1]))return t;for(const r of d(e[0],i[0],a[0],f[0]))r>0&&r<1&&c(t,l(e[0],i[0],a[0],f[0],r));for(const r of d(e[1],i[1],a[1],f[1]))r>0&&r<1&&u(t,l(e[1],i[1],a[1],f[1],r));return t}function d(t,n,o,r){const s=3*(3*(n-o)-t+r),c=6*(t-2*n+o),u=3*(n-t);if(0===s)return 0!==c?[-u/c]:[];const e=Math.sqrt(c*c-4*s*u);return[(-c+e)/(2*s),(-c-e)/(2*s)]}function x(t,n,o){const r=16;let s=0,c=[n];for(let u=0;u<r;u++){let n=t;const r=[];for(const t of c)r.push(...M(n,t,.5)),n=t.b[0];c=r,n=t,s=0;let u=0;for(const t of c){const[o,r,c]=t.b,f=Math.sqrt(e(n,o));s+=(f+(Math.sqrt(e(n,r))+Math.sqrt(e(r,c))+Math.sqrt(e(c,o))))/2,u+=f,n=o}if(s-u<o)return s}return s}export{j as bezierCurveExtent,x as bezierCurveLength,p as calculateBezierCurveTangent,q as closestPointsOnBezierCurve,b as interpolateBezierCurve,h as interpolateCubicBezier,l as interpolateCubicBezier1D,M as splitBezierCurve};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{set as t,determinant as n}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{DerivedCircle as
|
|
2
|
+
import{set as t,determinant as n}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{exactEquals as c}from"../../../core/libs/gl-matrix-2/math/vec2.js";import{DerivedCircle as i,interpolateCircle as o}from"./circleUtils.js";import{interpolateSegment as s,distance2 as a,wrapAtan2 as e}from"./mathUtils.js";const l=r();function m(r,c,i){const[o,s]=r,[e,m]=c,[u,f]=i;t(l,o,e,u,s,m,f,1,1,1);const h=n(l),p=4*h/(a(r,c)+a(c,i)+a(i,r));if(!isFinite(p)||Math.abs(p)<1e-8)return null;const x=o**2+s**2,M=e**2+m**2,b=u**2+f**2;t(l,x,M,b,s,m,f,1,1,1);const d=n(l);t(l,x,M,b,o,e,u,1,1,1);return[d/h*.5,n(l)/h*-.5]}function u(t,n){const[r,c]=n.c,o=m(t,c,r),a=null==o,l=o??s([],t,r,.5),[u,f]=t,[h,p]=c,[x,M]=r,[b,d]=l,j=u-b,g=f-d,I=Math.sqrt(j*j+g*g),v=e(f-d,u-b),y=e(p-d,h-b);let E=e(M-d,x-b);return(y-v)*(E-y)<0&&(E+=2*Math.sign(v-E)*Math.PI),new i(b,d,I,v,E,a)}function f(t,n,r){const c=o(t,r/2),i=o(t,r),s=o(t,(r+1)/2);return[{c:[i,c]},{c:[[...n.c[0]],s]}]}function h(t,n){const[r,i]=n.c[0],{cx:o,cy:s,isInvalid:a,thetaEnd:e,thetaStart:l}=u(t,n);if(a)return c([r,i],t)?null:[r-t[0],i-t[1]];const m=r-o,f=i-s;return e>l?[-f,m]:[f,-m]}function p(t,n){const[r]=n.c,{cx:c,cy:i,thetaStart:o,thetaEnd:s,radius:a,isInvalid:e}=u(t,n);return{a:[r,[c,i],Math.abs(s-o)<Math.PI?1:0,o>s?1:0,e?o:0,a,e?0:1]}}export{h as calculateCircularArcTangent,u as deriveCircleFromCircularArc,f as splitCircularArc,p as toEllipticArc7};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{floatEqualRelative as t}from"../../../core/mathUtils.js";import{DerivedCircle as
|
|
2
|
+
import{floatEqualRelative as t}from"../../../core/mathUtils.js";import{exactEquals as a}from"../../../core/libs/gl-matrix-2/math/vec2.js";import{DerivedCircle as r,interpolateCircle as n}from"./circleUtils.js";import{angularRangeOriented as o,wrapAtan2 as s}from"./mathUtils.js";function c(a,n){const[c,i,e,h]=n.a,[m,l]=a,[f,u]=c,[M,p]=i,j=m-M,x=l-p,b=Math.sqrt(j*j+x*x),d=f-M,I=u-p,U=Math.sqrt(d*d+I*I),q=0===b||0===U||!t(b,U),v=b,[y,E]=o(s(l-p,m-M),Math.atan2(u-p,f-M),e,h);return new r(M,p,v,y,E,q)}function i(t,a,r){const{cx:o,cy:s,thetaStart:c,thetaEnd:i}=t,[e,h,m,l]=a.a,f=c*(1-r)+i*r;return[{a:[n(t,r),[o,s],Math.abs(f-c)<Math.PI?1:0,l]},{a:[[...e],[o,s],Math.abs(i-f)<Math.PI?1:0,l]}]}function e(t,r){const[n,o]=r.a[0],{cx:s,cy:i,isInvalid:e,thetaEnd:h,thetaStart:m}=c(t,r);if(e){const[r,s]=t;return a([n,o],[r,s])?null:[n-r,o-s]}const l=n-s,f=o-i;return h>m?[-f,l]:[f,-l]}export{e as calculateEllipticArc4Tangent,c as deriveCircleFromEllipticArc4,i as splitEllipticArc4};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{set as t,invert as n,transpose as s,multiply as a}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{transformMat3 as o,
|
|
2
|
+
import{set as t,invert as n,transpose as s,multiply as a}from"../../../core/libs/gl-matrix-2/math/mat3.js";import{create as r}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{transformMat3 as o,exactEquals as i,normalize as c,add as u}from"../../../core/libs/gl-matrix-2/math/vec2.js";import{expandPointInPlace as h}from"../aaBoundingRect.js";import{cloneCurve as e}from"./curveUtils.js";import{angularRangeWrap as f,angularRangeOriented as l,wrapAtan2 as M,angularRange as m,distance2 as b,intersectLineLine as R,findClosestAndFurthestCurveParametersToPoint as p}from"./mathUtils.js";class d{constructor(t,n,s,a,r,o,i,c,u){this.cx=t,this.cy=n,this.a=s,this.b=a,this.cosR=r,this.sinR=o,this.u1=i,this.u2=c,this.isInvalid=u}}function x(t,n){const[s,a,r,o,i,c,u]=n.a,[h,e]=t,[f,m]=s,[b,R]=a,p=c*u,x=Math.cos(i),q=Math.sin(i),[I,g]=l(M(1/p*(e-R)*x-1/p*(h-b)*q,1/c*(e-R)*q+1/c*(h-b)*x),Math.atan2(1/p*(m-R)*x-1/p*(f-b)*q,1/c*(m-R)*q+1/c*(f-b)*x),r,o);return new d(b,R,c,p,x,q,I,g,0===c||0===p)}function q(t,n){const{a:s,b:a,cosR:r,sinR:o,cx:i,cy:c}=t,u=Math.cos(n),h=Math.sin(n);return[s*u*r-a*h*o+i,s*u*o+a*h*r+c]}function I(t,n){const{u1:s,u2:a}=t;return q(t,s*(1-n)+a*n)}function g(t,n){const[s,a]=n.a[0],{a:r,b:o,cx:h,cy:e,cosR:f,sinR:l,isInvalid:M,u1:m,u2:b}=x(t,n);if(M){const[n,r]=t;return i([n,r],[s,a])?null:[s-n,a-r]}const R=Math.sqrt(r*r-o*o),p=[h+R*f,e+R*l],d=[h-R*f,e-R*l],q=[s-p[0],a-p[1]],I=[s-d[0],a-d[1]];c(q,q),c(I,I);const[g,v]=u(q,q,I);return b>m?[-v,g]:[v,g]}function v(t,n,s){if(s<0||s>1)return[];if(0===s||1===s)return[e(n)];const[a,[r,o],i,c,u,h,f]=n.a,{u1:l,u2:M}=t,m=l*(1-s)+M*s;return[{a:[[...I(t,s)],[r,o],Math.abs(m-l)<Math.PI?1:0,c,u,h,f]},{a:[[...a],[r,o],Math.abs(M-m)<Math.PI?1:0,c,u,h,f]}]}function j(t,n){const{a:s,b:a,cosR:r,sinR:o,u1:i,u2:c}=t,u=Math.PI/6,h=p(n,[1*u,2*u,4*u,5*u,7*u,8*u,10*u,11*u],n=>{const i=Math.cos(n),c=Math.sin(n),[u,h]=q(t,n);return[u,h,-s*r*c-a*o*i,-s*o*c+a*r*i,-s*r*i+a*o*c,-s*o*i-a*r*c]}),e=m(i,c),l=new Set(h.map(t=>f(e,t)).filter(t=>t>e.min&&t<e.max));l.add(i),l.add(c);let M,b,R=1/0;for(const f of l){const s=q(t,f),[a,r]=s,o=n[0]-a,u=n[1]-r,h=o*o+u*u;h<R&&(M=(f-i)/(c-i),b=s,R=h)}return{t:M,curvePoint:b,distance:Math.sqrt(R)}}function P(t,n,s){const a=x(n,s),{a:r,b:o,u1:i,u2:c,cosR:u,sinR:e,isInvalid:l}=a,M=s.a[0];if(h(t,n),h(t,M),l)return t;const b=Math.atan2(-o*e,r*u),R=b+Math.PI,p=Math.atan2(o*u,r*e),d=p+Math.PI,I=m(i,c);for(const m of[b,R,p,d].map(t=>f(I,t)))m>I.min&&m<I.max&&h(t,q(a,m));return t}function y(t,n,s){const[a,r,o,i,c,u,h]=n.a,e=x(t,n),{u1:f,u2:l,isInvalid:M}=e,m=l-f;if(M)return Math.sqrt(b(t,a));const p=14,d=[0,0];let g=0,v=[I(e,0),I(e,.25),I(e,.5),I(e,.75),I(e,1)];for(let x=0;x<p;x++){const t=v.length-1,n=m/(2*t),a=[];for(let s=0;s<t;s++)a.push(v[s]),a.push(q(e,f+(2*s+1)*n));a.push(v[v.length-1]),v=a,g=0;let o=0;for(let s=1;s<v.length;s++){const t=v[s-1],n=v[s];if(g+=Math.sqrt(b(t,n)),s>1){const a=v[s-2],i=R(d,a,t,r,n);o+=i?Math.sqrt(b(t,i)):Math.abs(n[0]-t[0])+Math.abs(n[1]-t[1])}else o+=g}if(o-g<s)return g}return g}const w=r(),U=r(),B=r(),S=r();function k(r,i,c){const[u,h,e,f,l,m,R]=i.a,p=x(r,i),{cosR:d,sinR:q,a:I,b:g,cx:v,cy:j}=p,P=o([0,0],u,c),y=o([0,0],h,c),k=c[0]*c[4]<0?1-f:f;{const n=I*I*q*q+g*g*d*d,s=2*(g*g-I*I)*q*d,a=I*I*d*d+g*g*q*q,r=-2*n*v-s*j,o=-s*v-2*a*j;t(w,n,s/2,r/2,s/2,a,o/2,r/2,o/2,n*v*v+s*v*j+a*j*j-I*I*g*g)}if(n(U,c),null==U){const t=o([0,0],r,c);return{a:[P,y,e,f,M(P[1],P[0]),Math.sqrt(b(P,t))/2,0]}}s(B,U),a(S,a(S,B,w),U);{const t=S[0],n=2*S[1],s=S[4],a=2*S[2],r=2*S[5],o=n*n-4*t*s,i=2*(t*r*r+s*a*a-n*a*r+o*S[8]),c=Math.sqrt((t-s)**2+n*n),u=-Math.sqrt(i*(t+s+c))/o,h=-Math.sqrt(i*(t+s-c))/o;return{a:[P,y,e,k,.5*M(-n,s-t),u,h/u]}}}export{d as DerivedEllipse,g as calculateEllipticArc7Tangent,j as closestPointOnEllipse,x as deriveEllipse,P as ellipticArcExtent,y as ellipticArcLength,I as interpolateEllipse,v as splitEllipticArc7,k as transformEllipticArc};
|
package/kernel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.1";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.1.0-next.
|
|
2
|
+
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.1";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.1.0-next.61",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
|
package/layers/CSVLayer.d.ts
CHANGED
|
@@ -927,16 +927,19 @@ export default class CSVLayer extends CSVLayerSuperclass {
|
|
|
927
927
|
*/
|
|
928
928
|
createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate | null | undefined;
|
|
929
929
|
/**
|
|
930
|
-
* Creates query parameter object that can be used to fetch features
|
|
931
|
-
* satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#definitionExpression).
|
|
930
|
+
* Creates query parameter object that can be used to fetch features from feature-based layers or
|
|
931
|
+
* image footprints from ImageryLayer that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#definitionExpression).
|
|
932
|
+
* It will return `Z` and `M` values based on the layer's [data capabilities](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#capabilities).
|
|
932
933
|
* It sets the query parameter's [Query.outFields](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outFields) property to `["*"]`.
|
|
934
|
+
* The results will include feature geometries and values for all [available fields](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#availableFields) in
|
|
935
|
+
* [queries](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#queryFeatures) against the layer views of feature-based layers, or all fields in the layer for
|
|
936
|
+
* [queries against the layer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryFeatures).
|
|
933
937
|
*
|
|
934
|
-
* @returns The query object representing the layer's definition expression
|
|
935
|
-
*
|
|
938
|
+
* @returns The query object representing the layer's definition expression and other configurations.
|
|
939
|
+
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
936
940
|
* @example
|
|
937
941
|
* // Get a query object for the layer's current configuration
|
|
938
|
-
*
|
|
939
|
-
* // for all available fields.
|
|
942
|
+
* queryParams.outFields will be set to ["*"] to get values for all available fields.
|
|
940
943
|
* const queryParams = layer.createQuery();
|
|
941
944
|
* // set a geometry for filtering features by a region of interest
|
|
942
945
|
* queryParams.geometry = extentForRegionOfInterest;
|
|
@@ -948,6 +951,35 @@ export default class CSVLayer extends CSVLayerSuperclass {
|
|
|
948
951
|
* // prints the array of result graphics to the console
|
|
949
952
|
* console.log(results.features);
|
|
950
953
|
* });
|
|
954
|
+
* @example
|
|
955
|
+
* // this snippet shows the query parameter object that is returned
|
|
956
|
+
* // from FeatureLayer.createQuery().
|
|
957
|
+
* const queryParams = new Query();
|
|
958
|
+
* const dataCapabilities = layer.get<DataCapabilities>("capabilities.data");
|
|
959
|
+
*
|
|
960
|
+
* queryParams.gdbVersion = layer.gdbVersion;
|
|
961
|
+
* queryParams.historicMoment = layer.historicMoment;
|
|
962
|
+
* queryParams.returnGeometry = true;
|
|
963
|
+
*
|
|
964
|
+
* if (dataCapabilities) {
|
|
965
|
+
* if (dataCapabilities.supportsZ && layer.returnZ != null) {
|
|
966
|
+
* queryParams.returnZ = layer.returnZ;
|
|
967
|
+
* }
|
|
968
|
+
*
|
|
969
|
+
* if (dataCapabilities.supportsM && layer.returnM != null) {
|
|
970
|
+
* queryParams.returnM = layer.returnM;
|
|
971
|
+
* }
|
|
972
|
+
* }
|
|
973
|
+
*
|
|
974
|
+
* queryParams.outFields = ["*"];
|
|
975
|
+
* queryParams.where = layer.definitionExpression || "1=1";
|
|
976
|
+
* queryParams.multipatchOption = layer.geometryType === "multipatch" ? "xyFootprint" : null;
|
|
977
|
+
* @example
|
|
978
|
+
* // this snippet shows query image footprints from imagery layer
|
|
979
|
+
* // that honors the layer's definitionExpression and other configurations.
|
|
980
|
+
* if (imageryLayer.capabilities.operations.supportsQuery) {
|
|
981
|
+
* const query = imageryLayer.createQuery();
|
|
982
|
+
* const rasters = await imageryLayer.queryRasters(query);
|
|
951
983
|
*/
|
|
952
984
|
createQuery(): Query;
|
|
953
985
|
/**
|
package/layers/CatalogLayer.d.ts
CHANGED
|
@@ -424,28 +424,59 @@ export default class CatalogLayer extends CatalogLayerSuperclass {
|
|
|
424
424
|
*/
|
|
425
425
|
createLayerFromFootprint(footprint: Graphic): Promise<Layer>;
|
|
426
426
|
/**
|
|
427
|
-
* Creates query parameter object that can be used to fetch features
|
|
427
|
+
* Creates query parameter object that can be used to fetch features from feature-based layers or
|
|
428
|
+
* image footprints from ImageryLayer that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/#definitionExpression).
|
|
428
429
|
* It will return `Z` and `M` values based on the layer's [data capabilities](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/#capabilities).
|
|
429
430
|
* It sets the query parameter's [Query.outFields](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outFields) property to `["*"]`.
|
|
430
|
-
* The results will include geometries
|
|
431
|
-
* [
|
|
431
|
+
* The results will include feature geometries and values for all [available fields](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#availableFields) in
|
|
432
|
+
* [queries](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#queryFeatures) against the layer views of feature-based layers, or all fields in the layer for
|
|
433
|
+
* [queries against the layer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryFeatures).
|
|
432
434
|
*
|
|
433
435
|
* @returns The query object representing the layer's definition expression and other configurations.
|
|
434
|
-
* @see [Sample -
|
|
436
|
+
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
435
437
|
* @example
|
|
436
|
-
* // Get a query object for the layer's current configuration
|
|
437
|
-
*
|
|
438
|
-
* const queryParams =
|
|
438
|
+
* // Get a query object for the layer's current configuration
|
|
439
|
+
* queryParams.outFields will be set to ["*"] to get values for all available fields.
|
|
440
|
+
* const queryParams = layer.createQuery();
|
|
439
441
|
* // set a geometry for filtering features by a region of interest
|
|
440
442
|
* queryParams.geometry = extentForRegionOfInterest;
|
|
441
443
|
* // Add to the layer's current definitionExpression
|
|
442
444
|
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
443
445
|
*
|
|
444
446
|
* // query the layer with the modified params object
|
|
445
|
-
*
|
|
447
|
+
* layer.queryFeatures(queryParams).then(function(results){
|
|
446
448
|
* // prints the array of result graphics to the console
|
|
447
449
|
* console.log(results.features);
|
|
448
450
|
* });
|
|
451
|
+
* @example
|
|
452
|
+
* // this snippet shows the query parameter object that is returned
|
|
453
|
+
* // from FeatureLayer.createQuery().
|
|
454
|
+
* const queryParams = new Query();
|
|
455
|
+
* const dataCapabilities = layer.get<DataCapabilities>("capabilities.data");
|
|
456
|
+
*
|
|
457
|
+
* queryParams.gdbVersion = layer.gdbVersion;
|
|
458
|
+
* queryParams.historicMoment = layer.historicMoment;
|
|
459
|
+
* queryParams.returnGeometry = true;
|
|
460
|
+
*
|
|
461
|
+
* if (dataCapabilities) {
|
|
462
|
+
* if (dataCapabilities.supportsZ && layer.returnZ != null) {
|
|
463
|
+
* queryParams.returnZ = layer.returnZ;
|
|
464
|
+
* }
|
|
465
|
+
*
|
|
466
|
+
* if (dataCapabilities.supportsM && layer.returnM != null) {
|
|
467
|
+
* queryParams.returnM = layer.returnM;
|
|
468
|
+
* }
|
|
469
|
+
* }
|
|
470
|
+
*
|
|
471
|
+
* queryParams.outFields = ["*"];
|
|
472
|
+
* queryParams.where = layer.definitionExpression || "1=1";
|
|
473
|
+
* queryParams.multipatchOption = layer.geometryType === "multipatch" ? "xyFootprint" : null;
|
|
474
|
+
* @example
|
|
475
|
+
* // this snippet shows query image footprints from imagery layer
|
|
476
|
+
* // that honors the layer's definitionExpression and other configurations.
|
|
477
|
+
* if (imageryLayer.capabilities.operations.supportsQuery) {
|
|
478
|
+
* const query = imageryLayer.createQuery();
|
|
479
|
+
* const rasters = await imageryLayer.queryRasters(query);
|
|
449
480
|
*/
|
|
450
481
|
createQuery(): Query;
|
|
451
482
|
/**
|
package/layers/FeatureLayer.d.ts
CHANGED
|
@@ -1440,20 +1440,31 @@ export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {
|
|
|
1440
1440
|
*/
|
|
1441
1441
|
createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate | null | undefined;
|
|
1442
1442
|
/**
|
|
1443
|
-
* Creates query parameter object that can be used to fetch features
|
|
1444
|
-
* satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#definitionExpression)
|
|
1445
|
-
* [gdbVersion](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#gdbVersion), and [historicMoment](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#historicMoment).
|
|
1443
|
+
* Creates query parameter object that can be used to fetch features from feature-based layers or
|
|
1444
|
+
* image footprints from ImageryLayer that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#definitionExpression).
|
|
1446
1445
|
* It will return `Z` and `M` values based on the layer's [data capabilities](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#capabilities).
|
|
1447
1446
|
* It sets the query parameter's [Query.outFields](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outFields) property to `["*"]`.
|
|
1448
|
-
* The results will include geometries
|
|
1449
|
-
* [
|
|
1450
|
-
* [
|
|
1451
|
-
* or all fields in the layer for [server side queries](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryFeatures).
|
|
1447
|
+
* The results will include feature geometries and values for all [available fields](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#availableFields) in
|
|
1448
|
+
* [queries](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#queryFeatures) against the layer views of feature-based layers, or all fields in the layer for
|
|
1449
|
+
* [queries against the layer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryFeatures).
|
|
1452
1450
|
*
|
|
1453
|
-
* @returns The query object representing the layer's definition expression
|
|
1454
|
-
* and other configurations.
|
|
1451
|
+
* @returns The query object representing the layer's definition expression and other configurations.
|
|
1455
1452
|
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
1456
1453
|
* @example
|
|
1454
|
+
* // Get a query object for the layer's current configuration
|
|
1455
|
+
* queryParams.outFields will be set to ["*"] to get values for all available fields.
|
|
1456
|
+
* const queryParams = layer.createQuery();
|
|
1457
|
+
* // set a geometry for filtering features by a region of interest
|
|
1458
|
+
* queryParams.geometry = extentForRegionOfInterest;
|
|
1459
|
+
* // Add to the layer's current definitionExpression
|
|
1460
|
+
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
1461
|
+
*
|
|
1462
|
+
* // query the layer with the modified params object
|
|
1463
|
+
* layer.queryFeatures(queryParams).then(function(results){
|
|
1464
|
+
* // prints the array of result graphics to the console
|
|
1465
|
+
* console.log(results.features);
|
|
1466
|
+
* });
|
|
1467
|
+
* @example
|
|
1457
1468
|
* // this snippet shows the query parameter object that is returned
|
|
1458
1469
|
* // from FeatureLayer.createQuery().
|
|
1459
1470
|
* const queryParams = new Query();
|
|
@@ -1477,20 +1488,11 @@ export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {
|
|
|
1477
1488
|
* queryParams.where = layer.definitionExpression || "1=1";
|
|
1478
1489
|
* queryParams.multipatchOption = layer.geometryType === "multipatch" ? "xyFootprint" : null;
|
|
1479
1490
|
* @example
|
|
1480
|
-
* //
|
|
1481
|
-
* //
|
|
1482
|
-
*
|
|
1483
|
-
* const
|
|
1484
|
-
*
|
|
1485
|
-
* queryParams.geometry = extentForRegionOfInterest;
|
|
1486
|
-
* // Add to the layer's current definitionExpression
|
|
1487
|
-
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
1488
|
-
*
|
|
1489
|
-
* // query the layer with the modified params object
|
|
1490
|
-
* layer.queryFeatures(queryParams).then(function(results){
|
|
1491
|
-
* // prints the array of result graphics to the console
|
|
1492
|
-
* console.log(results.features);
|
|
1493
|
-
* });
|
|
1491
|
+
* // this snippet shows query image footprints from imagery layer
|
|
1492
|
+
* // that honors the layer's definitionExpression and other configurations.
|
|
1493
|
+
* if (imageryLayer.capabilities.operations.supportsQuery) {
|
|
1494
|
+
* const query = imageryLayer.createQuery();
|
|
1495
|
+
* const rasters = await imageryLayer.queryRasters(query);
|
|
1494
1496
|
*/
|
|
1495
1497
|
createQuery(): Query;
|
|
1496
1498
|
/**
|
package/layers/GeoJSONLayer.d.ts
CHANGED
|
@@ -1492,18 +1492,19 @@ export default class GeoJSONLayer extends GeoJSONLayerSuperclass {
|
|
|
1492
1492
|
*/
|
|
1493
1493
|
createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate | null | undefined;
|
|
1494
1494
|
/**
|
|
1495
|
-
* Creates query parameter object that can be used to fetch features
|
|
1496
|
-
* satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/#definitionExpression).
|
|
1495
|
+
* Creates query parameter object that can be used to fetch features from feature-based layers or
|
|
1496
|
+
* image footprints from ImageryLayer that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/#definitionExpression).
|
|
1497
1497
|
* It will return `Z` and `M` values based on the layer's [data capabilities](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/#capabilities).
|
|
1498
1498
|
* It sets the query parameter's [Query.outFields](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outFields) property to `["*"]`.
|
|
1499
|
+
* The results will include feature geometries and values for all [available fields](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#availableFields) in
|
|
1500
|
+
* [queries](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#queryFeatures) against the layer views of feature-based layers, or all fields in the layer for
|
|
1501
|
+
* [queries against the layer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryFeatures).
|
|
1499
1502
|
*
|
|
1500
|
-
* @returns The query object representing the layer's definition expression
|
|
1501
|
-
* and other configurations.
|
|
1503
|
+
* @returns The query object representing the layer's definition expression and other configurations.
|
|
1502
1504
|
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
1503
1505
|
* @example
|
|
1504
1506
|
* // Get a query object for the layer's current configuration
|
|
1505
|
-
*
|
|
1506
|
-
* // for all available fields.
|
|
1507
|
+
* queryParams.outFields will be set to ["*"] to get values for all available fields.
|
|
1507
1508
|
* const queryParams = layer.createQuery();
|
|
1508
1509
|
* // set a geometry for filtering features by a region of interest
|
|
1509
1510
|
* queryParams.geometry = extentForRegionOfInterest;
|
|
@@ -1515,6 +1516,35 @@ export default class GeoJSONLayer extends GeoJSONLayerSuperclass {
|
|
|
1515
1516
|
* // prints the array of result graphics to the console
|
|
1516
1517
|
* console.log(results.features);
|
|
1517
1518
|
* });
|
|
1519
|
+
* @example
|
|
1520
|
+
* // this snippet shows the query parameter object that is returned
|
|
1521
|
+
* // from FeatureLayer.createQuery().
|
|
1522
|
+
* const queryParams = new Query();
|
|
1523
|
+
* const dataCapabilities = layer.get<DataCapabilities>("capabilities.data");
|
|
1524
|
+
*
|
|
1525
|
+
* queryParams.gdbVersion = layer.gdbVersion;
|
|
1526
|
+
* queryParams.historicMoment = layer.historicMoment;
|
|
1527
|
+
* queryParams.returnGeometry = true;
|
|
1528
|
+
*
|
|
1529
|
+
* if (dataCapabilities) {
|
|
1530
|
+
* if (dataCapabilities.supportsZ && layer.returnZ != null) {
|
|
1531
|
+
* queryParams.returnZ = layer.returnZ;
|
|
1532
|
+
* }
|
|
1533
|
+
*
|
|
1534
|
+
* if (dataCapabilities.supportsM && layer.returnM != null) {
|
|
1535
|
+
* queryParams.returnM = layer.returnM;
|
|
1536
|
+
* }
|
|
1537
|
+
* }
|
|
1538
|
+
*
|
|
1539
|
+
* queryParams.outFields = ["*"];
|
|
1540
|
+
* queryParams.where = layer.definitionExpression || "1=1";
|
|
1541
|
+
* queryParams.multipatchOption = layer.geometryType === "multipatch" ? "xyFootprint" : null;
|
|
1542
|
+
* @example
|
|
1543
|
+
* // this snippet shows query image footprints from imagery layer
|
|
1544
|
+
* // that honors the layer's definitionExpression and other configurations.
|
|
1545
|
+
* if (imageryLayer.capabilities.operations.supportsQuery) {
|
|
1546
|
+
* const query = imageryLayer.createQuery();
|
|
1547
|
+
* const rasters = await imageryLayer.queryRasters(query);
|
|
1518
1548
|
*/
|
|
1519
1549
|
createQuery(): Query;
|
|
1520
1550
|
/**
|
package/layers/ParquetLayer.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type Field from "./support/Field.js";
|
|
|
7
7
|
import type FieldsIndex from "./support/FieldsIndex.js";
|
|
8
8
|
import type LabelClass from "./support/LabelClass.js";
|
|
9
9
|
import type FeatureSet from "../rest/support/FeatureSet.js";
|
|
10
|
+
import type Query from "../rest/support/Query.js";
|
|
10
11
|
import type { ClonableMixin } from "../core/Clonable.js";
|
|
11
12
|
import type { MultiOriginJSONSupportMixin } from "../core/MultiOriginJSONSupport.js";
|
|
12
13
|
import type { AbortOptions } from "../core/promiseUtils.js";
|
|
@@ -558,6 +559,63 @@ export default class ParquetLayer extends ParquetLayerSuperclass {
|
|
|
558
559
|
* @returns The popup template, or `null` if the layer does not have any fields.
|
|
559
560
|
*/
|
|
560
561
|
createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate | null | undefined;
|
|
562
|
+
/**
|
|
563
|
+
* Creates query parameter object that can be used to fetch features from feature-based layers or
|
|
564
|
+
* image footprints from ImageryLayer that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer/#definitionExpression).
|
|
565
|
+
* It will return `Z` and `M` values based on the layer's [data capabilities](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer/#capabilities).
|
|
566
|
+
* It sets the query parameter's [Query.outFields](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outFields) property to `["*"]`.
|
|
567
|
+
* The results will include feature geometries and values for all [available fields](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#availableFields) in
|
|
568
|
+
* [queries](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#queryFeatures) against the layer views of feature-based layers, or all fields in the layer for
|
|
569
|
+
* [queries against the layer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryFeatures).
|
|
570
|
+
*
|
|
571
|
+
* @since 5.1
|
|
572
|
+
* @returns The query object representing the layer's definition expression and other configurations.
|
|
573
|
+
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
574
|
+
* @example
|
|
575
|
+
* // Get a query object for the layer's current configuration
|
|
576
|
+
* queryParams.outFields will be set to ["*"] to get values for all available fields.
|
|
577
|
+
* const queryParams = layer.createQuery();
|
|
578
|
+
* // set a geometry for filtering features by a region of interest
|
|
579
|
+
* queryParams.geometry = extentForRegionOfInterest;
|
|
580
|
+
* // Add to the layer's current definitionExpression
|
|
581
|
+
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
582
|
+
*
|
|
583
|
+
* // query the layer with the modified params object
|
|
584
|
+
* layer.queryFeatures(queryParams).then(function(results){
|
|
585
|
+
* // prints the array of result graphics to the console
|
|
586
|
+
* console.log(results.features);
|
|
587
|
+
* });
|
|
588
|
+
* @example
|
|
589
|
+
* // this snippet shows the query parameter object that is returned
|
|
590
|
+
* // from FeatureLayer.createQuery().
|
|
591
|
+
* const queryParams = new Query();
|
|
592
|
+
* const dataCapabilities = layer.get<DataCapabilities>("capabilities.data");
|
|
593
|
+
*
|
|
594
|
+
* queryParams.gdbVersion = layer.gdbVersion;
|
|
595
|
+
* queryParams.historicMoment = layer.historicMoment;
|
|
596
|
+
* queryParams.returnGeometry = true;
|
|
597
|
+
*
|
|
598
|
+
* if (dataCapabilities) {
|
|
599
|
+
* if (dataCapabilities.supportsZ && layer.returnZ != null) {
|
|
600
|
+
* queryParams.returnZ = layer.returnZ;
|
|
601
|
+
* }
|
|
602
|
+
*
|
|
603
|
+
* if (dataCapabilities.supportsM && layer.returnM != null) {
|
|
604
|
+
* queryParams.returnM = layer.returnM;
|
|
605
|
+
* }
|
|
606
|
+
* }
|
|
607
|
+
*
|
|
608
|
+
* queryParams.outFields = ["*"];
|
|
609
|
+
* queryParams.where = layer.definitionExpression || "1=1";
|
|
610
|
+
* queryParams.multipatchOption = layer.geometryType === "multipatch" ? "xyFootprint" : null;
|
|
611
|
+
* @example
|
|
612
|
+
* // this snippet shows query image footprints from imagery layer
|
|
613
|
+
* // that honors the layer's definitionExpression and other configurations.
|
|
614
|
+
* if (imageryLayer.capabilities.operations.supportsQuery) {
|
|
615
|
+
* const query = imageryLayer.createQuery();
|
|
616
|
+
* const rasters = await imageryLayer.queryRasters(query);
|
|
617
|
+
*/
|
|
618
|
+
createQuery(): Query;
|
|
561
619
|
/**
|
|
562
620
|
* Returns the [Field](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Field/) instance for a field name (case-insensitive).
|
|
563
621
|
*
|
|
@@ -393,22 +393,33 @@ export default class SubtypeGroupLayer extends SubtypeGroupLayerSuperclass {
|
|
|
393
393
|
*/
|
|
394
394
|
applyEdits(edits: Edits, options?: EditOptions): Promise<EditsResult>;
|
|
395
395
|
/**
|
|
396
|
-
* Creates query parameter object that can be used to fetch features
|
|
397
|
-
* satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/#definitionExpression)
|
|
398
|
-
* [gdbVersion](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/#gdbVersion), and [historicMoment](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/#historicMoment).
|
|
396
|
+
* Creates query parameter object that can be used to fetch features from feature-based layers or
|
|
397
|
+
* image footprints from ImageryLayer that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/#definitionExpression).
|
|
399
398
|
* It will return `Z` and `M` values based on the layer's [data capabilities](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/#capabilities).
|
|
400
399
|
* It sets the query parameter's [Query.outFields](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outFields) property to `["*"]`.
|
|
401
|
-
* The results will include geometries
|
|
402
|
-
* [
|
|
403
|
-
* [
|
|
404
|
-
* or all fields in the layer for [server side queries](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/#queryFeatures).
|
|
400
|
+
* The results will include feature geometries and values for all [available fields](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#availableFields) in
|
|
401
|
+
* [queries](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#queryFeatures) against the layer views of feature-based layers, or all fields in the layer for
|
|
402
|
+
* [queries against the layer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryFeatures).
|
|
405
403
|
*
|
|
406
|
-
* @returns The query object representing the layer's definition expression
|
|
407
|
-
*
|
|
408
|
-
* @
|
|
404
|
+
* @returns The query object representing the layer's definition expression and other configurations.
|
|
405
|
+
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
406
|
+
* @example
|
|
407
|
+
* // Get a query object for the layer's current configuration
|
|
408
|
+
* queryParams.outFields will be set to ["*"] to get values for all available fields.
|
|
409
|
+
* const queryParams = layer.createQuery();
|
|
410
|
+
* // set a geometry for filtering features by a region of interest
|
|
411
|
+
* queryParams.geometry = extentForRegionOfInterest;
|
|
412
|
+
* // Add to the layer's current definitionExpression
|
|
413
|
+
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
414
|
+
*
|
|
415
|
+
* // query the layer with the modified params object
|
|
416
|
+
* layer.queryFeatures(queryParams).then(function(results){
|
|
417
|
+
* // prints the array of result graphics to the console
|
|
418
|
+
* console.log(results.features);
|
|
419
|
+
* });
|
|
409
420
|
* @example
|
|
410
421
|
* // this snippet shows the query parameter object that is returned
|
|
411
|
-
* // from
|
|
422
|
+
* // from FeatureLayer.createQuery().
|
|
412
423
|
* const queryParams = new Query();
|
|
413
424
|
* const dataCapabilities = layer.get<DataCapabilities>("capabilities.data");
|
|
414
425
|
*
|
|
@@ -430,20 +441,11 @@ export default class SubtypeGroupLayer extends SubtypeGroupLayerSuperclass {
|
|
|
430
441
|
* queryParams.where = layer.definitionExpression || "1=1";
|
|
431
442
|
* queryParams.multipatchOption = layer.geometryType === "multipatch" ? "xyFootprint" : null;
|
|
432
443
|
* @example
|
|
433
|
-
* //
|
|
434
|
-
* //
|
|
435
|
-
*
|
|
436
|
-
* const
|
|
437
|
-
*
|
|
438
|
-
* queryParams.geometry = extentForRegionOfInterest;
|
|
439
|
-
* // Add to the layer's current definitionExpression
|
|
440
|
-
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
441
|
-
*
|
|
442
|
-
* // query the layer with the modified params object
|
|
443
|
-
* layer.queryFeatures(queryParams).then(function(results){
|
|
444
|
-
* // prints the array of result graphics to the console
|
|
445
|
-
* console.log(results.features);
|
|
446
|
-
* });
|
|
444
|
+
* // this snippet shows query image footprints from imagery layer
|
|
445
|
+
* // that honors the layer's definitionExpression and other configurations.
|
|
446
|
+
* if (imageryLayer.capabilities.operations.supportsQuery) {
|
|
447
|
+
* const query = imageryLayer.createQuery();
|
|
448
|
+
* const rasters = await imageryLayer.queryRasters(query);
|
|
447
449
|
*/
|
|
448
450
|
createQuery(): Query;
|
|
449
451
|
/**
|