Skip to content

Commit 8f4e43c

Browse files
author
zhaokai
committed
【问题】【Point类打包出错】
1 parent 02eba60 commit 8f4e43c

File tree

1 file changed

+2
-3
lines changed
  • src/service/PlotUtilBase/Geometry

1 file changed

+2
-3
lines changed

src/service/PlotUtilBase/Geometry/Point.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { defaultValue } from "../Check";
21
import StringUtil from "../Util/StringUtil";
32
import MathUtil from "../Util/MathUtil";
43
import { Zondy } from "../../common/Base";
@@ -14,8 +13,8 @@ export default class Point {
1413
* @param {Number} [y=0] y坐标
1514
*/
1615
constructor(x, y) {
17-
this.x = defaultValue(x,0);
18-
this.y = defaultValue(y,0);
16+
this.x= typeof x==='undefined'?0:x
17+
this.y =typeof y==='undefined'?0:y
1918
}
2019

2120
static parse(strPnt, defaultValue = 0) {

0 commit comments

Comments
 (0)