From 81a9ea2c3bdc134497fec624f74fa4c711405092 Mon Sep 17 00:00:00 2001 From: saliherdemk Date: Tue, 5 Nov 2024 16:59:13 +0300 Subject: [PATCH] zen mode removed --- index.html | 11 ----------- js/Draw/MLP/MLPView.js | 25 ++----------------------- js/Organizers/editMlpOrganizer.js | 11 ----------- 3 files changed, 2 insertions(+), 45 deletions(-) diff --git a/index.html b/index.html index 499dd96..8fdadca 100644 --- a/index.html +++ b/index.html @@ -85,17 +85,6 @@

Grada

-
-
- Zen: - - - - - -
-
- diff --git a/js/Draw/MLP/MLPView.js b/js/Draw/MLP/MLPView.js index 3df3de7..c9e5acf 100644 --- a/js/Draw/MLP/MLPView.js +++ b/js/Draw/MLP/MLPView.js @@ -1,7 +1,6 @@ class MlpView extends Playable { constructor() { super(); - this.zenMode = false; this.loading = false; this.loadingText = ""; this.layers = []; @@ -106,18 +105,6 @@ class MlpView extends Playable { } } - handleSetZenMode(mode) { - mode == "true" ? this.openZenMode() : this.closeZenMode(); - } - - openZenMode() { - this.zenMode = true; - } - - closeZenMode() { - this.zenMode = false; - } - setMode(mode) { this.mode = mode; this.origin?.setMode(mode); @@ -328,7 +315,7 @@ class MlpView extends Playable { } handlePressed() { - if (!this.isLoading() && !this.zenMode) { + if (!this.isLoading()) { this.getPressables().forEach((p) => p.handlePressed()); } super.handlePressed(); @@ -343,7 +330,7 @@ class MlpView extends Playable { handleDoubleClicked() { if (this.isLoading()) return; - !this.zenMode && this.getLayerReversed().forEach((l) => l.doubleClicked()); + this.getLayerReversed().forEach((l) => l.doubleClicked()); if (this.isInactive() || iManager.isBusy()) { iManager.handleRelease(); @@ -433,18 +420,10 @@ class MlpView extends Playable { executeDrawingCommands(commands); } - showZen() { - LoadingIndiactor.drawText(this.x, this.y, this.w, this.h, "Zen Mode"); - } - draw() { if (!this.isInactive()) { this.show(); this.isPropsShown() && this.showProps(); - if (this.zenMode) { - this.showZen(); - return; - } this.controlButtons.forEach((btn) => btn.draw()); } this.inputComponent?.draw(); diff --git a/js/Organizers/editMlpOrganizer.js b/js/Organizers/editMlpOrganizer.js index c987d9c..6a3a838 100644 --- a/js/Organizers/editMlpOrganizer.js +++ b/js/Organizers/editMlpOrganizer.js @@ -62,11 +62,6 @@ class EditMLPOrganizer extends EditOrganizer { event: "change", handler: this.handleModeChange, }, - { - id: "mlp-zen-mode", - event: "change", - handler: this.handleZenModeChange, - }, ]; events.forEach(({ id, event, handler }) => { @@ -112,11 +107,6 @@ class EditMLPOrganizer extends EditOrganizer { this.getSelected().handleSetMode(selectedRadio.value); } - handleZenModeChange() { - let selectedRadio = document.querySelector('input[name="mlp-zen"]:checked'); - this.getSelected().handleSetZenMode(selectedRadio.value); - } - togglePropVisibility() { this.selected.togglePropsShown(); this.setPropsBtnText(); @@ -149,7 +139,6 @@ class EditMLPOrganizer extends EditOrganizer { setElementProperties(`mlp-batch-size`, { value: selected.batchSize }); setElementProperties("err-function-select", { value: selected.errFunc }); setElementProperties(`mode-${selected.mode}`, { checked: true }); - setElementProperties(`zen-${selected.zenMode}`, { checked: true }); this.setPropsBtnText(); }