|
|
@ -12,6 +12,7 @@ import { DefaultBoardFindOption } from "../../Editor/DefaultConfig";
|
|
|
|
export class BoardFindStore extends BoardStore
|
|
|
|
export class BoardFindStore extends BoardStore
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@observable m_Option: IBoardFindOption = {
|
|
|
|
@observable m_Option: IBoardFindOption = {
|
|
|
|
|
|
|
|
version: 1,
|
|
|
|
condition: {
|
|
|
|
condition: {
|
|
|
|
layer: false,
|
|
|
|
layer: false,
|
|
|
|
height: false,
|
|
|
|
height: false,
|
|
|
@ -82,6 +83,8 @@ export class BoardFindStore extends BoardStore
|
|
|
|
highDrill: [],
|
|
|
|
highDrill: [],
|
|
|
|
upDownDrill: [true, true],
|
|
|
|
upDownDrill: [true, true],
|
|
|
|
isClose: false,
|
|
|
|
isClose: false,
|
|
|
|
|
|
|
|
isRemoveModeling: false,
|
|
|
|
|
|
|
|
isRemoveSpecialShape: false,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@observable isSelectAllSealed = false;
|
|
|
|
@observable isSelectAllSealed = false;
|
|
|
|
@observable isSelectAllDrill = false;
|
|
|
|
@observable isSelectAllDrill = false;
|
|
|
@ -96,7 +99,7 @@ export class BoardFindStore extends BoardStore
|
|
|
|
private SetDrillType()
|
|
|
|
private SetDrillType()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let drilltypes = [...userConfig.DrillConfigs.keys()];
|
|
|
|
let drilltypes = [...userConfig.DrillConfigs.keys()];
|
|
|
|
if (drilltypes.length > 0)
|
|
|
|
if (drilltypes.length > 0 && !drilltypes.includes(this.m_Option.drillType))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
observable(this.m_Option.highDrill).replace(Array(4).fill(drilltypes[0]));
|
|
|
|
observable(this.m_Option.highDrill).replace(Array(4).fill(drilltypes[0]));
|
|
|
|
this.m_Option.upDownDrill[0] = true;
|
|
|
|
this.m_Option.upDownDrill[0] = true;
|
|
|
|