@micromag/core 0.2.286 → 0.2.287
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/es/hooks.js +1 -1
- package/lib/hooks.js +1 -1
- package/package.json +2 -2
package/es/hooks.js
CHANGED
|
@@ -1095,7 +1095,7 @@ var useScreenSizeFromElement = function useScreenSizeFromElement() {
|
|
|
1095
1095
|
finalHeight = Math.round(fullHeight * 3 / 4);
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
|
-
finalWidth = finalHeight * 4 / 6;
|
|
1098
|
+
finalWidth = Math.round(finalHeight * 4 / 6);
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
1101
|
if (finalWidth % 2 === 1) {
|
package/lib/hooks.js
CHANGED
|
@@ -1133,7 +1133,7 @@ var useScreenSizeFromElement = function useScreenSizeFromElement() {
|
|
|
1133
1133
|
finalHeight = Math.round(fullHeight * 3 / 4);
|
|
1134
1134
|
}
|
|
1135
1135
|
|
|
1136
|
-
finalWidth = finalHeight * 4 / 6;
|
|
1136
|
+
finalWidth = Math.round(finalHeight * 4 / 6);
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
1139
|
if (finalWidth % 2 === 1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.287",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"publishConfig": {
|
|
117
117
|
"access": "public"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "cd683d40baf88a5d02714cd9cdc7a45575bd2401"
|
|
120
120
|
}
|