forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCurve.js
More file actions
36 lines (30 loc) · 1.34 KB
/
Copy pathCurve.js
File metadata and controls
36 lines (30 loc) · 1.34 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
/* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import {SuperMap} from '../../SuperMap';
import {MultiPoint} from './MultiPoint';
/**
* @class SuperMap.Geometry.Curve
* @classdesc 几何对象曲线类。
* @category BaseTypes Geometry
* @extends {SuperMap.Geometry.MultiPoint}
* @param {Array.<SuperMap.Geometry.Point>} components - 几何对象数组。
* @example
* var point1 = new SuperMap.Geometry.Point(10,20);
* var point2 = new SuperMap.Geometry.Point(30,40);
* var curve = new SuperMap.Geometry.Curve([point1,point2]);
*/
export class Curve extends MultiPoint {
constructor(components) {
super(components);
/**
* @member {Array.<string>} [SuperMap.Geometry.Curve.prototype.componentType=["SuperMap.Geometry.Point", "SuperMap.PointWithMeasure"]]
* @description components 存储的的几何对象所支持的几何类型数组。
* @readonly
*/
this.componentTypes = ["SuperMap.Geometry.Point", "SuperMap.PointWithMeasure"];
this.CLASS_NAME = "SuperMap.Geometry.Curve";
this.geometryType = "Curve";
}
}
SuperMap.Geometry.Curve = Curve;