|
@@ -205,8 +205,8 @@ export default class Load {
|
|
|
|
|
|
getXY(width, height, position) {
|
|
|
const point = {};
|
|
|
- point.x = position.x - width / 2;
|
|
|
- point.y = height / 2 - position.y;
|
|
|
+ point.x = (position.x - width / 2) * coordinate.ratio;
|
|
|
+ point.y = (height / 2 - position.y) * coordinate.ratio;
|
|
|
return point;
|
|
|
}
|
|
|
|