@gamelearn/arcade-components 0.17.1 → 0.17.2

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.
@@ -55,6 +55,7 @@ var Poster = function Poster(_ref) {
55
55
  setLoaded = _useState2[1];
56
56
 
57
57
  var object = (0, _react.useRef)();
58
+ var imageRatio = texture.image.height / texture.image.width;
58
59
  (0, _react.useEffect)(function () {
59
60
  setLoaded(true);
60
61
  }, []);
@@ -62,7 +63,7 @@ var Poster = function Poster(_ref) {
62
63
  ref: object,
63
64
  position: position,
64
65
  rotation: rotation,
65
- scale: usingScale
66
+ scale: [usingScale[0] / imageRatio, usingScale[1], [2]]
66
67
  }, props), /*#__PURE__*/_react.default.createElement("meshBasicMaterial", {
67
68
  color: "white",
68
69
  alphaTest: 0.5,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "license": "Gamelearn",
4
- "version": "0.17.1",
4
+ "version": "0.17.2",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",