@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 620 B
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import e from"../../core/Error.js";import{Integer as r,Null as t}from"../../core/accessorSupport/ensureType.js";import o from"../../time/TimeExtent.js";const m={type:o,json:{read:{source:"timeExtent",reader:e=>e?Array.isArray(e)?o.fromArray(e):o.fromJSON(e):null},write:{writer:(r,t,o,m)=>{r&&(r.isEmpty?m?.messages&&m.messages.push(new e("invalid-timeExtent","TimeExtent cannot be empty")):t[o]=r.toArray())},target:{timeExtent:{type:[[r,t]]}}}}};export{m as timeExtent};