开发:修复错误

pull/1904/MERGE
ChenX 2 years ago
parent 8e8b5b7f3e
commit d58515e4dc

@ -38,6 +38,7 @@ export class RoomIHoleParseAndModify
let length = wall instanceof RoomWallLine ? (getParam as GetLineParam).Length : wall.Length;
this._WallLength = length;
this._RangeLength = length * (range[1] - range[0]);
this._IsReverse = sparam > eparam;
if (this._IsReverse)
@ -57,7 +58,6 @@ export class RoomIHoleParseAndModify
this._TopDist = wall.Height - hole.Height - this._BottomDist;
this._RangeStart = range[0] * this._WallLength;
this._RangeLength = length * (range[1] - range[0]);
}
get LeftDist() { return this._LeftDist; }
@ -72,7 +72,7 @@ export class RoomIHoleParseAndModify
if (this._IsReverse)
this.hole.Move(this._GetParam.Direction.clone().multiplyScalar(this._LeftDist - value));
else
this.hole.Move(this._GetParam.Direction.clone().multiplyScalar(this._LeftDist - value));
this.hole.Move(this._GetParam.Direction.clone().multiplyScalar(value - this._LeftDist));
this._LeftDist = value;
this._RightDist = this._GetParam.Length - value - this._Length;
}
@ -193,7 +193,10 @@ export class RoomIHoleParseAndModify
this.hole.Height = newHeight;
}
//get max left?
get MaxLeftDist()
{
return this._RangeLength - this._Length;
}
//get max right?
//get max length?
//get max height?

Loading…
Cancel
Save