@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/board",
3
- "version": "1.4.72",
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": "ee307b4f77ec06edeb64bba9bb31e5e7ef14f81b"
151
+ "gitHead": "815c4b813f8c6a960867ef0aff00290bcba4041b"
152
152
  }
@@ -171,6 +171,10 @@ export const style = css`
171
171
  background-position-y: -1142px;
172
172
  }
173
173
 
174
+ #databind-copy {
175
+ background-position-y: -692px;
176
+ }
177
+
174
178
  #context-menu {
175
179
  background-position-y: -692px;
176
180
  }
@@ -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 (altKey) this.onStartStylePasteMode()
283
+ if (ctrlKey) this.onStartStylePasteMode()
284
284
  break
285
285
  case 'Digit2':
286
- if (altKey) this.onStartDatabindPasteMode()
286
+ if (ctrlKey) this.onStartDatabindPasteMode()
287
287
  break
288
288
  case 'KeyC':
289
289
  if (ctrlKey && !shiftKey) this.onTapCopy()
@@ -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 = 'cell'
330
+ this.viewer.style.cursor = 'copy'
321
331
  })
322
332
  this.scene?.on('stylepastestop', () => {
323
333
  this.viewer.style.cursor = 'default'