microboard-ui-temp 0.1.9 → 0.1.11
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 +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -255983,7 +255983,7 @@ class Deck extends BaseItem {
|
|
|
255983
255983
|
cachedCanvas = null;
|
|
255984
255984
|
isCacheDirty = true;
|
|
255985
255985
|
enableResize = false;
|
|
255986
|
-
path =
|
|
255986
|
+
path = null;
|
|
255987
255987
|
constructor(board, id = "") {
|
|
255988
255988
|
super(board, id, defaultDeckData, true);
|
|
255989
255989
|
this.index.getUnderPoint = () => [];
|
|
@@ -256086,7 +256086,7 @@ class Deck extends BaseItem {
|
|
|
256086
256086
|
updateMbr() {
|
|
256087
256087
|
const { translateX, translateY } = this.transformation.matrix;
|
|
256088
256088
|
const items = this.index.list();
|
|
256089
|
-
const itemsMbr = items[0]
|
|
256089
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
256090
256090
|
this.left = translateX;
|
|
256091
256091
|
this.top = translateY;
|
|
256092
256092
|
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
@@ -256109,7 +256109,7 @@ class Deck extends BaseItem {
|
|
|
256109
256109
|
const ctx = context.ctx;
|
|
256110
256110
|
if (this.isCacheDirty || !this.cachedCanvas) {
|
|
256111
256111
|
this.updateCache(context);
|
|
256112
|
-
this.path
|
|
256112
|
+
this.path?.render(context);
|
|
256113
256113
|
}
|
|
256114
256114
|
if (this.cachedCanvas && this.cachedCanvas.width && this.cachedCanvas.height) {
|
|
256115
256115
|
ctx.save();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microboard-ui-temp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
52
52
|
"js-cookie": "^3.0.5",
|
|
53
53
|
"jwt-decode": "^4.0.0",
|
|
54
|
-
"microboard-temp": "^0.4.
|
|
54
|
+
"microboard-temp": "^0.4.106",
|
|
55
55
|
"nanoid": "^5.1.5",
|
|
56
56
|
"prop-types": "^15.8.1",
|
|
57
57
|
"react-hot-toast": "2.4.1",
|