pull/588/MERGE
ChenX 5 years ago
parent 0c4b99653b
commit f153b34ab7

@ -21,9 +21,7 @@ export class DrillingReactor
{
for (let en of createObjects)
{
if (en instanceof Board)
en.ClearAllDrillingRelation();
else if (en instanceof GangDrill)
if (en instanceof GangDrill)
{
let br1: Board;
let br2: Board;

@ -12,7 +12,7 @@ export class CADFiler
{
database: Database;
private readIndex: number = 0;
constructor(private dataList = [])
constructor(private dataList: any[] = [])
{
}
@ -22,12 +22,12 @@ export class CADFiler
delete this.readIndex;
}
get Data()
get Data(): any[]
{
return this.dataList;
}
set Data(data)
set Data(data: any[])
{
this.dataList = data;
this.Reset();

@ -315,15 +315,6 @@ export class Board extends ExtrudeSolid
}
}
ClearAllDrillingRelation()
{
if (this._DrillList.size > 0)
{
this.WriteAllObjectRecord();
this._DrillList.clear();
}
}
ClearAllDrillList()
{
for (const [id] of this._DrillList)
@ -756,4 +747,3 @@ export class Board extends ExtrudeSolid
file.Write(this._Rotation.z);
}
}

Loading…
Cancel
Save