forked from MapGIS/WebClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCDynNoteInfo.js
More file actions
229 lines (205 loc) · 6.96 KB
/
CDynNoteInfo.js
File metadata and controls
229 lines (205 loc) · 6.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
import {Zondy} from './Base';
import {extend} from "./Util";
import {FontShape} from "./EnumComm";
import {DynNoteLableType} from "./DynNoteLableType";
/**
* 动态注记参数信息对象
* @class Zondy.Object.CDynNoteInfo
* @classdesc 动态注记参数信息对象
* @param {Object} option 属性键值对
* @param {Number} [option.Angle = 0.00] 动态注记字符串角度
* @param {Number} [option.Backclr = 0] 背景颜色,取值请参照MapGIS颜色库中颜色编号
* @param {Number} [option.Backexp = 0.00] 轮廓宽度
* @param {Number} [option.Bold = 0] 加粗
* @param {String} [option.FieldName = null] 注记字段名称
* @param {Number} [option.FontAngle = 0.00] 字体角度
* @param {Number} [option.FontColor = 0] 注记颜色
* @param {Number} [option.FontSize = 0] 注记大小
* @param {Number} [option.FontStyle = 0] 注记字体
* @param {Number} [option.Ifnt = 0] 中文字体
* @param {FontShape} [option.Ifnx = FontShape.Positive] 字形
* @param {Boolean} [option.IsFilled = false] 是否填充背景
* @param {Boolean} [option.IsHzpl = false] 是否水平显示
* @param {Boolean} [option.IsOvprnt = false] 覆盖方式(表明透明还是覆盖)
* @param {Number} [option.LabelLevel = 0] 注记级别
* @param {Zondy.Object.DynNoteLableType} [option.LableType = 0] 动态注记方位属性
* @param {Number} [option.Offsetx = 0.00] x方向的偏移
* @param {Number} [option.Offsety = 0.00] y方向的偏移
* @param {Number} [option.Space = 0.00] 字间距
* @param {Number} [option.StrikeThrough = 0] 删除线
* @param {Number} [option.UnderLine = 0] 下划线
*/
var CDynNoteInfo = function (option) {
var options = (option !== undefined) ? option : {};
extend(this, options);
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Angle
* @type {Number}
* @description 动态注记字符串角度
* @default 0
*/
this.Angle = (options.Angle !== undefined) ? options.Angle : 0.00;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Backclr
* @type {Number}
* @description 背景颜色,取值请参照MapGIS颜色库中颜色编号
* @default 0
*/
this.Backclr = (options.Backclr !== undefined) ? options.Backclr : 0;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Backexp
* @type {Number}
* @description 轮廓宽度
* @default 0.00
*/
this.Backexp = (options.Backexp !== undefined) ? options.Backexp : 0.00;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Bold
* @type {Number}
* @description 加粗
* @default 0
*/
this.Bold = (options.Bold !== undefined) ? options.Bold : 0;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.FieldName
* @type {String}
* @description 注记字段名称
* @default 0
*/
this.FieldName = (options.FieldName !== undefined) ? options.FieldName : null;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.FontAngle
* @type {Number}
* @description 字体角度
* @default 0.00
*/
this.FontAngle = (options.FontAngle !== undefined) ? options.FontAngle : 0.00;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.FontColor
* @type {Number}
* @description 注记颜色
* @default 0
*/
this.FontColor = (options.FontColor !== undefined) ? options.FontColor : 0;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.FontSize
* @type {Number}
* @description 注记大小
* @default 0
*/
this.FontSize = (options.FontSize !== undefined) ? options.FontSize : 0;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.FontStyle
* @type {Number}
* @description 注记字体
* @default 0
*/
this.FontStyle = (options.FontStyle !== undefined) ? options.FontStyle : 0;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Ifnt
* @type {Number}
* @description 中文字体
* @default 0
*/
this.Ifnt = (options.Ifnt !== undefined) ? options.Ifnt : 0;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Ifnx
* @type {FontShape}
* @description 字形
* @default FontShape.Positive
*/
this.Ifnx = (options.Ifnx !== undefined) ? options.Ifnx : FontShape.Positive;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.IsFilled
* @type {Boolean}
* @description 是否填充背景
* @default false
*/
this.IsFilled = (options.IsFilled !== undefined) ? options.IsFilled : false;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.IsHzpl
* @type {Boolean}
* @description 是否水平显示
* @default false
*/
this.IsHzpl = (options.IsHzpl !== undefined) ? options.IsHzpl : false;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.IsOvprnt
* @type {Boolean}
* @description 覆盖方式(表明透明还是覆盖)
* @default false
*/
this.IsOvprnt = (options.IsOvprnt !== undefined) ? options.IsOvprnt : false;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.LabelLevel
* @type {Number}
* @description 注记级别
* @default 0
*/
this.LabelLevel = (options.LabelLevel !== undefined) ? options.LabelLevel : 0;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.LabelLevel
* @type {Zondy.Object.DynNoteLableType}
* @description 动态注记方位属性
* @default null
*/
this.LableType = (options.LableType !== undefined) ? options.LableType : null;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Offsetx
* @type {Number}
* @description x方向的偏移
* @default 0.00
*/
this.Offsetx = (options.Offsetx !== undefined) ? options.Offsetx : 0.00;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Offsety
* @type {Number}
* @description y方向的偏移
* @default 0.00
*/
this.Offsety = (options.Offsety !== undefined) ? options.Offsety : 0.00;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.Space
* @type {Number}
* @description 字间距
* @default 0.00
*/
this.Space = (options.Space !== undefined) ? options.Space : 0.00;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.StrikeThrough
* @type {Number}
* @description 删除线
* @default 0
*/
this.StrikeThrough = (options.StrikeThrough !== undefined) ? options.StrikeThrough : 0;
/**
* @private
* @member Zondy.Object.CDynNoteInfo.prototype.UnderLine
* @type {Number}
* @description 下划线
* @default 0
*/
this.UnderLine = (options.UnderLine !== undefined) ? options.UnderLine : 0;
};
export {CDynNoteInfo};
Zondy.Object.CDynNoteInfo = CDynNoteInfo;