UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 2.41 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as e}from"../../chunks/tslib.es6.js";import o from"../../PopupTemplate.js";import r from"../../core/Clonable.js";import t from"../../core/JSONSupport.js";import{setDeepValue as s}from"../../core/object.js";import{property as p}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as i}from"../../core/accessorSupport/decorators/subclass.js";import{writer as a}from"../../core/accessorSupport/decorators/writer.js";import n from"./AggregateField.js";import{popupEnabled as m}from"./commonProperties.js";import l from"./TrackPartInfo.js";import d from"../../renderers/SimpleRenderer.js";import{defaultPointSymbol2D as c,defaultPolylineSymbol2D as y}from"../../symbols/support/defaults.js";import{T as j}from"../../chunks/TimeInterval.js";let u=class extends(r.ClonableMixin(t)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new l({renderer:new d({symbol:c.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new l({renderer:new d({symbol:c.clone()})}),this.trackLines=new l({renderer:new d({symbol:y.clone()})}),this.timeField="startTimeField"}writeFields(e,o,r){const t=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));s(r,t,o)}};e([p({type:Boolean,json:{write:!0}})],u.prototype,"enabled",void 0),e([p({type:[n],json:{write:!0}})],u.prototype,"fields",void 0),e([a("fields")],u.prototype,"writeFields",null),e([p({type:l,json:{write:!0}})],u.prototype,"latestObservations",void 0),e([p({type:j,json:{write:!0}})],u.prototype,"maxDisplayDuration",void 0),e([p({type:Number,json:{write:!0}})],u.prototype,"maxDisplayObservationsPerTrack",void 0),e([p(m)],u.prototype,"popupEnabled",void 0),e([p({type:o,json:{name:"popupInfo",write:!0}})],u.prototype,"popupTemplate",void 0),e([p({type:l,json:{write:!0}})],u.prototype,"previousObservations",void 0),e([p({type:l,json:{write:!0}})],u.prototype,"trackLines",void 0),e([p({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],u.prototype,"timeField",void 0),u=e([i("esri.layers.support.TrackInfo")],u);export{u as default};