microboard-temp 0.4.104 → 0.4.106
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/cjs/browser.js
CHANGED
|
@@ -47951,7 +47951,7 @@ class Deck extends BaseItem {
|
|
|
47951
47951
|
cachedCanvas = null;
|
|
47952
47952
|
isCacheDirty = true;
|
|
47953
47953
|
enableResize = false;
|
|
47954
|
-
path =
|
|
47954
|
+
path = null;
|
|
47955
47955
|
constructor(board, id = "") {
|
|
47956
47956
|
super(board, id, defaultDeckData, true);
|
|
47957
47957
|
this.index.getUnderPoint = () => [];
|
|
@@ -48054,7 +48054,7 @@ class Deck extends BaseItem {
|
|
|
48054
48054
|
updateMbr() {
|
|
48055
48055
|
const { translateX, translateY } = this.transformation.matrix;
|
|
48056
48056
|
const items = this.index.list();
|
|
48057
|
-
const itemsMbr = items[0]
|
|
48057
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
48058
48058
|
this.left = translateX;
|
|
48059
48059
|
this.top = translateY;
|
|
48060
48060
|
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
@@ -48077,7 +48077,7 @@ class Deck extends BaseItem {
|
|
|
48077
48077
|
const ctx = context.ctx;
|
|
48078
48078
|
if (this.isCacheDirty || !this.cachedCanvas) {
|
|
48079
48079
|
this.updateCache(context);
|
|
48080
|
-
this.path
|
|
48080
|
+
this.path?.render(context);
|
|
48081
48081
|
}
|
|
48082
48082
|
if (this.cachedCanvas && this.cachedCanvas.width && this.cachedCanvas.height) {
|
|
48083
48083
|
ctx.save();
|
package/dist/cjs/index.js
CHANGED
|
@@ -47951,7 +47951,7 @@ class Deck extends BaseItem {
|
|
|
47951
47951
|
cachedCanvas = null;
|
|
47952
47952
|
isCacheDirty = true;
|
|
47953
47953
|
enableResize = false;
|
|
47954
|
-
path =
|
|
47954
|
+
path = null;
|
|
47955
47955
|
constructor(board, id = "") {
|
|
47956
47956
|
super(board, id, defaultDeckData, true);
|
|
47957
47957
|
this.index.getUnderPoint = () => [];
|
|
@@ -48054,7 +48054,7 @@ class Deck extends BaseItem {
|
|
|
48054
48054
|
updateMbr() {
|
|
48055
48055
|
const { translateX, translateY } = this.transformation.matrix;
|
|
48056
48056
|
const items = this.index.list();
|
|
48057
|
-
const itemsMbr = items[0]
|
|
48057
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
48058
48058
|
this.left = translateX;
|
|
48059
48059
|
this.top = translateY;
|
|
48060
48060
|
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
@@ -48077,7 +48077,7 @@ class Deck extends BaseItem {
|
|
|
48077
48077
|
const ctx = context.ctx;
|
|
48078
48078
|
if (this.isCacheDirty || !this.cachedCanvas) {
|
|
48079
48079
|
this.updateCache(context);
|
|
48080
|
-
this.path
|
|
48080
|
+
this.path?.render(context);
|
|
48081
48081
|
}
|
|
48082
48082
|
if (this.cachedCanvas && this.cachedCanvas.width && this.cachedCanvas.height) {
|
|
48083
48083
|
ctx.save();
|
package/dist/cjs/node.js
CHANGED
|
@@ -50424,7 +50424,7 @@ class Deck extends BaseItem {
|
|
|
50424
50424
|
cachedCanvas = null;
|
|
50425
50425
|
isCacheDirty = true;
|
|
50426
50426
|
enableResize = false;
|
|
50427
|
-
path =
|
|
50427
|
+
path = null;
|
|
50428
50428
|
constructor(board, id = "") {
|
|
50429
50429
|
super(board, id, defaultDeckData, true);
|
|
50430
50430
|
this.index.getUnderPoint = () => [];
|
|
@@ -50527,7 +50527,7 @@ class Deck extends BaseItem {
|
|
|
50527
50527
|
updateMbr() {
|
|
50528
50528
|
const { translateX, translateY } = this.transformation.matrix;
|
|
50529
50529
|
const items = this.index.list();
|
|
50530
|
-
const itemsMbr = items[0]
|
|
50530
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
50531
50531
|
this.left = translateX;
|
|
50532
50532
|
this.top = translateY;
|
|
50533
50533
|
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
@@ -50550,7 +50550,7 @@ class Deck extends BaseItem {
|
|
|
50550
50550
|
const ctx = context.ctx;
|
|
50551
50551
|
if (this.isCacheDirty || !this.cachedCanvas) {
|
|
50552
50552
|
this.updateCache(context);
|
|
50553
|
-
this.path
|
|
50553
|
+
this.path?.render(context);
|
|
50554
50554
|
}
|
|
50555
50555
|
if (this.cachedCanvas && this.cachedCanvas.width && this.cachedCanvas.height) {
|
|
50556
50556
|
ctx.save();
|
package/dist/esm/browser.js
CHANGED
|
@@ -47800,7 +47800,7 @@ class Deck extends BaseItem {
|
|
|
47800
47800
|
cachedCanvas = null;
|
|
47801
47801
|
isCacheDirty = true;
|
|
47802
47802
|
enableResize = false;
|
|
47803
|
-
path =
|
|
47803
|
+
path = null;
|
|
47804
47804
|
constructor(board, id = "") {
|
|
47805
47805
|
super(board, id, defaultDeckData, true);
|
|
47806
47806
|
this.index.getUnderPoint = () => [];
|
|
@@ -47903,7 +47903,7 @@ class Deck extends BaseItem {
|
|
|
47903
47903
|
updateMbr() {
|
|
47904
47904
|
const { translateX, translateY } = this.transformation.matrix;
|
|
47905
47905
|
const items = this.index.list();
|
|
47906
|
-
const itemsMbr = items[0]
|
|
47906
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
47907
47907
|
this.left = translateX;
|
|
47908
47908
|
this.top = translateY;
|
|
47909
47909
|
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
@@ -47926,7 +47926,7 @@ class Deck extends BaseItem {
|
|
|
47926
47926
|
const ctx = context.ctx;
|
|
47927
47927
|
if (this.isCacheDirty || !this.cachedCanvas) {
|
|
47928
47928
|
this.updateCache(context);
|
|
47929
|
-
this.path
|
|
47929
|
+
this.path?.render(context);
|
|
47930
47930
|
}
|
|
47931
47931
|
if (this.cachedCanvas && this.cachedCanvas.width && this.cachedCanvas.height) {
|
|
47932
47932
|
ctx.save();
|
package/dist/esm/index.js
CHANGED
|
@@ -47793,7 +47793,7 @@ class Deck extends BaseItem {
|
|
|
47793
47793
|
cachedCanvas = null;
|
|
47794
47794
|
isCacheDirty = true;
|
|
47795
47795
|
enableResize = false;
|
|
47796
|
-
path =
|
|
47796
|
+
path = null;
|
|
47797
47797
|
constructor(board, id = "") {
|
|
47798
47798
|
super(board, id, defaultDeckData, true);
|
|
47799
47799
|
this.index.getUnderPoint = () => [];
|
|
@@ -47896,7 +47896,7 @@ class Deck extends BaseItem {
|
|
|
47896
47896
|
updateMbr() {
|
|
47897
47897
|
const { translateX, translateY } = this.transformation.matrix;
|
|
47898
47898
|
const items = this.index.list();
|
|
47899
|
-
const itemsMbr = items[0]
|
|
47899
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
47900
47900
|
this.left = translateX;
|
|
47901
47901
|
this.top = translateY;
|
|
47902
47902
|
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
@@ -47919,7 +47919,7 @@ class Deck extends BaseItem {
|
|
|
47919
47919
|
const ctx = context.ctx;
|
|
47920
47920
|
if (this.isCacheDirty || !this.cachedCanvas) {
|
|
47921
47921
|
this.updateCache(context);
|
|
47922
|
-
this.path
|
|
47922
|
+
this.path?.render(context);
|
|
47923
47923
|
}
|
|
47924
47924
|
if (this.cachedCanvas && this.cachedCanvas.width && this.cachedCanvas.height) {
|
|
47925
47925
|
ctx.save();
|
package/dist/esm/node.js
CHANGED
|
@@ -50261,7 +50261,7 @@ class Deck extends BaseItem {
|
|
|
50261
50261
|
cachedCanvas = null;
|
|
50262
50262
|
isCacheDirty = true;
|
|
50263
50263
|
enableResize = false;
|
|
50264
|
-
path =
|
|
50264
|
+
path = null;
|
|
50265
50265
|
constructor(board, id = "") {
|
|
50266
50266
|
super(board, id, defaultDeckData, true);
|
|
50267
50267
|
this.index.getUnderPoint = () => [];
|
|
@@ -50364,7 +50364,7 @@ class Deck extends BaseItem {
|
|
|
50364
50364
|
updateMbr() {
|
|
50365
50365
|
const { translateX, translateY } = this.transformation.matrix;
|
|
50366
50366
|
const items = this.index.list();
|
|
50367
|
-
const itemsMbr = items[0]
|
|
50367
|
+
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
50368
50368
|
this.left = translateX;
|
|
50369
50369
|
this.top = translateY;
|
|
50370
50370
|
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
@@ -50387,7 +50387,7 @@ class Deck extends BaseItem {
|
|
|
50387
50387
|
const ctx = context.ctx;
|
|
50388
50388
|
if (this.isCacheDirty || !this.cachedCanvas) {
|
|
50389
50389
|
this.updateCache(context);
|
|
50390
|
-
this.path
|
|
50390
|
+
this.path?.render(context);
|
|
50391
50391
|
}
|
|
50392
50392
|
if (this.cachedCanvas && this.cachedCanvas.width && this.cachedCanvas.height) {
|
|
50393
50393
|
ctx.save();
|
|
@@ -12,7 +12,7 @@ export declare class Deck extends BaseItem {
|
|
|
12
12
|
private cachedCanvas;
|
|
13
13
|
private isCacheDirty;
|
|
14
14
|
enableResize: boolean;
|
|
15
|
-
path: Path;
|
|
15
|
+
path: Path | null;
|
|
16
16
|
constructor(board: Board, id?: string);
|
|
17
17
|
applyAddChildren(childIds: string[]): void;
|
|
18
18
|
applyRemoveChildren(childIds: string[]): void;
|