UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.74 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 e from"../Color.js";import t from"../core/Clonable.js";import r from"../core/JSONSupport.js";import{px2pt as s,toPt as i}from"../core/screenUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import{Integer as p}from"../core/accessorSupport/ensureType.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";let a=class extends(r.JSONSupportMixin(t)){constructor(o){super(o),this.type="simple",this.color=new e("black"),this.lineSize=2,this.fontSize=10,this.textColor=new e("black"),this.textBackgroundColor=new e([255,255,255,.6])}equals(o){return this===o||this.color.equals(o.color)&&this.lineSize===o.lineSize&&this.fontSize===o.fontSize&&this.textColor.equals(o.textColor)&&this.textBackgroundColor.equals(o.textBackgroundColor)}};o([l({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],a.prototype,"type",void 0),o([l({type:e,nonNullable:!0,json:{type:[p],write:{isRequired:!0}}})],a.prototype,"color",void 0),o([l({type:Number,cast:i,nonNullable:!0,range:{min:s(1)},json:{write:{isRequired:!0}}})],a.prototype,"lineSize",void 0),o([l({type:Number,cast:i,nonNullable:!0,json:{write:{isRequired:!0}}})],a.prototype,"fontSize",void 0),o([l({type:e,nonNullable:!0,json:{type:[p],write:{isRequired:!0}}})],a.prototype,"textColor",void 0),o([l({type:e,nonNullable:!0,json:{type:[p],write:{isRequired:!0}}})],a.prototype,"textBackgroundColor",void 0),a=o([n("esri.analysis.DimensionSimpleStyle")],a);export{a as default};