update output format

This commit is contained in:
Robin Appelman 2023-06-07 00:26:14 +02:00
commit 68b895866d

View file

@ -104,11 +104,11 @@ export class App extends React.Component<{}, AppState> {
const height = (originalHeight / this.state.originalHeight) * this.state.imageHeight; const height = (originalHeight / this.state.originalHeight) * this.state.imageHeight;
return { return {
boundaryMin: { boundary_min: {
x: this.state.x - Math.floor(width / 2), x: this.state.x - Math.floor(width / 2),
y: this.state.y - Math.floor(height / 2) y: this.state.y - Math.floor(height / 2)
}, },
boundaryMax: { boundary_max: {
x: this.state.x + Math.floor(width / 2), x: this.state.x + Math.floor(width / 2),
y: this.state.y + Math.floor(height / 2) y: this.state.y + Math.floor(height / 2)
} }