UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.87 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{_ as e}from"../../chunks/tslib.es6.js";import o from"../../core/Identifiable.js";import{MultiOriginJSONSupport as r}from"../../core/MultiOriginJSONSupport.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{Integer as i}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";import{readOnlyService as n}from"../support/commonProperties.js";let l=class extends(o.IdentifiableMixin(r)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,o){return"string"==typeof o.alias?o.alias:"string"==typeof o.name?o.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};e([t({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],l.prototype,"title",void 0),e([s("service","title",["alias","name"])],l.prototype,"readTitle",null),e([t()],l.prototype,"layer",void 0),e([t({type:i,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],l.prototype,"id",void 0),e([s("service","id")],l.prototype,"readIdOnlyOnce",null),e([t(n(String))],l.prototype,"modelName",void 0),e([t(n(Boolean))],l.prototype,"isEmpty",void 0),e([t({type:Boolean,nonNullable:!0})],l.prototype,"legendEnabled",void 0),e([t({type:Boolean,json:{name:"visibility",write:!0}})],l.prototype,"visible",void 0),e([t({type:Number,json:{write:!0}})],l.prototype,"opacity",void 0),l=e([p("esri.layers.buildingSublayers.BuildingSublayer")],l);const a=l;export{a as default};