xushiting 2 년 전
부모
커밋
8def9a8de0
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      server/test/a0k4xu045_202305311600080410/attach/sceneStore
  2. 2 2
      src/graphic/Load.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 2 - 2
src/graphic/Load.js

@@ -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;
   }