microboard-temp 0.5.48 → 0.5.50
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 +0 -4
- package/dist/cjs/index.js +0 -4
- package/dist/cjs/node.js +0 -4
- package/dist/esm/browser.js +0 -4
- package/dist/esm/index.js +0 -4
- package/dist/esm/node.js +0 -4
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -44004,9 +44004,6 @@ class AddFrame extends BoardTool {
|
|
|
44004
44004
|
this.initTransformation(width2 / 100, height2 / 100);
|
|
44005
44005
|
localStorage.setItem("lastFrameScale", JSON.stringify(this.frame.transformation.getScale()));
|
|
44006
44006
|
}
|
|
44007
|
-
const currMbr = this.frame.getMbr();
|
|
44008
|
-
const frameChildren = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board").filter((item) => this.frame.handleNesting(item));
|
|
44009
|
-
this.applyAddChildren(frameChildren);
|
|
44010
44007
|
if (this.shape !== "Custom") {
|
|
44011
44008
|
this.applyCanChangeRatio(false);
|
|
44012
44009
|
}
|
|
@@ -47986,7 +47983,6 @@ class Card extends BaseItem {
|
|
|
47986
47983
|
}
|
|
47987
47984
|
ctx.translate(centerX, centerY);
|
|
47988
47985
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47989
|
-
ctx.translate(-width2 / 2, -height3 / 2);
|
|
47990
47986
|
if (this.dimensions.width < this.dimensions.height) {
|
|
47991
47987
|
if (width2 > height3) {
|
|
47992
47988
|
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
package/dist/cjs/index.js
CHANGED
|
@@ -44004,9 +44004,6 @@ class AddFrame extends BoardTool {
|
|
|
44004
44004
|
this.initTransformation(width2 / 100, height2 / 100);
|
|
44005
44005
|
localStorage.setItem("lastFrameScale", JSON.stringify(this.frame.transformation.getScale()));
|
|
44006
44006
|
}
|
|
44007
|
-
const currMbr = this.frame.getMbr();
|
|
44008
|
-
const frameChildren = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board").filter((item) => this.frame.handleNesting(item));
|
|
44009
|
-
this.applyAddChildren(frameChildren);
|
|
44010
44007
|
if (this.shape !== "Custom") {
|
|
44011
44008
|
this.applyCanChangeRatio(false);
|
|
44012
44009
|
}
|
|
@@ -47986,7 +47983,6 @@ class Card extends BaseItem {
|
|
|
47986
47983
|
}
|
|
47987
47984
|
ctx.translate(centerX, centerY);
|
|
47988
47985
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47989
|
-
ctx.translate(-width2 / 2, -height3 / 2);
|
|
47990
47986
|
if (this.dimensions.width < this.dimensions.height) {
|
|
47991
47987
|
if (width2 > height3) {
|
|
47992
47988
|
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
package/dist/cjs/node.js
CHANGED
|
@@ -46477,9 +46477,6 @@ class AddFrame extends BoardTool {
|
|
|
46477
46477
|
this.initTransformation(width2 / 100, height2 / 100);
|
|
46478
46478
|
localStorage.setItem("lastFrameScale", JSON.stringify(this.frame.transformation.getScale()));
|
|
46479
46479
|
}
|
|
46480
|
-
const currMbr = this.frame.getMbr();
|
|
46481
|
-
const frameChildren = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board").filter((item) => this.frame.handleNesting(item));
|
|
46482
|
-
this.applyAddChildren(frameChildren);
|
|
46483
46480
|
if (this.shape !== "Custom") {
|
|
46484
46481
|
this.applyCanChangeRatio(false);
|
|
46485
46482
|
}
|
|
@@ -50459,7 +50456,6 @@ class Card extends BaseItem {
|
|
|
50459
50456
|
}
|
|
50460
50457
|
ctx.translate(centerX, centerY);
|
|
50461
50458
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50462
|
-
ctx.translate(-width2 / 2, -height3 / 2);
|
|
50463
50459
|
if (this.dimensions.width < this.dimensions.height) {
|
|
50464
50460
|
if (width2 > height3) {
|
|
50465
50461
|
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
package/dist/esm/browser.js
CHANGED
|
@@ -43850,9 +43850,6 @@ class AddFrame extends BoardTool {
|
|
|
43850
43850
|
this.initTransformation(width2 / 100, height2 / 100);
|
|
43851
43851
|
localStorage.setItem("lastFrameScale", JSON.stringify(this.frame.transformation.getScale()));
|
|
43852
43852
|
}
|
|
43853
|
-
const currMbr = this.frame.getMbr();
|
|
43854
|
-
const frameChildren = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board").filter((item) => this.frame.handleNesting(item));
|
|
43855
|
-
this.applyAddChildren(frameChildren);
|
|
43856
43853
|
if (this.shape !== "Custom") {
|
|
43857
43854
|
this.applyCanChangeRatio(false);
|
|
43858
43855
|
}
|
|
@@ -47832,7 +47829,6 @@ class Card extends BaseItem {
|
|
|
47832
47829
|
}
|
|
47833
47830
|
ctx.translate(centerX, centerY);
|
|
47834
47831
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47835
|
-
ctx.translate(-width2 / 2, -height3 / 2);
|
|
47836
47832
|
if (this.dimensions.width < this.dimensions.height) {
|
|
47837
47833
|
if (width2 > height3) {
|
|
47838
47834
|
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
package/dist/esm/index.js
CHANGED
|
@@ -43843,9 +43843,6 @@ class AddFrame extends BoardTool {
|
|
|
43843
43843
|
this.initTransformation(width2 / 100, height2 / 100);
|
|
43844
43844
|
localStorage.setItem("lastFrameScale", JSON.stringify(this.frame.transformation.getScale()));
|
|
43845
43845
|
}
|
|
43846
|
-
const currMbr = this.frame.getMbr();
|
|
43847
|
-
const frameChildren = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board").filter((item) => this.frame.handleNesting(item));
|
|
43848
|
-
this.applyAddChildren(frameChildren);
|
|
43849
43846
|
if (this.shape !== "Custom") {
|
|
43850
43847
|
this.applyCanChangeRatio(false);
|
|
43851
43848
|
}
|
|
@@ -47825,7 +47822,6 @@ class Card extends BaseItem {
|
|
|
47825
47822
|
}
|
|
47826
47823
|
ctx.translate(centerX, centerY);
|
|
47827
47824
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47828
|
-
ctx.translate(-width2 / 2, -height3 / 2);
|
|
47829
47825
|
if (this.dimensions.width < this.dimensions.height) {
|
|
47830
47826
|
if (width2 > height3) {
|
|
47831
47827
|
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
package/dist/esm/node.js
CHANGED
|
@@ -46311,9 +46311,6 @@ class AddFrame extends BoardTool {
|
|
|
46311
46311
|
this.initTransformation(width2 / 100, height2 / 100);
|
|
46312
46312
|
localStorage.setItem("lastFrameScale", JSON.stringify(this.frame.transformation.getScale()));
|
|
46313
46313
|
}
|
|
46314
|
-
const currMbr = this.frame.getMbr();
|
|
46315
|
-
const frameChildren = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board").filter((item) => this.frame.handleNesting(item));
|
|
46316
|
-
this.applyAddChildren(frameChildren);
|
|
46317
46314
|
if (this.shape !== "Custom") {
|
|
46318
46315
|
this.applyCanChangeRatio(false);
|
|
46319
46316
|
}
|
|
@@ -50293,7 +50290,6 @@ class Card extends BaseItem {
|
|
|
50293
50290
|
}
|
|
50294
50291
|
ctx.translate(centerX, centerY);
|
|
50295
50292
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50296
|
-
ctx.translate(-width2 / 2, -height3 / 2);
|
|
50297
50293
|
if (this.dimensions.width < this.dimensions.height) {
|
|
50298
50294
|
if (width2 > height3) {
|
|
50299
50295
|
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|