microboard-temp 0.13.55 → 0.13.57
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 -6
- package/dist/cjs/index.js +7 -6
- package/dist/cjs/node.js +7 -6
- package/dist/esm/browser.js +7 -6
- package/dist/esm/index.js +7 -6
- package/dist/esm/node.js +7 -6
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -13031,8 +13031,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13031
13031
|
_physicsHalfExtent = -1;
|
|
13032
13032
|
get physicsHalfExtent() {
|
|
13033
13033
|
if (this._physicsHalfExtent < 0) {
|
|
13034
|
-
const
|
|
13035
|
-
const
|
|
13034
|
+
const mbr = this.getMbr();
|
|
13035
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
13036
|
+
const h = Math.max(mbr.getHeight(), 1);
|
|
13036
13037
|
this._physicsHalfExtent = Math.max(w, h) * 0.5;
|
|
13037
13038
|
}
|
|
13038
13039
|
return this._physicsHalfExtent;
|
|
@@ -60923,10 +60924,10 @@ class ForceGraphEngine {
|
|
|
60923
60924
|
if (!activeIds.has(item.getId()))
|
|
60924
60925
|
continue;
|
|
60925
60926
|
const pos = item.transformation.getTranslation();
|
|
60926
|
-
const
|
|
60927
|
-
const w =
|
|
60928
|
-
const h2 =
|
|
60929
|
-
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x +
|
|
60927
|
+
const mbr = item.getMbr();
|
|
60928
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
60929
|
+
const h2 = Math.max(mbr.getHeight(), 1);
|
|
60930
|
+
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x + w * 0.5, cy: pos.y + h2 * 0.5, w, h: h2 });
|
|
60930
60931
|
}
|
|
60931
60932
|
const snap = Array.from(snapMap.values());
|
|
60932
60933
|
if (snap.length < 1)
|
package/dist/cjs/index.js
CHANGED
|
@@ -13031,8 +13031,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13031
13031
|
_physicsHalfExtent = -1;
|
|
13032
13032
|
get physicsHalfExtent() {
|
|
13033
13033
|
if (this._physicsHalfExtent < 0) {
|
|
13034
|
-
const
|
|
13035
|
-
const
|
|
13034
|
+
const mbr = this.getMbr();
|
|
13035
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
13036
|
+
const h = Math.max(mbr.getHeight(), 1);
|
|
13036
13037
|
this._physicsHalfExtent = Math.max(w, h) * 0.5;
|
|
13037
13038
|
}
|
|
13038
13039
|
return this._physicsHalfExtent;
|
|
@@ -60923,10 +60924,10 @@ class ForceGraphEngine {
|
|
|
60923
60924
|
if (!activeIds.has(item.getId()))
|
|
60924
60925
|
continue;
|
|
60925
60926
|
const pos = item.transformation.getTranslation();
|
|
60926
|
-
const
|
|
60927
|
-
const w =
|
|
60928
|
-
const h2 =
|
|
60929
|
-
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x +
|
|
60927
|
+
const mbr = item.getMbr();
|
|
60928
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
60929
|
+
const h2 = Math.max(mbr.getHeight(), 1);
|
|
60930
|
+
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x + w * 0.5, cy: pos.y + h2 * 0.5, w, h: h2 });
|
|
60930
60931
|
}
|
|
60931
60932
|
const snap = Array.from(snapMap.values());
|
|
60932
60933
|
if (snap.length < 1)
|
package/dist/cjs/node.js
CHANGED
|
@@ -13051,8 +13051,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13051
13051
|
_physicsHalfExtent = -1;
|
|
13052
13052
|
get physicsHalfExtent() {
|
|
13053
13053
|
if (this._physicsHalfExtent < 0) {
|
|
13054
|
-
const
|
|
13055
|
-
const
|
|
13054
|
+
const mbr = this.getMbr();
|
|
13055
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
13056
|
+
const h = Math.max(mbr.getHeight(), 1);
|
|
13056
13057
|
this._physicsHalfExtent = Math.max(w, h) * 0.5;
|
|
13057
13058
|
}
|
|
13058
13059
|
return this._physicsHalfExtent;
|
|
@@ -63398,10 +63399,10 @@ class ForceGraphEngine {
|
|
|
63398
63399
|
if (!activeIds.has(item.getId()))
|
|
63399
63400
|
continue;
|
|
63400
63401
|
const pos = item.transformation.getTranslation();
|
|
63401
|
-
const
|
|
63402
|
-
const w =
|
|
63403
|
-
const h2 =
|
|
63404
|
-
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x +
|
|
63402
|
+
const mbr = item.getMbr();
|
|
63403
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
63404
|
+
const h2 = Math.max(mbr.getHeight(), 1);
|
|
63405
|
+
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x + w * 0.5, cy: pos.y + h2 * 0.5, w, h: h2 });
|
|
63405
63406
|
}
|
|
63406
63407
|
const snap = Array.from(snapMap.values());
|
|
63407
63408
|
if (snap.length < 1)
|
package/dist/esm/browser.js
CHANGED
|
@@ -13003,8 +13003,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13003
13003
|
_physicsHalfExtent = -1;
|
|
13004
13004
|
get physicsHalfExtent() {
|
|
13005
13005
|
if (this._physicsHalfExtent < 0) {
|
|
13006
|
-
const
|
|
13007
|
-
const
|
|
13006
|
+
const mbr = this.getMbr();
|
|
13007
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
13008
|
+
const h = Math.max(mbr.getHeight(), 1);
|
|
13008
13009
|
this._physicsHalfExtent = Math.max(w, h) * 0.5;
|
|
13009
13010
|
}
|
|
13010
13011
|
return this._physicsHalfExtent;
|
|
@@ -60666,10 +60667,10 @@ class ForceGraphEngine {
|
|
|
60666
60667
|
if (!activeIds.has(item.getId()))
|
|
60667
60668
|
continue;
|
|
60668
60669
|
const pos = item.transformation.getTranslation();
|
|
60669
|
-
const
|
|
60670
|
-
const w =
|
|
60671
|
-
const h2 =
|
|
60672
|
-
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x +
|
|
60670
|
+
const mbr = item.getMbr();
|
|
60671
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
60672
|
+
const h2 = Math.max(mbr.getHeight(), 1);
|
|
60673
|
+
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x + w * 0.5, cy: pos.y + h2 * 0.5, w, h: h2 });
|
|
60673
60674
|
}
|
|
60674
60675
|
const snap = Array.from(snapMap.values());
|
|
60675
60676
|
if (snap.length < 1)
|
package/dist/esm/index.js
CHANGED
|
@@ -12996,8 +12996,9 @@ var init_BaseItem = __esm(() => {
|
|
|
12996
12996
|
_physicsHalfExtent = -1;
|
|
12997
12997
|
get physicsHalfExtent() {
|
|
12998
12998
|
if (this._physicsHalfExtent < 0) {
|
|
12999
|
-
const
|
|
13000
|
-
const
|
|
12999
|
+
const mbr = this.getMbr();
|
|
13000
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
13001
|
+
const h = Math.max(mbr.getHeight(), 1);
|
|
13001
13002
|
this._physicsHalfExtent = Math.max(w, h) * 0.5;
|
|
13002
13003
|
}
|
|
13003
13004
|
return this._physicsHalfExtent;
|
|
@@ -60659,10 +60660,10 @@ class ForceGraphEngine {
|
|
|
60659
60660
|
if (!activeIds.has(item.getId()))
|
|
60660
60661
|
continue;
|
|
60661
60662
|
const pos = item.transformation.getTranslation();
|
|
60662
|
-
const
|
|
60663
|
-
const w =
|
|
60664
|
-
const h2 =
|
|
60665
|
-
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x +
|
|
60663
|
+
const mbr = item.getMbr();
|
|
60664
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
60665
|
+
const h2 = Math.max(mbr.getHeight(), 1);
|
|
60666
|
+
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x + w * 0.5, cy: pos.y + h2 * 0.5, w, h: h2 });
|
|
60666
60667
|
}
|
|
60667
60668
|
const snap = Array.from(snapMap.values());
|
|
60668
60669
|
if (snap.length < 1)
|
package/dist/esm/node.js
CHANGED
|
@@ -13018,8 +13018,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13018
13018
|
_physicsHalfExtent = -1;
|
|
13019
13019
|
get physicsHalfExtent() {
|
|
13020
13020
|
if (this._physicsHalfExtent < 0) {
|
|
13021
|
-
const
|
|
13022
|
-
const
|
|
13021
|
+
const mbr = this.getMbr();
|
|
13022
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
13023
|
+
const h = Math.max(mbr.getHeight(), 1);
|
|
13023
13024
|
this._physicsHalfExtent = Math.max(w, h) * 0.5;
|
|
13024
13025
|
}
|
|
13025
13026
|
return this._physicsHalfExtent;
|
|
@@ -63123,10 +63124,10 @@ class ForceGraphEngine {
|
|
|
63123
63124
|
if (!activeIds.has(item.getId()))
|
|
63124
63125
|
continue;
|
|
63125
63126
|
const pos = item.transformation.getTranslation();
|
|
63126
|
-
const
|
|
63127
|
-
const w =
|
|
63128
|
-
const h2 =
|
|
63129
|
-
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x +
|
|
63127
|
+
const mbr = item.getMbr();
|
|
63128
|
+
const w = Math.max(mbr.getWidth(), 1);
|
|
63129
|
+
const h2 = Math.max(mbr.getHeight(), 1);
|
|
63130
|
+
snapMap.set(item.getId(), { id: item.getId(), cx: pos.x + w * 0.5, cy: pos.y + h2 * 0.5, w, h: h2 });
|
|
63130
63131
|
}
|
|
63131
63132
|
const snap = Array.from(snapMap.values());
|
|
63132
63133
|
if (snap.length < 1)
|