microboard-ui-temp 0.1.134 → 0.1.135

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/index.js CHANGED
@@ -276608,7 +276608,7 @@ class Screen extends BaseItem {
276608
276608
  const ctx = context.ctx;
276609
276609
  ctx.save();
276610
276610
  this.transformation.matrix.applyToContext(ctx);
276611
- ctx.drawImage(this.backgroundImage, 0, 0);
276611
+ ctx.drawImage(this.backgroundImage, 0, 0, this.getWidth(), this.getHeight());
276612
276612
  ctx.restore();
276613
276613
  }
276614
276614
  this.path.render(context);
@@ -276622,6 +276622,10 @@ class Screen extends BaseItem {
276622
276622
  div.style.borderColor = this.borderColor;
276623
276623
  div.style.borderWidth = `${this.borderWidth}px`;
276624
276624
  div.style.borderStyle = this.borderStyle;
276625
+ if (this.backgroundUrl) {
276626
+ div.style.backgroundSize = "cover";
276627
+ div.style.backgroundImage = `url(${this.backgroundUrl})`;
276628
+ }
276625
276629
  return div;
276626
276630
  }
276627
276631
  }
package/dist/spa.js CHANGED
@@ -276608,7 +276608,7 @@ class Screen extends BaseItem {
276608
276608
  const ctx = context.ctx;
276609
276609
  ctx.save();
276610
276610
  this.transformation.matrix.applyToContext(ctx);
276611
- ctx.drawImage(this.backgroundImage, 0, 0);
276611
+ ctx.drawImage(this.backgroundImage, 0, 0, this.getWidth(), this.getHeight());
276612
276612
  ctx.restore();
276613
276613
  }
276614
276614
  this.path.render(context);
@@ -276622,6 +276622,10 @@ class Screen extends BaseItem {
276622
276622
  div.style.borderColor = this.borderColor;
276623
276623
  div.style.borderWidth = `${this.borderWidth}px`;
276624
276624
  div.style.borderStyle = this.borderStyle;
276625
+ if (this.backgroundUrl) {
276626
+ div.style.backgroundSize = "cover";
276627
+ div.style.backgroundImage = `url(${this.backgroundUrl})`;
276628
+ }
276625
276629
  return div;
276626
276630
  }
276627
276631
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.134",
3
+ "version": "0.1.135",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -66,7 +66,7 @@
66
66
  "i18next-browser-languagedetector": "^8.2.0",
67
67
  "js-cookie": "^3.0.5",
68
68
  "jwt-decode": "^4.0.0",
69
- "microboard-temp": "^0.5.57",
69
+ "microboard-temp": "^0.5.59",
70
70
  "nanoid": "^5.1.5",
71
71
  "prop-types": "^15.8.1",
72
72
  "react-hot-toast": "2.4.1",