@micromag/screen-image 0.2.407 → 0.2.408
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 +2 -1
- package/lib/index.js +2 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -105,6 +105,7 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
105
105
|
isCapture = _useScreenRenderConte.isCapture;
|
|
106
106
|
|
|
107
107
|
var backgroundPlaying = current && (isView || isEdit);
|
|
108
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
108
109
|
var hasImage = image !== null;
|
|
109
110
|
var hasTitle = isTextFilled(title);
|
|
110
111
|
var hasText = isTextFilled(text);
|
|
@@ -279,7 +280,7 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
279
280
|
width: width,
|
|
280
281
|
height: height,
|
|
281
282
|
playing: backgroundPlaying,
|
|
282
|
-
shouldLoad:
|
|
283
|
+
shouldLoad: backgroundShouldLoad
|
|
283
284
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
284
285
|
width: width,
|
|
285
286
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -127,6 +127,7 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
127
127
|
isCapture = _useScreenRenderConte.isCapture;
|
|
128
128
|
|
|
129
129
|
var backgroundPlaying = current && (isView || isEdit);
|
|
130
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
130
131
|
var hasImage = image !== null;
|
|
131
132
|
var hasTitle = utils.isTextFilled(title);
|
|
132
133
|
var hasText = utils.isTextFilled(text);
|
|
@@ -301,7 +302,7 @@ var ImageScreen = function ImageScreen(_ref) {
|
|
|
301
302
|
width: width,
|
|
302
303
|
height: height,
|
|
303
304
|
playing: backgroundPlaying,
|
|
304
|
-
shouldLoad:
|
|
305
|
+
shouldLoad: backgroundShouldLoad
|
|
305
306
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
306
307
|
width: width,
|
|
307
308
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-image",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.408",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "4bc2ba99622adef74bd0da42cb52d1a575c1a544"
|
|
71
71
|
}
|