diff --git a/src/Obj/Base/AssembleObject/index.js b/src/Obj/Base/AssembleObject/index.js index e04f065..3ee6ba0 100644 --- a/src/Obj/Base/AssembleObject/index.js +++ b/src/Obj/Base/AssembleObject/index.js @@ -40,7 +40,7 @@ class AssembleObject extends Base { this.options.positions = options.positions || [] this.options.line = options.line || {} this.options.line.width = ((this.options.line.width || this.options.line.width === 0) ? this.options.line.width : 3) - this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 0.5)' + this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 1)' this.options['area-unit'] = options['area-unit'] || '平方米' this.entity this.event = new MouseEvent(this.sdk) diff --git a/src/Obj/Base/AttackArrowObject/index.js b/src/Obj/Base/AttackArrowObject/index.js index c3aaaac..ec83033 100644 --- a/src/Obj/Base/AttackArrowObject/index.js +++ b/src/Obj/Base/AttackArrowObject/index.js @@ -40,7 +40,7 @@ class AttackArrowObject extends Base { this.options.heightMode = (options.heightMode || options.heightMode == 0) ? options.heightMode : 2 this.options.line = options.line || {} this.options.line.width = ((this.options.line.width || this.options.line.width === 0) ? this.options.line.width : 3) - this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 0.5)' + this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 1)' this.options['area-unit'] = options['area-unit'] || '平方米' this.entity this.event = new MouseEvent(this.sdk) diff --git a/src/Obj/Base/CircleObject/index.js b/src/Obj/Base/CircleObject/index.js index a6e88d1..4126eff 100644 --- a/src/Obj/Base/CircleObject/index.js +++ b/src/Obj/Base/CircleObject/index.js @@ -45,7 +45,7 @@ class CircleObject extends Base { this.options.center = options.center || {} this.options.line = options.line || {} this.options.line.width = ((this.options.line.width || this.options.line.width === 0) ? this.options.line.width : 3) - this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 0.5)' + this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 1)' this.options['area-unit'] = options['area-unit'] || '平方米' options.label = options.label || {} this._elms = {}; diff --git a/src/Obj/Base/EllipseObject/index.js b/src/Obj/Base/EllipseObject/index.js index 1ad1c75..f9dedbd 100644 --- a/src/Obj/Base/EllipseObject/index.js +++ b/src/Obj/Base/EllipseObject/index.js @@ -32,7 +32,7 @@ class EllipseObject extends Base { * @param options.bearing=0 {number} 旋转角度 * @param options.line {object} 边框 * @param options.line.width=2 {string} 边框宽 - * @param options.line.color="#ff000080" {string} 边框颜色 + * @param options.line.color="rgba(255, 0, 0, 1)" {string} 边框颜色 * @param options.label {object} 标注 * @param options.heightMode=2{number} 高度模式(0:海拔高度;1:相对地表;2:依附模式) */ @@ -47,7 +47,7 @@ class EllipseObject extends Base { this.options.center = options.center || {} this.options.line = options.line || {} this.options.line.width = ((this.options.line.width || this.options.line.width === 0) ? this.options.line.width : 3) - this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 0.5)' + this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 1)' this.options['area-unit'] = options['area-unit'] || '平方米' options.label = options.label || {} this._elms = {}; diff --git a/src/Obj/Base/PincerArrowObject/index.js b/src/Obj/Base/PincerArrowObject/index.js index b293441..5788789 100644 --- a/src/Obj/Base/PincerArrowObject/index.js +++ b/src/Obj/Base/PincerArrowObject/index.js @@ -40,7 +40,7 @@ class PincerArrowObject extends Base { this.options.heightMode = (options.heightMode || options.heightMode == 0) ? options.heightMode : 2 this.options.line = options.line || {} this.options.line.width = ((this.options.line.width || this.options.line.width === 0) ? this.options.line.width : 3) - this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 0.5)' + this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 1)' this.options['area-unit'] = options['area-unit'] || '平方米' this.options.height = options.height this.options.loop = options.loop || false diff --git a/src/Obj/Base/PolygonObject/index.js b/src/Obj/Base/PolygonObject/index.js index 738cf61..dbaafdf 100644 --- a/src/Obj/Base/PolygonObject/index.js +++ b/src/Obj/Base/PolygonObject/index.js @@ -47,7 +47,7 @@ class PolygonObject extends Base { this.options.line = options.line || {} this.options.line.width = ((this.options.line.width || this.options.line.width === 0) ? this.options.line.width : 3) this.options.line.color = - this.options.line.color || 'rgba(255, 0, 0, 0.5)' + this.options.line.color || 'rgba(255, 0, 0, 1)' this.options['area-unit'] = options['area-unit'] || '平方米' this.entity this.event = new MouseEvent(this.sdk) diff --git a/src/Obj/Base/SectorObject/index.js b/src/Obj/Base/SectorObject/index.js index 8f7a317..9ddbeb4 100644 --- a/src/Obj/Base/SectorObject/index.js +++ b/src/Obj/Base/SectorObject/index.js @@ -47,7 +47,7 @@ class SectorObject extends Base { this.options.center = options.center || {} this.options.line = options.line || {} this.options.line.width = ((this.options.line.width || this.options.line.width === 0) ? this.options.line.width : 3) - this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 0.5)' + this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 1)' this.options['area-unit'] = options['area-unit'] || '平方米' options.label = options.label || {} this._elms = {}; diff --git a/src/Obj/Base/StraightArrowObject/index.js b/src/Obj/Base/StraightArrowObject/index.js index f1c26aa..f4037ef 100644 --- a/src/Obj/Base/StraightArrowObject/index.js +++ b/src/Obj/Base/StraightArrowObject/index.js @@ -40,7 +40,7 @@ class StraightArrowObject extends Base { this.options.positions = options.positions || [] this.options.line = options.line || {} this.options.line.width = ((this.options.line.width || this.options.line.width === 0) ? this.options.line.width : 3) - this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 0.5)' + this.options.line.color = this.options.line.color || 'rgba(255, 0, 0, 1)' this.options['area-unit'] = options['area-unit'] || '平方米' this.entity this.event = new MouseEvent(this.sdk)