Presentation.js 1.1 KB

12345
  1. /*
  2. All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. See https://js.arcgis.com/4.25/esri/copyright.txt for details.
  4. */
  5. import{_ as s}from"../chunks/tslib.es6.js";import o from"../core/Collection.js";import{referenceSetter as e,castForReferenceSetter as r}from"../core/collectionUtils.js";import{JSONSupport as t}from"../core/JSONSupport.js";import{property as i}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import{cast as c}from"../core/accessorSupport/decorators/cast.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import p from"./Slide.js";const n=o.ofType(p);let m=class extends t{constructor(s){super(s),this.slides=new n}destroy(){this.slides.forEach((s=>s.destroy())),this.slides.removeAll()}set slides(s){s&&(s=s.filter((s=>!!s.viewpoint))),this._set("slides",e(s,this._get("slides"),n))}clone(){return new(0,this.constructor)({slides:this.slides.clone()})}};s([i({type:n,nonNullable:!0,json:{write:!0}}),c(r)],m.prototype,"slides",null),m=s([l("esri.webscene.Presentation")],m);const a=m;export{a as default};