From f39944e05396d6e08b7685b33fa1dd28e9d398f2 Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Mon, 19 Apr 2021 11:09:33 -0500 Subject: [PATCH] removing duplicate convertToPath function --- src/js/editor.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/js/editor.js b/src/js/editor.js index 0bb12a4..0919ca8 100644 --- a/src/js/editor.js +++ b/src/js/editor.js @@ -307,18 +307,6 @@ MD.Editor = function(){ } } - function convertToPath(){ - if (!_self.selected.length) return; - svgCanvas.convertToPath(); - var elems = svgCanvas.getSelectedElems(); - svgCanvas.selectorManager.requestSelector(elems[0]).reset(elems[0]) - svgCanvas.selectorManager.requestSelector(elems[0]).selectorRect.setAttribute("display", "none"); - svgCanvas.setMode("pathedit") - svgCanvas.pathActions.toEditMode(elems[0]); - svgCanvas.clearSelection(); - editor.panel.updateContextPanel(); - } - this.selectedChanged = selectedChanged; this.elementChanged = elementChanged; this.changeAttribute = changeAttribute; @@ -349,7 +337,6 @@ MD.Editor = function(){ this.toggleWireframe = toggleWireframe; this.groupSelected = groupSelected; this.ungroupSelected = ungroupSelected; - this.convertToPath = convertToPath; this.export = function(){ if(window.canvg) { svgCanvas.rasterExport();