Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4f9b27c

Browse files
【fix】sonar
1 parent 9e99e9e commit 4f9b27c

File tree

1 file changed

+5
-5
lines changed
  • src/common/commontypes/geometry

1 file changed

+5
-5
lines changed

‎src/common/commontypes/geometry/Point.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ export class Point extends Geometry {
2929
* @member {number} GeometryPoint.prototype.x
3030
* @description 横坐标。
3131
*/
32-
this.x;
32+
this.x=null;
3333

3434
/**
3535
* @member {number} GeometryPoint.prototype.y
3636
* @description 纵坐标。
3737
*/
38-
this.y;
38+
this.y=null;
3939

4040
/**
4141
* @member {number} GeometryPoint.prototype.z
4242
* @description Z 值。
4343
*/
44-
this.z;
44+
this.z=null;
4545

4646
/**
4747
* @member {number} GeometryPoint.prototype.m
4848
* @description M 值。
4949
*/
50-
this.m;
50+
this.m=null;
5151

5252
/**
5353
* @member {string} GeometryPoint.prototype.type
5454
* @description 用来存储点的类型。
5555
*/
56-
this.type;
56+
this.type="Point";
5757
if(Array.isArray(xOrCoordinates)){
5858
const [x,y,z,m] = xOrCoordinates;
5959
this.x = parseFloat(x);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /