@arcgis/core 4.33.0-next.20250511 → 4.33.0-next.20250513
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/0766ecb677d667e5fb83.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/0f57b6a3a85a47ebd9d0.js +346 -0
- package/assets/esri/core/workers/chunks/218a66d53f7cf4f285aa.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{a5e746e10239a3bfe237.js → 30f3014c0ac6e2bc14bf.js} +1 -1
- package/assets/esri/core/workers/chunks/3596540ef49e5330ceb2.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/8a87c181b85d0b86b9bb.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/90ae15ce22a49bd84876.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{fbcd94f60f92257a7303.js → aa82925ffb00babb0543.js} +2 -2
- package/assets/esri/core/workers/chunks/{fbcd94f60f92257a7303.js.LICENSE.txt → aa82925ffb00babb0543.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/b4f38fe9cc948a39ad87.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{0aca29f7156b2b412f2e.js → d1f7bfb8daf11ecada9f.js} +1 -1
- package/assets/esri/core/workers/chunks/e0dc8794343c2a949ffb.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/e9b1349a2b3a3f300808.js +1 -0
- package/assets/esri/core/workers/chunks/{a8b42d8c0b76c234c09f.js → fef1a5f8a6fd3502b33b.js} +56 -57
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +4 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/ShadowCastAccumulate.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +5 -5
- package/chunks/Theme.js +1 -1
- package/chunks/Tick.js +1 -1
- package/interfaces.d.ts +114 -11
- package/layers/VideoLayer.js +1 -1
- package/layers/knowledgeGraph/supportUtils.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/package.json +3 -4
- package/support/revision.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/SliceAnalysisView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
- package/views/3d/layers/graphics/pipeline/FeatureProcessingContext.js +1 -1
- package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
- package/views/3d/layers/graphics/pipeline/TileLocks.js +5 -0
- package/views/3d/layers/graphics/pipeline/featureData/FeatureData.js +1 -1
- package/views/3d/layers/graphics/pipeline/featureData/FeatureDataSubset.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +2 -27
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ShadowmapFiltering.glsl.js +29 -0
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.js +1 -1
- package/views/analysis/analysisViewUtils.js +1 -1
- package/views/support/LayerViewManager.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Slice.js +1 -1
- package/widgets/support/iconUtils.js +1 -1
- package/assets/esri/core/workers/chunks/83d6a1b3db7d364d156b.js +0 -1
- package/assets/esri/core/workers/chunks/92cbe9af8a6c061bfb57.js +0 -346
- package/views/3d/layers/graphics/pipeline/TileActionSynchronizer.js +0 -5
package/chunks/Tick.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{d as e}from"./tslib.es6.js";import{F as t,S as s,g as i,i as a,H as l,k as r,a as n,I as o,C as h,P as u,J as d,L as c,K as m,e as p,N as f}from"./Theme.js";class b extends t{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(e){this.processor&&this.processor.processRow(e),super._onPush(e)}_onInsertIndex(e,t){this.processor&&this.processor.processRow(t),super._onInsertIndex(e,t)}_onSetIndex(e,t,s){this.processor&&this.processor.processRow(s),super._onSetIndex(e,t,s)}}class _ extends s{constructor(e,t,s){super(s),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=t,this.component=e,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}hide(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}isHidden(){return!this.get("visible")}}class g extends i{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new b}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(e){e.incrementRef(),this._data.decrementRef(),this._data=e}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((e=>{const t=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===e.type)a(t,(e=>{e.dispose()})),t.length=0,this._onDataClear();else if("push"===e.type){const s=new _(this,e.newValue,this._makeDataItem(e.newValue));t.push(s),this.processDataItem(s)}else if("setIndex"===e.type){const s=t[e.index],i=this._makeDataItem(e.newValue);s.bullets&&0==s.bullets.length&&(s.bullets=void 0),l(i).forEach((e=>{s.animate({key:e,to:i[e],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),s.dataContext=e.newValue}else if("insertIndex"===e.type){const s=new _(this,e.newValue,this._makeDataItem(e.newValue));t.splice(e.index,0,s),this.processDataItem(s)}else if("removeIndex"===e.type){t[e.index].dispose(),t.splice(e.index,1)}else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");{const s=t[e.oldIndex];t.splice(e.oldIndex,1),t.splice(e.newIndex,0,s)}}this._afterDataChange()})))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a(this.valueFields,(e=>{this.get(e+"Field")&&(this._valueFields.push(e),this._valueFieldsF[e]={fieldKey:e+"Field",workingKey:e+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a(this.fields,(e=>{this.get(e+"Field")&&(this._fields.push(e),this._fieldsF[e]=e+"Field")})))}get dataItems(){return this._dataItems}processDataItem(e){}_makeDataItem(e){const t={};return this._valueFields&&a(this._valueFields,(s=>{const i=this.get(this._valueFieldsF[s].fieldKey);t[s]=e[i],t[this._valueFieldsF[s].workingKey]=t[s]})),this._fields&&a(this._fields,(s=>{const i=this.get(this._fieldsF[s]);t[s]=e[i]})),t}makeDataItem(e,t){let s=new _(this,t,e);return this.processDataItem(s),s}pushDataItem(e,t){const s=this.makeDataItem(e,t);return this._mainDataItems.push(s),s}disposeDataItem(e){}showDataItem(t,s){return e(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,s){return e(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const e="datavalidated";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this._dataChanged=!1}this.inited=!0}markDirtyValues(e){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}}function v(e){return new Promise(((t,s)=>{setTimeout(t,e)}))}function y(e,t,s,i,a,l,n){if(!n||a){let l=0;switch(a||"millisecond"==t||(l=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-l)),t){case"day":let t=e.getUTCDate();s>1||e.setUTCDate(t),e.setUTCHours(0,0,0,0);break;case"second":let a=e.getUTCSeconds();s>1&&(a=Math.floor(a/s)*s),e.setUTCSeconds(a,0);break;case"millisecond":if(1==s)return e;let l=e.getUTCMilliseconds();l=Math.floor(l/s)*s,e.setUTCMilliseconds(l);break;case"hour":let n=e.getUTCHours();s>1&&(n=Math.floor(n/s)*s),e.setUTCHours(n,0,0,0);break;case"minute":let o=e.getUTCMinutes();s>1&&(o=Math.floor(o/s)*s),e.setUTCMinutes(o,0,0);break;case"month":let h=e.getUTCMonth();s>1&&(h=Math.floor(h/s)*s),e.setUTCMonth(h,1),e.setUTCHours(0,0,0,0);break;case"year":let u=e.getUTCFullYear();s>1&&(u=Math.floor(u/s)*s),e.setUTCFullYear(u,0,1),e.setUTCHours(0,0,0,0);break;case"week":let d=e.getUTCDate(),c=e.getUTCDay();r(i)||(i=1),d=c>=i?d-c+i:d-(7+c)+i,e.setUTCDate(d),e.setUTCHours(0,0,0,0)}if(!a&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+l),"day"==t||"week"==t||"month"==t||"year"==t)){let t=e.getTimezoneOffset();if(t!=l){let s=t-l;e.setUTCMinutes(e.getUTCMinutes()+s)}}return e}{if(isNaN(e.getTime()))return e;let a=e.getTime(),l=n.offsetUTC(e),o=e.getTimezoneOffset(),h=n.parseDate(e),u=h.year,d=h.month,c=h.day,m=h.hour,p=h.minute,f=h.second,b=h.millisecond,_=h.weekday,g=l-o;switch(t){case"day":m=0,p=g,f=0,b=0;break;case"second":p+=g,s>1&&(f=Math.floor(f/s)*s),b=0;break;case"millisecond":p+=g,s>1&&(b=Math.floor(b/s)*s);break;case"hour":s>1&&(m=Math.floor(m/s)*s),p=g,f=0,b=0;break;case"minute":s>1&&(p=Math.floor(p/s)*s),p+=g,f=0,b=0;break;case"month":s>1&&(d=Math.floor(d/s)*s),c=1,m=0,p=g,f=0,b=0;break;case"year":s>1&&(u=Math.floor(u/s)*s),d=0,c=1,m=0,p=g,f=0,b=0;break;case"week":r(i)||(i=1),c=_>=i?c-_+i:c-(7+_)+i,m=0,p=g,f=0,b=0}const v=(e=new Date(u,d,c,m,p,f,b)).getTime();let y=36e5;"hour"==t&&(y=36e5*s),v+y<=a&&("hour"!=t&&"minute"!=t&&"second"!=t&&"millisecond"!=t||(e=new Date(v+y)));let w=e.getTimezoneOffset(),I=n.offsetUTC(e)-w;return I!=g&&e.setTime(e.getTime()+6e4*(I-g)),e}}Object.defineProperty(g,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"}),Object.defineProperty(g,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:i.classNames.concat([g.className])});class w extends g{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new t}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:i.new(this._root,{width:n,height:n,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((e=>{if("clear"===e.type)this._handleBullets(this.dataItems);else if("push"===e.type)this._handleBullets(this.dataItems);else if("setIndex"===e.type)this._handleBullets(this.dataItems);else if("insertIndex"===e.type)this._handleBullets(this.dataItems);else if("removeIndex"===e.type)this._handleBullets(this.dataItems);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._handleBullets(this.dataItems)}})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),e)}endIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("endIndex",e),e)}_handleBullets(e){a(e,(e=>{const t=e.bullets;t&&(a(t,(e=>{e.dispose()})),e.bullets=void 0)})),this.markDirtyValues()}getDataItemById(e){return o(this.dataItems,(t=>t.get("id")==e))}_makeBullets(e){this._shouldMakeBullet(e)&&(e.bullets=[],this.bullets.each((t=>{this._makeBullet(e,t)})))}_shouldMakeBullet(e){return!0}_makeBullet(e,t,s){const i=t(this._root,this,e);return i&&(i._index=s,this._makeBulletReal(e,i)),i}_makeBulletReal(e,t){let s=t.get("sprite");s&&(s._setDataItem(e),s.setRaw("position","absolute"),this.bulletsContainer.children.push(s)),t.series=this,e.bullets.push(t)}addBullet(e,t){e.bullets||(e.bullets=[]),t&&this._makeBulletReal(e,t)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let e=this.startIndex(),t=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const e=this.getPrivate("baseValueSeries");e&&this._disposers.push(e.onPrivate("startIndex",(()=>{this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0,0!=e&&(this._psi=void 0))),this._psi==e&&this._pei==t&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===e&&t===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(e,t),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let e=this.get("tooltip");e&&(e.hide(0),e.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let e;const t=this.get("legendDataItem");if(t&&(e=t.get("markerRectangle"),e&&this.isVisible())){if(this.isDirty("stroke")){let t=this.get("stroke");e.set("stroke",t)}if(this.isDirty("fill")){let t=this.get("fill");e.set("fill",t)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let e=this.startIndex(),t=this.endIndex();t<this.dataItems.length&&t++;for(let s=e;s<t;s++){let e=this.dataItems[s];e.bullets||this._makeBullets(e)}}}_handleRemoved(){}_adjustStartIndex(e){return e}_calculateAggregates(e,t){let s=this._valueFields;if(!s)throw new Error("No value fields are set for the series.");const i={},l={},r={},n={},o={},h={},u={},d={},c={};a(s,(e=>{i[e]=0,l[e]=0,r[e]=0})),a(s,(s=>{let a=s+"Change",m=s+"ChangePercent",p=s+"ChangePrevious",f=s+"ChangePreviousPercent",b=s+"ChangeSelection",_=s+"ChangeSelectionPercent",g="valueY";"valueX"!=s&&"openValueX"!=s&&"lowValueX"!=s&&"highValueX"!=s||(g="valueX");const v=this.getPrivate("baseValueSeries"),y=this.getPrivate("adjustedStartIndex",e);for(let w=y;w<t;w++){const t=this.dataItems[w];if(t){let y=t.get(s);null!=y&&(r[s]++,i[s]+=y,l[s]+=Math.abs(y),d[s]=i[s]/r[s],(n[s]>y||null==n[s])&&(n[s]=y),(o[s]<y||null==o[s])&&(o[s]=y),u[s]=y,null==h[s]&&(h[s]=y,c[s]=y,v&&(h[g]=v._getBase(g))),0===e&&(t.setRaw(a,y-h[g]),t.setRaw(m,(y-h[g])/h[g]*100)),t.setRaw(p,y-c[g]),t.setRaw(f,(y-c[g])/c[g]*100),t.setRaw(b,y-h[g]),t.setRaw(_,(y-h[g])/h[g]*100),c[s]=y)}}if(t<this.dataItems.length-1){const e=this.dataItems[t];if(e){let t=e.get(s);e.setRaw(p,t-c[g]),e.setRaw(f,(t-c[g])/c[g]*100),e.setRaw(b,t-h[g]),e.setRaw(_,(t-h[g])/h[g]*100)}}e>0&&e--,delete c[s];for(let t=e;t<y;t++){const e=this.dataItems[t];if(e){let t=e.get(s);null==c[s]&&(c[s]=t),null!=t&&(e.setRaw(p,t-c[g]),e.setRaw(f,(t-c[g])/c[g]*100),e.setRaw(b,t-h[g]),e.setRaw(_,(t-h[g])/h[g]*100),c[s]=t)}}})),a(s,(e=>{this.setPrivate(e+"AverageSelection",d[e]),this.setPrivate(e+"CountSelection",r[e]),this.setPrivate(e+"SumSelection",i[e]),this.setPrivate(e+"AbsoluteSumSelection",l[e]),this.setPrivate(e+"LowSelection",n[e]),this.setPrivate(e+"HighSelection",o[e]),this.setPrivate(e+"OpenSelection",h[e]),this.setPrivate(e+"CloseSelection",u[e])})),0===e&&t===this.dataItems.length&&a(s,(e=>{this.setPrivate(e+"Average",d[e]),this.setPrivate(e+"Count",r[e]),this.setPrivate(e+"Sum",i[e]),this.setPrivate(e+"AbsoluteSum",l[e]),this.setPrivate(e+"Low",n[e]),this.setPrivate(e+"High",o[e]),this.setPrivate(e+"Open",h[e]),this.setPrivate(e+"Close",u[e])}))}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));const e=this.get("heatRules");if(this._valuesDirty&&e&&e.length>0&&a(e,(e=>{const t=e.minValue||this.getPrivate(e.dataField+"Low")||0,s=e.maxValue||this.getPrivate(e.dataField+"High")||0;a(e.target._entities,(i=>{const a=i.dataItem.get(e.dataField);if(!r(a)){e.neutral&&i.set(e.key,e.neutral);const t=i.states;if(t){const s=t.lookup("default");s&&e.neutral&&s.set(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,i,t,s,a);else{let l,n;l=e.logarithmic?(Math.log(a)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(s)*Math.LOG10E-Math.log(t)*Math.LOG10E):(a-t)/(s-t),!r(a)||r(l)&&Math.abs(l)!=1/0||(l=.5),r(e.min)?n=e.min+(e.max-e.min)*l:e.min instanceof h?n=h.interpolate(l,e.min,e.max):e.min instanceof u&&(n=d(l,e.min,e.max)),i.set(e.key,n);const o=i.states;if(o){const t=o.lookup("default");t&&t.set(e.key,n)}}}))})),this.get("visible")){let e=this.dataItems.length,t=this.startIndex(),s=this.endIndex();s<e&&s++,t>0&&t--;for(let i=0;i<t;i++)this._hideBullets(this.dataItems[i]);for(let i=t;i<s;i++)this._positionBullets(this.dataItems[i]);for(let i=s;i<e;i++)this._hideBullets(this.dataItems[i])}}_positionBullets(e){e.bullets&&a(e.bullets,(e=>{this._positionBullet(e);const t=e.get("sprite");e.get("dynamic")&&(t&&(t._markDirtyKey("fill"),t.markDirtySize()),t instanceof i&&t.walkChildren((e=>{e._markDirtyKey("fill"),e.markDirtySize(),e instanceof c&&e.text.markDirtyText()}))),t instanceof c&&t.get("populateText")&&t.text.markDirtyText()}))}_hideBullets(e){e.bullets&&a(e.bullets,(e=>{let t=e.get("sprite");t&&t.setPrivate("visible",!1)}))}_positionBullet(e){}_placeBulletsContainer(e){e.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const e=this.bulletsContainer;e.parent&&e.parent.children.removeValue(e)}disposeDataItem(e){const t=e.bullets;t&&a(t,(e=>{e.dispose()}))}_getItemReaderLabel(){return""}showDataItem(t,s){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return e(this,void 0,void 0,(function*(){const e=[i.showDataItem.call(this,t,s)],l=t.bullets;l&&a(l,(t=>{const i=t.get("sprite");i&&e.push(i.show(s))})),yield Promise.all(e)}))}hideDataItem(t,s){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return e(this,void 0,void 0,(function*(){const e=[i.hideDataItem.call(this,t,s)],l=t.bullets;l&&a(l,(t=>{const i=t.get("sprite");i&&e.push(i.hide(s))})),yield Promise.all(e)}))}_sequencedShowHide(t,s){return e(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(r(s)||(s=this.get("interpolationDuration",0)),s>0){const i=this.startIndex(),a=this.endIndex();yield Promise.all(m(this.dataItems,((l,r)=>e(this,void 0,void 0,(function*(){let e=s||0;(r<i-10||r>a+10)&&(e=0);let n=this.get("sequencedDelay",0)+e/(a-i);yield v(n*(r-i)),t?yield this.showDataItem(l,e):yield this.hideDataItem(l,e)})))))}else yield Promise.all(m(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(e){if(e){const t=e.get("legendDataItem");if(t){const s=t.get("valueLabel");if(s){const t=s.text;let i="";s._setDataItem(e),i=this.get("legendValueText",t.get("text","")),s.set("text",i),t.markDirtyText()}const i=t.get("label");if(i){const t=i.text;let s="";i._setDataItem(e),s=this.get("legendLabelText",t.get("text","")),i.set("text",s),t.markDirtyText()}}}}updateLegendMarker(e){}_onHide(){super._onHide();const e=this.getTooltip();e&&e.hide()}hoverDataItem(e){}unhoverDataItem(e){}_getBase(e){const t=this.dataItems[this.startIndex()];return t?t.get(e):0}}function I(e,t){for(let s=0,i=t.length;s<i;s++){const i=t[s];if(i.length>0){let t=i[0];if(t.length>0){let s=t[0];e.moveTo(s.x,s.y);for(let t=0,a=i.length;t<a;t++)D(e,i[t])}}}}function D(e,t){for(let s=0,i=t.length;s<i;s++){const i=t[s];e.lineTo(i.x,i.y)}}Object.defineProperty(w,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"}),Object.defineProperty(w,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:g.classNames.concat([w.className])});class x extends p{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("points"),t=this.get("segments");if(e&&e.length>0){let t=e[0];this._display.moveTo(t.x,t.y),I(this._display,[[e]])}else if(t)I(this._display,t);else if(!this.get("draw")){let e=this.width(),t=this.height();this._display.moveTo(0,0),this._display.lineTo(e,t)}}}}function C(e){return function(){return e}}Object.defineProperty(x,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"}),Object.defineProperty(x,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:p.classNames.concat([x.className])});const P=Math.PI,k=2*P,T=1e-6,M=k-T;function O(e){this._+=e[0];for(let t=1,s=e.length;t<s;++t)this._+=arguments[t]+e[t]}function $(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return O;const s=10**t;return function(e){this._+=e[0];for(let t=1,i=e.length;t<i;++t)this._+=Math.round(arguments[t]*s)/s+e[t]}}class j{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?O:$(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,s,i){this._append`Q${+e},${+t},${this._x1=+s},${this._y1=+i}`}bezierCurveTo(e,t,s,i,a,l){this._append`C${+e},${+t},${+s},${+i},${this._x1=+a},${this._y1=+l}`}arcTo(e,t,s,i,a){if(e=+e,t=+t,s=+s,i=+i,(a=+a)<0)throw new Error(`negative radius: ${a}`);let l=this._x1,r=this._y1,n=s-e,o=i-t,h=l-e,u=r-t,d=h*h+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>T)if(Math.abs(u*n-o*h)>T&&a){let c=s-l,m=i-r,p=n*n+o*o,f=c*c+m*m,b=Math.sqrt(p),_=Math.sqrt(d),g=a*Math.tan((P-Math.acos((p+d-f)/(2*b*_)))/2),v=g/_,y=g/b;Math.abs(v-1)>T&&this._append`L${e+v*h},${t+v*u}`,this._append`A${a},${a},0,0,${+(u*c>h*m)},${this._x1=e+y*n},${this._y1=t+y*o}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,s,i,a,l){if(e=+e,t=+t,l=!!l,(s=+s)<0)throw new Error(`negative radius: ${s}`);let r=s*Math.cos(i),n=s*Math.sin(i),o=e+r,h=t+n,u=1^l,d=l?i-a:a-i;null===this._x1?this._append`M${o},${h}`:(Math.abs(this._x1-o)>T||Math.abs(this._y1-h)>T)&&this._append`L${o},${h}`,s&&(d<0&&(d=d%k+k),d>M?this._append`A${s},${s},0,1,${u},${e-r},${t-n}A${s},${s},0,1,${u},${this._x1=o},${this._y1=h}`:d>T&&this._append`A${s},${s},0,${+(d>=P)},${u},${this._x1=e+s*Math.cos(a)},${this._y1=t+s*Math.sin(a)}`)}rect(e,t,s,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${s=+s}v${+i}h${-s}Z`}toString(){return this._}}function S(e){let t=3;return e.digits=function(s){if(!arguments.length)return t;if(null==s)t=null;else{const e=Math.floor(s);if(!(e>=0))throw new RangeError(`invalid digits: ${s}`);t=e}return e},()=>new j(t)}class V extends i{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(i.new(this._root,{width:n,height:n,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:i.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n,height:n})})}}Object.defineProperty(V,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"}),Object.defineProperty(V,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:i.classNames.concat([V.className])});class F extends V{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:i.new(this._root,{width:n,height:n,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new f})}_afterNew(){super._afterNew(),this._disposers.push(this.series);const e=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((t=>{if("clear"===t.type){a(t.oldValues,(e=>{this._removeSeries(e)}));const e=this.get("colors");e&&e.reset();const s=this.get("patterns");s&&s.reset()}else if("push"===t.type)e.moveValue(t.newValue),this._processSeries(t.newValue);else if("setIndex"===t.type)e.setIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("insertIndex"===t.type)e.insertIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("removeIndex"===t.type)this._removeSeries(t.oldValue);else if("moveIndex"===t.type)e.moveValue(t.value,t.newIndex),this._processSeries(t.value);else{if("swap"!==t.type)throw new Error("Unknown IListEvent type");{const s=t.a,i=t.b,a=this.series.indexOf(s),l=this.series.indexOf(i);e.moveValue(s,l),e.moveValue(i,a),this.series.each((e=>{this._processSeries(e),e.markDirtyValues()}))}}})))}_processSeries(e){e.chart=this,e._placeBulletsContainer(this)}_removeSeries(e){e._handleRemoved(),e.isDisposed()||(this.seriesContainer.children.removeValue(e),e._removeBulletsContainer())}}Object.defineProperty(F,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"}),Object.defineProperty(F,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:V.classNames.concat([F.className])});class R extends x{}Object.defineProperty(R,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"}),Object.defineProperty(R,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:x.classNames.concat([R.className])});export{g as C,_ as D,F as S,R as T,w as a,C as c,y as r,S as w};
|
|
5
|
+
import{d as e}from"./tslib.es6.js";import{F as t,S as s,g as i,i as a,H as l,k as r,a as n,I as o,C as h,P as u,J as d,L as c,K as m,e as p,N as f}from"./Theme.js";class b extends t{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(e){this.processor&&this.processor.processRow(e),super._onPush(e)}_onInsertIndex(e,t){this.processor&&this.processor.processRow(t),super._onInsertIndex(e,t)}_onSetIndex(e,t,s){this.processor&&this.processor.processRow(s),super._onSetIndex(e,t,s)}}class _ extends s{constructor(e,t,s){super(s),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=t,this.component=e,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}hide(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}isHidden(){return!this.get("visible")}}class g extends i{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new b}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(e){e.incrementRef(),this._data.decrementRef(),this._data=e}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((e=>{const t=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===e.type)a(t,(e=>{e.dispose()})),t.length=0,this._onDataClear();else if("push"===e.type){const s=new _(this,e.newValue,this._makeDataItem(e.newValue));t.push(s),this.processDataItem(s)}else if("setIndex"===e.type){const s=t[e.index],i=this._makeDataItem(e.newValue);s.bullets&&0==s.bullets.length&&(s.bullets=void 0),l(i).forEach((e=>{s.animate({key:e,to:i[e],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),s.dataContext=e.newValue}else if("insertIndex"===e.type){const s=new _(this,e.newValue,this._makeDataItem(e.newValue));t.splice(e.index,0,s),this.processDataItem(s)}else if("removeIndex"===e.type){t[e.index].dispose(),t.splice(e.index,1)}else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");{const s=t[e.oldIndex];t.splice(e.oldIndex,1),t.splice(e.newIndex,0,s)}}this._afterDataChange()})))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a(this.valueFields,(e=>{this.get(e+"Field")&&(this._valueFields.push(e),this._valueFieldsF[e]={fieldKey:e+"Field",workingKey:e+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a(this.fields,(e=>{this.get(e+"Field")&&(this._fields.push(e),this._fieldsF[e]=e+"Field")})))}get dataItems(){return this._dataItems}processDataItem(e){}_makeDataItem(e){const t={};return this._valueFields&&a(this._valueFields,(s=>{const i=this.get(this._valueFieldsF[s].fieldKey);t[s]=e[i],t[this._valueFieldsF[s].workingKey]=t[s]})),this._fields&&a(this._fields,(s=>{const i=this.get(this._fieldsF[s]);t[s]=e[i]})),t}makeDataItem(e,t){let s=new _(this,t,e);return this.processDataItem(s),s}pushDataItem(e,t){const s=this.makeDataItem(e,t);return this._mainDataItems.push(s),s}disposeDataItem(e){}showDataItem(t,s){return e(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,s){return e(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const e="datavalidated";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this._dataChanged=!1}this.inited=!0}markDirtyValues(e){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}}function v(e){return new Promise(((t,s)=>{setTimeout(t,e)}))}function y(e,t,s,i,a,l,n){if(!n||a){let l=0;switch(a||"millisecond"==t||(l=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-l)),t){case"day":let t=e.getUTCDate();s>1||e.setUTCDate(t),e.setUTCHours(0,0,0,0);break;case"second":let a=e.getUTCSeconds();s>1&&(a=Math.floor(a/s)*s),e.setUTCSeconds(a,0);break;case"millisecond":if(1==s)return e;let l=e.getUTCMilliseconds();l=Math.floor(l/s)*s,e.setUTCMilliseconds(l);break;case"hour":let n=e.getUTCHours();s>1&&(n=Math.floor(n/s)*s),e.setUTCHours(n,0,0,0);break;case"minute":let o=e.getUTCMinutes();s>1&&(o=Math.floor(o/s)*s),e.setUTCMinutes(o,0,0);break;case"month":let h=e.getUTCMonth();s>1&&(h=Math.floor(h/s)*s),e.setUTCMonth(h,1),e.setUTCHours(0,0,0,0);break;case"year":let u=e.getUTCFullYear();s>1&&(u=Math.floor(u/s)*s),e.setUTCFullYear(u,0,1),e.setUTCHours(0,0,0,0);break;case"week":let d=e.getUTCDate(),c=e.getUTCDay();r(i)||(i=1),d=c>=i?d-c+i:d-(7+c)+i,e.setUTCDate(d),e.setUTCHours(0,0,0,0)}if(!a&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+l),"day"==t||"week"==t||"month"==t||"year"==t)){let t=e.getTimezoneOffset();if(t!=l){let s=t-l;e.setUTCMinutes(e.getUTCMinutes()+s)}}return e}{if(isNaN(e.getTime()))return e;let a=e.getTime(),l=n.offsetUTC(e),o=e.getTimezoneOffset(),h=n.parseDate(e),u=h.year,d=h.month,c=h.day,m=h.hour,p=h.minute,f=h.second,b=h.millisecond,_=h.weekday,g=l-o;switch(t){case"day":m=0,p=g,f=0,b=0;break;case"second":p+=g,s>1&&(f=Math.floor(f/s)*s),b=0;break;case"millisecond":p+=g,s>1&&(b=Math.floor(b/s)*s);break;case"hour":s>1&&(m=Math.floor(m/s)*s),p=g,f=0,b=0;break;case"minute":s>1&&(p=Math.floor(p/s)*s),p+=g,f=0,b=0;break;case"month":s>1&&(d=Math.floor(d/s)*s),c=1,m=0,p=g,f=0,b=0;break;case"year":s>1&&(u=Math.floor(u/s)*s),d=0,c=1,m=0,p=g,f=0,b=0;break;case"week":r(i)||(i=1),c=_>=i?c-_+i:c-(7+_)+i,m=0,p=g,f=0,b=0}const v=(e=new Date(u,d,c,m,p,f,b)).getTime();let y=36e5;"hour"==t&&(y=36e5*s),v+y<=a&&("hour"!=t&&"minute"!=t&&"second"!=t&&"millisecond"!=t||(e=new Date(v+y)));let w=e.getTimezoneOffset(),I=n.offsetUTC(e)-w;return I!=g&&e.setTime(e.getTime()+6e4*(I-g)),e}}Object.defineProperty(g,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"}),Object.defineProperty(g,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:i.classNames.concat([g.className])});class w extends g{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new t}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:i.new(this._root,{width:n,height:n,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((e=>{if("clear"===e.type)this._handleBullets(this.dataItems);else if("push"===e.type)this._handleBullets(this.dataItems);else if("setIndex"===e.type)this._handleBullets(this.dataItems);else if("insertIndex"===e.type)this._handleBullets(this.dataItems);else if("removeIndex"===e.type)this._handleBullets(this.dataItems);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._handleBullets(this.dataItems)}})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),e)}endIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("endIndex",e),e)}_handleBullets(e){a(e,(e=>{const t=e.bullets;t&&(a(t,(e=>{e.dispose()})),e.bullets=void 0)})),this.markDirtyValues()}getDataItemById(e){return o(this.dataItems,(t=>t.get("id")==e))}_makeBullets(e){this._shouldMakeBullet(e)&&(e.bullets=[],this.bullets.each((t=>{this._makeBullet(e,t)})))}_shouldMakeBullet(e){return!0}_makeBullet(e,t,s){const i=t(this._root,this,e);return i&&(i._index=s,this._makeBulletReal(e,i)),i}_makeBulletReal(e,t){let s=t.get("sprite");s&&(s._setDataItem(e),s.setRaw("position","absolute"),this.bulletsContainer.children.push(s)),t.series=this,e.bullets.push(t)}addBullet(e,t){e.bullets||(e.bullets=[]),t&&this._makeBulletReal(e,t)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let e=this.startIndex(),t=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const e=this.getPrivate("baseValueSeries");e&&this._disposers.push(e.onPrivate("startIndex",(()=>{this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0,0!=e&&(this._psi=void 0))),this._psi==e&&this._pei==t&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===e&&t===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(e,t),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let e=this.get("tooltip");e&&(e.hide(0),e.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let e;const t=this.get("legendDataItem");if(t&&(e=t.get("markerRectangle"),e&&this.isVisible())){if(this.isDirty("stroke")){let t=this.get("stroke");e.set("stroke",t)}if(this.isDirty("fill")){let t=this.get("fill");e.set("fill",t)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let e=this.startIndex(),t=this.endIndex();t<this.dataItems.length&&t++;for(let s=e;s<t;s++){let e=this.dataItems[s];e.bullets||this._makeBullets(e)}}}_handleRemoved(){}_adjustStartIndex(e){return e}_calculateAggregates(e,t){let s=this._valueFields;if(!s)throw new Error("No value fields are set for the series.");const i={},l={},r={},n={},o={},h={},u={},d={},c={};a(s,(e=>{i[e]=0,l[e]=0,r[e]=0})),a(s,(s=>{let a=s+"Change",m=s+"ChangePercent",p=s+"ChangePrevious",f=s+"ChangePreviousPercent",b=s+"ChangeSelection",_=s+"ChangeSelectionPercent",g="valueY";"valueX"!=s&&"openValueX"!=s&&"lowValueX"!=s&&"highValueX"!=s||(g="valueX");const v=this.getPrivate("baseValueSeries"),y=this.getPrivate("adjustedStartIndex",e);for(let w=y;w<t;w++){const t=this.dataItems[w];if(t){let y=t.get(s);null!=y&&(r[s]++,i[s]+=y,l[s]+=Math.abs(y),d[s]=i[s]/r[s],(n[s]>y||null==n[s])&&(n[s]=y),(o[s]<y||null==o[s])&&(o[s]=y),u[s]=y,null==h[s]&&(h[s]=y,c[s]=y,v&&(h[g]=v._getBase(g))),0===e&&(t.setRaw(a,y-h[g]),t.setRaw(m,(y-h[g])/h[g]*100)),t.setRaw(p,y-c[g]),t.setRaw(f,(y-c[g])/c[g]*100),t.setRaw(b,y-h[g]),t.setRaw(_,(y-h[g])/h[g]*100),c[s]=y)}}if(t<this.dataItems.length-1){const e=this.dataItems[t];if(e){let t=e.get(s);e.setRaw(p,t-c[g]),e.setRaw(f,(t-c[g])/c[g]*100),e.setRaw(b,t-h[g]),e.setRaw(_,(t-h[g])/h[g]*100)}}e>0&&e--,delete c[s];for(let t=e;t<y;t++){const e=this.dataItems[t];if(e){let t=e.get(s);null==c[s]&&(c[s]=t),null!=t&&(e.setRaw(p,t-c[g]),e.setRaw(f,(t-c[g])/c[g]*100),e.setRaw(b,t-h[g]),e.setRaw(_,(t-h[g])/h[g]*100),c[s]=t)}}})),a(s,(e=>{this.setPrivate(e+"AverageSelection",d[e]),this.setPrivate(e+"CountSelection",r[e]),this.setPrivate(e+"SumSelection",i[e]),this.setPrivate(e+"AbsoluteSumSelection",l[e]),this.setPrivate(e+"LowSelection",n[e]),this.setPrivate(e+"HighSelection",o[e]),this.setPrivate(e+"OpenSelection",h[e]),this.setPrivate(e+"CloseSelection",u[e])})),0===e&&t===this.dataItems.length&&a(s,(e=>{this.setPrivate(e+"Average",d[e]),this.setPrivate(e+"Count",r[e]),this.setPrivate(e+"Sum",i[e]),this.setPrivate(e+"AbsoluteSum",l[e]),this.setPrivate(e+"Low",n[e]),this.setPrivate(e+"High",o[e]),this.setPrivate(e+"Open",h[e]),this.setPrivate(e+"Close",u[e])}))}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));const e=this.get("heatRules");if(this._valuesDirty&&e&&e.length>0&&a(e,(e=>{const t=e.minValue||this.getPrivate(e.dataField+"Low")||0,s=e.maxValue||this.getPrivate(e.dataField+"High")||0;a(e.target._entities,(i=>{const a=i.dataItem.get(e.dataField);if(!r(a)){e.neutral&&i.set(e.key,e.neutral);const t=i.states;if(t){const s=t.lookup("default");s&&e.neutral&&s.set(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,i,t,s,a);else{let l,n;l=e.logarithmic?(Math.log(a)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(s)*Math.LOG10E-Math.log(t)*Math.LOG10E):(a-t)/(s-t),!r(a)||r(l)&&Math.abs(l)!=1/0||(l=.5),r(e.min)?n=e.min+(e.max-e.min)*l:e.min instanceof h?n=h.interpolate(l,e.min,e.max):e.min instanceof u&&(n=d(l,e.min,e.max)),i.set(e.key,n);const o=i.states;if(o){const t=o.lookup("default");t&&t.set(e.key,n)}}}))})),this.get("visible")){let e=this.dataItems.length,t=this.startIndex(),s=this.endIndex();s<e&&s++,t>0&&t--;for(let i=0;i<t;i++)this._hideBullets(this.dataItems[i]);for(let i=t;i<s;i++)this._positionBullets(this.dataItems[i]);for(let i=s;i<e;i++)this._hideBullets(this.dataItems[i])}}_positionBullets(e){e.bullets&&a(e.bullets,(e=>{this._positionBullet(e);const t=e.get("sprite");e.get("dynamic")&&(t&&(t._markDirtyKey("fill"),t.markDirtySize()),t instanceof i&&t.walkChildren((e=>{e._markDirtyKey("fill"),e.markDirtySize(),e instanceof c&&e.text.markDirtyText()}))),t instanceof c&&t.get("populateText")&&t.text.markDirtyText()}))}_hideBullets(e){e.bullets&&a(e.bullets,(e=>{let t=e.get("sprite");t&&t.setPrivate("visible",!1)}))}_positionBullet(e){}_placeBulletsContainer(e){e.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const e=this.bulletsContainer;e.parent&&e.parent.children.removeValue(e)}disposeDataItem(e){const t=e.bullets;t&&(a(t,(e=>{e.dispose()})),e.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,s){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return e(this,void 0,void 0,(function*(){const e=[i.showDataItem.call(this,t,s)],l=t.bullets;l&&a(l,(t=>{const i=t.get("sprite");i&&e.push(i.show(s))})),yield Promise.all(e)}))}hideDataItem(t,s){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return e(this,void 0,void 0,(function*(){const e=[i.hideDataItem.call(this,t,s)],l=t.bullets;l&&a(l,(t=>{const i=t.get("sprite");i&&e.push(i.hide(s))})),yield Promise.all(e)}))}_sequencedShowHide(t,s){return e(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(r(s)||(s=this.get("interpolationDuration",0)),s>0){const i=this.startIndex(),a=this.endIndex();yield Promise.all(m(this.dataItems,((l,r)=>e(this,void 0,void 0,(function*(){let e=s||0;(r<i-10||r>a+10)&&(e=0);let n=this.get("sequencedDelay",0)+e/(a-i);yield v(n*(r-i)),t?yield this.showDataItem(l,e):yield this.hideDataItem(l,e)})))))}else yield Promise.all(m(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(e){if(e){const t=e.get("legendDataItem");if(t){const s=t.get("valueLabel");if(s){const t=s.text;let i="";s._setDataItem(e),i=this.get("legendValueText",t.get("text","")),s.set("text",i),t.markDirtyText()}const i=t.get("label");if(i){const t=i.text;let s="";i._setDataItem(e),s=this.get("legendLabelText",t.get("text","")),i.set("text",s),t.markDirtyText()}}}}updateLegendMarker(e){}_onHide(){super._onHide();const e=this.getTooltip();e&&e.hide()}hoverDataItem(e){}unhoverDataItem(e){}_getBase(e){const t=this.dataItems[this.startIndex()];return t?t.get(e):0}}function I(e,t){for(let s=0,i=t.length;s<i;s++){const i=t[s];if(i.length>0){let t=i[0];if(t.length>0){let s=t[0];e.moveTo(s.x,s.y);for(let t=0,a=i.length;t<a;t++)D(e,i[t])}}}}function D(e,t){for(let s=0,i=t.length;s<i;s++){const i=t[s];e.lineTo(i.x,i.y)}}Object.defineProperty(w,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"}),Object.defineProperty(w,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:g.classNames.concat([w.className])});class x extends p{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("points"),t=this.get("segments");if(e&&e.length>0){let t=e[0];this._display.moveTo(t.x,t.y),I(this._display,[[e]])}else if(t)I(this._display,t);else if(!this.get("draw")){let e=this.width(),t=this.height();this._display.moveTo(0,0),this._display.lineTo(e,t)}}}}function C(e){return function(){return e}}Object.defineProperty(x,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"}),Object.defineProperty(x,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:p.classNames.concat([x.className])});const P=Math.PI,k=2*P,T=1e-6,M=k-T;function O(e){this._+=e[0];for(let t=1,s=e.length;t<s;++t)this._+=arguments[t]+e[t]}function $(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return O;const s=10**t;return function(e){this._+=e[0];for(let t=1,i=e.length;t<i;++t)this._+=Math.round(arguments[t]*s)/s+e[t]}}class j{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?O:$(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,s,i){this._append`Q${+e},${+t},${this._x1=+s},${this._y1=+i}`}bezierCurveTo(e,t,s,i,a,l){this._append`C${+e},${+t},${+s},${+i},${this._x1=+a},${this._y1=+l}`}arcTo(e,t,s,i,a){if(e=+e,t=+t,s=+s,i=+i,(a=+a)<0)throw new Error(`negative radius: ${a}`);let l=this._x1,r=this._y1,n=s-e,o=i-t,h=l-e,u=r-t,d=h*h+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>T)if(Math.abs(u*n-o*h)>T&&a){let c=s-l,m=i-r,p=n*n+o*o,f=c*c+m*m,b=Math.sqrt(p),_=Math.sqrt(d),g=a*Math.tan((P-Math.acos((p+d-f)/(2*b*_)))/2),v=g/_,y=g/b;Math.abs(v-1)>T&&this._append`L${e+v*h},${t+v*u}`,this._append`A${a},${a},0,0,${+(u*c>h*m)},${this._x1=e+y*n},${this._y1=t+y*o}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,s,i,a,l){if(e=+e,t=+t,l=!!l,(s=+s)<0)throw new Error(`negative radius: ${s}`);let r=s*Math.cos(i),n=s*Math.sin(i),o=e+r,h=t+n,u=1^l,d=l?i-a:a-i;null===this._x1?this._append`M${o},${h}`:(Math.abs(this._x1-o)>T||Math.abs(this._y1-h)>T)&&this._append`L${o},${h}`,s&&(d<0&&(d=d%k+k),d>M?this._append`A${s},${s},0,1,${u},${e-r},${t-n}A${s},${s},0,1,${u},${this._x1=o},${this._y1=h}`:d>T&&this._append`A${s},${s},0,${+(d>=P)},${u},${this._x1=e+s*Math.cos(a)},${this._y1=t+s*Math.sin(a)}`)}rect(e,t,s,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${s=+s}v${+i}h${-s}Z`}toString(){return this._}}function S(e){let t=3;return e.digits=function(s){if(!arguments.length)return t;if(null==s)t=null;else{const e=Math.floor(s);if(!(e>=0))throw new RangeError(`invalid digits: ${s}`);t=e}return e},()=>new j(t)}class V extends i{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(i.new(this._root,{width:n,height:n,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:i.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n,height:n})})}}Object.defineProperty(V,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"}),Object.defineProperty(V,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:i.classNames.concat([V.className])});class F extends V{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:i.new(this._root,{width:n,height:n,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new f})}_afterNew(){super._afterNew(),this._disposers.push(this.series);const e=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((t=>{if("clear"===t.type){a(t.oldValues,(e=>{this._removeSeries(e)}));const e=this.get("colors");e&&e.reset();const s=this.get("patterns");s&&s.reset()}else if("push"===t.type)e.moveValue(t.newValue),this._processSeries(t.newValue);else if("setIndex"===t.type)e.setIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("insertIndex"===t.type)e.insertIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("removeIndex"===t.type)this._removeSeries(t.oldValue);else if("moveIndex"===t.type)e.moveValue(t.value,t.newIndex),this._processSeries(t.value);else{if("swap"!==t.type)throw new Error("Unknown IListEvent type");{const s=t.a,i=t.b,a=this.series.indexOf(s),l=this.series.indexOf(i);e.moveValue(s,l),e.moveValue(i,a),this.series.each((e=>{this._processSeries(e),e.markDirtyValues()}))}}})))}_processSeries(e){e.chart=this,e._placeBulletsContainer(this)}_removeSeries(e){e._handleRemoved(),e.isDisposed()||(this.seriesContainer.children.removeValue(e),e._removeBulletsContainer())}}Object.defineProperty(F,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"}),Object.defineProperty(F,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:V.classNames.concat([F.className])});class R extends x{}Object.defineProperty(R,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"}),Object.defineProperty(R,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:x.classNames.concat([R.className])});export{g as C,_ as D,F as S,R as T,w as a,C as c,y as r,S as w};
|
package/interfaces.d.ts
CHANGED
|
@@ -44599,6 +44599,13 @@ declare namespace __esri {
|
|
|
44599
44599
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#videoWidth Read more...}
|
|
44600
44600
|
*/
|
|
44601
44601
|
readonly videoWidth: number | nullish;
|
|
44602
|
+
/**
|
|
44603
|
+
* The volume property sets or returns the audio volume of a video, from 0.0
|
|
44604
|
+
* (silent) to 1.0 (loudest).
|
|
44605
|
+
*
|
|
44606
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#volume Read more...}
|
|
44607
|
+
*/
|
|
44608
|
+
volume: number;
|
|
44602
44609
|
/**
|
|
44603
44610
|
* Indicates if the video layer is waiting for data.
|
|
44604
44611
|
*
|
|
@@ -44611,6 +44618,20 @@ declare namespace __esri {
|
|
|
44611
44618
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html Read more...}
|
|
44612
44619
|
*/
|
|
44613
44620
|
constructor(properties?: VideoLayerProperties);
|
|
44621
|
+
/**
|
|
44622
|
+
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html SimpleMarkerSymbol} used for representing the center point of a video frame.
|
|
44623
|
+
*
|
|
44624
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#frameCenterSymbol Read more...}
|
|
44625
|
+
*/
|
|
44626
|
+
get frameCenterSymbol(): SimpleMarkerSymbol;
|
|
44627
|
+
set frameCenterSymbol(value: SimpleMarkerSymbolProperties & { type: "simple-marker" });
|
|
44628
|
+
/**
|
|
44629
|
+
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html SimpleFillSymbol} used for representing the coverage area of a video frame.
|
|
44630
|
+
*
|
|
44631
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#frameOutlineSymbol Read more...}
|
|
44632
|
+
*/
|
|
44633
|
+
get frameOutlineSymbol(): SimpleFillSymbol;
|
|
44634
|
+
set frameOutlineSymbol(value: SimpleFillSymbolProperties & { type: "simple-fill" });
|
|
44614
44635
|
/**
|
|
44615
44636
|
* The initial extent of the video layer.
|
|
44616
44637
|
*
|
|
@@ -44620,6 +44641,13 @@ declare namespace __esri {
|
|
|
44620
44641
|
*/
|
|
44621
44642
|
get initialExtent(): Extent | nullish;
|
|
44622
44643
|
set initialExtent(value: ExtentProperties | nullish);
|
|
44644
|
+
/**
|
|
44645
|
+
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html SimpleLineSymbol} used for representing the line of sight from the sensor to the center of the frame coverage area.
|
|
44646
|
+
*
|
|
44647
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#sensorSightLineSymbol Read more...}
|
|
44648
|
+
*/
|
|
44649
|
+
get sensorSightLineSymbol(): SimpleLineSymbol;
|
|
44650
|
+
set sensorSightLineSymbol(value: SimpleLineSymbolProperties & { type: "simple-line" });
|
|
44623
44651
|
/**
|
|
44624
44652
|
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html SimpleMarkerSymbol}, {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html CIMSymbol}, or {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html SimpleMarkerSymbol} used for representing the point position geometry of the video sensor.
|
|
44625
44653
|
*
|
|
@@ -44629,6 +44657,13 @@ declare namespace __esri {
|
|
|
44629
44657
|
set sensorSymbol(value: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
|
|
44630
44658
|
| (PictureMarkerSymbolProperties & { type: "picture-marker" })
|
|
44631
44659
|
| (CIMSymbolProperties & { type: "cim" }));
|
|
44660
|
+
/**
|
|
44661
|
+
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html SimpleLineSymbol} used for representing the trailing line of travel of a moving video collection sensor.
|
|
44662
|
+
*
|
|
44663
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#sensorTrailSymbol Read more...}
|
|
44664
|
+
*/
|
|
44665
|
+
get sensorTrailSymbol(): SimpleLineSymbol;
|
|
44666
|
+
set sensorTrailSymbol(value: SimpleLineSymbolProperties & { type: "simple-line" });
|
|
44632
44667
|
/**
|
|
44633
44668
|
* The spatial reference of the video layer.
|
|
44634
44669
|
*
|
|
@@ -44728,6 +44763,12 @@ declare namespace __esri {
|
|
|
44728
44763
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#effect Read more...}
|
|
44729
44764
|
*/
|
|
44730
44765
|
effect?: Effect | nullish;
|
|
44766
|
+
/**
|
|
44767
|
+
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html SimpleMarkerSymbol} used for representing the center point of a video frame.
|
|
44768
|
+
*
|
|
44769
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#frameCenterSymbol Read more...}
|
|
44770
|
+
*/
|
|
44771
|
+
frameCenterSymbol?: SimpleMarkerSymbolProperties & { type: "simple-marker" };
|
|
44731
44772
|
/**
|
|
44732
44773
|
* Provides filter functions that can be performed on the video frame to
|
|
44733
44774
|
* achieve different visual effects.
|
|
@@ -44741,6 +44782,12 @@ declare namespace __esri {
|
|
|
44741
44782
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#frameOpacity Read more...}
|
|
44742
44783
|
*/
|
|
44743
44784
|
frameOpacity?: number;
|
|
44785
|
+
/**
|
|
44786
|
+
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html SimpleFillSymbol} used for representing the coverage area of a video frame.
|
|
44787
|
+
*
|
|
44788
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#frameOutlineSymbol Read more...}
|
|
44789
|
+
*/
|
|
44790
|
+
frameOutlineSymbol?: SimpleFillSymbolProperties & { type: "simple-fill" };
|
|
44744
44791
|
/**
|
|
44745
44792
|
* The initial extent of the video layer.
|
|
44746
44793
|
*
|
|
@@ -44777,6 +44824,12 @@ declare namespace __esri {
|
|
|
44777
44824
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#playbackRate Read more...}
|
|
44778
44825
|
*/
|
|
44779
44826
|
playbackRate?: number;
|
|
44827
|
+
/**
|
|
44828
|
+
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html SimpleLineSymbol} used for representing the line of sight from the sensor to the center of the frame coverage area.
|
|
44829
|
+
*
|
|
44830
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#sensorSightLineSymbol Read more...}
|
|
44831
|
+
*/
|
|
44832
|
+
sensorSightLineSymbol?: SimpleLineSymbolProperties & { type: "simple-line" };
|
|
44780
44833
|
/**
|
|
44781
44834
|
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html SimpleMarkerSymbol}, {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html CIMSymbol}, or {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html SimpleMarkerSymbol} used for representing the point position geometry of the video sensor.
|
|
44782
44835
|
*
|
|
@@ -44785,6 +44838,12 @@ declare namespace __esri {
|
|
|
44785
44838
|
sensorSymbol?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
|
|
44786
44839
|
| (PictureMarkerSymbolProperties & { type: "picture-marker" })
|
|
44787
44840
|
| (CIMSymbolProperties & { type: "cim" });
|
|
44841
|
+
/**
|
|
44842
|
+
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html SimpleLineSymbol} used for representing the trailing line of travel of a moving video collection sensor.
|
|
44843
|
+
*
|
|
44844
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#sensorTrailSymbol Read more...}
|
|
44845
|
+
*/
|
|
44846
|
+
sensorTrailSymbol?: SimpleLineSymbolProperties & { type: "simple-line" };
|
|
44788
44847
|
/**
|
|
44789
44848
|
* The spatial reference of the video layer.
|
|
44790
44849
|
*
|
|
@@ -44809,6 +44868,13 @@ declare namespace __esri {
|
|
|
44809
44868
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#url Read more...}
|
|
44810
44869
|
*/
|
|
44811
44870
|
url?: string | nullish;
|
|
44871
|
+
/**
|
|
44872
|
+
* The volume property sets or returns the audio volume of a video, from 0.0
|
|
44873
|
+
* (silent) to 1.0 (loudest).
|
|
44874
|
+
*
|
|
44875
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#volume Read more...}
|
|
44876
|
+
*/
|
|
44877
|
+
volume?: number;
|
|
44812
44878
|
}
|
|
44813
44879
|
|
|
44814
44880
|
export interface VideoLayerCapabilities {
|
|
@@ -94087,7 +94153,7 @@ declare namespace __esri {
|
|
|
94087
94153
|
* Starts the interactive placement of a direct line measurement.
|
|
94088
94154
|
*
|
|
94089
94155
|
* @param options An object specifying additional options.
|
|
94090
|
-
* @param options.signal Abort signal which can be used to cancel
|
|
94156
|
+
* @param options.signal Abort signal which can be used to cancel the operation.
|
|
94091
94157
|
*
|
|
94092
94158
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#place Read more...}
|
|
94093
94159
|
*/
|
|
@@ -94147,7 +94213,7 @@ declare namespace __esri {
|
|
|
94147
94213
|
* Starts the interactive placement of a direct line measurement.
|
|
94148
94214
|
*
|
|
94149
94215
|
* @param options An object specifying additional options.
|
|
94150
|
-
* @param options.signal Abort signal which can be used to cancel
|
|
94216
|
+
* @param options.signal Abort signal which can be used to cancel the operation.
|
|
94151
94217
|
*
|
|
94152
94218
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#place Read more...}
|
|
94153
94219
|
*/
|
|
@@ -94238,7 +94304,7 @@ declare namespace __esri {
|
|
|
94238
94304
|
* Starts the interactive placement of an observer and/or targets on the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html#analysis analysis}.
|
|
94239
94305
|
*
|
|
94240
94306
|
* @param options An object specifying additional options.
|
|
94241
|
-
* @param options.signal Abort signal which can be used to stop the
|
|
94307
|
+
* @param options.signal Abort signal which can be used to stop or cancel the operation.
|
|
94242
94308
|
*
|
|
94243
94309
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html#place Read more...}
|
|
94244
94310
|
*/
|
|
@@ -94280,17 +94346,30 @@ declare namespace __esri {
|
|
|
94280
94346
|
*/
|
|
94281
94347
|
visible: boolean;
|
|
94282
94348
|
constructor(properties?: any);
|
|
94349
|
+
/**
|
|
94350
|
+
* Starts an interactive operation to pick a layer to exclude from the slice analysis.
|
|
94351
|
+
*
|
|
94352
|
+
* @param options An object specifying additional options.
|
|
94353
|
+
* @param options.signal Abort signal which can be used to cancel the operation.
|
|
94354
|
+
*
|
|
94355
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-SliceAnalysisView3D.html#pickLayerToExclude Read more...}
|
|
94356
|
+
*/
|
|
94357
|
+
pickLayerToExclude(options?: SliceAnalysisView3DPickLayerToExcludeOptions | nullish): Promise<void>;
|
|
94283
94358
|
/**
|
|
94284
94359
|
* Starts the interactive placement of a slice plane.
|
|
94285
94360
|
*
|
|
94286
94361
|
* @param options An object specifying additional options.
|
|
94287
|
-
* @param options.signal Abort signal which can be used to cancel
|
|
94362
|
+
* @param options.signal Abort signal which can be used to cancel the operation.
|
|
94288
94363
|
*
|
|
94289
94364
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-SliceAnalysisView3D.html#place Read more...}
|
|
94290
94365
|
*/
|
|
94291
94366
|
place(options?: SliceAnalysisView3DPlaceOptions | nullish): Promise<void>;
|
|
94292
94367
|
}
|
|
94293
94368
|
|
|
94369
|
+
export interface SliceAnalysisView3DPickLayerToExcludeOptions {
|
|
94370
|
+
signal?: AbortSignal | nullish;
|
|
94371
|
+
}
|
|
94372
|
+
|
|
94294
94373
|
export interface SliceAnalysisView3DPlaceOptions {
|
|
94295
94374
|
signal?: AbortSignal | nullish;
|
|
94296
94375
|
}
|
|
@@ -94337,12 +94416,12 @@ declare namespace __esri {
|
|
|
94337
94416
|
*
|
|
94338
94417
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ViewshedAnalysisView3D.html#createViewsheds Read more...}
|
|
94339
94418
|
*/
|
|
94340
|
-
createViewsheds(options?: ViewshedAnalysisView3DCreateViewshedsOptions | null): Promise<
|
|
94419
|
+
createViewsheds(options?: ViewshedAnalysisView3DCreateViewshedsOptions | null): Promise<void>;
|
|
94341
94420
|
/**
|
|
94342
94421
|
* Starts the interactive placement of a single viewshed, adding it to the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ViewshedAnalysisView3D.html#analysis analysis}.
|
|
94343
94422
|
*
|
|
94344
94423
|
* @param options An object specifying additional options.
|
|
94345
|
-
* @param options.signal Abort signal which can be used to cancel
|
|
94424
|
+
* @param options.signal Abort signal which can be used to cancel the operation.
|
|
94346
94425
|
*
|
|
94347
94426
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ViewshedAnalysisView3D.html#place Read more...}
|
|
94348
94427
|
*/
|
|
@@ -95089,7 +95168,7 @@ declare namespace __esri {
|
|
|
95089
95168
|
* Starts the interactive placement of a single dimension, adding it to the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#analysis analysis}.
|
|
95090
95169
|
*
|
|
95091
95170
|
* @param options An object specifying additional options.
|
|
95092
|
-
* @param options.signal Abort signal which can be used to cancel
|
|
95171
|
+
* @param options.signal Abort signal which can be used to cancel the operation.
|
|
95093
95172
|
*
|
|
95094
95173
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#place Read more...}
|
|
95095
95174
|
*/
|
|
@@ -97073,7 +97152,7 @@ declare namespace __esri {
|
|
|
97073
97152
|
*
|
|
97074
97153
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#createLengthDimensions Read more...}
|
|
97075
97154
|
*/
|
|
97076
|
-
createLengthDimensions(options?: DimensionLayerViewCreateLengthDimensionsOptions | null): Promise<
|
|
97155
|
+
createLengthDimensions(options?: DimensionLayerViewCreateLengthDimensionsOptions | null): Promise<void>;
|
|
97077
97156
|
/**
|
|
97078
97157
|
* Starts the interactive placement of a single dimension, adding it to the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#layer layer}'s
|
|
97079
97158
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source source}.
|
|
@@ -98040,7 +98119,7 @@ declare namespace __esri {
|
|
|
98040
98119
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#analysis analysis}.
|
|
98041
98120
|
*
|
|
98042
98121
|
* @param options An object specifying additional options.
|
|
98043
|
-
* @param options.signal Abort signal which can be used to stop the
|
|
98122
|
+
* @param options.signal Abort signal which can be used to stop or cancel the operation.
|
|
98044
98123
|
*
|
|
98045
98124
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LineOfSightLayerView.html#place Read more...}
|
|
98046
98125
|
*/
|
|
@@ -99085,13 +99164,13 @@ declare namespace __esri {
|
|
|
99085
99164
|
*
|
|
99086
99165
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ViewshedLayerView.html#createViewsheds Read more...}
|
|
99087
99166
|
*/
|
|
99088
|
-
createViewsheds(options?: ViewshedLayerViewCreateViewshedsOptions | null): Promise<
|
|
99167
|
+
createViewsheds(options?: ViewshedLayerViewCreateViewshedsOptions | null): Promise<void>;
|
|
99089
99168
|
/**
|
|
99090
99169
|
* Starts the interactive placement of a single viewshed, adding it to the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ViewshedLayerView.html#layer layer}'s
|
|
99091
99170
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ViewshedLayer.html#source source}.
|
|
99092
99171
|
*
|
|
99093
99172
|
* @param options An object specifying additional options.
|
|
99094
|
-
* @param options.signal Abort signal which can be used to cancel
|
|
99173
|
+
* @param options.signal Abort signal which can be used to cancel the operation.
|
|
99095
99174
|
*
|
|
99096
99175
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ViewshedLayerView.html#place Read more...}
|
|
99097
99176
|
*/
|
|
@@ -119570,6 +119649,12 @@ declare namespace __esri {
|
|
|
119570
119649
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#label Read more...}
|
|
119571
119650
|
*/
|
|
119572
119651
|
label: string | nullish;
|
|
119652
|
+
/**
|
|
119653
|
+
* Text displayed when hovering over the column header label.
|
|
119654
|
+
*
|
|
119655
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#labelTooltipText Read more...}
|
|
119656
|
+
*/
|
|
119657
|
+
labelTooltipText: string | nullish;
|
|
119573
119658
|
/**
|
|
119574
119659
|
* The element representing the field column's menu.
|
|
119575
119660
|
*
|
|
@@ -119769,6 +119854,12 @@ declare namespace __esri {
|
|
|
119769
119854
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#label Read more...}
|
|
119770
119855
|
*/
|
|
119771
119856
|
label?: string | nullish;
|
|
119857
|
+
/**
|
|
119858
|
+
* Text displayed when hovering over the column header label.
|
|
119859
|
+
*
|
|
119860
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#labelTooltipText Read more...}
|
|
119861
|
+
*/
|
|
119862
|
+
labelTooltipText?: string | nullish;
|
|
119772
119863
|
/**
|
|
119773
119864
|
* Indicates whether the column is sortable.
|
|
119774
119865
|
*
|
|
@@ -120400,6 +120491,12 @@ declare namespace __esri {
|
|
|
120400
120491
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#label Read more...}
|
|
120401
120492
|
*/
|
|
120402
120493
|
label: string | nullish;
|
|
120494
|
+
/**
|
|
120495
|
+
* Text displayed when hovering over the column header label.
|
|
120496
|
+
*
|
|
120497
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#labelTooltipText Read more...}
|
|
120498
|
+
*/
|
|
120499
|
+
labelTooltipText: string | nullish;
|
|
120403
120500
|
/**
|
|
120404
120501
|
* Configuration options for the column menu.
|
|
120405
120502
|
*
|
|
@@ -120569,6 +120666,12 @@ declare namespace __esri {
|
|
|
120569
120666
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#label Read more...}
|
|
120570
120667
|
*/
|
|
120571
120668
|
label?: string | nullish;
|
|
120669
|
+
/**
|
|
120670
|
+
* Text displayed when hovering over the column header label.
|
|
120671
|
+
*
|
|
120672
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#labelTooltipText Read more...}
|
|
120673
|
+
*/
|
|
120674
|
+
labelTooltipText?: string | nullish;
|
|
120572
120675
|
/**
|
|
120573
120676
|
* Configuration options for the column menu.
|
|
120574
120677
|
*
|
package/layers/VideoLayer.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{_ as e}from"../chunks/tslib.es6.js";import t from"../Color.js";import r from"../request.js";import{deprecatedProperty as o}from"../core/deprecate.js";import i from"../core/Error.js";import l from"../core/Logger.js";import{clamp as s}from"../core/mathUtils.js";import{MultiOriginJSONMixin as n}from"../core/MultiOriginJSONSupport.js";import{watch as a,initial as p,whenOnce as u}from"../core/reactiveUtils.js";import{property as y}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as d}from"../core/accessorSupport/decorators/reader.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import m from"../geometry/Extent.js";import h from"../geometry/Polyline.js";import f from"../geometry/SpatialReference.js";import v from"./Layer.js";import{BlendLayer as g}from"./mixins/BlendLayer.js";import{CustomParametersMixin as O}from"./mixins/CustomParametersMixin.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{parse as S}from"./support/arcgisLayerUrl.js";import{url as T}from"./support/commonProperties.js";import b from"./support/PlaybackInfo.js";import{getVideoLayerCapabilities as C}from"./support/serviceCapabilitiesUtils.js";import x from"./support/TelemetryData.js";import I from"./support/TelemetryDisplay.js";import U from"./support/VideoFrame.js";import E from"./support/VideoTimeExtent.js";import w from"./video/VideoController.js";import{getFrameHorizonPoints as N,getGroundControlPoints as L,getTelemetryData as P,getServiceLayersInfo as J,getSensorTrailPoints as M,readVideoTimeExtent as R}from"./video/videoUtils.js";import k from"../symbols/SimpleMarkerSymbol.js";let V=[];const H=new t([255,127,0]),q=new k({angle:0,color:H,outline:{color:[255,255,255],width:1.33},size:10,style:"circle"});let z=class extends(g(j(n(O(v))))){constructor(e){super(e),this.capabilities=null,this.codecs=null,this.connectionInfo=null,this.controller=new w,this.copyright=null,this.created=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCount=null,this.frameEffect=null,this.frameOpacity=1,this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.sensorSymbol=q,this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=f.WGS84,this.start=0,this.telemetryDisplay=null,this.telemetryColor=H,this.title=null,this.type="video",this.url=null,this.version=null,this.videoLayersInfo=null}initialize(){this.telemetryDisplay=new I({frame:!1,frameCenter:!1,frameOutline:!0,lineOfSight:!0,sensorLocation:!0,sensorTrail:!0}),this.addHandles([a((()=>this.metadata),(()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")})),a((()=>this.telemetry?.sensorLocation),(e=>this._setSensorTrail(e)),p)]),u((()=>this.loaded&&"can-play"===this.state&&this.duration>0)).then((()=>{this.start>=0&&this.start<=this.duration&&this.setCurrentTime(this.start)}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}get autoplay(){return this.controller?.autoplay??!1}set autoplay(e){this.controller.autoplay=e}get buffered(){return this.controller.buffered}readCapabilitiesFromService(e,t){return C(t)}readConnectionInfo(e,t){const r=Object.values(t.connectionUrl);return r?.length&&(this.controller.playerUrl=r[0]),t.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return N(this.metadata)}get groundControlPoints(){return L(this.metadata)}get loop(){return this.controller.loop}set loop(e){this.controller.loop=e}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(e){this.controller.muted=e}get playbackRate(){return this.controller.rate}set playbackRate(e){this.controller.rate=e}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get state(){return this.controller.state}get telemetry(){return P(this.metadata)}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(e,t){return J(t)}get videoTimeExtent(){return o(l.getLogger(this),"videoTimeExtent",{replacement:"fullTimeExtent",version:"4.33",warnOnce:!0}),this.fullTimeExtent}get videoWidth(){return this.controller?.videoWidth}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){this.controller.reset()}setCurrentTime(e){if(this.duration<0)return;const t=s(e,0,this.duration);this.controller.setCurrentTime(t)}toGround(e,t){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(e,t):null}toVideo(e){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;const t=this.controller.sensorModel.transformGeoToImage(e.x,e.y,e.z);return{x:t[0],y:t[1]}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const t=S(this.parsedUrl?.path);if(null==t)throw new i("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");let o=null;const{data:l,ssl:s}=await r(t.url.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:e}),n=l;if(this.url=t.url.path,s&&(this.url=this.url.replace(/^http:/i,"https:")),!n?.currentVersion)return n.currentVersion="11.2",this.sourceJSON=n,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let a=t?.sublayer;if(null==a&&n.layers?.length&&(a=n.layers[0].id),null==a)throw new i("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");this.url=`${t.url.path}/${a}`,o=await r(this.url,{query:{f:"json",...this.customParameters},signal:e});const p={...n,...o.data};this.sourceJSON=p,this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(e){if(!e)return;const t=M(e,V);V=[...t];const r=V.map((e=>e.toArray())),o=new h({hasZ:e.hasZ,paths:[r]});this.telemetry.sensorTrail=o.clone()}};e([y()],z.prototype,"autoplay",null),e([y({readOnly:!0})],z.prototype,"buffered",null),e([y({readOnly:!0,json:{read:!1}})],z.prototype,"capabilities",void 0),e([d("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsPreviews","supportsUpdate"])],z.prototype,"readCapabilitiesFromService",null),e([y({readOnly:!0})],z.prototype,"codecs",void 0),e([y({readOnly:!0})],z.prototype,"connectionInfo",void 0),e([d("connectionInfo",["connectionUrl"])],z.prototype,"readConnectionInfo",null),e([y()],z.prototype,"controller",void 0),e([y({type:String})],z.prototype,"copyright",void 0),e([y({readOnly:!0,type:Date})],z.prototype,"created",void 0),e([y({type:Number})],z.prototype,"currentTime",null),e([y({type:String})],z.prototype,"description",void 0),e([y({type:Number})],z.prototype,"duration",null),e([y({readOnly:!0})],z.prototype,"elevationSource",void 0),e([y({type:Boolean})],z.prototype,"ended",null),e([y({type:U})],z.prototype,"frame",void 0),e([y({readOnly:!0,type:Number})],z.prototype,"frameCount",void 0),e([y()],z.prototype,"frameEffect",void 0),e([y()],z.prototype,"frameOpacity",void 0),e([y({type:m})],z.prototype,"fullExtent",void 0),e([y({readOnly:!0})],z.prototype,"frameHorizonPoints",null),e([y({readOnly:!0,nonNullable:!1,json:{read:{reader:R,source:"time"}},type:E})],z.prototype,"fullTimeExtent",void 0),e([y({readOnly:!0})],z.prototype,"groundControlPoints",null),e([y({type:m})],z.prototype,"initialExtent",void 0),e([y({readOnly:!0,json:{read:{source:"id"}}})],z.prototype,"layerId",void 0),e([y({type:Boolean})],z.prototype,"loop",null),e([y({readOnly:!0})],z.prototype,"metadata",null),e([y({readOnly:!0})],z.prototype,"mimeType",null),e([y({type:Boolean})],z.prototype,"muted",null),e([y({type:b})],z.prototype,"playbackInfo",void 0),e([y({type:Number})],z.prototype,"playbackRate",null),e([y({type:String})],z.prototype,"playerUrl",null),e([y({readOnly:!0})],z.prototype,"playing",null),e([y({readOnly:!0,json:{read:{source:"poster"}}})],z.prototype,"posterUrl",void 0),e([y({readOnly:!0})],z.prototype,"qualities",void 0),e([y()],z.prototype,"sensorSymbol",void 0),e([y({readOnly:!0})],z.prototype,"serviceItemId",void 0),e([y()],z.prototype,"sourceJSON",void 0),e([y({readOnly:!0})],z.prototype,"sourceQuality",void 0),e([y({readOnly:!0,json:{name:"serviceType"}})],z.prototype,"sourceType",void 0),e([y()],z.prototype,"spatialReference",void 0),e([y()],z.prototype,"start",void 0),e([y({readOnly:!0,type:String})],z.prototype,"state",null),e([y({readOnly:!0,type:x})],z.prototype,"telemetry",null),e([y({type:I})],z.prototype,"telemetryDisplay",void 0),e([y({type:t})],z.prototype,"telemetryColor",void 0),e([y({readOnly:!1,json:{read:{source:"name"}}})],z.prototype,"title",void 0),e([y({readOnly:!0})],z.prototype,"type",void 0),e([y(T)],z.prototype,"url",void 0),e([y({readOnly:!0,type:Number,json:{read:{source:"currentVersion"}}})],z.prototype,"version",void 0),e([y({readOnly:!0})],z.prototype,"videoElement",null),e([y({readOnly:!0})],z.prototype,"videoHeight",null),e([y({readOnly:!0,json:{read:!1}})],z.prototype,"videoLayersInfo",void 0),e([d("service","videoLayersInfo",["id","name","poster","serviceType","type"])],z.prototype,"readLayerInfosFromService",null),e([y({type:E,nonNullable:!1,readOnly:!0})],z.prototype,"videoTimeExtent",null),e([y({readOnly:!0})],z.prototype,"videoWidth",null),e([y({readOnly:!0})],z.prototype,"waiting",null),z=e([c("esri.layers.VideoLayer")],z);const D=z;export{D as default};
|
|
5
|
+
import{_ as e}from"../chunks/tslib.es6.js";import t from"../Color.js";import r from"../request.js";import{deprecatedProperty as o}from"../core/deprecate.js";import i from"../core/Error.js";import l from"../core/Logger.js";import{clamp as s}from"../core/mathUtils.js";import{MultiOriginJSONMixin as n}from"../core/MultiOriginJSONSupport.js";import{watch as p,initial as a,whenOnce as u}from"../core/reactiveUtils.js";import{property as y}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as m}from"../core/accessorSupport/decorators/reader.js";import{subclass as d}from"../core/accessorSupport/decorators/subclass.js";import c from"../geometry/Extent.js";import h from"../geometry/Polyline.js";import f from"../geometry/SpatialReference.js";import v from"./Layer.js";import{BlendLayer as g}from"./mixins/BlendLayer.js";import{CustomParametersMixin as S}from"./mixins/CustomParametersMixin.js";import{ScaleRangeLayer as O}from"./mixins/ScaleRangeLayer.js";import{parse as j}from"./support/arcgisLayerUrl.js";import{url as b}from"./support/commonProperties.js";import T from"./support/PlaybackInfo.js";import{getVideoLayerCapabilities as C}from"./support/serviceCapabilitiesUtils.js";import w from"./support/TelemetryData.js";import x from"./support/TelemetryDisplay.js";import I from"./support/VideoFrame.js";import U from"./support/VideoTimeExtent.js";import E from"./video/VideoController.js";import{getFrameHorizonPoints as L,getGroundControlPoints as N,getTelemetryData as P,getServiceLayersInfo as J,getSensorTrailPoints as M,readVideoTimeExtent as R}from"./video/videoUtils.js";import k from"../symbols/SimpleFillSymbol.js";import V from"../symbols/SimpleLineSymbol.js";import z from"../symbols/SimpleMarkerSymbol.js";let F=[];const H=new t([255,127,0]),q=new t([0,0,0,.05]),D=new z({angle:0,color:H,size:10,style:"cross"}),G=new k({color:q,outline:new V({color:H,width:2})}),_=new V({color:H,type:"simple-line",width:1}),B=new z({angle:0,color:H,outline:{color:[255,255,255],width:1.33},size:10,style:"circle"}),W=new V({color:H,type:"simple-line",width:1});let Q=class extends(g(O(n(S(v))))){constructor(e){super(e),this.capabilities=null,this.codecs=null,this.connectionInfo=null,this.controller=new E,this.copyright=null,this.created=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCenterSymbol=D.clone(),this.frameCount=null,this.frameEffect=null,this.frameOpacity=1,this.frameOutlineSymbol=G.clone(),this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.sensorSymbol=B.clone(),this.sensorSightLineSymbol=_.clone(),this.sensorTrailSymbol=W.clone(),this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=f.WGS84,this.start=0,this.telemetryDisplay=null,this.telemetryColor=H,this.title=null,this.type="video",this.url=null,this.version=null,this.videoLayersInfo=null}initialize(){this.telemetryDisplay=new x({frame:!1,frameCenter:!1,frameOutline:!0,lineOfSight:!0,sensorLocation:!0,sensorTrail:!0}),this.addHandles([p((()=>this.metadata),(()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")})),p((()=>this.telemetry?.sensorLocation),(e=>this._setSensorTrail(e)),a)]),u((()=>this.loaded&&"can-play"===this.state&&this.duration>0)).then((()=>{this.start>=0&&this.start<=this.duration&&this.setCurrentTime(this.start)}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}get autoplay(){return this.controller?.autoplay??!1}set autoplay(e){this.controller.autoplay=e}get buffered(){return this.controller.buffered}readCapabilitiesFromService(e,t){return C(t)}readConnectionInfo(e,t){const r=Object.values(t.connectionUrl);return r?.length&&(this.controller.playerUrl=r[0]),t.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return L(this.metadata)}get groundControlPoints(){return N(this.metadata)}get loop(){return this.controller.loop}set loop(e){this.controller.loop=e}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(e){this.controller.muted=e}get playbackRate(){return this.controller.rate}set playbackRate(e){this.controller.rate=e}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get state(){return this.controller.state}get telemetry(){return P(this.metadata)}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(e,t){return J(t)}get videoTimeExtent(){return o(l.getLogger(this),"videoTimeExtent",{replacement:"fullTimeExtent",version:"4.33",warnOnce:!0}),this.fullTimeExtent}get videoWidth(){return this.controller?.videoWidth}get volume(){return this.controller?.volume??0}set volume(e){this.controller.volume=e}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){this.controller.reset()}setCurrentTime(e){if(this.duration<0)return;const t=s(e,0,this.duration);this.controller.setCurrentTime(t)}toGround(e,t){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(e,t):null}toVideo(e){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;const t=this.controller.sensorModel.transformGeoToImage(e.x,e.y,e.z);return{x:t[0],y:t[1]}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const t=j(this.parsedUrl?.path);if(null==t)throw new i("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");let o=null;const{data:l,ssl:s}=await r(t.url.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:e}),n=l;if(this.url=t.url.path,s&&(this.url=this.url.replace(/^http:/i,"https:")),!n?.currentVersion)return n.currentVersion="11.2",this.sourceJSON=n,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let p=t?.sublayer;if(null==p&&n.layers?.length&&(p=n.layers[0].id),null==p)throw new i("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");this.url=`${t.url.path}/${p}`,o=await r(this.url,{query:{f:"json",...this.customParameters},signal:e});const a={...n,...o.data};this.sourceJSON=a,this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(e){if(!e)return;const t=M(e,F);F=[...t];const r=F.map((e=>e.toArray())),o=new h({hasZ:e.hasZ,paths:[r]});this.telemetry.sensorTrail=o.clone()}};e([y()],Q.prototype,"autoplay",null),e([y({readOnly:!0})],Q.prototype,"buffered",null),e([y({readOnly:!0,json:{read:!1}})],Q.prototype,"capabilities",void 0),e([m("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsPreviews","supportsUpdate"])],Q.prototype,"readCapabilitiesFromService",null),e([y({readOnly:!0})],Q.prototype,"codecs",void 0),e([y({readOnly:!0})],Q.prototype,"connectionInfo",void 0),e([m("connectionInfo",["connectionUrl"])],Q.prototype,"readConnectionInfo",null),e([y()],Q.prototype,"controller",void 0),e([y({type:String})],Q.prototype,"copyright",void 0),e([y({readOnly:!0,type:Date})],Q.prototype,"created",void 0),e([y({type:Number})],Q.prototype,"currentTime",null),e([y({type:String})],Q.prototype,"description",void 0),e([y({type:Number})],Q.prototype,"duration",null),e([y({readOnly:!0})],Q.prototype,"elevationSource",void 0),e([y({type:Boolean})],Q.prototype,"ended",null),e([y({type:I})],Q.prototype,"frame",void 0),e([y()],Q.prototype,"frameCenterSymbol",void 0),e([y({readOnly:!0,type:Number})],Q.prototype,"frameCount",void 0),e([y()],Q.prototype,"frameEffect",void 0),e([y()],Q.prototype,"frameOpacity",void 0),e([y()],Q.prototype,"frameOutlineSymbol",void 0),e([y({type:c})],Q.prototype,"fullExtent",void 0),e([y({readOnly:!0})],Q.prototype,"frameHorizonPoints",null),e([y({readOnly:!0,nonNullable:!1,json:{read:{reader:R,source:"time"}},type:U})],Q.prototype,"fullTimeExtent",void 0),e([y({readOnly:!0})],Q.prototype,"groundControlPoints",null),e([y({type:c})],Q.prototype,"initialExtent",void 0),e([y({readOnly:!0,json:{read:{source:"id"}}})],Q.prototype,"layerId",void 0),e([y({type:Boolean})],Q.prototype,"loop",null),e([y({readOnly:!0})],Q.prototype,"metadata",null),e([y({readOnly:!0})],Q.prototype,"mimeType",null),e([y({type:Boolean})],Q.prototype,"muted",null),e([y({type:T})],Q.prototype,"playbackInfo",void 0),e([y({type:Number})],Q.prototype,"playbackRate",null),e([y({type:String})],Q.prototype,"playerUrl",null),e([y({readOnly:!0})],Q.prototype,"playing",null),e([y({readOnly:!0,json:{read:{source:"poster"}}})],Q.prototype,"posterUrl",void 0),e([y({readOnly:!0})],Q.prototype,"qualities",void 0),e([y()],Q.prototype,"sensorSymbol",void 0),e([y()],Q.prototype,"sensorSightLineSymbol",void 0),e([y()],Q.prototype,"sensorTrailSymbol",void 0),e([y({readOnly:!0})],Q.prototype,"serviceItemId",void 0),e([y()],Q.prototype,"sourceJSON",void 0),e([y({readOnly:!0})],Q.prototype,"sourceQuality",void 0),e([y({readOnly:!0,json:{name:"serviceType"}})],Q.prototype,"sourceType",void 0),e([y()],Q.prototype,"spatialReference",void 0),e([y()],Q.prototype,"start",void 0),e([y({readOnly:!0,type:String})],Q.prototype,"state",null),e([y({readOnly:!0,type:w})],Q.prototype,"telemetry",null),e([y({type:x})],Q.prototype,"telemetryDisplay",void 0),e([y({type:t})],Q.prototype,"telemetryColor",void 0),e([y({readOnly:!1,json:{read:{source:"name"}}})],Q.prototype,"title",void 0),e([y({readOnly:!0})],Q.prototype,"type",void 0),e([y(b)],Q.prototype,"url",void 0),e([y({readOnly:!0,type:Number,json:{read:{source:"currentVersion"}}})],Q.prototype,"version",void 0),e([y({readOnly:!0})],Q.prototype,"videoElement",null),e([y({readOnly:!0})],Q.prototype,"videoHeight",null),e([y({readOnly:!0,json:{read:!1}})],Q.prototype,"videoLayersInfo",void 0),e([m("service","videoLayersInfo",["id","name","poster","serviceType","type"])],Q.prototype,"readLayerInfosFromService",null),e([y({type:U,nonNullable:!1,readOnly:!0})],Q.prototype,"videoTimeExtent",null),e([y({readOnly:!0})],Q.prototype,"videoWidth",null),e([y()],Q.prototype,"volume",null),e([y({readOnly:!0})],Q.prototype,"waiting",null),Q=e([d("esri.layers.VideoLayer")],Q);const A=Q;export{A as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import o from"../../Graphic.js";import e from"../../core/Error.js";import t from"../../geometry/Point.js";import r from"../../geometry/Polygon.js";import n from"../../geometry/Polyline.js";import i from"../GraphicsLayer.js";import{systemOidFieldName as s}from"./constants.js";import a from"./SessionMemoryStorage.js";import{Direction2D as l}from"../../libs/linkchartlayout/LinkChartLayout.js";import{layoutMap as m}from"../../linkChart/enums.js";import{executeQueryStreaming as c}from"../../rest/knowledgeGraphService.js";import y from"../../rest/knowledgeGraph/GraphQueryStreaming.js";import p from"../../symbols/CIMSymbol.js";import f from"../../symbols/SimpleFillSymbol.js";import h from"../../symbols/TextSymbol.js";function d(o,e){const t=new Map;if(e.dataModel?.relationshipTypes)for(const r of e.dataModel.relationshipTypes)r.name&&t.set(r.name,[]);for(const r of o)t.has(r.typeName)&&t.get(r.typeName)?.push(r.id);return t}async function g(o,e,t){const r=[],n=d(o,e),i={},s=[];for(const[c,y]of n){if(y.length<1)continue;const o=`${c}_ids`;i[o]=y,s.push(`MATCH (n)-[r:${c}]->(m) WHERE id(r) in $${o} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===s.length)return[];const a=s.join(" UNION "),l=new y({openCypherQuery:a,bindParameters:i}),m=(await c(e,l,t?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:o,value:e}=await m.read();if(o)break;for(const t of e)r.push({id:t[0],typeName:t[1]}),r.push({id:t[2],typeName:t[3]})}return r}async function u(o,e,t){const r=new Map,n=d(o,e),i={},s=[];for(const[c,y]of n){if(y.length<1)continue;const o=`${c}_ids`;i[o]=y,s.push(`MATCH (n)-[r:${c}]->(m) WHERE id(r) in $${o} RETURN id(r), id(n), id(m)`)}if(0===s.length)return r;const a=s.join(" UNION "),l=new y({openCypherQuery:a,bindParameters:i}),m=(await c(e,l,t?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:o,value:e}=await m.read();if(o)break;for(const t of e)r.set(t[0],[t[1],t[2]])}return r}const b="ESRI__ChronologicalLayoutOverlay",w=()=>b,x=e=>{const s=[],a={type:"CIMGeometricEffectCut",beginCut:3,endCut:3};for(const t of e.chronologicalAuxiliaryGraphics?.lines??[]){const e={type:"CIMSolidStroke",enable:!0,width:t.width,color:[t.color.r,t.color.g,t.color.b,Math.round(t.color.a/100*255)],effects:t.dashPattern.length>0?[{type:"CIMGeometricEffectDashes",dashTemplate:t.dashPattern,lineDashEnding:"NoConstraint"},a]:
|
|
5
|
+
import o from"../../Graphic.js";import e from"../../core/Error.js";import t from"../../geometry/Point.js";import r from"../../geometry/Polygon.js";import n from"../../geometry/Polyline.js";import i from"../GraphicsLayer.js";import{systemOidFieldName as s}from"./constants.js";import a from"./SessionMemoryStorage.js";import{Direction2D as l}from"../../libs/linkchartlayout/LinkChartLayout.js";import{layoutMap as m}from"../../linkChart/enums.js";import{executeQueryStreaming as c}from"../../rest/knowledgeGraphService.js";import y from"../../rest/knowledgeGraph/GraphQueryStreaming.js";import p from"../../symbols/CIMSymbol.js";import f from"../../symbols/SimpleFillSymbol.js";import h from"../../symbols/TextSymbol.js";function d(o,e){const t=new Map;if(e.dataModel?.relationshipTypes)for(const r of e.dataModel.relationshipTypes)r.name&&t.set(r.name,[]);for(const r of o)t.has(r.typeName)&&t.get(r.typeName)?.push(r.id);return t}async function g(o,e,t){const r=[],n=d(o,e),i={},s=[];for(const[c,y]of n){if(y.length<1)continue;const o=`${c}_ids`;i[o]=y,s.push(`MATCH (n)-[r:${c}]->(m) WHERE id(r) in $${o} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===s.length)return[];const a=s.join(" UNION "),l=new y({openCypherQuery:a,bindParameters:i}),m=(await c(e,l,t?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:o,value:e}=await m.read();if(o)break;for(const t of e)r.push({id:t[0],typeName:t[1]}),r.push({id:t[2],typeName:t[3]})}return r}async function u(o,e,t){const r=new Map,n=d(o,e),i={},s=[];for(const[c,y]of n){if(y.length<1)continue;const o=`${c}_ids`;i[o]=y,s.push(`MATCH (n)-[r:${c}]->(m) WHERE id(r) in $${o} RETURN id(r), id(n), id(m)`)}if(0===s.length)return r;const a=s.join(" UNION "),l=new y({openCypherQuery:a,bindParameters:i}),m=(await c(e,l,t?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:o,value:e}=await m.read();if(o)break;for(const t of e)r.set(t[0],[t[1],t[2]])}return r}const b="ESRI__ChronologicalLayoutOverlay",w=()=>b,x=e=>{const s=[],a={type:"CIMGeometricEffectCut",beginCut:3,endCut:3};for(const t of e.chronologicalAuxiliaryGraphics?.lines??[]){const e={type:"CIMSolidStroke",enable:!0,width:t.width,color:[t.color.r,t.color.g,t.color.b,Math.round(t.color.a/100*255)],effects:t.dashPattern.length>0?[{type:"CIMGeometricEffectDashes",dashTemplate:t.dashPattern,lineDashEnding:"NoConstraint"},a]:void 0},r={type:"CIMVectorMarker",enable:!0,size:10,frame:{xmin:-5,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[-2.06,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[t.color.r,t.color.g,t.color.b,Math.round(t.color.a/100*255)]}]}}],markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineEnd",offsetAlongLine:0}},i=new p({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:t.arrowheadSizeAtEnd?[e,r]:[e]}}});for(const a of t.elements){const e=new n({paths:[[[a.origin.x,a.origin.y],[a.destination.x,a.destination.y]]]});s.push(new o({geometry:e,symbol:i}))}}for(const t of e.chronologicalAuxiliaryGraphics?.polygons??[]){const e=new f({color:[t.color.r,t.color.g,t.color.b,t.color.a/100],style:"solid",outline:null});for(const n of t.elements){const t=new r({rings:[n.points.map((o=>[o.x,o.y]))]});s.push(new o({geometry:t,symbol:e}))}}for(const r of e.chronologicalAuxiliaryGraphics?.texts??[]){let e="middle",n="center";switch(r.direction?.value){case l.left:n="right";break;case l.right:n="left";break;case l.bottom:e="bottom"}for(const i of r.elements){const a=new h({color:[r.color.r,r.color.g,r.color.b,r.color.a/100],text:i.str,font:{size:r.height,weight:"bold"},verticalAlignment:e,horizontalAlignment:n}),l=new t({x:i.anchor.x,y:i.anchor.y});s.push(new o({geometry:l,symbol:a}))}}return new i({graphics:s,listMode:"hide",title:b,id:b})},M=(o,e)=>{const t=new Map;for(const n of[...e.entityTypes??[],...e.relationshipTypes??[]])for(const o of n.properties??[])o.geometryType&&"esriGeometryNull"!==o.geometryType&&t.set(n.name,o.name??"");const r=a.getInstance();for(const n of o)r.writeToStore([n],s,t.get(n.typeName??"")??"")},C=o=>m.get(o)??"radial-root-centric";function S(o){if(!o.spatialReference.isWGS84)throw new e("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return o.clone().normalize().map((o=>[[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin]]))}export{C as convertLayoutTypeToWebSupportedFormat,x as getChronologicalOverlay,w as getDefaultChronologicalOverlayLayerId,g as getRelationshipEndNodeIds,u as getRelationshipEndNodeMap,M as loadRecordsIntoLocalCache,S as utilsExtentToInBoundsRings};
|