microboard-ui-temp 0.1.133 → 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 +9 -6
- package/dist/spa.css +6 -0
- package/dist/spa.js +9 -6
- package/package.json +2 -2
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
|
}
|
|
@@ -375393,18 +375397,17 @@ function SetBackgroundImage({ rounded = "none" }) {
|
|
|
375393
375397
|
const account = useAccount2();
|
|
375394
375398
|
const inputRef = import_react294.useRef(null);
|
|
375395
375399
|
const { t: t10 } = useTranslation();
|
|
375400
|
+
const single = board.selection.items.getSingle();
|
|
375401
|
+
if (!single || !(single instanceof Screen)) {
|
|
375402
|
+
return null;
|
|
375403
|
+
}
|
|
375396
375404
|
const handleClick = () => {
|
|
375397
375405
|
const input2 = inputRef.current;
|
|
375398
375406
|
if (!input2) {
|
|
375399
375407
|
return;
|
|
375400
375408
|
}
|
|
375401
|
-
board.tools.cancel();
|
|
375402
375409
|
input2.click();
|
|
375403
375410
|
};
|
|
375404
|
-
const single = board.selection.items.getSingle();
|
|
375405
|
-
if (!single || !(single instanceof Screen)) {
|
|
375406
|
-
return null;
|
|
375407
|
-
}
|
|
375408
375411
|
const handleChange = async (ev) => {
|
|
375409
375412
|
const input2 = ev.target;
|
|
375410
375413
|
const file = input2.files?.[0];
|
package/dist/spa.css
CHANGED
|
@@ -2871,6 +2871,12 @@ a.link_jFMnzg {
|
|
|
2871
2871
|
background-color: #f7f7f8;
|
|
2872
2872
|
}
|
|
2873
2873
|
|
|
2874
|
+
.quaternary_Lhh5GA {
|
|
2875
|
+
color: #fff;
|
|
2876
|
+
background-color: #924fe8;
|
|
2877
|
+
border: 1px solid #924fe8;
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2874
2880
|
.quaternary_Lhh5GA:hover {
|
|
2875
2881
|
background-color: #b799f5;
|
|
2876
2882
|
border: 1px solid #924fe8;
|
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
|
}
|
|
@@ -375393,18 +375397,17 @@ function SetBackgroundImage({ rounded = "none" }) {
|
|
|
375393
375397
|
const account = useAccount2();
|
|
375394
375398
|
const inputRef = import_react294.useRef(null);
|
|
375395
375399
|
const { t: t10 } = useTranslation();
|
|
375400
|
+
const single = board.selection.items.getSingle();
|
|
375401
|
+
if (!single || !(single instanceof Screen)) {
|
|
375402
|
+
return null;
|
|
375403
|
+
}
|
|
375396
375404
|
const handleClick = () => {
|
|
375397
375405
|
const input2 = inputRef.current;
|
|
375398
375406
|
if (!input2) {
|
|
375399
375407
|
return;
|
|
375400
375408
|
}
|
|
375401
|
-
board.tools.cancel();
|
|
375402
375409
|
input2.click();
|
|
375403
375410
|
};
|
|
375404
|
-
const single = board.selection.items.getSingle();
|
|
375405
|
-
if (!single || !(single instanceof Screen)) {
|
|
375406
|
-
return null;
|
|
375407
|
-
}
|
|
375408
375411
|
const handleChange = async (ev) => {
|
|
375409
375412
|
const input2 = ev.target;
|
|
375410
375413
|
const file = input2.files?.[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microboard-ui-temp",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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",
|