chunk-XEQ4FTFC.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import {
  2. e as e2,
  3. l,
  4. v
  5. } from "./chunk-JM5OVQAD.js";
  6. import {
  7. T
  8. } from "./chunk-VRLXUHP2.js";
  9. import {
  10. x
  11. } from "./chunk-CRGY2SDS.js";
  12. import {
  13. o
  14. } from "./chunk-6T6G6LCQ.js";
  15. import {
  16. e,
  17. n5 as n,
  18. y3 as y
  19. } from "./chunk-2Z2TG5CU.js";
  20. // node_modules/@arcgis/core/layers/mixins/TemporalLayer.js
  21. var a = (a2) => {
  22. let f = class extends a2 {
  23. constructor() {
  24. super(...arguments), this.timeExtent = null, this.timeOffset = null, this.useViewTime = true;
  25. }
  26. readOffset(e3, t) {
  27. const o2 = t.timeInfo.exportOptions;
  28. if (!o2)
  29. return null;
  30. const i = o2.timeOffset, s = e2.fromJSON(o2.timeOffsetUnits);
  31. return i && s ? new l({ value: i, unit: s }) : null;
  32. }
  33. set timeInfo(e3) {
  34. x(e3, this.fieldsIndex), this._set("timeInfo", e3);
  35. }
  36. };
  37. return e([y({ type: T, json: { write: false } })], f.prototype, "timeExtent", void 0), e([y({ type: l })], f.prototype, "timeOffset", void 0), e([o("service", "timeOffset", ["timeInfo.exportOptions"])], f.prototype, "readOffset", null), e([y({ value: null, type: v, json: { write: true, origins: { "web-document": { read: false, write: false }, "portal-item": { read: false, write: false } } } })], f.prototype, "timeInfo", null), e([y({ type: Boolean, json: { read: { source: "timeAnimation" }, write: { target: "timeAnimation" }, origins: { "web-scene": { read: false, write: false } } } })], f.prototype, "useViewTime", void 0), f = e([n("esri.layers.mixins.TemporalLayer")], f), f;
  38. };
  39. export {
  40. a
  41. };
  42. //# sourceMappingURL=chunk-XEQ4FTFC.js.map