@arcgis/core 6.0.0-next.14 → 6.0.0-next.15

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 (71) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/08fe248e412bb170210d.js +1 -0
  3. package/assets/esri/core/workers/chunks/{fb444954be74c1962ced.js → 10d80e793019dfb45ca2.js} +1 -1
  4. package/assets/esri/core/workers/chunks/5736feefa261589b6273.js +1 -0
  5. package/assets/esri/core/workers/chunks/8e19629899a5becf8e19.js +1 -0
  6. package/assets/esri/core/workers/chunks/94e427040edb469d58ad.js +1 -0
  7. package/assets/esri/core/workers/chunks/{aadfe34a99c9ec7a0e11.js → ae31fd416bbb41a81392.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{22e8c0aad2fe75943865.js → ed8786fed345718ed684.js} +1 -1
  9. package/assets/esri/libs/pdfjs/wasm/openjpeg_nowasm_fallback.js +1 -0
  10. package/config.js +1 -1
  11. package/core/ObjectPool.js +1 -1
  12. package/core/PooledArray.js +1 -1
  13. package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
  14. package/geometry/support/buffer/BufferPool.js +1 -1
  15. package/geometry/support/coordsUtils.js +1 -1
  16. package/geometry/support/meshUtils.d.ts +5 -6
  17. package/interfaces.d.ts +18 -9
  18. package/kernel.js +1 -1
  19. package/layers/GeospatialPDFLayer.d.ts +154 -4
  20. package/layers/Layer.d.ts +2 -0
  21. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  22. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  23. package/layers/support/LabelClass.d.ts +3 -2
  24. package/layers/support/PortalItemData.d.ts +31 -8
  25. package/layers/support/types.d.ts +4 -1
  26. package/package.json +2 -2
  27. package/rest/knowledgeGraph/ObjectValue.js +1 -1
  28. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  29. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  30. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  31. package/views/3d/analysis/LineOfSight/{LineOfSightRootPlugin.js → LineOfSightPlacementRootPlugin.js} +1 -1
  32. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  33. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  34. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  35. package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
  36. package/views/3d/support/MemoryController.js +1 -1
  37. package/views/3d/terrain/TerrainData.js +1 -1
  38. package/views/3d/terrain/terrainUtils.js +1 -1
  39. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  40. package/views/3d/webgl-engine/effects/geometry/RenderOccluded.js +1 -1
  41. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  42. package/views/3d/webgl-engine/lib/PathCapBuilder.js +1 -1
  43. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  44. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  45. package/views/3d/webgl-engine/lib/PathProfile.js +1 -1
  46. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  47. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  48. package/widgets/BatchAttributeForm.js +1 -1
  49. package/widgets/Editor/EditorViewModel.d.ts +10 -1
  50. package/widgets/Editor.d.ts +10 -1
  51. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  52. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  53. package/widgets/HistogramRangeSlider.d.ts +2 -2
  54. package/widgets/HistogramRangeSlider.js +1 -1
  55. package/widgets/Legend.d.ts +1 -0
  56. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.d.ts +5 -2
  57. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  58. package/widgets/ScaleRangeSlider.js +1 -1
  59. package/widgets/ValuePicker/ValuePickerBaseComponent.d.ts +5 -1
  60. package/widgets/ValuePicker/ValuePickerCollection.d.ts +2 -0
  61. package/widgets/ValuePicker/ValuePickerCombobox.d.ts +7 -1
  62. package/widgets/ValuePicker/ValuePickerLabel.d.ts +7 -1
  63. package/widgets/ValuePicker/ValuePickerSlider.d.ts +2 -0
  64. package/widgets/ValuePicker/ValuePickerSliderVisibleElements.d.ts +5 -1
  65. package/widgets/ValuePicker/ValuePickerVisibleElements.d.ts +5 -1
  66. package/widgets/ValuePicker/types.d.ts +2 -0
  67. package/assets/esri/core/workers/chunks/037a8cc19debbaaa4e10.js +0 -1
  68. package/assets/esri/core/workers/chunks/1c65ab9ed611c322ce27.js +0 -1
  69. package/assets/esri/core/workers/chunks/408e81c8f1eff8a7b379.js +0 -1
  70. package/assets/esri/core/workers/chunks/5bfea0c55aca826de536.js +0 -1
  71. /package/views/3d/analysis/LineOfSight/{lineOfSightPlacementUtils.js → placementUtils.js} +0 -0
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.14/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.15/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- function e(e){return e?.release&&typeof e.release==`function`}function t(e){return e?.acquire&&typeof e.acquire==`function`}class n{constructor(e,t,n,r=1,i=0){this._creator=e,this._acquireFunction=t,this._releaseFunction=n,this.allocationSize=r,this._pool=Array(i),this._initialSize=i;for(let e=0;e<i;e++)this._pool[e]=this._creator();this.allocationSize=Math.max(r,1)}destroy(){this.prune(0)}acquire(...e){if(this._pool.length===0){let e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=this._creator()}let n=this._pool.pop();return this._acquireFunction?this._acquireFunction(n,...e):t(n)&&n.acquire(...e),n}release(t){t&&(this._releaseFunction?this._releaseFunction(t):e(t)&&t.release(),this._pool.push(t))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){let e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&typeof e.dispose==`function`&&e.dispose()}}export{n as default};
2
+ import has from"./has.js";const e=()=>!!has(`esri-tests-disable-memory-pools`);function t(e){return e?.release&&typeof e.release==`function`}function n(e){return e?.acquire&&typeof e.acquire==`function`}class r{constructor(e,t,n,r=1,i=0){this._creator=e,this._acquireFunction=t,this._releaseFunction=n,this.allocationSize=r,this._pool=Array(i),this._initialSize=i;for(let e=0;e<i;e++)this._pool[e]=this._creator();this.allocationSize=Math.max(r,1)}destroy(){this.prune(0)}acquire(...t){let r;if(e())r=this._creator();else{if(this._pool.length===0){let e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=this._creator()}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):n(r)&&r.acquire(...t),r}release(n){n&&!e()&&(this._releaseFunction?this._releaseFunction(n):t(n)&&n.release(),this._pool.push(n))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){let e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&typeof e.dispose==`function`&&e.dispose()}}export{r as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{PositionHint as e,indexOf as t,removeUnorderedMany as n}from"./arrayUtils.js";import{toConst as r}from"./compilerUtils.js";import{sort as i,iterableSort as a}from"./heapSort.js";class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new e,t&&(t.initialSize&&(this.data=Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>s(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let t=[];for(let n=0;n<this._length;n++){let r=this.data[n];e(r)&&t.push(r)}return t}at(e){if(e=Math.trunc(e)||0,e<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){let n=this.data.indexOf(e,t);return n!==-1&&n<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let n=0;n<t;n++)this.data[this._length++]=e[n]}pushAll(e){for(let t of e)this.data[this._length++]=t}fill(e,t){for(let n=0;n<t;n++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,s(this)}pop(){if(this.length===0)return;let e=this.data[this.length-1];return--this.length,this._shrink(),e}remove(e){let n=t(this.data,r(e),this.length,this._hint);if(n!==-1)return this.data.splice(n,1),--this.length,e}removeUnordered(e){return this.removeUnorderedIndex(t(this.data,r(e),this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=n(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;let n=this.data[e];this.data[e]=this.data[t],this.data[t]=n}sort(e){i(this.data,0,this.length,e)}iterableSort(e){return a(this.data,0,this.length,e)}some(e,t){for(let n=0;n<this.length;++n)if(e.call(t,this.data[n],n,this.data))return!0;return!1}find(e,t){let{data:n,length:r}=this;for(let i=0;i<r;++i)if(e.call(t,n[i]))return n[i]}filterInPlace(e,t){let n=0;for(let r=0;r<this._length;++r){let i=this.data[r];e.call(t,i,r,this.data)&&(this.data[r]=this.data[n],this.data[n]=i,n++)}if(this._deallocator)for(let e=n;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=n,this._shrink(),this}forAll(e,t){let{data:n,length:r}=this;for(let i=0;i<r;++i)e.call(t,n[i],i,n)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){let n=Array(this.length);for(let r=0;r<this.length;++r)n[r]=e.call(t,this.data[r],r,this.data);return n}reduce(e,t){let n=t;for(let t=0;t<this.length;++t)n=e(n,this.data[t],t,this.data);return n}has(e){let t=this.length,n=this.data;for(let r=0;r<t;++r)if(n[r]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;++e)yield this.data[e]}}function s(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(e.length*1.1))}export{o as default};
2
+ import{PositionHint as e,indexOf as t,removeUnorderedMany as n}from"./arrayUtils.js";import{toConst as r}from"./compilerUtils.js";import{sort as i,iterableSort as a}from"./heapSort.js";class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new e,t&&(t.initialSize&&(this.data=Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>s(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let t=[];for(let n=0;n<this._length;n++){let r=this.data[n];e(r)&&t.push(r)}return t}at(e){if(e=Math.trunc(e)||0,e<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){let n=this.data.indexOf(e,t);return n!==-1&&n<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let n=0;n<t;n++)this.data[this._length++]=e[n]}pushAll(e){for(let t of e)this.data[this._length++]=t}fill(e,t){for(let n=0;n<t;n++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,s(this)}pop(){if(this.length===0)return;let e=this.data[this.length-1];return--this.length,this._shrink(),e}remove(e){let n=t(this.data,r(e),this.length,this._hint);if(n!==-1)return this.data.splice(n,1),--this.length,e}removeUnordered(e){return this.removeUnorderedIndex(t(this.data,r(e),this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=n(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;let n=this.data[e];this.data[e]=this.data[t],this.data[t]=n}sort(e){i(this.data,0,this.length,e)}stableSort(e){let t=this.toArray().sort(e);for(let e=0;e<t.length;++e)this.data[e]=t[e]}iterableSort(e){return a(this.data,0,this.length,e)}some(e,t){for(let n=0;n<this.length;++n)if(e.call(t,this.data[n],n,this.data))return!0;return!1}find(e,t){let{data:n,length:r}=this;for(let i=0;i<r;++i)if(e.call(t,n[i]))return n[i]}filterInPlace(e,t){let n=0;for(let r=0;r<this._length;++r){let i=this.data[r];e.call(t,i,r,this.data)&&(this.data[r]=this.data[n],this.data[n]=i,n++)}if(this._deallocator)for(let e=n;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=n,this._shrink(),this}forAll(e,t){let{data:n,length:r}=this;for(let i=0;i<r;++i)e.call(t,n[i],i,n)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){let n=Array(this.length);for(let r=0;r<this.length;++r)n[r]=e.call(t,this.data[r],r,this.data);return n}reduce(e,t){let n=t;for(let t=0;t<this.length;++t)n=e(n,this.data[t],t,this.data);return n}has(e){let t=this.length,n=this.data;for(let r=0;r<t;++r)if(n[r]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;++e)yield this.data[e]}}function s(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(e.length*1.1))}export{o as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{TrackingTarget as e}from"./TrackingTarget.js";class t extends e{constructor(e){super(new n(e)),this._observer&&r.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&r.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class n{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;e===1?(this._invalidCount=0,this._notify()):this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=i}}const r=new FinalizationRegistry(e=>{e.deref()?.destroy()});function i(){}export{t as SimpleTrackingTarget};
2
+ import{TrackingTarget as e}from"./TrackingTarget.js";class t extends e{constructor(e){super(new n(e)),this._observer&&r.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&r.unregister(this),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class n{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;e===1?(this._invalidCount=0,this._notify()):this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=i}}const r=new FinalizationRegistry(e=>{e.deref()?.destroy()});function i(){}export{t as SimpleTrackingTarget};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"../../../core/has.js";import e from"../../../core/PooledArray.js";class t{constructor(e,t){this._factoryCallback=e,this._lengthCallback=t,this._pool=new Map}acquire(e){let t=this._pool.get(e);if(t&&t.length!==0)return t.pop();try{return this._factoryCallback(e)}catch(e){throw e}}release(t){let n=this._lengthCallback(t),r=this._pool.get(n);r||(r=new e({shrink:!0}),this._pool.set(n,r)),r.push(t)}clear(){this._pool.clear()}get test(){}}export{t as BufferPool};
2
+ import has from"../../../core/has.js";import e from"../../../core/PooledArray.js";const t=()=>!!has(`esri-tests-disable-memory-pools`);class n{constructor(e,t){this._factoryCallback=e,this._lengthCallback=t,this._pool=new Map}acquire(e){if(!t()){let t=this._pool.get(e);if(t&&t.length!==0)return t.pop()}try{return this._factoryCallback(e)}catch(e){throw e}}release(n){if(t())return;let r=this._lengthCallback(n),i=this._pool.get(r);i||(i=new e({shrink:!0}),this._pool.set(r,i)),i.push(n)}clear(){this._pool.clear()}get test(){}}export{n as BufferPool};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{equals as e}from"../../core/arrayUtils.js";import{curvesAreSameType as t}from"./curves/curveUtils.js";function n(e){if(!e)return null;if(Array.isArray(e))return e;let t=e.hasZ,n=e.hasM;if(e.type===`point`)return n&&t?[e.x,e.y,e.z,e.m]:t?[e.x,e.y,e.z]:n?[e.x,e.y,e.m]:[e.x,e.y];if(e.type===`polygon`)return e.rings.slice();if(e.type===`polyline`)return e.paths.slice();if(e.type===`multipoint`)return e.points.map(e=>[e]);if(e.type===`extent`){let t=e.clone().normalize();if(!t)return null;let n=!1,r=!1;return t.forEach(e=>{e.hasZ&&(n=!0),e.hasM&&(r=!0)}),t.map(e=>{let t=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];if(n&&e.hasZ){let n=(e.zmax-e.zmin)*.5;for(let e=0;e<t.length;e++)t[e].push(n)}if(r&&e.hasM){let n=(e.mmax-e.mmin)*.5;for(let e=0;e<t.length;e++)t[e].push(n)}return t})}return null}function r(e,t){let n=t[0]-e[0],r=t[1]-e[1];if(e.length>2&&t.length>2){let i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}return Math.sqrt(n*n+r*r)}function i(e,t,n){let r=e[0]+n*(t[0]-e[0]),i=e[1]+n*(t[1]-e[1]);return e.length>2&&t.length>2?[r,i,e[2]+n*(t[2]-e[2])]:[r,i]}function a(e,t,n,r){return o(e,t,n[r],n[r+1])}function o(e,t,n,r){let[i,a]=t,[o,s]=n,[c,l]=r,u=c-o,d=l-s,f=i-o,p=a-s,m=u*u+d*d,h=f*u+p*d,g=Math.min(1,Math.max(0,h/m));return e[0]=o+u*g,e[1]=s+d*g,e}function s(e,t,n){let r=!1,i=1/0,a,o,s,l;for(n.reset();n.nextPath();)if(n.nextPoint())for(a=n.x,o=n.y;n.nextPoint();)s=n.x,l=n.y,o>t!=l>t&&e<(s-a)*(t-o)/(l-o)+a&&(r=!r),i=Math.min(i,c(e,t,a,o,s,l)),a=s,o=l;return i===0?0:(r?1:-1)*Math.sqrt(i)}function c(e,t,n,r,i,a){let o=n,s=r,c=i-o,l=a-s;if(c!==0||l!==0){let n=((e-o)*c+(t-s)*l)/(c*c+l*l);n>1?(o=i,s=a):n>0&&(o+=c*n,s+=l*n)}return c=e-o,l=t-s,c*c+l*l}function l(e,t){return i(e,t,.5)}function u(e){let t=e.length,n=0;for(let i=0;i<t-1;++i)n+=r(e[i],e[i+1]);return n}function d(e,t){if(t<=0)return e[0];let n=e.length,a=0;for(let o=0;o<n-1;++o){let n=r(e[o],e[o+1]);if(t-a<n){let r=(t-a)/n;return i(e[o],e[o+1],r)}a+=n}return e[n-1]}function f(e,t=0,n=1){let r=0,i=e.length,a=e[0];for(let o=1;o<i;o++){let i=e[o];r+=(i[t]-a[t])*(i[n]+a[n]),a=i}if(p(e)){let i=e[0];r+=(i[t]-a[t])*(i[n]+a[n])}return r>=0}function p(t){let n=t.length;return n>0&&!e(t[0],t[n-1])}function m(e){`rings`in e&&(h(e),g(e))}function h(e){if(`rings`in e)for(let t of e.rings)p(t)&&t.push(t[0].slice())}function g(e){if(!(`rings`in e)||e.rings.length===0||f(e.rings[0]))return!1;for(let t of e.rings)t.reverse();return!0}function _(e,t){return e===t?!0:e.type===t.type?e.type===`point`||e.type===`mesh`||e.type===`extent`?!0:e.type===`multipoint`&&t.type===`multipoint`?e.points.length===t.points.length:e.type===`polyline`&&t.type===`polyline`?e.curvePaths?.length!==t.curvePaths?.length||e.paths.length!==t.paths.length?!1:e.curvePaths?.length?v(e.curvePaths,t.curvePaths,!0):v(e.paths,t.paths,!1):e.type!==`polygon`||t.type!==`polygon`||e.curveRings?.length!==t.curveRings?.length||e.rings.length!==t.rings.length?!1:e.curveRings?.length?v(e.curveRings,t.curveRings,!0):v(e.rings,t.rings,!1):!1}function v(e,n,r){if(e===void 0&&n===void 0)return!0;if(e===void 0||n===void 0)return!1;for(let i=0;i<e.length;i++){if(e[i].length!==n[i].length)return!1;if(r){for(let r=0;r<e[i].length;r++)if(!t(e[i][r],n[i][r]))return!1}}return!0}export{h as closeRings,m as closeRingsAndFixWinding,s as distanceFromPointToPolygon,c as distanceToSegmentSquared,n as geometryToCoordinates,r as getLength,l as getMidpoint,u as getPathLength,d as getPointOnPath,_ as hasCompatibleTopology,f as isClockwise,a as projectPointOnLine,o as projectPointOnLineSeg};
2
+ import{equals as e}from"../../core/arrayUtils.js";import{curvesAreSameType as t}from"./curves/curveUtils.js";function n(e){if(!e)return null;if(Array.isArray(e))return e;let t=e.hasZ,n=e.hasM;if(e.type===`point`)return n&&t?[e.x,e.y,e.z,e.m]:t?[e.x,e.y,e.z]:n?[e.x,e.y,e.m]:[e.x,e.y];if(e.type===`polygon`)return e.rings.slice();if(e.type===`polyline`)return e.paths.slice();if(e.type===`multipoint`)return e.points.map(e=>[e]);if(e.type===`extent`){let t=e.clone().normalize();if(!t)return null;let n=!1,r=!1;return t.forEach(e=>{e.hasZ&&(n=!0),e.hasM&&(r=!0)}),t.map(e=>{let t=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];if(n&&e.hasZ){let n=(e.zmax-e.zmin)*.5;for(let e=0;e<t.length;e++)t[e].push(n)}if(r&&e.hasM){let n=(e.mmax-e.mmin)*.5;for(let e=0;e<t.length;e++)t[e].push(n)}return t})}return null}function r(e,t){let n=t[0]-e[0],r=t[1]-e[1];if(e.length>2&&t.length>2){let i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}return Math.sqrt(n*n+r*r)}function i(e,t,n){let r=e[0]+n*(t[0]-e[0]),i=e[1]+n*(t[1]-e[1]);return e.length>2&&t.length>2?[r,i,e[2]+n*(t[2]-e[2])]:[r,i]}function a(e,t,n,r){return o(e,t,n[r],n[r+1])}function o(e,t,n,r){let[i,a]=t,[o,s]=n,[c,l]=r,u=c-o,d=l-s,f=i-o,p=a-s,m=u*u+d*d,h=f*u+p*d,g=Math.min(1,Math.max(0,h/m));return e[0]=o+u*g,e[1]=s+d*g,e}function s(e,t,n){let r=!1,i=1/0,a,o,s,l;for(n.reset();n.nextPath();)if(n.nextPoint())for(a=n.x,o=n.y;n.nextPoint();)s=n.x,l=n.y,o>t!=l>t&&e<(s-a)*(t-o)/(l-o)+a&&(r=!r),i=Math.min(i,c(e,t,a,o,s,l)),a=s,o=l;return i===0?0:(r?1:-1)*Math.sqrt(i)}function c(e,t,n,r,i,a){let o=n,s=r,c=i-o,l=a-s;if(c!==0||l!==0){let n=((e-o)*c+(t-s)*l)/(c*c+l*l);n>1?(o=i,s=a):n>0&&(o+=c*n,s+=l*n)}return c=e-o,l=t-s,c*c+l*l}function l(e,t){return i(e,t,.5)}function u(e){let t=e.length,n=0;for(let i=0;i<t-1;++i)n+=r(e[i],e[i+1]);return n}function d(e,t){if(t<=0)return e[0];let n=e.length,a=0;for(let o=0;o<n-1;++o){let n=r(e[o],e[o+1]);if(t-a<n){let r=(t-a)/n;return i(e[o],e[o+1],r)}a+=n}return e[n-1]}function f(e,t=0,n=1){let r=0,i=e.length,a=e[0];for(let o=1;o<i;o++){let i=e[o];r+=(i[t]-a[t])*(i[n]+a[n]),a=i}if(p(e)){let i=e[0];r+=(i[t]-a[t])*(i[n]+a[n])}return r>=0}function p(t){let n=t.length;return n>0&&!e(t[0],t[n-1])}function m(e){`rings`in e&&(h(e),g(e))}function h(e){if(`rings`in e)for(let t of e.rings)p(t)&&t.push(t[0].slice())}function g(e){if(!(`rings`in e)||e.rings.length===0||f(e.rings[0]))return!1;for(let t of e.rings)t.reverse();return!0}function _(e,t){return e===t?!0:e.type===t.type?e.type===`point`||e.type===`mesh`||e.type===`extent`?!0:e.type===`multipoint`&&t.type===`multipoint`?e.points.length===t.points.length:e.type===`polyline`&&t.type===`polyline`?e.curvePaths?.length!==t.curvePaths?.length||e.paths.length!==t.paths.length?!1:e.curvePaths?.length?v(e.curvePaths,t.curvePaths,!0):v(e.paths,t.paths,!1):e.type!==`polygon`||t.type!==`polygon`||e.curveRings?.length!==t.curveRings?.length||e.rings.length!==t.rings.length?!1:e.curveRings?.length?v(e.curveRings,t.curveRings,!0):v(e.rings,t.rings,!1):!1}function v(e,n,r){if(e===void 0&&n===void 0)return!0;if(e===void 0||n===void 0)return!1;for(let i=0;i<e.length;i++){if(e[i].length!==n[i].length)return!1;if(r){for(let r=0;r<e[i].length;r++)if(!t(e[i][r],n[i][r]))return!1}}return!0}export{h as closeRings,m as closeRingsAndFixWinding,s as distanceFromPointToPolygon,c as distanceToSegmentSquared,n as geometryToCoordinates,r as getLength,l as getMidpoint,u as getPathLength,d as getPointOnPath,_ as hasCompatibleTopology,f as isClockwise,a as projectPointOnLine,o as projectPointOnLineSeg,p as ringNeedsClosure};
@@ -10,14 +10,13 @@
10
10
  * - The glTF file must contain a single scene.
11
11
  * - The scene can contain an arbitrary number of nodes, meshes and primitives of type `TRIANGLE`, `TRIANGLE_STRIP` or
12
12
  * `TRIANGLE_FAN`. `POINTS` and `LINES` are not supported.
13
- * - Only materials of [type Metallic-Roughness](https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#metallic-roughness-material) are supported.
14
13
  * - Animations, skinning and camera definitions are not supported.
15
14
  * - The following glTF extensions are supported:
16
- * - [KHR_texture_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) for texture space transformation of uv coordinates.
17
- * - [KHR_texture_basisu](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_basisu) to support textures with KTX V2 images and Basis Universal compression.
18
- * - [KHR_draco_mesh_compression](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_draco_mesh_compression) for loading Draco-compressed mesh geometry.
19
- * - [KHR_materials_emissive_strength](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_emissive_strength) to define emissive strength values over 1.
20
- * - [KHR_materials_unlit](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_unlit) to define unlit materials.
15
+ * - [KHR_texture_transform](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform) for texture space transformation of uv coordinates.
16
+ * - [KHR_texture_basisu](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_basisu) to support textures with KTX V2 images and Basis Universal compression.
17
+ * - [KHR_draco_mesh_compression](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_draco_mesh_compression) for loading Draco-compressed mesh geometry.
18
+ * - [KHR_materials_emissive_strength](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_emissive_strength) to define emissive strength values over 1.
19
+ * - [KHR_materials_unlit](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_unlit) to define unlit materials.
21
20
  *
22
21
  * @since 4.7
23
22
  */
package/interfaces.d.ts CHANGED
@@ -13111,6 +13111,15 @@ declare namespace __esri {
13111
13111
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
13112
13112
  export type EditorProperties = import("./widgets/Editor.js").EditorProperties;
13113
13113
 
13114
+ /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
13115
+ export type EditorStartCreateFeaturesWorkflowAtFeatureEditParams = import("./widgets/Editor.js").EditorStartCreateFeaturesWorkflowAtFeatureEditParameters;
13116
+
13117
+ /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
13118
+ export type EditorStartMergeFeaturesWorkflowOptions = import("./widgets/Editor.js").EditorStartMergeFeaturesWorkflowOptions;
13119
+
13120
+ /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
13121
+ export type EditorStartSplitFeatureWorkflowOptions = import("./widgets/Editor.js").EditorStartSplitFeatureWorkflowOptions;
13122
+
13114
13123
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
13115
13124
  export type Editor = import("./widgets/Editor.js").default;
13116
13125
  export const Editor: typeof import("./widgets/Editor.js").default;
@@ -14256,6 +14265,15 @@ declare namespace __esri {
14256
14265
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14257
14266
  export type EditorViewModelSketchUpdateEventHandler = (event: EditorViewModelSketchUpdateEvent) => void;
14258
14267
 
14268
+ /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14269
+ export type EditorViewModelStartCreateFeaturesWorkflowAtFeatureEditParams = import("./widgets/Editor/EditorViewModel.js").EditorViewModelStartCreateFeaturesWorkflowAtFeatureEditParameters;
14270
+
14271
+ /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14272
+ export type EditorViewModelStartMergeFeaturesWorkflowOptions = import("./widgets/Editor/EditorViewModel.js").EditorViewModelStartMergeFeaturesWorkflowOptions;
14273
+
14274
+ /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14275
+ export type EditorViewModelStartSplitFeatureWorkflowOptions = import("./widgets/Editor/EditorViewModel.js").EditorViewModelStartSplitFeatureWorkflowOptions;
14276
+
14259
14277
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14260
14278
  export type EditsProperties = import("./widgets/Editor/Edits.js").EditsProperties;
14261
14279
 
@@ -14333,15 +14351,6 @@ declare namespace __esri {
14333
14351
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14334
14352
  export type CreationInfo = import("./widgets/Editor/types.js").CreationInfo;
14335
14353
 
14336
- /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14337
- export type EditorStartCreateFeaturesWorkflowAtFeatureEditParams = import("./widgets/Editor/types.js").EditorStartCreateFeaturesWorkflowAtFeatureEditParameters;
14338
-
14339
- /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14340
- export type EditorStartMergeFeaturesWorkflowOptions = import("./widgets/Editor/types.js").EditorStartMergeFeaturesWorkflowOptions;
14341
-
14342
- /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14343
- export type EditorStartSplitFeatureWorkflowOptions = import("./widgets/Editor/types.js").EditorStartSplitFeatureWorkflowOptions;
14344
-
14345
14354
  /** @deprecated since 5.0. Refactor using \@arcgis/codemod */
14346
14355
  export type SupportingWidgetDefaultsAttachments = import("./widgets/Editor/types.js").AttachmentsProperties;
14347
14356
 
package/kernel.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"./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.14`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
2
+ import"./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.15`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
@@ -1,3 +1,4 @@
1
+ import type Extent from "../geometry/Extent.js";
1
2
  import type SpatialReference from "../geometry/SpatialReference.js";
2
3
  import type Layer from "./Layer.js";
3
4
  import type TileInfo from "./support/TileInfo.js";
@@ -7,21 +8,170 @@ import type { ScaleRangeLayer, ScaleRangeLayerProperties } from "./mixins/ScaleR
7
8
  import type { GeospatialPDFDataUnion } from "./support/types.js";
8
9
  import type { LayerProperties } from "./Layer.js";
9
10
 
11
+ /**
12
+ * Properties used to construct a [GeospatialPDFLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/).
13
+ *
14
+ * @since 5.2
15
+ */
10
16
  export interface GeospatialPDFLayerProperties extends LayerProperties, ScaleRangeLayerProperties, BlendLayerProperties, Partial<Pick<GeospatialPDFLayer, "clippedToNeatline" | "data">> {}
11
17
 
18
+ /**
19
+ * Displays a geospatial PDF document as georeferenced raster imagery.
20
+ * A geospatial PDF contains information that relates locations on a PDF page to real-world coordinates.
21
+ * This allows a map distributed as a PDF, such as a topographic map, to be displayed alongside other geographic data
22
+ * without manually specifying its location.
23
+ *
24
+ * To create a GeospatialPDFLayer, set the [data](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/#data) property to a PDF URL, a browser [File](https://developer.mozilla.org/en-US/docs/Web/API/File), or a [PortalItemData](https://developers.arcgis.com/javascript/latest/references/core/layers/support/PortalItemData/).
25
+ * Remote PDF URLs must be accessible to the application and comply with the browser's [cross-origin request restrictions](https://developers.arcgis.com/javascript/latest/cors/).
26
+ * The document is downloaded and rendered on the client; publishing an image service is not required.
27
+ * The first page of the PDF is used for georeferencing and rendering.
28
+ * The entire document is downloaded before rendering; large or complex PDFs can increase load time and memory usage.
29
+ * The layer derives its [spatial reference](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/#spatialReference) and
30
+ * [extent](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/#fullExtent) from the embedded georeferencing information.
31
+ * The rendered imagery can be reprojected to the spatial reference of the view. In an scene, it is draped on the ground.
32
+ *
33
+ * Additionally the PDF defines the boundary of the georeferenced map within the page, called a *neatline*.
34
+ * Set [clippedToNeatline](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/#clippedToNeatline) to `true` to hide content outside this boundary, such as page margins, legends, and titles.
35
+ *
36
+ * The [arcgis-print](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-print/) component can generate geospatial PDFs.
37
+ * When creating PDFs in ArcGIS Pro, enable "Export georeference information".
38
+ * Merely exporting a map to PDF does not guarantee that the resulting document contains georeferencing.
39
+ * See [Export to PDF](https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/pdf-export.htm) for export settings.
40
+ *
41
+ * > [!WARNING]
42
+ * >
43
+ * > **Known Limitations**
44
+ * >
45
+ * > - Documents that require a password to open are not supported.
46
+ * > - Tile reprojection is limited: grid-based transformations are not supported. As a result, the layer may still display but appear shifted. See the [project operator's known limitations](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/projectOperator/).
47
+ * > - To decode certain image types from PDF files, GeospatialPDFLayer is using WebAssembly features not available yet in Safari. As a result it uses a slower JavaScript fallback which impact the initial load of the layer.
48
+ * > - Not supported by the [Legend](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-legend/).
49
+ *
50
+ * @beta
51
+ * @since 5.2
52
+ * @see [PortalItemData](https://developers.arcgis.com/javascript/latest/references/core/layers/support/PortalItemData/)
53
+ * @see [GeospatialPDFDataUnion](https://developers.arcgis.com/javascript/latest/references/core/layers/support/types/#GeospatialPDFDataUnion)
54
+ * @see [GeospatialPDFLayer with a local file](https://developers.arcgis.com/javascript/latest/sample-code/layers-geospatialpdf/) sample
55
+ * @example
56
+ * ```ts
57
+ * import GeospatialPDFLayer from "@arcgis/core/layers/GeospatialPDFLayer.js";
58
+ *
59
+ * // Replace this URL with a georeferenced PDF.
60
+ * const layer = new GeospatialPDFLayer({
61
+ * data: "https://jsapi.maps.arcgis.com/sharing/rest/content/items/0d8613492b1e4598a5edb111f05be7fd/data",
62
+ * clippedToNeatline: true
63
+ * });
64
+ * // viewElement is an existing arcgis-map or arcgis-scene component.
65
+ * await viewElement.viewOnReady();
66
+ * viewElement.map.add(layer);
67
+ * ```
68
+ * @example
69
+ * ```ts
70
+ * import GeospatialPDFLayer from "@arcgis/core/layers/GeospatialPDFLayer.js";
71
+ * import PortalItemData from "@arcgis/core/layers/support/PortalItemData.js";
72
+ *
73
+ * const layer = new GeospatialPDFLayer({
74
+ * data: new PortalItemData({
75
+ * portalItem: {
76
+ * id: "0d8613492b1e4598a5edb111f05be7fd"
77
+ * }
78
+ * })
79
+ * });
80
+ * // viewElement is an existing arcgis-map or arcgis-scene component.
81
+ * await viewElement.viewOnReady();
82
+ * viewElement.map.add(layer);
83
+ * ```
84
+ */
12
85
  export default class GeospatialPDFLayer extends GeospatialPDFLayerSuperclass {
13
86
  constructor(properties?: GeospatialPDFLayerProperties);
14
87
  /**
15
- * TODO doc
88
+ * Indicates whether to hide PDF content outside the georeferenced map's neatline.
89
+ * A neatline is the boundary of the map within the PDF page. When `true`, content outside that boundary
90
+ * is masked out. When `false`, the entire page is displayed, including margins and other layout elements.
16
91
  *
17
92
  * @default false
93
+ * @example
94
+ * ```ts
95
+ * layer.clippedToNeatline = true;
96
+ * ```
18
97
  */
19
98
  accessor clippedToNeatline: boolean;
20
- /** The geospatial PDF data source. */
99
+ /**
100
+ * The data source of the `GeospatialPDFLayer`.
101
+ *
102
+ * Specify one of the following before loading the layer:
103
+ * - A string containing the URL of a geospatial PDF.
104
+ * - A browser [File](https://developer.mozilla.org/en-US/docs/Web/API/File), for example from a file input.
105
+ * - A [PortalItemData](https://developers.arcgis.com/javascript/latest/references/core/layers/support/PortalItemData/) instance referencing a portal item whose
106
+ * [url](https://developers.arcgis.com/javascript/latest/references/core/portal/PortalItem/#url) resolves to a geospatial PDF.
107
+ *
108
+ * @see [GeospatialPDFDataUnion](https://developers.arcgis.com/javascript/latest/references/core/layers/support/types/#GeospatialPDFDataUnion)
109
+ * @example
110
+ * ```ts
111
+ * import GeospatialPDFLayer from "@arcgis/core/layers/GeospatialPDFLayer.js";
112
+ *
113
+ * // Replace this URL with an accessible georeferenced PDF.
114
+ * const layer = new GeospatialPDFLayer({
115
+ * data: "https://jsapi.maps.arcgis.com/sharing/rest/content/items/0d8613492b1e4598a5edb111f05be7fd/data",
116
+ * clippedToNeatline: true
117
+ * });
118
+ * // viewElement is an existing arcgis-map or arcgis-scene component.
119
+ * await viewElement.viewOnReady();
120
+ * viewElement.map.add(layer);
121
+ * ```
122
+ * @example
123
+ * ```ts
124
+ * import GeospatialPDFLayer from "@arcgis/core/layers/GeospatialPDFLayer.js";
125
+ * import PortalItemData from "@arcgis/core/layers/support/PortalItemData.js";
126
+ *
127
+ * const layer = new GeospatialPDFLayer({
128
+ * data: new PortalItemData({
129
+ * portalItem: {
130
+ * id: "0d8613492b1e4598a5edb111f05be7fd"
131
+ * }
132
+ * }),
133
+ * clippedToNeatline: true
134
+ * });
135
+ * // viewElement is an existing arcgis-map or arcgis-scene component.
136
+ * await viewElement.viewOnReady();
137
+ * viewElement.map.add(layer);
138
+ * ```
139
+ * @example
140
+ * ```ts
141
+ * import GeospatialPDFLayer from "@arcgis/core/layers/GeospatialPDFLayer.js";
142
+ *
143
+ * // file is a File obtained from a file input or drag-and-drop.
144
+ * const layer = new GeospatialPDFLayer({
145
+ * data: file,
146
+ * clippedToNeatline: true
147
+ * });
148
+ * // viewElement is an existing arcgis-map or arcgis-scene component.
149
+ * await viewElement.viewOnReady();
150
+ * viewElement.map.add(layer);
151
+ * ```
152
+ */
21
153
  accessor data: GeospatialPDFDataUnion | null | undefined;
22
- /** The spatial reference of the layer. */
154
+ /**
155
+ * The full extent of the layer.
156
+ *
157
+ * @example
158
+ * ```ts
159
+ * await viewElement.viewOnReady();
160
+ * await layer.load();
161
+ * if (layer.fullExtent) {
162
+ * await viewElement.goTo(layer.fullExtent);
163
+ * }
164
+ * ```
165
+ * @example
166
+ * // Once the layer loads, set the view's extent to the layer's full extent
167
+ * layer.when(function(){
168
+ * view.extent = layer.fullExtent;
169
+ * });
170
+ */
171
+ get fullExtent(): Extent | null | undefined;
172
+ /** The spatial reference of the layer derived from the georeferencing information found in the PDF. */
23
173
  get spatialReference(): SpatialReference;
24
- /** The tiling scheme information for the layer. */
174
+ /** Contains information about the tiling scheme for the layer used to render the PDF as raster tiles. */
25
175
  get tileInfo(): TileInfo | null | undefined;
26
176
  /** The layer type provides a convenient way to check the type of the layer without the need to import specific layer modules. */
27
177
  get type(): "geospatial-pdf";
package/layers/Layer.d.ts CHANGED
@@ -142,6 +142,7 @@ export interface FromArcGISServerUrlParameters {
142
142
  * [WMTSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WMTSLayer/) | WMTS tile services, ArcGIS portal item | Image tiles | OGC specification | N/A
143
143
  * [WebTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WebTileLayer/) | non-ArcGIS, non-OGC, and non-OSM tile services | Image tiles | N/A | No editing, client-side rendering, or popup templates.
144
144
  * [BingMapsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/BingMapsLayer/) | Bing Spatial Data Service data | Image tiles | Displays Microsoft's Bing tiled content | Bing Maps key is required; three map styles are supported: `road`, `aerial`, and `hybrid`
145
+ * [GeospatialPDFLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/) | PDF File, ArcGIS portal item | PDF documents | Displays a geospatial PDF document as georeferenced raster imagery | Documents that require a password to open are not supported
145
146
  * [MediaLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MediaLayer/) | HTMLVideoElement, HTMLImageElement, or HTMLCanvasElement | Image/video element | Displays image and video elements in the map at specified geographic locations | GIF/APNG not currently
146
147
  * [VideoLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VideoLayer/) | ArcGIS VideoServer, ArcGIS portal item | Video | Displays a georeferenced video in the map | No 3D support
147
148
  *
@@ -263,6 +264,7 @@ export default abstract class Layer extends LayerSuperclass {
263
264
  * > **Known Limitations**
264
265
  * >
265
266
  * > - This method does not currently work with [OGCFeatureServer portal items](https://developers.arcgis.com/rest/users-groups-and-items/items-and-item-types/#layers).
267
+ * > - This method does not currently work with [GeospatialPDFLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeospatialPDFLayer/)
266
268
  *
267
269
  * @param params - The parameters for loading the portal item.
268
270
  * @returns Returns a promise which resolves to the new layer instance.