microboard-temp 0.14.13 → 0.14.15

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.
@@ -43902,12 +43902,15 @@ class Connector2 extends BaseItem {
43902
43902
  observerStartPointItem = () => {
43903
43903
  const point3 = this.startPoint;
43904
43904
  if (point3.pointType !== "Board") {
43905
+ const movingGroupId = Group.movingGroupId;
43906
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
43907
+ return;
43908
+ }
43905
43909
  if (this.handleItemGeometryChange(point3, true))
43906
43910
  return;
43907
43911
  point3.recalculatePoint();
43908
- const isGroupMoving = Group.movingGroupId !== null;
43909
- const j1 = isGroupMoving ? false : this.smartJumpStartEdge();
43910
- const j2 = isGroupMoving ? false : this.smartJumpEndEdge();
43912
+ const j1 = movingGroupId !== null ? false : this.smartJumpStartEdge();
43913
+ const j2 = movingGroupId !== null ? false : this.smartJumpEndEdge();
43911
43914
  if (!j1 && !j2) {
43912
43915
  this.updatePaths();
43913
43916
  this.subject.publish(this);
@@ -43917,12 +43920,15 @@ class Connector2 extends BaseItem {
43917
43920
  observerEndPointItem = () => {
43918
43921
  const point3 = this.endPoint;
43919
43922
  if (point3.pointType !== "Board") {
43923
+ const movingGroupId = Group.movingGroupId;
43924
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
43925
+ return;
43926
+ }
43920
43927
  if (this.handleItemGeometryChange(point3, false))
43921
43928
  return;
43922
43929
  point3.recalculatePoint();
43923
- const isGroupMoving = Group.movingGroupId !== null;
43924
- const j1 = isGroupMoving ? false : this.smartJumpEndEdge();
43925
- const j2 = isGroupMoving ? false : this.smartJumpStartEdge();
43930
+ const j1 = movingGroupId !== null ? false : this.smartJumpEndEdge();
43931
+ const j2 = movingGroupId !== null ? false : this.smartJumpStartEdge();
43926
43932
  if (!j1 && !j2) {
43927
43933
  this.updatePaths();
43928
43934
  this.subject.publish(this);
package/dist/cjs/index.js CHANGED
@@ -43902,12 +43902,15 @@ class Connector2 extends BaseItem {
43902
43902
  observerStartPointItem = () => {
43903
43903
  const point3 = this.startPoint;
43904
43904
  if (point3.pointType !== "Board") {
43905
+ const movingGroupId = Group.movingGroupId;
43906
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
43907
+ return;
43908
+ }
43905
43909
  if (this.handleItemGeometryChange(point3, true))
43906
43910
  return;
43907
43911
  point3.recalculatePoint();
43908
- const isGroupMoving = Group.movingGroupId !== null;
43909
- const j1 = isGroupMoving ? false : this.smartJumpStartEdge();
43910
- const j2 = isGroupMoving ? false : this.smartJumpEndEdge();
43912
+ const j1 = movingGroupId !== null ? false : this.smartJumpStartEdge();
43913
+ const j2 = movingGroupId !== null ? false : this.smartJumpEndEdge();
43911
43914
  if (!j1 && !j2) {
43912
43915
  this.updatePaths();
43913
43916
  this.subject.publish(this);
@@ -43917,12 +43920,15 @@ class Connector2 extends BaseItem {
43917
43920
  observerEndPointItem = () => {
43918
43921
  const point3 = this.endPoint;
43919
43922
  if (point3.pointType !== "Board") {
43923
+ const movingGroupId = Group.movingGroupId;
43924
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
43925
+ return;
43926
+ }
43920
43927
  if (this.handleItemGeometryChange(point3, false))
43921
43928
  return;
43922
43929
  point3.recalculatePoint();
43923
- const isGroupMoving = Group.movingGroupId !== null;
43924
- const j1 = isGroupMoving ? false : this.smartJumpEndEdge();
43925
- const j2 = isGroupMoving ? false : this.smartJumpStartEdge();
43930
+ const j1 = movingGroupId !== null ? false : this.smartJumpEndEdge();
43931
+ const j2 = movingGroupId !== null ? false : this.smartJumpStartEdge();
43926
43932
  if (!j1 && !j2) {
43927
43933
  this.updatePaths();
43928
43934
  this.subject.publish(this);
package/dist/cjs/node.js CHANGED
@@ -46374,12 +46374,15 @@ class Connector2 extends BaseItem {
46374
46374
  observerStartPointItem = () => {
46375
46375
  const point3 = this.startPoint;
46376
46376
  if (point3.pointType !== "Board") {
46377
+ const movingGroupId = Group.movingGroupId;
46378
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
46379
+ return;
46380
+ }
46377
46381
  if (this.handleItemGeometryChange(point3, true))
46378
46382
  return;
46379
46383
  point3.recalculatePoint();
46380
- const isGroupMoving = Group.movingGroupId !== null;
46381
- const j1 = isGroupMoving ? false : this.smartJumpStartEdge();
46382
- const j2 = isGroupMoving ? false : this.smartJumpEndEdge();
46384
+ const j1 = movingGroupId !== null ? false : this.smartJumpStartEdge();
46385
+ const j2 = movingGroupId !== null ? false : this.smartJumpEndEdge();
46383
46386
  if (!j1 && !j2) {
46384
46387
  this.updatePaths();
46385
46388
  this.subject.publish(this);
@@ -46389,12 +46392,15 @@ class Connector2 extends BaseItem {
46389
46392
  observerEndPointItem = () => {
46390
46393
  const point3 = this.endPoint;
46391
46394
  if (point3.pointType !== "Board") {
46395
+ const movingGroupId = Group.movingGroupId;
46396
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
46397
+ return;
46398
+ }
46392
46399
  if (this.handleItemGeometryChange(point3, false))
46393
46400
  return;
46394
46401
  point3.recalculatePoint();
46395
- const isGroupMoving = Group.movingGroupId !== null;
46396
- const j1 = isGroupMoving ? false : this.smartJumpEndEdge();
46397
- const j2 = isGroupMoving ? false : this.smartJumpStartEdge();
46402
+ const j1 = movingGroupId !== null ? false : this.smartJumpEndEdge();
46403
+ const j2 = movingGroupId !== null ? false : this.smartJumpStartEdge();
46398
46404
  if (!j1 && !j2) {
46399
46405
  this.updatePaths();
46400
46406
  this.subject.publish(this);
@@ -43713,12 +43713,15 @@ class Connector2 extends BaseItem {
43713
43713
  observerStartPointItem = () => {
43714
43714
  const point3 = this.startPoint;
43715
43715
  if (point3.pointType !== "Board") {
43716
+ const movingGroupId = Group.movingGroupId;
43717
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
43718
+ return;
43719
+ }
43716
43720
  if (this.handleItemGeometryChange(point3, true))
43717
43721
  return;
43718
43722
  point3.recalculatePoint();
43719
- const isGroupMoving = Group.movingGroupId !== null;
43720
- const j1 = isGroupMoving ? false : this.smartJumpStartEdge();
43721
- const j2 = isGroupMoving ? false : this.smartJumpEndEdge();
43723
+ const j1 = movingGroupId !== null ? false : this.smartJumpStartEdge();
43724
+ const j2 = movingGroupId !== null ? false : this.smartJumpEndEdge();
43722
43725
  if (!j1 && !j2) {
43723
43726
  this.updatePaths();
43724
43727
  this.subject.publish(this);
@@ -43728,12 +43731,15 @@ class Connector2 extends BaseItem {
43728
43731
  observerEndPointItem = () => {
43729
43732
  const point3 = this.endPoint;
43730
43733
  if (point3.pointType !== "Board") {
43734
+ const movingGroupId = Group.movingGroupId;
43735
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
43736
+ return;
43737
+ }
43731
43738
  if (this.handleItemGeometryChange(point3, false))
43732
43739
  return;
43733
43740
  point3.recalculatePoint();
43734
- const isGroupMoving = Group.movingGroupId !== null;
43735
- const j1 = isGroupMoving ? false : this.smartJumpEndEdge();
43736
- const j2 = isGroupMoving ? false : this.smartJumpStartEdge();
43741
+ const j1 = movingGroupId !== null ? false : this.smartJumpEndEdge();
43742
+ const j2 = movingGroupId !== null ? false : this.smartJumpStartEdge();
43737
43743
  if (!j1 && !j2) {
43738
43744
  this.updatePaths();
43739
43745
  this.subject.publish(this);
package/dist/esm/index.js CHANGED
@@ -43706,12 +43706,15 @@ class Connector2 extends BaseItem {
43706
43706
  observerStartPointItem = () => {
43707
43707
  const point3 = this.startPoint;
43708
43708
  if (point3.pointType !== "Board") {
43709
+ const movingGroupId = Group.movingGroupId;
43710
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
43711
+ return;
43712
+ }
43709
43713
  if (this.handleItemGeometryChange(point3, true))
43710
43714
  return;
43711
43715
  point3.recalculatePoint();
43712
- const isGroupMoving = Group.movingGroupId !== null;
43713
- const j1 = isGroupMoving ? false : this.smartJumpStartEdge();
43714
- const j2 = isGroupMoving ? false : this.smartJumpEndEdge();
43716
+ const j1 = movingGroupId !== null ? false : this.smartJumpStartEdge();
43717
+ const j2 = movingGroupId !== null ? false : this.smartJumpEndEdge();
43715
43718
  if (!j1 && !j2) {
43716
43719
  this.updatePaths();
43717
43720
  this.subject.publish(this);
@@ -43721,12 +43724,15 @@ class Connector2 extends BaseItem {
43721
43724
  observerEndPointItem = () => {
43722
43725
  const point3 = this.endPoint;
43723
43726
  if (point3.pointType !== "Board") {
43727
+ const movingGroupId = Group.movingGroupId;
43728
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
43729
+ return;
43730
+ }
43724
43731
  if (this.handleItemGeometryChange(point3, false))
43725
43732
  return;
43726
43733
  point3.recalculatePoint();
43727
- const isGroupMoving = Group.movingGroupId !== null;
43728
- const j1 = isGroupMoving ? false : this.smartJumpEndEdge();
43729
- const j2 = isGroupMoving ? false : this.smartJumpStartEdge();
43734
+ const j1 = movingGroupId !== null ? false : this.smartJumpEndEdge();
43735
+ const j2 = movingGroupId !== null ? false : this.smartJumpStartEdge();
43730
43736
  if (!j1 && !j2) {
43731
43737
  this.updatePaths();
43732
43738
  this.subject.publish(this);
package/dist/esm/node.js CHANGED
@@ -46173,12 +46173,15 @@ class Connector2 extends BaseItem {
46173
46173
  observerStartPointItem = () => {
46174
46174
  const point3 = this.startPoint;
46175
46175
  if (point3.pointType !== "Board") {
46176
+ const movingGroupId = Group.movingGroupId;
46177
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
46178
+ return;
46179
+ }
46176
46180
  if (this.handleItemGeometryChange(point3, true))
46177
46181
  return;
46178
46182
  point3.recalculatePoint();
46179
- const isGroupMoving = Group.movingGroupId !== null;
46180
- const j1 = isGroupMoving ? false : this.smartJumpStartEdge();
46181
- const j2 = isGroupMoving ? false : this.smartJumpEndEdge();
46183
+ const j1 = movingGroupId !== null ? false : this.smartJumpStartEdge();
46184
+ const j2 = movingGroupId !== null ? false : this.smartJumpEndEdge();
46182
46185
  if (!j1 && !j2) {
46183
46186
  this.updatePaths();
46184
46187
  this.subject.publish(this);
@@ -46188,12 +46191,15 @@ class Connector2 extends BaseItem {
46188
46191
  observerEndPointItem = () => {
46189
46192
  const point3 = this.endPoint;
46190
46193
  if (point3.pointType !== "Board") {
46194
+ const movingGroupId = Group.movingGroupId;
46195
+ if (movingGroupId !== null && this.parent === movingGroupId && point3.item instanceof BaseItem && point3.item.parent === movingGroupId) {
46196
+ return;
46197
+ }
46191
46198
  if (this.handleItemGeometryChange(point3, false))
46192
46199
  return;
46193
46200
  point3.recalculatePoint();
46194
- const isGroupMoving = Group.movingGroupId !== null;
46195
- const j1 = isGroupMoving ? false : this.smartJumpEndEdge();
46196
- const j2 = isGroupMoving ? false : this.smartJumpStartEdge();
46201
+ const j1 = movingGroupId !== null ? false : this.smartJumpEndEdge();
46202
+ const j2 = movingGroupId !== null ? false : this.smartJumpStartEdge();
46197
46203
  if (!j1 && !j2) {
46198
46204
  this.updatePaths();
46199
46205
  this.subject.publish(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.14.13",
3
+ "version": "0.14.15",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",