Commit a8a1da98 authored by Tom Quirk's avatar Tom Quirk

Ensure an annotation's position is of type Int

UpdateDiffImagePositionInput and
DiffImagePositionInput accepts Int's
for all its values. This commit ensures this is the case
for all values.
parent c590762c
......@@ -199,10 +199,10 @@ export default {
const { x, y } = coordinates;
const { width, height } = this.overlayDimensions;
return {
x,
y,
width,
height,
x: Math.round(x),
y: Math.round(y),
width: Math.round(width),
height: Math.round(height),
};
},
openCommentForm(coordinates) {
......
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