From e8d59904f7152b51d369bd8cf2ad1b5d9a73c17b Mon Sep 17 00:00:00 2001 From: JFH <20402845+jfhenon@users.noreply.github.com> Date: Wed, 8 Sep 2021 22:33:13 +0200 Subject: [PATCH] fix visual issues --- src/editor/components/seSelect.js | 15 +++++++++++++++ src/editor/svgedit.css | 6 +++++- src/svgcanvas/utilities.js | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/editor/components/seSelect.js b/src/editor/components/seSelect.js index d1fc629f..a8833523 100644 --- a/src/editor/components/seSelect.js +++ b/src/editor/components/seSelect.js @@ -130,6 +130,21 @@ export class SeSelect extends HTMLElement { set height (value) { this.setAttribute('height', value); } + /** + * @function get + * @returns {any} + */ + get value () { + return this.$select.value; + } + + /** + * @function set + * @returns {void} + */ + set value (value) { + this.$select.value = value; + } /** * @function connectedCallback * @returns {void} diff --git a/src/editor/svgedit.css b/src/editor/svgedit.css index 212e58ac..18b3a95d 100644 --- a/src/editor/svgedit.css +++ b/src/editor/svgedit.css @@ -329,7 +329,11 @@ hr { margin-bottom: 8px; } - +#zoom { + color: var(--text-color); + background-color: var(--main-bg-color); + border: none; +} /*—————————————————————————————*/ diff --git a/src/svgcanvas/utilities.js b/src/svgcanvas/utilities.js index d068d5a7..d63bab24 100644 --- a/src/svgcanvas/utilities.js +++ b/src/svgcanvas/utilities.js @@ -1049,7 +1049,7 @@ export const getStrokedBBox = function (elems, addSVGElementFromJson, pathAction }); // This shouldn't ever happen... - if (fullBb === undefined) { return null; } + if (!fullBb) { return null; } // fullBb doesn't include the stoke, so this does no good! // if (elems.length == 1) return fullBb;