mirror of
https://github.com/icewind1991/mapboundaries.git
synced 2026-06-03 19:04:07 +02:00
update output format
This commit is contained in:
parent
12a4575529
commit
68b895866d
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue