UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.52 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 t}from"../../chunks/tslib.es6.js";import r from"../../core/Clonable.js";import o from"../../core/JSONSupport.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import{writer as p}from"../../core/accessorSupport/decorators/writer.js";let n=class extends(r.ClonableMixin(o)){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([e({type:Number,json:{write:{allowNull:!0}}})],n.prototype,"duration",void 0),t([e({type:Date,json:{write:{allowNull:!0}}})],n.prototype,"end",void 0),t([s("end")],n.prototype,"readEnd",null),t([p("end")],n.prototype,"writeEnd",null),t([e({type:Date,json:{write:{allowNull:!0}}})],n.prototype,"start",void 0),t([s("start")],n.prototype,"readStart",null),t([p("start")],n.prototype,"writeStart",null),t([e({type:String})],n.prototype,"timezone",void 0),n=t([l("esri.layers.support.VideoTimeExtent")],n);const a=n;export{a as default};