@micromag/viewer 0.2.405 → 0.2.409
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/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +8 -8
package/es/index.js
CHANGED
|
@@ -1395,7 +1395,7 @@ function Viewer(_ref) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
1397
|
var key = "screen-viewer-".concat(scr.id || '', "-").concat(i + 1);
|
|
1398
|
-
var screenTransform = landscape ? "translateX(calc(".concat((screenWidth + landscapeScreenMargin) * (i - screenIndex), "px - 50%)) scale(").concat(current ? 1 : 0.9, ")") : "translateX(".concat(current ? 0 :
|
|
1398
|
+
var screenTransform = landscape ? "translateX(calc(".concat((screenWidth + landscapeScreenMargin) * (i - screenIndex), "px - 50%)) scale(").concat(current ? 1 : 0.9, ")") : "translateX(".concat(current ? 0 : '100%', ")");
|
|
1399
1399
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
1400
1400
|
key: key
|
|
1401
1401
|
}, current && screenIndex > 0 ? /*#__PURE__*/React.createElement("button", {
|
package/lib/index.js
CHANGED
|
@@ -1412,7 +1412,7 @@ function Viewer(_ref) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
});
|
|
1414
1414
|
var key = "screen-viewer-".concat(scr.id || '', "-").concat(i + 1);
|
|
1415
|
-
var screenTransform = landscape ? "translateX(calc(".concat((screenWidth + landscapeScreenMargin) * (i - screenIndex), "px - 50%)) scale(").concat(current ? 1 : 0.9, ")") : "translateX(".concat(current ? 0 :
|
|
1415
|
+
var screenTransform = landscape ? "translateX(calc(".concat((screenWidth + landscapeScreenMargin) * (i - screenIndex), "px - 50%)) scale(").concat(current ? 1 : 0.9, ")") : "translateX(".concat(current ? 0 : '100%', ")");
|
|
1416
1416
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
1417
1417
|
key: key
|
|
1418
1418
|
}, current && screenIndex > 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.409",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
60
60
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
61
61
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
62
|
-
"@micromag/core": "^0.2.
|
|
63
|
-
"@micromag/element-scroll": "^0.2.
|
|
64
|
-
"@micromag/elements": "^0.2.
|
|
65
|
-
"@micromag/fields": "^0.2.
|
|
66
|
-
"@micromag/intl": "^0.2.
|
|
67
|
-
"@micromag/screens": "^0.2.
|
|
62
|
+
"@micromag/core": "^0.2.409",
|
|
63
|
+
"@micromag/element-scroll": "^0.2.409",
|
|
64
|
+
"@micromag/elements": "^0.2.409",
|
|
65
|
+
"@micromag/fields": "^0.2.409",
|
|
66
|
+
"@micromag/intl": "^0.2.409",
|
|
67
|
+
"@micromag/screens": "^0.2.409",
|
|
68
68
|
"@react-spring/core": "^9.1.1",
|
|
69
69
|
"@react-spring/web": "^9.1.1",
|
|
70
70
|
"@use-gesture/react": "^10.2.4",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "4c16c3bb63644d1bd5b7d50086098337317ee3f6"
|
|
84
84
|
}
|