/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as o}from"tslib";import r from"../../Ground.js";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as p,subclass as s}from"../../core/accessorSupport/decorators.js";import{Integer as c}from"../../core/accessorSupport/ensureType.js";import{transparencyToOpacity as i,opacityToTransparency as n}from"../../webdoc/support/opacityUtils.js";var a;const m={type:Number,json:{type:c,name:"transparency",read:i,write:(o,r,t)=>{r[t]=n(o)}}};let u=a=class extends(t(e)){constructor(){super(...arguments),this.opacity=null}cloneAndApplyTo(o){return null==this.opacity||((o=o?.clone()??new r).opacity=this.opacity),o}static fromGround(o){return new a({opacity:o.opacity})}};o([p(m)],u.prototype,"opacity",void 0),u=a=o([s("esri.webscene.support.SlideGround")],u);const l=u;export{l as default};
