开发:更新版本

This commit is contained in:
ChenX
2023-04-06 10:23:13 +08:00
parent b1026b0769
commit 6ce49f3885
63 changed files with 128 additions and 65 deletions

View File

@@ -2174,6 +2174,7 @@ var StoreageKeys;
StoreageKeys["PlatToken"] = "platToken";
StoreageKeys["UserName"] = "userName";
StoreageKeys["UserPhone"] = "userPhone";
StoreageKeys["ShopName"] = "shopName";
StoreageKeys["RenderType"] = "renderType";
StoreageKeys["ExactDrill"] = "openExactDrill";
StoreageKeys["ConfigName"] = "configName_";
@@ -12136,7 +12137,7 @@ const DefaultClosingStripOption = {
};
Object.freeze(DefaultClosingStripOption);
const DefaultBoardFindOption = {
version: 6,
version: 7,
condition: {
layer: false,
height: false,
@@ -12158,6 +12159,7 @@ const DefaultBoardFindOption = {
bigHoleDir: false,
drillType: false,
useKeyWord: false,
addRemarks: false,
composingFace: false,
sealedUp: false,
sealedDown: false,
@@ -12217,6 +12219,7 @@ const DefaultBoardFindOption = {
upDownDrill: [true, true],
isClose: false,
remarks: Array.from({ length: 10 }, () => ["", ""]),
extraRemarks: Array.from({ length: 10 }, () => ["", ""]),
isChaidan: false,
[EBoardKeyList.KnifeRad]: "",
};
@@ -12571,7 +12574,7 @@ const DefaultKuGanOption = {
};
Object.freeze(DefaultKuGanOption);
const DefaultParseBoardNameOPtion = {
version: 2,
version: 3,
verticalBrShrink: 0,
layerBrShrink: 0,
topBrShrink: 0,
@@ -12579,14 +12582,18 @@ const DefaultParseBoardNameOPtion = {
groundLineBrShrink: 0,
farLeftVerticalBrName: "左侧板",
farRightVerticalBrName: "右侧板",
middleVerticalBrName: "立板",
topMostLayerBrName: "顶板",
middleLayerBrName: "层板",
bottomMostLayerBrName: "底板",
bottomMostBackBrName: "地脚线",
stripeBrName: "收口条",
cabinetName: "",
isfarLeftVerticalBrName: true,
isModifyMiddleVerticalBrName: false,
isfarRightVerticalBrName: true,
istopMostLayerBrName: true,
isModifyMiddleLayerBrName: false,
isbottomMostLayerBrName: true,
isbottomMostBackBrName: true,
isstripeBrName: true,
@@ -21491,8 +21498,8 @@ exports.Board = Board_1 = class Board extends exports.ExtrudeSolid {
let color = sealingInfo.get(size);
if (color) {
cus[i].Position = cus[i].Position.add(new three.Vector3(0, 0, this.thickness / 2));
cus[i].ColorIndex = parseInt(color) ?? 7;
let l = cus[i].GetDrawObjectFromRenderType(exports.RenderType.Wireframe);
l.material = ColorMaterial.GetLineMaterial(parseFloat(color));
obj.add(l);
}
}
@@ -39299,6 +39306,8 @@ exports.TemplateWindowRecord = class TemplateWindowRecord extends exports.Templa
let pre = wpCurves[i - 1];
let now = wpCurves[i];
let iPt = pre.IntersectWith(now, IntersectOption.ExtendBoth)[0];
if (!iPt)
continue; //直线墙打断后支持L飘窗绘制
pre.EndPoint = iPt;
now.StartPoint = iPt;
}