#82 javascript convertion changes

master
Agriya Dev5 2021-03-12 16:30:31 +05:30
parent fd503ab41a
commit 835a345560
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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) {