microboard-temp 0.11.4 → 0.11.5
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 +7 -4
- package/dist/cjs/index.js +7 -4
- package/dist/cjs/node.js +7 -4
- package/dist/esm/browser.js +7 -4
- package/dist/esm/index.js +7 -4
- package/dist/esm/node.js +7 -4
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -20932,7 +20932,7 @@ class LayeredIndex {
|
|
|
20932
20932
|
|
|
20933
20933
|
// src/SpatialIndex/SpacialIndex.ts
|
|
20934
20934
|
function worldBoundsToLocal(container, left, top, right, bottom) {
|
|
20935
|
-
const inv = container.
|
|
20935
|
+
const inv = container.getNestingMatrix().getInverse();
|
|
20936
20936
|
const corners = [
|
|
20937
20937
|
new Point(left, top),
|
|
20938
20938
|
new Point(right, top),
|
|
@@ -21227,7 +21227,7 @@ class SpatialIndex {
|
|
|
21227
21227
|
const clearItems = items.filter((item) => {
|
|
21228
21228
|
if ("index" in item && item.index) {
|
|
21229
21229
|
const localPt = new Point(point3.x, point3.y);
|
|
21230
|
-
item.
|
|
21230
|
+
item.getNestingMatrix().getInverse().apply(localPt);
|
|
21231
21231
|
children.push(...item.index.getUnderPoint(localPt, tolerance));
|
|
21232
21232
|
if (!item.getMbr().isUnderPoint(point3)) {
|
|
21233
21233
|
return false;
|
|
@@ -22861,8 +22861,11 @@ class RichText extends BaseItem {
|
|
|
22861
22861
|
const { ctx } = context;
|
|
22862
22862
|
ctx.save();
|
|
22863
22863
|
ctx.translate(this.left, this.top);
|
|
22864
|
-
const
|
|
22865
|
-
|
|
22864
|
+
const shouldScale = !this.isInShape && !this.autoSize;
|
|
22865
|
+
if (shouldScale) {
|
|
22866
|
+
const { scaleX, scaleY } = this.transformation.getMatrixData();
|
|
22867
|
+
ctx.scale(scaleX, scaleY);
|
|
22868
|
+
}
|
|
22866
22869
|
const shouldClip = this.insideOf === "Shape" || this.insideOf === "Sticker";
|
|
22867
22870
|
if (shouldClip) {
|
|
22868
22871
|
ctx.clip(this.clipPath.nativePath);
|
package/dist/cjs/index.js
CHANGED
|
@@ -20932,7 +20932,7 @@ class LayeredIndex {
|
|
|
20932
20932
|
|
|
20933
20933
|
// src/SpatialIndex/SpacialIndex.ts
|
|
20934
20934
|
function worldBoundsToLocal(container, left, top, right, bottom) {
|
|
20935
|
-
const inv = container.
|
|
20935
|
+
const inv = container.getNestingMatrix().getInverse();
|
|
20936
20936
|
const corners = [
|
|
20937
20937
|
new Point(left, top),
|
|
20938
20938
|
new Point(right, top),
|
|
@@ -21227,7 +21227,7 @@ class SpatialIndex {
|
|
|
21227
21227
|
const clearItems = items.filter((item) => {
|
|
21228
21228
|
if ("index" in item && item.index) {
|
|
21229
21229
|
const localPt = new Point(point3.x, point3.y);
|
|
21230
|
-
item.
|
|
21230
|
+
item.getNestingMatrix().getInverse().apply(localPt);
|
|
21231
21231
|
children.push(...item.index.getUnderPoint(localPt, tolerance));
|
|
21232
21232
|
if (!item.getMbr().isUnderPoint(point3)) {
|
|
21233
21233
|
return false;
|
|
@@ -22861,8 +22861,11 @@ class RichText extends BaseItem {
|
|
|
22861
22861
|
const { ctx } = context;
|
|
22862
22862
|
ctx.save();
|
|
22863
22863
|
ctx.translate(this.left, this.top);
|
|
22864
|
-
const
|
|
22865
|
-
|
|
22864
|
+
const shouldScale = !this.isInShape && !this.autoSize;
|
|
22865
|
+
if (shouldScale) {
|
|
22866
|
+
const { scaleX, scaleY } = this.transformation.getMatrixData();
|
|
22867
|
+
ctx.scale(scaleX, scaleY);
|
|
22868
|
+
}
|
|
22866
22869
|
const shouldClip = this.insideOf === "Shape" || this.insideOf === "Sticker";
|
|
22867
22870
|
if (shouldClip) {
|
|
22868
22871
|
ctx.clip(this.clipPath.nativePath);
|
package/dist/cjs/node.js
CHANGED
|
@@ -23404,7 +23404,7 @@ class LayeredIndex {
|
|
|
23404
23404
|
|
|
23405
23405
|
// src/SpatialIndex/SpacialIndex.ts
|
|
23406
23406
|
function worldBoundsToLocal(container, left, top, right, bottom) {
|
|
23407
|
-
const inv = container.
|
|
23407
|
+
const inv = container.getNestingMatrix().getInverse();
|
|
23408
23408
|
const corners = [
|
|
23409
23409
|
new Point(left, top),
|
|
23410
23410
|
new Point(right, top),
|
|
@@ -23699,7 +23699,7 @@ class SpatialIndex {
|
|
|
23699
23699
|
const clearItems = items.filter((item) => {
|
|
23700
23700
|
if ("index" in item && item.index) {
|
|
23701
23701
|
const localPt = new Point(point3.x, point3.y);
|
|
23702
|
-
item.
|
|
23702
|
+
item.getNestingMatrix().getInverse().apply(localPt);
|
|
23703
23703
|
children.push(...item.index.getUnderPoint(localPt, tolerance));
|
|
23704
23704
|
if (!item.getMbr().isUnderPoint(point3)) {
|
|
23705
23705
|
return false;
|
|
@@ -25333,8 +25333,11 @@ class RichText extends BaseItem {
|
|
|
25333
25333
|
const { ctx } = context;
|
|
25334
25334
|
ctx.save();
|
|
25335
25335
|
ctx.translate(this.left, this.top);
|
|
25336
|
-
const
|
|
25337
|
-
|
|
25336
|
+
const shouldScale = !this.isInShape && !this.autoSize;
|
|
25337
|
+
if (shouldScale) {
|
|
25338
|
+
const { scaleX, scaleY } = this.transformation.getMatrixData();
|
|
25339
|
+
ctx.scale(scaleX, scaleY);
|
|
25340
|
+
}
|
|
25338
25341
|
const shouldClip = this.insideOf === "Shape" || this.insideOf === "Sticker";
|
|
25339
25342
|
if (shouldClip) {
|
|
25340
25343
|
ctx.clip(this.clipPath.nativePath);
|
package/dist/esm/browser.js
CHANGED
|
@@ -20761,7 +20761,7 @@ class LayeredIndex {
|
|
|
20761
20761
|
|
|
20762
20762
|
// src/SpatialIndex/SpacialIndex.ts
|
|
20763
20763
|
function worldBoundsToLocal(container, left, top, right, bottom) {
|
|
20764
|
-
const inv = container.
|
|
20764
|
+
const inv = container.getNestingMatrix().getInverse();
|
|
20765
20765
|
const corners = [
|
|
20766
20766
|
new Point(left, top),
|
|
20767
20767
|
new Point(right, top),
|
|
@@ -21056,7 +21056,7 @@ class SpatialIndex {
|
|
|
21056
21056
|
const clearItems = items.filter((item) => {
|
|
21057
21057
|
if ("index" in item && item.index) {
|
|
21058
21058
|
const localPt = new Point(point3.x, point3.y);
|
|
21059
|
-
item.
|
|
21059
|
+
item.getNestingMatrix().getInverse().apply(localPt);
|
|
21060
21060
|
children.push(...item.index.getUnderPoint(localPt, tolerance));
|
|
21061
21061
|
if (!item.getMbr().isUnderPoint(point3)) {
|
|
21062
21062
|
return false;
|
|
@@ -22690,8 +22690,11 @@ class RichText extends BaseItem {
|
|
|
22690
22690
|
const { ctx } = context;
|
|
22691
22691
|
ctx.save();
|
|
22692
22692
|
ctx.translate(this.left, this.top);
|
|
22693
|
-
const
|
|
22694
|
-
|
|
22693
|
+
const shouldScale = !this.isInShape && !this.autoSize;
|
|
22694
|
+
if (shouldScale) {
|
|
22695
|
+
const { scaleX, scaleY } = this.transformation.getMatrixData();
|
|
22696
|
+
ctx.scale(scaleX, scaleY);
|
|
22697
|
+
}
|
|
22695
22698
|
const shouldClip = this.insideOf === "Shape" || this.insideOf === "Sticker";
|
|
22696
22699
|
if (shouldClip) {
|
|
22697
22700
|
ctx.clip(this.clipPath.nativePath);
|
package/dist/esm/index.js
CHANGED
|
@@ -20754,7 +20754,7 @@ class LayeredIndex {
|
|
|
20754
20754
|
|
|
20755
20755
|
// src/SpatialIndex/SpacialIndex.ts
|
|
20756
20756
|
function worldBoundsToLocal(container, left, top, right, bottom) {
|
|
20757
|
-
const inv = container.
|
|
20757
|
+
const inv = container.getNestingMatrix().getInverse();
|
|
20758
20758
|
const corners = [
|
|
20759
20759
|
new Point(left, top),
|
|
20760
20760
|
new Point(right, top),
|
|
@@ -21049,7 +21049,7 @@ class SpatialIndex {
|
|
|
21049
21049
|
const clearItems = items.filter((item) => {
|
|
21050
21050
|
if ("index" in item && item.index) {
|
|
21051
21051
|
const localPt = new Point(point3.x, point3.y);
|
|
21052
|
-
item.
|
|
21052
|
+
item.getNestingMatrix().getInverse().apply(localPt);
|
|
21053
21053
|
children.push(...item.index.getUnderPoint(localPt, tolerance));
|
|
21054
21054
|
if (!item.getMbr().isUnderPoint(point3)) {
|
|
21055
21055
|
return false;
|
|
@@ -22683,8 +22683,11 @@ class RichText extends BaseItem {
|
|
|
22683
22683
|
const { ctx } = context;
|
|
22684
22684
|
ctx.save();
|
|
22685
22685
|
ctx.translate(this.left, this.top);
|
|
22686
|
-
const
|
|
22687
|
-
|
|
22686
|
+
const shouldScale = !this.isInShape && !this.autoSize;
|
|
22687
|
+
if (shouldScale) {
|
|
22688
|
+
const { scaleX, scaleY } = this.transformation.getMatrixData();
|
|
22689
|
+
ctx.scale(scaleX, scaleY);
|
|
22690
|
+
}
|
|
22688
22691
|
const shouldClip = this.insideOf === "Shape" || this.insideOf === "Sticker";
|
|
22689
22692
|
if (shouldClip) {
|
|
22690
22693
|
ctx.clip(this.clipPath.nativePath);
|
package/dist/esm/node.js
CHANGED
|
@@ -23221,7 +23221,7 @@ class LayeredIndex {
|
|
|
23221
23221
|
|
|
23222
23222
|
// src/SpatialIndex/SpacialIndex.ts
|
|
23223
23223
|
function worldBoundsToLocal(container, left, top, right, bottom) {
|
|
23224
|
-
const inv = container.
|
|
23224
|
+
const inv = container.getNestingMatrix().getInverse();
|
|
23225
23225
|
const corners = [
|
|
23226
23226
|
new Point(left, top),
|
|
23227
23227
|
new Point(right, top),
|
|
@@ -23516,7 +23516,7 @@ class SpatialIndex {
|
|
|
23516
23516
|
const clearItems = items.filter((item) => {
|
|
23517
23517
|
if ("index" in item && item.index) {
|
|
23518
23518
|
const localPt = new Point(point3.x, point3.y);
|
|
23519
|
-
item.
|
|
23519
|
+
item.getNestingMatrix().getInverse().apply(localPt);
|
|
23520
23520
|
children.push(...item.index.getUnderPoint(localPt, tolerance));
|
|
23521
23521
|
if (!item.getMbr().isUnderPoint(point3)) {
|
|
23522
23522
|
return false;
|
|
@@ -25150,8 +25150,11 @@ class RichText extends BaseItem {
|
|
|
25150
25150
|
const { ctx } = context;
|
|
25151
25151
|
ctx.save();
|
|
25152
25152
|
ctx.translate(this.left, this.top);
|
|
25153
|
-
const
|
|
25154
|
-
|
|
25153
|
+
const shouldScale = !this.isInShape && !this.autoSize;
|
|
25154
|
+
if (shouldScale) {
|
|
25155
|
+
const { scaleX, scaleY } = this.transformation.getMatrixData();
|
|
25156
|
+
ctx.scale(scaleX, scaleY);
|
|
25157
|
+
}
|
|
25155
25158
|
const shouldClip = this.insideOf === "Shape" || this.insideOf === "Sticker";
|
|
25156
25159
|
if (shouldClip) {
|
|
25157
25160
|
ctx.clip(this.clipPath.nativePath);
|