diff --git a/src/editor/components/seInput.js b/src/editor/components/seInput.js index 96d58991..cf695adf 100644 --- a/src/editor/components/seInput.js +++ b/src/editor/components/seInput.js @@ -31,7 +31,11 @@ class SeInput extends Input { get [internal.template] () { const result = super[internal.template]; result.content.prepend(fragmentFrom.html` - `.cloneNode(true)); + `.cloneNode(true)); // change the style so it fits in our toolbar result.content.append( templateFrom.html` @@ -40,6 +44,15 @@ class SeInput extends Input { margin-top: 5px; height: 23px; } + .icon_label { + float: left; + padding-top: 3px; + padding-right: 3px; + box-sizing: border-box; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + height: 0; + } `.content ); diff --git a/src/editor/images/height.svg b/src/editor/images/height.svg new file mode 100644 index 00000000..7e9cfd2e --- /dev/null +++ b/src/editor/images/height.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/editor/images/width.svg b/src/editor/images/width.svg new file mode 100644 index 00000000..c5846bfb --- /dev/null +++ b/src/editor/images/width.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/editor/index.html b/src/editor/index.html index d5952d36..f4b2b441 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -173,12 +173,8 @@
- - + +
@@ -208,14 +204,8 @@
- - + +
- - + +
- - + +
diff --git a/src/editor/svgedit.js b/src/editor/svgedit.js index 350db007..7f8755a2 100644 --- a/src/editor/svgedit.js +++ b/src/editor/svgedit.js @@ -4908,6 +4908,14 @@ editor.init = () => { $id('ellipse_cy').addEventListener('change', (e) => attrChanger(e)); $id('ellipse_rx').addEventListener('change', (e) => attrChanger(e)); $id('ellipse_ry').addEventListener('change', (e) => attrChanger(e)); + $id('selected_x').addEventListener('change', (e) => attrChanger(e)); + $id('selected_y').addEventListener('change', (e) => attrChanger(e)); + $id('rect_width').addEventListener('change', (e) => attrChanger(e)); + $id('rect_height').addEventListener('change', (e) => attrChanger(e)); + $id('line_x1').addEventListener('change', (e) => attrChanger(e)); + $id('line_y1').addEventListener('change', (e) => attrChanger(e)); + $id('line_x2').addEventListener('change', (e) => attrChanger(e)); + $id('line_y2').addEventListener('change', (e) => attrChanger(e)); // register actions for layer toolbar $id('layer_new').addEventListener('click', newLayer);