|
|
|
@ -1,9 +1,11 @@
|
|
|
|
|
import { action, observable, toJS } from "mobx";
|
|
|
|
|
import { EBoardKeyList } from "../../Common/BoardKeyList";
|
|
|
|
|
import { CheckObjectType, CheckoutValid } from "../../Common/CheckoutVaildValue";
|
|
|
|
|
import { DefaultUpdateInfoOption } from "../../Editor/DefaultConfig";
|
|
|
|
|
import { userConfig } from "../../Editor/UserConfig";
|
|
|
|
|
import { IUpdateBoardInfosOption } from "../Components/Board/UpdateBoardInfointerface";
|
|
|
|
|
import { IConfigOption } from "../Components/Board/UserConfig";
|
|
|
|
|
import { DRILL_KEYS } from "./BoardFindInterface";
|
|
|
|
|
import { DrillType, FaceDirection, LinesType } from "./BoardInterface";
|
|
|
|
|
import { BoardStore } from "./BoardStore";
|
|
|
|
|
|
|
|
|
@ -91,6 +93,7 @@ export class UpdateBoardInfosStore extends BoardStore
|
|
|
|
|
this.currentBoardName = name;
|
|
|
|
|
if (this.UIOption)
|
|
|
|
|
Object.assign(this.UIOption, this.m_Option);
|
|
|
|
|
this.CheckIsSelectAll();
|
|
|
|
|
}
|
|
|
|
|
SaveConfig()
|
|
|
|
|
{
|
|
|
|
@ -137,6 +140,12 @@ export class UpdateBoardInfosStore extends BoardStore
|
|
|
|
|
{
|
|
|
|
|
return CheckoutValid.HasInvailValue(this.UIOption, CheckObjectType.BF);
|
|
|
|
|
}
|
|
|
|
|
CheckIsSelectAll()
|
|
|
|
|
{
|
|
|
|
|
this.isSelectAllSealed = [EBoardKeyList.UpSealed, EBoardKeyList.DownSealed,
|
|
|
|
|
EBoardKeyList.RightSealed, EBoardKeyList.LeftSealed].every(k => this.m_Option.condition[k]);
|
|
|
|
|
this.isSelectAllDrill = DRILL_KEYS.every(k => this.m_Option.condition[k]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const updateBoardInfoStore = new UpdateBoardInfosStore();
|
|
|
|
|