1- import {
2- Zondy
3- } from './Base' ;
4- import {
5- extend
6- } from "./Util" ;
7- import {
8- CDynNoteInfo
9- } from "./CDynNoteInfo" ;
10- import {
11- ISShowArc
12- } from "./EnumComm" ;
13- import {
14- CLineInfo
15- } from "./CLineInfo" ;
16- import {
17- CPointInfo
18- } from "./CPointInfo" ;
19- import {
20- CRegionInfo
21- } from "./CRegionInfo" ;
1+ import { Zondy } from './Base' ;
2+ import { extend } from './Util' ;
3+ import { CDynNoteInfo } from './CDynNoteInfo' ;
4+ import { ISShowArc } from './EnumComm' ;
5+ import { CLineInfo } from './CLineInfo' ;
6+ import { CPointInfo } from './CPointInfo' ;
7+ import { CRegionInfo } from './CRegionInfo' ;
228
239/**
2410 * 图层动态显示样式对象
2511 * @class Zondy.Object.DynShowStyle
2612 * @classdesc 地图文档显示样式对象构造函数
2713 * @param {Object } option 属性键值对
28- * @param {Number } [option.Alpha = 0] 透明度
14+ * @param {Number } [option.Alpha = 0] 透明度(0-100),0表示全部显示,100表示隐藏,50表示半透明
2915 * @param {Boolean } [option.BugSpare = false] 是否使用错误处理符号
3016 * @param {Boolean } [option.CustomRender = false] 是否自绘驱动
3117 * @param {String } [option.CustomRenderPath = false] 自绘驱动路径设置
@@ -47,7 +33,7 @@ import {
4733 * @see Zondy.Object.CDisplayStyle
4834 */
4935var DynShowStyle = function ( option ) {
50- var options = ( option !== undefined ) ? option : { } ;
36+ var options = option !== undefined ? option : { } ;
5137 extend ( this , options ) ;
5238
5339 /**
@@ -56,55 +42,55 @@ var DynShowStyle = function (option) {
5642 * @description 透明度
5743 * @default 0
5844 */
59- this . Alpha = ( options . Alpha !== undefined ) ? options . Alpha : 0 ;
45+ this . Alpha = options . Alpha !== undefined ? options . Alpha : 0 ;
6046
6147 /**
6248 * @member Zondy.Object.DynShowStyle.prototype.BugSpare
6349 * @type {Boolean }
6450 * @description 是否使用错误处理符号
6551 * @default false
6652 */
67- this . BugSpare = ( options . BugSpare !== undefined ) ? options . BugSpare : false ;
53+ this . BugSpare = options . BugSpare !== undefined ? options . BugSpare : false ;
6854
6955 /**
7056 * @member Zondy.Object.DynShowStyle.prototype.CustomRender
7157 * @type {Boolean }
7258 * @description 是否自绘驱动
7359 * @default false
7460 */
75- this . CustomRender = ( options . CustomRender !== undefined ) ? options . CustomRender : false ;
61+ this . CustomRender = options . CustomRender !== undefined ? options . CustomRender : false ;
7662
7763 /**
7864 * @member Zondy.Object.DynShowStyle.prototype.CustomRenderPath
7965 * @type {String }
8066 * @description 自绘驱动路径设置
8167 * @default null
8268 */
83- this . CustomRenderPath = ( options . CustomRenderPath !== undefined ) ? options . CustomRenderPath : null ;
69+ this . CustomRenderPath = options . CustomRenderPath !== undefined ? options . CustomRenderPath : null ;
8470
8571 /**
8672 * @member Zondy.Object.DynShowStyle.prototype.DirectionLineClr
8773 * @type {Number }
8874 * @description 显示的线方向线符号(只适用于其颜色)
8975 * @default 0
9076 */
91- this . DirectionLineClr = ( options . DirectionLineClr !== undefined ) ? options . DirectionLineClr : 0 ;
77+ this . DirectionLineClr = options . DirectionLineClr !== undefined ? options . DirectionLineClr : 0 ;
9278
9379 /**
9480 * @member Zondy.Object.DynShowStyle.prototype.DynNoteFlag
9581 * @type {String }
9682 * @description 是否动态注记
9783 * @default false
9884 */
99- this . DynNoteFlag = ( options . DynNoteFlag !== undefined ) ? options . DynNoteFlag : false ;
85+ this . DynNoteFlag = options . DynNoteFlag !== undefined ? options . DynNoteFlag : false ;
10086
10187 /**
10288 * @member Zondy.Object.DynShowStyle.prototype.DynNoteInfo
10389 * @type {Zondy.Object.CDynNoteInfo }
10490 * @description 动态注记参数
10591 * @default null
10692 */
107- this . DynNoteInfo = ( options . DynNoteInfo !== undefined ) ? options . DynNoteInfo : null ;
93+ this . DynNoteInfo = options . DynNoteInfo !== undefined ? options . DynNoteInfo : null ;
10894
10995 /**
11096 * @member Zondy.Object.DynShowStyle.prototype.IsShowArc
@@ -113,81 +99,79 @@ var DynShowStyle = function (option) {
11399 * 取值范围: 1(Zondy.Enum.ISShowArc.Reg),2(Zondy.Enum.ISShowArc.Arc),3(Zondy.Enum.ISShowArc.All)
114100 * @default 0
115101 */
116- this . IsShowArc = ( options . IsShowArc !== undefined ) ? options . IsShowArc : 0 ;
102+ this . IsShowArc = options . IsShowArc !== undefined ? options . IsShowArc : 0 ;
117103
118104 /**
119105 * @member Zondy.Object.DynShowStyle.prototype.ISShowLineDirection
120106 * @type {Boolean }
121107 * @description 是否显示线方向
122108 * @default false
123109 */
124- this . ISShowLineDirection = ( options . ISShowLineDirection !== undefined ) ? options . ISShowLineDirection : false ;
110+ this . ISShowLineDirection = options . ISShowLineDirection !== undefined ? options . ISShowLineDirection : false ;
125111
126112 /**
127113 * @member Zondy.Object.DynShowStyle.prototype.LineInfo
128114 * @type {Zondy.Object.CLineInfo }
129115 * @description 显示的弧段样式(只适用于其颜色)
130116 * @default null
131117 */
132- this . LineInfo = ( options . LineInfo !== undefined ) ? options . LineInfo : null ;
118+ this . LineInfo = options . LineInfo !== undefined ? options . LineInfo : null ;
133119
134120 /**
135121 * @member Zondy.Object.DynShowStyle.prototype.MaxScale
136122 * @type {Number }
137123 * @description 最大显示比率
138124 * @default 0.00
139125 */
140- this . MaxScale = ( options . MaxScale !== undefined ) ? options . MaxScale : 0.00 ;
126+ this . MaxScale = options . MaxScale !== undefined ? options . MaxScale : 0.0 ;
141127
142128 /**
143129 * @member Zondy.Object.DynShowStyle.prototype.MinScale
144130 * @type {Number }
145131 * @description 最小显示比率
146132 * @default 0.00
147133 */
148- this . MinScale = ( options . MinScale !== undefined ) ? options . MinScale : 0.00 ;
134+ this . MinScale = options . MinScale !== undefined ? options . MinScale : 0.0 ;
149135
150136 /**
151137 * @member Zondy.Object.DynShowStyle.prototype.ShowCoordPnt
152138 * @type {Boolean }
153139 * @description 显示坐标点
154140 * @default false
155141 */
156- this . ShowCoordPnt = ( options . ShowCoordPnt !== undefined ) ? options . ShowCoordPnt : false ;
142+ this . ShowCoordPnt = options . ShowCoordPnt !== undefined ? options . ShowCoordPnt : false ;
157143
158144 /**
159145 * @member Zondy.Object.DynShowStyle.prototype.SpareLineInfo
160146 * @type {Zondy.Object.CLineInfo }
161147 * @description 错误处理线符号
162148 * @default null
163149 */
164- this . SpareLineInfo = ( options . SpareLineInfo !== undefined ) ? options . SpareLineInfo : null ;
150+ this . SpareLineInfo = options . SpareLineInfo !== undefined ? options . SpareLineInfo : null ;
165151
166152 /**
167153 * @member Zondy.Object.DynShowStyle.prototype.SparePointInfo
168154 * @type {Zondy.Object.CPointInfo }
169155 * @description 错误处理点符号
170156 * @default null
171157 */
172- this . SparePointInfo = ( options . SparePointInfo !== undefined ) ? options . SparePointInfo : null ;
158+ this . SparePointInfo = options . SparePointInfo !== undefined ? options . SparePointInfo : null ;
173159
174160 /**
175161 * @member Zondy.Object.DynShowStyle.prototype.SpareRegInfo
176162 * @type {Zondy.Object.CRegionInfo }
177163 * @description 错误处理区符号
178164 * @default null
179165 */
180- this . SpareRegInfo = ( options . SpareRegInfo !== undefined ) ? options . SpareRegInfo : null ;
166+ this . SpareRegInfo = options . SpareRegInfo !== undefined ? options . SpareRegInfo : null ;
181167
182168 /**
183169 * @member Zondy.Object.DynShowStyle.prototype.SymbleScale
184170 * @type {Number }
185171 * @description 符号显示比例
186172 * @default 0.00
187173 */
188- this . SymbleScale = ( options . SymbleScale !== undefined ) ? options . SymbleScale : 0.00 ;
174+ this . SymbleScale = options . SymbleScale !== undefined ? options . SymbleScale : 0.0 ;
189175} ;
190- export {
191- DynShowStyle
192- } ;
193- Zondy . Object . DynShowStyle = DynShowStyle ;
176+ export { DynShowStyle } ;
177+ Zondy . Object . DynShowStyle = DynShowStyle ;
0 commit comments