From 727b0f22df640962bb4dbe94de9231830e49b787 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Fri, 8 Jan 2021 14:33:06 +0530 Subject: [PATCH] =?UTF-8?q?#39=20opacity=20button/stroke=20size/radius=20b?= =?UTF-8?q?utton=20don=E2=80=99t=20allow=20the=200=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/index.html | 12 ++++++------ src/svgcanvas/undo.js | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/editor/index.html b/src/editor/index.html index 5592933f..829a43d9 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -123,9 +123,9 @@ - - @@ -185,7 +185,7 @@ -
@@ -257,7 +257,7 @@
Helvetica
Times
- @@ -347,7 +347,7 @@ - + ... @@ -365,7 +365,7 @@ - +
diff --git a/src/svgcanvas/undo.js b/src/svgcanvas/undo.js index 27e95f04..9852190e 100644 --- a/src/svgcanvas/undo.js +++ b/src/svgcanvas/undo.js @@ -190,6 +190,8 @@ export const changeSelectedAttributeNoUndoMethod = function (attr, newValue, ele setHref(elem, newValue); } else if (newValue) { elem.setAttribute(attr, newValue); + } else if (typeof newValue === 'number') { + elem.setAttribute(attr, newValue); } else { elem.removeAttribute(attr); }