|
@@ -20,7 +20,7 @@ export default class UIControl {
|
|
|
constructor(layer, newsletter, graphicStateUI) {
|
|
|
this.layer = layer;
|
|
|
this.newsletter = newsletter;
|
|
|
- this.graphicStateUI = graphicStateUI
|
|
|
+ this.graphicStateUI = graphicStateUI;
|
|
|
}
|
|
|
|
|
|
get selectUI() {
|
|
@@ -142,7 +142,7 @@ export default class UIControl {
|
|
|
this.layer.history.goPreState();
|
|
|
|
|
|
const historyState = historyService.getHistoryState();
|
|
|
- this.graphicStateUI.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.graphicStateUI.canRecovery = historyState.next
|
|
|
- this.graphicStateUI.canRevoke = true
|
|
|
+ this.graphicStateUI.canRecovery = historyState.next;
|
|
|
+ this.graphicStateUI.canRevoke = true;
|
|
|
// if (historyState.next) {
|
|
|
// this.layer.$xui.toolbar.recover = true;
|
|
|
// } else {
|
|
@@ -172,6 +172,11 @@ export default class UIControl {
|
|
|
this.layer.recoveryHistory();
|
|
|
}
|
|
|
|
|
|
+ menu_backgroundImg(value) {
|
|
|
+ //
|
|
|
+ this.graphicStateUI.canRevoke = !value;
|
|
|
+ }
|
|
|
+
|
|
|
menu_clear() {
|
|
|
dataService.clear();
|
|
|
elementService.hideAll();
|