UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.42 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as o}from"../../chunks/tslib.es6.js";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}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{enumeration as i}from"../../core/accessorSupport/decorators/enumeration.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import p from"./Callout3D.js";import c from"./LineCallout3DBorder.js";import{colorAndTransparencyProperty as m,screenSizeProperty as n}from"../support/materialUtils.js";var a;let u=a=class extends p{constructor(o){super(o),this.type="line",this.color=new r([0,0,0,1]),this.size=t(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new a({color:e(this.color),size:this.size,border:e(this.border)})}};o([i({line:"line"})],u.prototype,"type",void 0),o([s(m({colorRequiredOnWrite:!0}))],u.prototype,"color",void 0),o([s({...n,json:{write:{isRequired:!0}}})],u.prototype,"size",void 0),o([s({type:c,json:{write:!0}})],u.prototype,"border",void 0),o([s({readOnly:!0})],u.prototype,"visible",null),u=a=o([l("esri.symbols.callouts.LineCallout3D")],u);export{u as default};