File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 105
105
"vitest" : " ^3.1.1" ,
106
106
"vue" : " ^3.5.14"
107
107
}
108
- }
108
+ }
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ function startSvgTextEditing(event) {
89
89
tspan .textContent = ' ' ;
90
90
textNode .appendChild (tspan);
91
91
textNode .style .pointerEvents = ' none' ;
92
+ textNode .style .userSelect = ' none' ;
92
93
93
94
G .value .appendChild (textNode);
94
95
editingTextNode .value = textNode;
@@ -540,6 +541,7 @@ const range = ref(null);
540
541
'vue-ui-pen-and-paper-actions': true,
541
542
'visible': active
542
543
}"
544
+ : style= " { backgroundColor: backgroundColor }"
543
545
>
544
546
< button
545
547
class = " vue-ui-pen-and-paper-action"
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ function startSvgTextEditing(event) {
74
74
tspan .textContent = ' ' ;
75
75
textNode .appendChild (tspan);
76
76
textNode .style .pointerEvents = ' none' ;
77
+ textNode .style .userSelect = ' none' ;
77
78
78
79
G .value .appendChild (textNode);
79
80
editingTextNode .value = textNode;
@@ -579,7 +580,7 @@ onBeforeUnmount(() => {
579
580
< / script>
580
581
581
582
< template>
582
- < div v- if = " active" data- dom- to- png- ignore class = " vue-ui-pen-and-paper-actions" >
583
+ < div v- if = " active" data- dom- to- png- ignore class = " vue-ui-pen-and-paper-actions" : style = " { backgroundColor: backgroundColor } " >
583
584
< button class = " vue-ui-pen-and-paper-action" @click= " emit('close')" : style= " {
584
585
backgroundColor: backgroundColor,
585
586
border: `1px solid ${buttonBorderColor}`
You can’t perform that action at this time.
0 commit comments