UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 1.26 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as o}from"tslib";import r from"../../Color.js";import{clone as e}from"../../core/lang.js";import{px2pt as t}from"../../core/screenUtils.js";import{property as s,subclass as i}from"../../core/accessorSupport/decorators.js";import l from"./Callout3D.js";import p from"./LineCallout3DBorder.js";import{colorAndTransparencyProperty as n,screenSizeProperty as c}from"../support/materialUtils.js";import{enumeration as m}from"../../core/accessorSupport/decorators/enumeration.js";var u;let a=u=class extends l{constructor(o){super(o),this.type="line",this.color=new r([0,0,0,1]),this.border=null}get size(){return this._get("size")??t(1)}set size(o){this._set("size",o)}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new u({color:e(this.color),size:this.size,border:e(this.border)})}};o([m({line:"line"})],a.prototype,"type",void 0),o([s(n({colorRequiredOnWrite:!0}))],a.prototype,"color",void 0),o([s({...c,json:{write:{isRequired:!0}}})],a.prototype,"size",null),o([s({type:p,json:{write:!0}})],a.prototype,"border",void 0),o([s({readOnly:!0})],a.prototype,"visible",null),a=u=o([i("esri.symbols.callouts.LineCallout3D")],a);export{a as default};