@micromag/screen-map 0.3.67 → 0.3.71
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 +6 -2
- package/lib/index.js +6 -2
- package/package.json +13 -13
package/es/index.js
CHANGED
|
@@ -114,7 +114,8 @@ function MapScreen(_ref) {
|
|
|
114
114
|
|
|
115
115
|
var _useScreenSize = useScreenSize(),
|
|
116
116
|
width = _useScreenSize.width,
|
|
117
|
-
height = _useScreenSize.height
|
|
117
|
+
height = _useScreenSize.height,
|
|
118
|
+
resolution = _useScreenSize.resolution;
|
|
118
119
|
|
|
119
120
|
var _ref2 = background || {},
|
|
120
121
|
backgroundColor = _ref2.color;
|
|
@@ -385,6 +386,7 @@ function MapScreen(_ref) {
|
|
|
385
386
|
},
|
|
386
387
|
width: width,
|
|
387
388
|
height: height,
|
|
389
|
+
resolution: resolution,
|
|
388
390
|
playing: backgroundPlaying,
|
|
389
391
|
shouldLoad: backgroundShouldLoad
|
|
390
392
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
@@ -408,6 +410,7 @@ function MapScreen(_ref) {
|
|
|
408
410
|
} : null,
|
|
409
411
|
width: width,
|
|
410
412
|
height: height,
|
|
413
|
+
resolution: resolution,
|
|
411
414
|
objectFit: {
|
|
412
415
|
fit: 'cover'
|
|
413
416
|
}
|
|
@@ -456,7 +459,8 @@ function MapScreen(_ref) {
|
|
|
456
459
|
}, hasMarkerImage ? /*#__PURE__*/React.createElement(ImageElement, {
|
|
457
460
|
className: styles.markerImage,
|
|
458
461
|
media: markerImage,
|
|
459
|
-
width: markerOverContentInnerWidth
|
|
462
|
+
width: markerOverContentInnerWidth,
|
|
463
|
+
resolution: resolution
|
|
460
464
|
}) : null, hasMarkerTitle ? /*#__PURE__*/React.createElement(Heading, Object.assign({
|
|
461
465
|
className: styles.markerTitle
|
|
462
466
|
}, markerTitle)) : null, hasMarkerSubtitle ? /*#__PURE__*/React.createElement(Heading, Object.assign({
|
package/lib/index.js
CHANGED
|
@@ -136,7 +136,8 @@ function MapScreen(_ref) {
|
|
|
136
136
|
|
|
137
137
|
var _useScreenSize = contexts.useScreenSize(),
|
|
138
138
|
width = _useScreenSize.width,
|
|
139
|
-
height = _useScreenSize.height
|
|
139
|
+
height = _useScreenSize.height,
|
|
140
|
+
resolution = _useScreenSize.resolution;
|
|
140
141
|
|
|
141
142
|
var _ref2 = background || {},
|
|
142
143
|
backgroundColor = _ref2.color;
|
|
@@ -407,6 +408,7 @@ function MapScreen(_ref) {
|
|
|
407
408
|
},
|
|
408
409
|
width: width,
|
|
409
410
|
height: height,
|
|
411
|
+
resolution: resolution,
|
|
410
412
|
playing: backgroundPlaying,
|
|
411
413
|
shouldLoad: backgroundShouldLoad
|
|
412
414
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
@@ -430,6 +432,7 @@ function MapScreen(_ref) {
|
|
|
430
432
|
} : null,
|
|
431
433
|
width: width,
|
|
432
434
|
height: height,
|
|
435
|
+
resolution: resolution,
|
|
433
436
|
objectFit: {
|
|
434
437
|
fit: 'cover'
|
|
435
438
|
}
|
|
@@ -478,7 +481,8 @@ function MapScreen(_ref) {
|
|
|
478
481
|
}, hasMarkerImage ? /*#__PURE__*/React__default["default"].createElement(ImageElement__default["default"], {
|
|
479
482
|
className: styles.markerImage,
|
|
480
483
|
media: markerImage,
|
|
481
|
-
width: markerOverContentInnerWidth
|
|
484
|
+
width: markerOverContentInnerWidth,
|
|
485
|
+
resolution: resolution
|
|
482
486
|
}) : null, hasMarkerTitle ? /*#__PURE__*/React__default["default"].createElement(Heading__default["default"], Object.assign({
|
|
483
487
|
className: styles.markerTitle
|
|
484
488
|
}, markerTitle)) : null, hasMarkerSubtitle ? /*#__PURE__*/React__default["default"].createElement(Heading__default["default"], Object.assign({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-map",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.71",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/element-background": "^0.3.
|
|
54
|
-
"@micromag/element-button": "^0.3.
|
|
55
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
56
|
-
"@micromag/element-container": "^0.3.
|
|
57
|
-
"@micromag/element-heading": "^0.3.
|
|
58
|
-
"@micromag/element-image": "^0.3.
|
|
59
|
-
"@micromag/element-map": "^0.3.
|
|
60
|
-
"@micromag/element-scroll": "^0.3.
|
|
61
|
-
"@micromag/element-text": "^0.3.
|
|
62
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.71",
|
|
53
|
+
"@micromag/element-background": "^0.3.71",
|
|
54
|
+
"@micromag/element-button": "^0.3.71",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.3.71",
|
|
56
|
+
"@micromag/element-container": "^0.3.71",
|
|
57
|
+
"@micromag/element-heading": "^0.3.71",
|
|
58
|
+
"@micromag/element-image": "^0.3.71",
|
|
59
|
+
"@micromag/element-map": "^0.3.71",
|
|
60
|
+
"@micromag/element-scroll": "^0.3.71",
|
|
61
|
+
"@micromag/element-text": "^0.3.71",
|
|
62
|
+
"@micromag/transforms": "^0.3.71",
|
|
63
63
|
"classnames": "^2.2.6",
|
|
64
64
|
"lodash": "^4.17.21",
|
|
65
65
|
"prop-types": "^15.7.2",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "50093d0adc731dfb58656015179c4ac0b1c6765f"
|
|
73
73
|
}
|