@rpg-engine/long-bow 0.5.4 → 0.5.5
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/dist/long-bow.cjs.development.js +3 -2
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +3 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ImageCarousel/ImageCarousel.tsx +3 -1
- package/src/components/shared/SpriteFromAtlas.tsx +2 -1
|
@@ -101,6 +101,7 @@ var ButtonContainer = /*#__PURE__*/styled.button.withConfig({
|
|
|
101
101
|
})(["height:45px;font-size:", ";"], uiFonts.size.small);
|
|
102
102
|
|
|
103
103
|
var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
104
|
+
var _atlasJSON$frames, _atlasJSON$frames2;
|
|
104
105
|
var atlasJSON = _ref.atlasJSON,
|
|
105
106
|
atlasIMG = _ref.atlasIMG,
|
|
106
107
|
spriteKey = _ref.spriteKey,
|
|
@@ -122,7 +123,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
|
122
123
|
borderRadius = _ref.borderRadius;
|
|
123
124
|
//! If an item is not showing, remember that you MUST run yarn atlas:copy everytime you add a new item to the atlas (it will sync our public folder atlas with src/atlas).
|
|
124
125
|
//!Due to React's limitations, we cannot import it from the public folder directly!
|
|
125
|
-
var spriteData = atlasJSON.frames[spriteKey] || atlasJSON.frames['others/no-image.png'];
|
|
126
|
+
var spriteData = (atlasJSON == null ? void 0 : (_atlasJSON$frames = atlasJSON.frames) == null ? void 0 : _atlasJSON$frames[spriteKey]) || (atlasJSON == null ? void 0 : (_atlasJSON$frames2 = atlasJSON.frames) == null ? void 0 : _atlasJSON$frames2['others/no-image.png']);
|
|
126
127
|
if (!spriteData) throw new Error("Sprite " + spriteKey + " not found in atlas!");
|
|
127
128
|
return React__default.createElement(Container, {
|
|
128
129
|
width: width,
|
|
@@ -15237,7 +15238,7 @@ var ArrowContainer = /*#__PURE__*/styled.span.withConfig({
|
|
|
15237
15238
|
var BackgroundImage = /*#__PURE__*/styled.div.withConfig({
|
|
15238
15239
|
displayName: "ImageCarousel__BackgroundImage",
|
|
15239
15240
|
componentId: "sc-jl6f8-2"
|
|
15240
|
-
})(["background-image:url(", ");background-repeat:no-repeat;background-attachment:fixed;background-size:
|
|
15241
|
+
})(["background-image:url(", ");background-repeat:no-repeat;background-attachment:fixed;background-size:contain;background-position:center;width:100%;height:", ";"], function (props) {
|
|
15241
15242
|
return props.imagePath;
|
|
15242
15243
|
}, function (props) {
|
|
15243
15244
|
return props.isTextFixed ? '80%' : '100%';
|