@operato/board 1.4.53 → 1.4.55
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 +18 -0
- package/dist/src/modeller/edit-toolbar.js +9 -3
- package/dist/src/modeller/edit-toolbar.js.map +1 -1
- package/dist/src/selector/ox-board-selector.js +3 -2
- package/dist/src/selector/ox-board-selector.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/modeller/edit-toolbar.ts +8 -2
- package/src/selector/ox-board-selector.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/board",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.55",
|
|
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": "d0abe895a05008b1366e4357dfb4e59b56c75e1e"
|
|
152
152
|
}
|
|
@@ -505,11 +505,17 @@ export class EditToolbar extends LitElement {
|
|
|
505
505
|
if (!this.scene) return
|
|
506
506
|
|
|
507
507
|
var selected = this.scene.selected
|
|
508
|
-
if (selected.length <= 1) return
|
|
509
508
|
|
|
510
509
|
var align = typeof e === 'string' ? e : (e.target as HTMLElement).getAttribute('data-align')
|
|
510
|
+
if (!align) {
|
|
511
|
+
return
|
|
512
|
+
}
|
|
511
513
|
|
|
512
|
-
|
|
514
|
+
if (selected.length <= 1) {
|
|
515
|
+
this.scene.place(align)
|
|
516
|
+
} else {
|
|
517
|
+
this.scene.align(align)
|
|
518
|
+
}
|
|
513
519
|
}
|
|
514
520
|
|
|
515
521
|
onTapZorder(e: TouchEvent | string) {
|
|
@@ -320,8 +320,9 @@ export class BoardSelector extends InfiniteScrollable(localize(i18next)(LitEleme
|
|
|
320
320
|
|
|
321
321
|
async createBoard(name: string, description: string, groupId: string) {
|
|
322
322
|
var model = JSON.stringify({
|
|
323
|
-
width:
|
|
324
|
-
height:
|
|
323
|
+
width: 1200,
|
|
324
|
+
height: 800,
|
|
325
|
+
fillStyle: 'white'
|
|
325
326
|
})
|
|
326
327
|
|
|
327
328
|
const response = await client.mutate({
|