forked from MapGIS/WebClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCRegionInfo.js
More file actions
98 lines (86 loc) · 3.22 KB
/
CRegionInfo.js
File metadata and controls
98 lines (86 loc) · 3.22 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
import {Zondy} from './Base';
import {extend} from "./Util";
/**
* 区要素的符号参数信息对象
* @class Zondy.Object.CRegionInfo
* @classdesc 区要素的符号参数信息对象
* @param {Object} option 属性键值对
* @param {Number} [option.EndColor = 1] 结束填充色
* @param {Number} [option.FillColor = 1] 填充颜色
* @param {Number} [option.FillMode = 0] 填充模式
* @param {Number} [option.OutPenWidth = 1] 填充图案笔宽
* @param {Number} [option.PatAngle = 1] 填充图案角度
* @param {Number} [option.PatColor = 1] 填充图案颜色
* @param {Number} [option.PatHeight = 1] 填充图案高度
* @param {Number} [option.PatID = 1] 填充图案ID
* @param {Number} [option.PatWidth = 1] 填充图案宽度
*/
var CRegionInfo = function (option) {
var options = (option !== undefined) ? option : {};
extend(this, options);
/**
* @member Zondy.Object.CRegionInfo.prototype.EndColor
* @type {Number}
* @description 结束填充色
* @default 1
*/
this.EndColor = (options.EndColor !== undefined && options.EndColor !== null) ? options.EndColor : 1;
/**
* @member Zondy.Object.CRegionInfo.prototype.FillColor
* @type {Number}
* @description 填充颜色
* @default 1
*/
this.FillColor = (options.FillColor !== undefined && options.FillColor !== null) ? options.FillColor : 1;
/**
* @member Zondy.Object.CRegionInfo.prototype.FillMode
* @type {Number}
* @description 填充模式
* @default 0
*/
this.FillMode = (options.FillMode !== undefined && options.FillMode !== null) ? options.FillMode : 0;
/**
* @member Zondy.Object.CRegionInfo.prototype.OutPenWidth
* @type {Number}
* @description 填充图案笔宽
* @default 1
*/
this.OutPenWidth = (options.OutPenWidth !== undefined && options.OutPenWidth !== null) ? options.OutPenWidth : 1;
/**
* @member Zondy.Object.CRegionInfo.prototype.PatAngle
* @type {Number}
* @description 填充图案角度
* @default 1
*/
this.PatAngle = (options.PatAngle !== undefined && options.PatAngle !== null) ? options.PatAngle : 1;
/**
* @member Zondy.Object.CRegionInfo.prototype.PatColor
* @type {Number}
* @description 填充图案颜色
* @default 1
*/
this.PatColor = (options.PatColor !== undefined && options.PatColor !== null) ? options.PatColor : 1;
/**
* @member Zondy.Object.CRegionInfo.prototype.PatHeight
* @type {Number}
* @description 填充图案高度
* @default 1
*/
this.PatHeight = (options.PatHeight !== undefined && options.PatHeight !== null) ? options.PatHeight : 1;
/**
* @member Zondy.Object.CRegionInfo.prototype.PatID
* @type {Number}
* @description 填充图案ID
* @default 1
*/
this.PatID = (options.PatID !== undefined && options.PatID !== null) ? options.PatID : 1;
/**
* @member Zondy.Object.CRegionInfo.prototype.PatWidth
* @type {Number}
* @description 填充图案宽度
* @default 1
*/
this.PatWidth = (options.PatWidth !== undefined && options.PatWidth !== null) ? options.PatWidth : 1;
};
export {CRegionInfo};
Zondy.Object.CRegionInfo = CRegionInfo;