Commit 5e7edb76 authored by christianrhansen's avatar christianrhansen

mosys mobile: resize selected cell working via handler is working (still buggy)

parent 948a663d
Pipeline #20079 passed with stage
in 4 minutes and 9 seconds
...@@ -448,6 +448,7 @@ ...@@ -448,6 +448,7 @@
handler: function (obj) { handler: function (obj) {
if (this.showEditingCells) { if (this.showEditingCells) {
console.log(obj) console.log(obj)
this.mobileCellResize(this.mobileSelectedCell, obj.column, obj.row)
} }
}, },
deep: true deep: true
...@@ -786,7 +787,8 @@ ...@@ -786,7 +787,8 @@
let let
parsed = annotation.target.selector.parse(), parsed = annotation.target.selector.parse(),
[x, y, w, h] = parsed.xywh [x, y, w, h] = parsed.xywh
console.log('mobileCellResize', w, h)
/*
// ----- w // ----- w
if (_w === -1) if (w > 1) w += _w if (_w === -1) if (w > 1) w += _w
if (_w === 1 && x < this.grid.config.columns - w + 1) w += _w if (_w === 1 && x < this.grid.config.columns - w + 1) w += _w
...@@ -794,11 +796,12 @@ ...@@ -794,11 +796,12 @@
// ----- h // ----- h
if (_h === -1) if (h > 1) h += _h if (_h === -1) if (h > 1) h += _h
if (_h === 1 && y < this.grid.config.rows - h + 1) h += _h if (_h === 1 && y < this.grid.config.rows - h + 1) h += _h
*/
// w += _w // w += _w
// h += _h // h += _h
const value = { xywh: [x, y, w, h] } const value = { xywh: [x, y, _w, _h] }
annotation.target.selector.value = value annotation.target.selector.value = value
await this.$store.dispatch('annotations/patch', [annotation.id, { target: { selector: { value } } }]) await this.$store.dispatch('annotations/patch', [annotation.id, { target: { selector: { value } } }])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment