forked from MapGIS/WebClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArc.js
More file actions
36 lines (33 loc) · 858 Bytes
/
Arc.js
File metadata and controls
36 lines (33 loc) · 858 Bytes
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
import {
Zondy
} from './Base';
import {
extend
} from "./Util";
/**
* 弧段对象构造函数
* @class Zondy.Object.Arc
* @classdesc 弧段对象构造函数
* @param {Array} dots 一组Zondy.Object.Point2D ,一组点用以构造弧段
* @param {*} option 属性键值对,记录属性字段
*/
var Arc = function (dots, option) {
/**
* @member Zondy.Object.Arc.prototype.ArcID
* @description 弧段ID
*/
this.ArcID = 0;
var options = (option !== undefined) ? option : {};
extend(this, options);
/**
* @private
* @member Zondy.Object.Arc.prototype.Dots {Array}
* @type {Array}
* @description 一组点用以构造弧段 Array<{@link Zondy.Object.Point2D}>
*/
this.Dots = (dots !== undefined && dots !== null) ? dots : null;
};
export {
Arc
};
Zondy.Object.Arc = Arc;