File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/common/commontypes/geometry Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments