forked from MapGIS/WebClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLabelRegInfo.js
More file actions
78 lines (71 loc) · 2.86 KB
/
LabelRegInfo.js
File metadata and controls
78 lines (71 loc) · 2.86 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
import {
Zondy
} from './Base';
import {
extend
} from "./Util";
import {
LabelRegType
} from "./EnumComm";
/**
* 区要素动态注记方位属性对象
* @class Zondy.Object.LabelRegInfo
* @classdesc 区要素动态注记方位属性对象
* @param {Object} opt_options 属性键值对
* @param {Boolean} [opt_options.ClientOutLabel = false] 不完全注记
* @param {Number} [opt_options.LabelMiniRegion = 0.00] 是否尝试水平注记微小区 short
* @param {Number} [opt_options.MayPlaceOutside = 0] 自适应策略 区内不能注记时,是否可以注记在外部 short
* @param {Number} [opt_options.MiniRegionArea = 0] 微小区最大面积 short
* @param {Number} [opt_options.Offset = 0.00] 区域外注记时,注记偏移的距离
* @param {LabelRegType} [opt_options.RegType = 0] 区方位,Zondy.Enum.LabelRegType,枚举类型
*/
var LabelRegInfo = function (opt_options) {
var options = (opt_options !== undefined) ? opt_options : {};
extend(this, options);
/**
* @member Zondy.Object.LabelRegInfo.prototype.ClientOutLabel
* @type {Boolean}
* @description 不完全注记
* @default false
*/
this.ClientOutLabel = (options.ClientOutLabel !== undefined && options.ClientOutLabel !== null) ? options.ClientOutLabel : false;
/**
* @member Zondy.Object.LabelRegInfo.prototype.LabelMiniRegion
* @type {Number}
* @description 是否尝试水平注记微小区
* @default 0
*/
this.LabelMiniRegion = (options.LabelMiniRegion !== undefined && options.LabelMiniRegion !== null) ? options.LabelMiniRegion : 0;
/**
* @member Zondy.Object.LabelRegInfo.prototype.MayPlaceOutside
* @type {Number}
* @description 自适应策略 区内不能注记时,是否可以注记在外部 short
* @default 0
*/
this.MayPlaceOutside = (options.MayPlaceOutside !== undefined && options.MayPlaceOutside !== null) ? options.MayPlaceOutside : 0;
/**
* @member Zondy.Object.LabelRegInfo.prototype.MiniRegionArea
* @type {Number}
* @description 微小区最大面积 short
* @default 0
*/
this.MiniRegionArea = (options.MiniRegionArea !== undefined && options.MiniRegionArea !== null) ? options.MiniRegionArea : 0;
/**
* @member Zondy.Object.LabelRegInfo.prototype.Offset
* @type {Number}
* @description 区域外注记时,注记偏移的距离
* @default 0.00
*/
this.Offset = (options.Offset !== undefined && options.Offset !== null) ? options.Offset : 0.00;
/**
* @member Zondy.Object.LabelRegInfo.prototype.RegType
* @type {LabelRegType}
* @description 区方位,Zondy.Enum.LabelRegType,枚举类型
* @default 0
*/
this.RegType = (options.RegType !== undefined && options.RegType !== null) ? options.RegType : 0;
};
export {
LabelRegInfo
};
Zondy.Object.LabelRegInfo = LabelRegInfo;