laymur 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1923,8 +1923,10 @@ class UISceneWrapper {
|
|
|
1923
1923
|
else {
|
|
1924
1924
|
const rawAnchorOffsetX = micro.anchorX * element.width;
|
|
1925
1925
|
const rawAnchorOffsetY = micro.anchorY * element.height;
|
|
1926
|
-
object.position.x =
|
|
1927
|
-
|
|
1926
|
+
object.position.x =
|
|
1927
|
+
element.x + rawAnchorOffsetX - rotatedAnchorX + micro.x;
|
|
1928
|
+
object.position.y =
|
|
1929
|
+
element.y + rawAnchorOffsetY - rotatedAnchorY + micro.y;
|
|
1928
1930
|
}
|
|
1929
1931
|
object.scale.x = width;
|
|
1930
1932
|
object.scale.y = height;
|