@micromag/screen-map 0.2.405 → 0.2.406

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 CHANGED
@@ -40,6 +40,7 @@ var propTypes = {
40
40
  withMarkerImages: PropTypes.bool,
41
41
  background: PropTypes$1.backgroundElement,
42
42
  current: PropTypes.bool,
43
+ active: PropTypes.bool,
43
44
  transitions: PropTypes$1.transitions,
44
45
  onEnableInteraction: PropTypes.func,
45
46
  onDisableInteraction: PropTypes.func,
@@ -57,6 +58,7 @@ var defaultProps = {
57
58
  withMarkerImages: false,
58
59
  background: null,
59
60
  current: true,
61
+ active: true,
60
62
  transitions: null,
61
63
  onEnableInteraction: null,
62
64
  onDisableInteraction: null,
@@ -77,6 +79,7 @@ var MapScreen = function MapScreen(_ref) {
77
79
  withMarkerImages = _ref.withMarkerImages,
78
80
  background = _ref.background,
79
81
  current = _ref.current,
82
+ active = _ref.active,
80
83
  transitions = _ref.transitions,
81
84
  onEnableInteraction = _ref.onEnableInteraction,
82
85
  onDisableInteraction = _ref.onDisableInteraction,
@@ -470,7 +473,8 @@ var MapScreen = function MapScreen(_ref) {
470
473
  },
471
474
  width: width,
472
475
  height: height,
473
- playing: backgroundPlaying
476
+ playing: backgroundPlaying,
477
+ shouldLoad: current || active
474
478
  }) : null, /*#__PURE__*/React.createElement(Container, {
475
479
  width: width,
476
480
  height: height
package/lib/index.js CHANGED
@@ -62,6 +62,7 @@ var propTypes = {
62
62
  withMarkerImages: PropTypes__default["default"].bool,
63
63
  background: core.PropTypes.backgroundElement,
64
64
  current: PropTypes__default["default"].bool,
65
+ active: PropTypes__default["default"].bool,
65
66
  transitions: core.PropTypes.transitions,
66
67
  onEnableInteraction: PropTypes__default["default"].func,
67
68
  onDisableInteraction: PropTypes__default["default"].func,
@@ -79,6 +80,7 @@ var defaultProps = {
79
80
  withMarkerImages: false,
80
81
  background: null,
81
82
  current: true,
83
+ active: true,
82
84
  transitions: null,
83
85
  onEnableInteraction: null,
84
86
  onDisableInteraction: null,
@@ -99,6 +101,7 @@ var MapScreen = function MapScreen(_ref) {
99
101
  withMarkerImages = _ref.withMarkerImages,
100
102
  background = _ref.background,
101
103
  current = _ref.current,
104
+ active = _ref.active,
102
105
  transitions = _ref.transitions,
103
106
  onEnableInteraction = _ref.onEnableInteraction,
104
107
  onDisableInteraction = _ref.onDisableInteraction,
@@ -492,7 +495,8 @@ var MapScreen = function MapScreen(_ref) {
492
495
  },
493
496
  width: width,
494
497
  height: height,
495
- playing: backgroundPlaying
498
+ playing: backgroundPlaying,
499
+ shouldLoad: current || active
496
500
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
497
501
  width: width,
498
502
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-map",
3
- "version": "0.2.405",
3
+ "version": "0.2.406",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -50,12 +50,12 @@
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
52
  "@micromag/core": "^0.2.405",
53
- "@micromag/element-background": "^0.2.405",
53
+ "@micromag/element-background": "^0.2.406",
54
54
  "@micromag/element-button": "^0.2.405",
55
55
  "@micromag/element-call-to-action": "^0.2.405",
56
56
  "@micromag/element-container": "^0.2.405",
57
57
  "@micromag/element-heading": "^0.2.405",
58
- "@micromag/element-image": "^0.2.405",
58
+ "@micromag/element-image": "^0.2.406",
59
59
  "@micromag/element-map": "^0.2.405",
60
60
  "@micromag/element-scroll": "^0.2.405",
61
61
  "@micromag/element-text": "^0.2.405",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "e3d172d92d78222d5307cc1513fee7eef9f28402"
72
+ "gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
73
73
  }