同步源码
This commit is contained in:
18
api.cjs.js
18
api.cjs.js
@@ -12200,7 +12200,7 @@ const DefaultBoardFindOption = {
|
||||
};
|
||||
Object.freeze(DefaultBoardFindOption);
|
||||
const DefaultLatticOption = {
|
||||
version: 1,
|
||||
version: 2,
|
||||
arrayType: ELatticeArrayType.ByWidth,
|
||||
gripWidth: 100,
|
||||
gripDepth: 100,
|
||||
@@ -12221,6 +12221,7 @@ const DefaultLatticOption = {
|
||||
isOpenCut: false,
|
||||
upCut: 0,
|
||||
downCut: 4,
|
||||
linesType: LinesType.Reverse,
|
||||
};
|
||||
Object.freeze(DefaultLatticOption);
|
||||
const DefaultDoorOption = {
|
||||
@@ -12351,6 +12352,7 @@ const DefaultLatticeConfig = {
|
||||
isOpenCut: false,
|
||||
upCut: 0,
|
||||
downCut: 4,
|
||||
linesType: LinesType.Reverse,
|
||||
};
|
||||
Object.freeze(DefaultLatticeConfig);
|
||||
const DefaultNailOption = {
|
||||
@@ -24543,8 +24545,8 @@ class RoomWallParse {
|
||||
if (p === iPts[1])
|
||||
iPam[0] = iPam[1];
|
||||
}
|
||||
let isExtend = (preR.isReverse ? iPam[0].thisParam > 1 : iPam[0].thisParam < 0)
|
||||
&& (nowR.isReverse ? iPam[0].argParam > 1 : iPam[0].argParam < 0);
|
||||
let isExtend = (preR.isReverse ? iPam[0].thisParam > 0 : iPam[0].thisParam < 1)
|
||||
&& (nowR.isReverse ? iPam[0].argParam > 0 : iPam[0].argParam < 1);
|
||||
//tp 必须不能破坏圆弧,否则造成裁剪错误
|
||||
if (!isExtend || p.distanceToSquared(v.position) > 500 * 500)
|
||||
p = undefined;
|
||||
@@ -29363,7 +29365,7 @@ class DrawLatticeDrawerTool extends Singleton {
|
||||
br.BoardProcessOption.sealedRight = config.rightSealed.toString();
|
||||
br.BoardProcessOption.drillType = DrillType.None;
|
||||
br.BoardProcessOption.highDrill.fill(DrillType.None);
|
||||
br.BoardProcessOption[EBoardKeyList.Lines] = LinesType.Reverse; //生成的板设置为反纹
|
||||
br.BoardProcessOption[EBoardKeyList.Lines] = config.linesType; //纹路
|
||||
}
|
||||
ParseHighSealing(br, leftSealed, rightSealed, topSealed, downSealed, isHor) {
|
||||
let cu = br.ContourCurve;
|
||||
@@ -31858,7 +31860,7 @@ exports.TemplateLatticeRecord = class TemplateLatticeRecord extends exports.Temp
|
||||
//对象应该实现dataIn和DataOut的方法,为了对象的序列化和反序列化
|
||||
//对象从文件中读取数据,初始化自身
|
||||
ReadFile(file) {
|
||||
file.Read();
|
||||
let ver = file.Read();
|
||||
super.ReadFile(file);
|
||||
this.option.arrayType = file.Read();
|
||||
this.option.gripWidth = file.Read();
|
||||
@@ -31880,10 +31882,13 @@ exports.TemplateLatticeRecord = class TemplateLatticeRecord extends exports.Temp
|
||||
this.option.isOpenCut = file.Read();
|
||||
this.option.upCut = file.Read();
|
||||
this.option.downCut = file.Read();
|
||||
if (ver > 1) {
|
||||
this.option.linesType = file.Read();
|
||||
}
|
||||
}
|
||||
//对象将自身数据写入到文件.
|
||||
WriteFile(file) {
|
||||
file.Write(1);
|
||||
file.Write(2);
|
||||
super.WriteFile(file);
|
||||
file.Write(this.option.arrayType);
|
||||
file.Write(this.option.gripWidth);
|
||||
@@ -31905,6 +31910,7 @@ exports.TemplateLatticeRecord = class TemplateLatticeRecord extends exports.Temp
|
||||
file.Write(this.option.isOpenCut);
|
||||
file.Write(this.option.upCut);
|
||||
file.Write(this.option.downCut);
|
||||
file.Write(this.option.linesType);
|
||||
}
|
||||
};
|
||||
exports.TemplateLatticeRecord = __decorate([
|
||||
|
Reference in New Issue
Block a user