We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02eba60 commit 8f4e43cCopy full SHA for 8f4e43c
src/service/PlotUtilBase/Geometry/Point.js
@@ -1,4 +1,3 @@
1
-import { defaultValue } from "../Check";
2
import StringUtil from "../Util/StringUtil";
3
import MathUtil from "../Util/MathUtil";
4
import { Zondy } from "../../common/Base";
@@ -14,8 +13,8 @@ export default class Point {
14
13
* @param {Number} [y=0] y坐标
15
*/
16
constructor(x, y) {
17
- this.x = defaultValue(x,0);
18
- this.y = defaultValue(y,0);
+ this.x= typeof x==='undefined'?0:x
+ this.y =typeof y==='undefined'?0:y
19
}
20
21
static parse(strPnt, defaultValue = 0) {
0 commit comments