|
@@ -17,10 +17,10 @@ import VectorCategory from "../enum/VectorCategory.js";
|
|
|
// import { floorplanData } from "../VectorData.js";
|
|
|
|
|
|
export default class UIControl {
|
|
|
- constructor(layer, newsletter, historyStateUI) {
|
|
|
+ constructor(layer, newsletter, graphicStateUI) {
|
|
|
this.layer = layer;
|
|
|
this.newsletter = newsletter;
|
|
|
- this.historyStateUI = historyStateUI
|
|
|
+ this.graphicStateUI = graphicStateUI
|
|
|
}
|
|
|
|
|
|
get selectUI() {
|
|
@@ -142,7 +142,7 @@ export default class UIControl {
|
|
|
this.layer.history.goPreState();
|
|
|
|
|
|
const historyState = historyService.getHistoryState();
|
|
|
- this.historyStateUI.canRevoke = historyState.pre
|
|
|
+ this.graphicStateUI.canRevoke = historyState.pre
|
|
|
// if (historyState.pre) {
|
|
|
// this.layer.$xui.toolbar.recall = true
|
|
|
// } else {
|
|
@@ -159,8 +159,8 @@ export default class UIControl {
|
|
|
this.layer.history.goNextState();
|
|
|
|
|
|
const historyState = historyService.getHistoryState();
|
|
|
- this.historyStateUI.canRecovery = historyState.next
|
|
|
- this.historyStateUI.canRevoke = true
|
|
|
+ this.graphicStateUI.canRecovery = historyState.next
|
|
|
+ this.graphicStateUI.canRevoke = true
|
|
|
// if (historyState.next) {
|
|
|
// this.layer.$xui.toolbar.recover = true;
|
|
|
// } else {
|