UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 1.29 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as t}from"tslib";import{ClonableMixin as r}from"../../core/Clonable.js";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as o,subclass as l}from"../../core/accessorSupport/decorators.js";import{reader as n}from"../../core/accessorSupport/decorators/reader.js";import{writer as s}from"../../core/accessorSupport/decorators/writer.js";let p=class extends(r(e)){constructor(t){super(t),this.duration=null,this.end=null,this.start=null,this.timezone="UTC"}readEnd(t,r){return null!=r.end?new Date(r.end):null}writeEnd(t,r){r.end=t?t.getTime():null}readStart(t,r){return null!=r.start?new Date(r.start):null}writeStart(t,r){r.start=t?t.getTime():null}};t([o({type:Number,json:{write:{allowNull:!0}}})],p.prototype,"duration",void 0),t([o({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),t([n("end")],p.prototype,"readEnd",null),t([s("end")],p.prototype,"writeEnd",null),t([o({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),t([n("start")],p.prototype,"readStart",null),t([s("start")],p.prototype,"writeStart",null),t([o({type:String})],p.prototype,"timezone",void 0),p=t([l("esri.layers.support.VideoTimeExtent")],p);const a=p;export{a as default};