File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -627,6 +627,11 @@ function drawPath(hexEntry) {
627
627
}
628
628
629
629
function placeTextAtPoint ( pt ) {
630
+ const textInput = TEXT_INPUT_DIV . value ;
631
+ if ( ! textInput ) {
632
+ console . log ( "eh" )
633
+ return ;
634
+ }
630
635
const textbox = document . createElementNS ( "http://www.w3.org/2000/svg" , "text" ) ;
631
636
textbox . setAttribute ( "font-size" , TEXT_FONT_SIZE_DIV . value ) ;
632
637
if ( GLOBAL_STATE . layers . TEXT . bold ) {
@@ -642,7 +647,7 @@ function placeTextAtPoint(pt) {
642
647
textbox . setAttribute ( "x" , pt . x ) ;
643
648
textbox . setAttribute ( "y" , pt . y ) ;
644
649
textbox . setAttribute ( "fill" , GLOBAL_STATE . layers . TEXT . primaryColor ) ;
645
- textbox . textContent = TEXT_INPUT_DIV . value ;
650
+ textbox . textContent = textInput ;
646
651
textbox . classList . add ( "no-pointer-events" ) ;
647
652
textbox . classList . add ( "in-image-text" ) ;
648
653
textbox . addEventListener ( "click" , e => {
Original file line number Diff line number Diff line change 91
91
</ div >
92
92
< div class ="layer-control control-panel flex-column gappy overlaid " data-control ="TEXT ">
93
93
< div class ="flex-row gappy ">
94
- < input id ="textFontSize " type ="number " dir =" rtl " class ="border-box " value ="45 "> </ input >
94
+ < input id ="textFontSize " type ="number " class ="border-box " value ="45 "> </ input >
95
95
< div id ="textBold " class ="btn border-box "> B️</ div >
96
96
< div id ="textItalics " class ="btn border-box "> I</ div >
97
97
< div id ="textUnderline " class ="btn border-box "> U</ div >
You can’t perform that action at this time.
0 commit comments