forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPoint.js
More file actions
56 lines (46 loc) · 1.49 KB
/
Point.js
File metadata and controls
56 lines (46 loc) · 1.49 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
/* Copyright© 2000 - 2025 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 { ShapeParameters } from './ShapeParameters';
/**
* @class ShapeParametersPoint
* @aliasclass Feature.ShapeParameters.Point
* @deprecatedclass SuperMap.Feature.ShapeParameters.Point
* @category Visualization Theme
* @classdesc 点参数对象。
* @extends {ShapeParameters}
* @param {number} x - 点 x 坐标。
* @param {number} y - 点 y 坐标。
* @usage
*/
export class Point extends ShapeParameters {
constructor(x, y) {
super(x, y);
/**
* @member {number} ShapeParametersPoint.prototype.x
* @description 点 x 坐标。
*/
this.x = !isNaN(x) ? x : 0;
/**
* @member {number} ShapeParametersPoint.prototype.y
* @description 点 y 坐标。
*/
this.y = !isNaN(y) ? y : 0;
/**
* @member {number} ShapeParametersPoint.prototype.r
* @description 点的半径。
*/
this.r = 6;
this.CLASS_NAME = "SuperMap.Feature.ShapeParameters.Point";
}
/**
* @function ShapeParametersPoint.prototype.destroy
* @description 销毁对象。
*/
destroy() {
this.x = null;
this.y = null;
this.r = null;
super.destroy();
}
}