@operato/board 1.4.72 → 1.4.73
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/CHANGELOG.md +9 -0
- package/dist/src/modeller/edit-toolbar-style.js +4 -0
- package/dist/src/modeller/edit-toolbar-style.js.map +1 -1
- package/dist/src/modeller/edit-toolbar.js +2 -2
- package/dist/src/modeller/edit-toolbar.js.map +1 -1
- package/dist/src/ox-board-modeller.js +9 -1
- package/dist/src/ox-board-modeller.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/modeller/edit-toolbar-style.ts +4 -0
- package/src/modeller/edit-toolbar.ts +2 -2
- package/src/ox-board-modeller.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.73",
|
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
|
5
5
|
"author": "heartyoh",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"prettier --write"
|
|
149
149
|
]
|
|
150
150
|
},
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "815c4b813f8c6a960867ef0aff00290bcba4041b"
|
|
152
152
|
}
|
|
@@ -280,10 +280,10 @@ export class EditToolbar extends LitElement {
|
|
|
280
280
|
if (ctrlKey && !shiftKey) this.onTapRedo()
|
|
281
281
|
break
|
|
282
282
|
case 'Digit1':
|
|
283
|
-
if (
|
|
283
|
+
if (ctrlKey) this.onStartStylePasteMode()
|
|
284
284
|
break
|
|
285
285
|
case 'Digit2':
|
|
286
|
-
if (
|
|
286
|
+
if (ctrlKey) this.onStartDatabindPasteMode()
|
|
287
287
|
break
|
|
288
288
|
case 'KeyC':
|
|
289
289
|
if (ctrlKey && !shiftKey) this.onTapCopy()
|
package/src/ox-board-modeller.ts
CHANGED
|
@@ -299,6 +299,11 @@ export class BoardModeller extends ScopedElementsMixin(LitElement) {
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
disconnectedCallback(): void {
|
|
302
|
+
if (this.scene) {
|
|
303
|
+
this.scene.stopStylePasteMode()
|
|
304
|
+
this.scene.stopDatabindPasteMode()
|
|
305
|
+
}
|
|
306
|
+
|
|
302
307
|
super.disconnectedCallback()
|
|
303
308
|
this.unbindShortcutEvent()
|
|
304
309
|
}
|
|
@@ -312,12 +317,17 @@ export class BoardModeller extends ScopedElementsMixin(LitElement) {
|
|
|
312
317
|
old.off('stylepastestop')
|
|
313
318
|
old.off('databindpastestart')
|
|
314
319
|
old.off('databindpastestop')
|
|
320
|
+
|
|
321
|
+
if (old) {
|
|
322
|
+
old.stopStylePasteMode()
|
|
323
|
+
old.stopDatabindPasteMode()
|
|
324
|
+
}
|
|
315
325
|
}
|
|
316
326
|
|
|
317
327
|
const scene = this.scene
|
|
318
328
|
if (scene) {
|
|
319
329
|
this.scene?.on('stylepastestart', () => {
|
|
320
|
-
this.viewer.style.cursor = '
|
|
330
|
+
this.viewer.style.cursor = 'copy'
|
|
321
331
|
})
|
|
322
332
|
this.scene?.on('stylepastestop', () => {
|
|
323
333
|
this.viewer.style.cursor = 'default'
|