@rpg-engine/long-bow 0.5.4 → 0.5.6

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.
@@ -95,6 +95,7 @@ var ButtonContainer = /*#__PURE__*/styled.button.withConfig({
95
95
  })(["height:45px;font-size:", ";"], uiFonts.size.small);
96
96
 
97
97
  var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
98
+ var _atlasJSON$frames, _atlasJSON$frames2;
98
99
  var atlasJSON = _ref.atlasJSON,
99
100
  atlasIMG = _ref.atlasIMG,
100
101
  spriteKey = _ref.spriteKey,
@@ -116,7 +117,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
116
117
  borderRadius = _ref.borderRadius;
117
118
  //! 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).
118
119
  //!Due to React's limitations, we cannot import it from the public folder directly!
119
- var spriteData = atlasJSON.frames[spriteKey] || atlasJSON.frames['others/no-image.png'];
120
+ 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']);
120
121
  if (!spriteData) throw new Error("Sprite " + spriteKey + " not found in atlas!");
121
122
  return React.createElement(Container, {
122
123
  width: width,
@@ -15234,7 +15235,7 @@ var ArrowContainer = /*#__PURE__*/styled.span.withConfig({
15234
15235
  var BackgroundImage = /*#__PURE__*/styled.div.withConfig({
15235
15236
  displayName: "ImageCarousel__BackgroundImage",
15236
15237
  componentId: "sc-jl6f8-2"
15237
- })(["background-image:url(", ");background-repeat:no-repeat;background-attachment:fixed;background-size:cover;width:100%;height:", ";"], function (props) {
15238
+ })(["background-image:url(", ");background-repeat:no-repeat;background-attachment:fixed;background-size:contain;background-position:center;width:100%;height:", ";"], function (props) {
15238
15239
  return props.imagePath;
15239
15240
  }, function (props) {
15240
15241
  return props.isTextFixed ? '80%' : '100%';