Commit ecf75376 authored by anton's avatar anton

Fix setCellDimensions broken updates by using Annotation model's get2DArea function

parent 05578514
Pipeline #51359 passed with stage
in 5 minutes and 1 second
......@@ -921,14 +921,14 @@
if (annotation) {
let
parsed = annotation.target.selector._value,
sliced = parsed.xywh.slice(0, 4),
x = sliced[0],
y = sliced[1]
target = this.data.grid.get2DArea(parsed.xywh.slice(0, 2), [_w, _h])
const value = { xywh: [x, y, _w, _h] }
annotation.target.selector.value = value
await this.$store.dispatch('annotations/patch', [annotation.id, { target: { selector: { value } } }])
annotation.target.selector.value = target.selector.value
await this.$store.dispatch('annotations/patch', [annotation.id, {
target: {
selector: { value: 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