zydx-plus 1.33.356 → 1.33.357
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -149,10 +149,16 @@ export default {
|
|
|
149
149
|
this.editor.setCurrentTool('text')
|
|
150
150
|
},
|
|
151
151
|
note(v) {
|
|
152
|
+
let verticalAlign = ['middle-legacy', 'start-legacy', 'end-legacy']
|
|
153
|
+
if(verticalAlign.indexOf(v?.align) !== -1){
|
|
154
|
+
let align = ['middle', 'start', 'end']
|
|
155
|
+
this.styleProps('note', 'verticalAlign').defaultValue = align[verticalAlign.indexOf(v?.align)] ?? 'middle'
|
|
156
|
+
}else {
|
|
157
|
+
this.styleProps('note', 'align').defaultValue = v?.align ?? 'start'
|
|
158
|
+
}
|
|
152
159
|
this.styleProps('note', 'color').defaultValue = v?.color ?? 'black'
|
|
153
160
|
this.styleProps('note', 'size').defaultValue = v?.size ?? 'm'
|
|
154
161
|
this.styleProps('note', 'font').defaultValue = v?.font ?? 'draw' //['draw', 'sans', 'serif', 'mono']
|
|
155
|
-
this.styleProps('note', 'align').defaultValue = v?.align ?? 'start'
|
|
156
162
|
this.editor.setCurrentTool('note')
|
|
157
163
|
},
|
|
158
164
|
line(v) {
|