From 835a3455603e93762b90340b7eaf65f2990e17b3 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Fri, 12 Mar 2021 16:30:31 +0530 Subject: [PATCH] #82 javascript convertion changes --- src/editor/panels/LeftPanelHandlers.js | 2 +- src/editor/panels/TopPanelHandlers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/panels/LeftPanelHandlers.js b/src/editor/panels/LeftPanelHandlers.js index ba390898..9d95b01c 100644 --- a/src/editor/panels/LeftPanelHandlers.js +++ b/src/editor/panels/LeftPanelHandlers.js @@ -145,7 +145,7 @@ class LeftPanelHandlers { clickZoom () { if (this.updateLeftPanel('tool_zoom')) { this.svgCanvas.setMode('zoom'); - this.editor.workarea.css('cursor', this.editor.zoomInIcon); + this.editor.workarea.style.cursor = this.editor.zoomInIcon; } } diff --git a/src/editor/panels/TopPanelHandlers.js b/src/editor/panels/TopPanelHandlers.js index 4f14c569..7c936bf8 100644 --- a/src/editor/panels/TopPanelHandlers.js +++ b/src/editor/panels/TopPanelHandlers.js @@ -301,7 +301,7 @@ class TopPanelHandlers { */ clickWireframe () { $id('tool_wireframe').pressed = !$id('tool_wireframe').pressed; - this.editor.workarea.toggleClass('wireframe'); + this.editor.workarea.classList.toggle('wireframe'); const wfRules = $('#wireframe_rules'); if (!wfRules.length) {