microboard-temp 0.13.57 → 0.13.59

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.
@@ -13244,7 +13244,7 @@ var init_BaseItem = __esm(() => {
13244
13244
  this.subject.publish(this);
13245
13245
  }
13246
13246
  updateMbr() {
13247
- this._physicsHalfExtent = -1;
13247
+ return;
13248
13248
  }
13249
13249
  getLinkTo() {
13250
13250
  return this.linkTo.link;
@@ -13355,16 +13355,6 @@ var init_BaseItem = __esm(() => {
13355
13355
  }
13356
13356
  }
13357
13357
  this.transformation.apply(transformOp);
13358
- const m = transformOp.method;
13359
- if (m !== "translateTo" && m !== "translateBy" && m !== "rotateTo" && m !== "rotateBy" && m !== "locked" && m !== "unlocked") {
13360
- if (m === "applyMatrix") {
13361
- if (transformOp.items.some((i) => i.matrix.scaleX !== 1 || i.matrix.scaleY !== 1)) {
13362
- this._physicsHalfExtent = -1;
13363
- }
13364
- } else {
13365
- this._physicsHalfExtent = -1;
13366
- }
13367
- }
13368
13358
  break;
13369
13359
  }
13370
13360
  case "LinkTo":
@@ -42764,6 +42754,7 @@ var init_Connector = __esm(() => {
42764
42754
  transformation;
42765
42755
  middlePoint = new BoardPoint;
42766
42756
  lineColor;
42757
+ smartJump = true;
42767
42758
  linkTo;
42768
42759
  lineWidth;
42769
42760
  borderStyle;
@@ -42863,6 +42854,8 @@ var init_Connector = __esm(() => {
42863
42854
  }
42864
42855
  };
42865
42856
  smartJumpStartEdge() {
42857
+ if (!this.smartJump)
42858
+ return false;
42866
42859
  const start = this.startPoint;
42867
42860
  if (start.pointType !== "Fixed" && start.pointType !== "Floating")
42868
42861
  return false;
@@ -42899,6 +42892,8 @@ var init_Connector = __esm(() => {
42899
42892
  return true;
42900
42893
  }
42901
42894
  smartJumpEndEdge() {
42895
+ if (!this.smartJump)
42896
+ return false;
42902
42897
  const end = this.endPoint;
42903
42898
  if (end.pointType !== "Fixed" && end.pointType !== "Floating")
42904
42899
  return false;
@@ -42934,6 +42929,20 @@ var init_Connector = __esm(() => {
42934
42929
  this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
42935
42930
  return true;
42936
42931
  }
42932
+ setSmartJump(value) {
42933
+ this.emit({
42934
+ class: "Connector",
42935
+ method: "setSmartJump",
42936
+ item: [this.id],
42937
+ smartJump: value
42938
+ });
42939
+ }
42940
+ applySmartJump(value) {
42941
+ this.smartJump = value;
42942
+ }
42943
+ getSmartJump() {
42944
+ return this.smartJump;
42945
+ }
42937
42946
  clearObservedItems() {
42938
42947
  const startPoint = this.getStartPoint();
42939
42948
  const endPoint = this.getEndPoint();
@@ -43012,6 +43021,9 @@ var init_Connector = __esm(() => {
43012
43021
  case "switchPointers":
43013
43022
  this.applySwitchPointers();
43014
43023
  break;
43024
+ case "setSmartJump":
43025
+ this.applySmartJump(operation.smartJump);
43026
+ break;
43015
43027
  }
43016
43028
  break;
43017
43029
  case "LinkTo":
@@ -43447,6 +43459,7 @@ var init_Connector = __esm(() => {
43447
43459
  lineWidth: this.lineWidth,
43448
43460
  text: text5,
43449
43461
  borderStyle: this.borderStyle,
43462
+ smartJump: this.smartJump,
43450
43463
  linkTo: this.linkTo.serialize()
43451
43464
  };
43452
43465
  }
@@ -43481,6 +43494,9 @@ var init_Connector = __esm(() => {
43481
43494
  }
43482
43495
  this.lineWidth = data.lineWidth ?? this.lineWidth;
43483
43496
  this.borderStyle = data.borderStyle ?? this.borderStyle;
43497
+ if (data.smartJump != null) {
43498
+ this.smartJump = data.smartJump;
43499
+ }
43484
43500
  if (data.transformation) {
43485
43501
  this.transformation.deserialize(data.transformation);
43486
43502
  }
@@ -43669,6 +43685,7 @@ class ConnectorData {
43669
43685
  linkTo;
43670
43686
  lineWidth = 1;
43671
43687
  borderStyle = "solid";
43688
+ smartJump = true;
43672
43689
  transformation = new DefaultTransformationData;
43673
43690
  text = new DefaultRichTextData([], "center", undefined);
43674
43691
  optionalFindItemFn;
package/dist/cjs/index.js CHANGED
@@ -13244,7 +13244,7 @@ var init_BaseItem = __esm(() => {
13244
13244
  this.subject.publish(this);
13245
13245
  }
13246
13246
  updateMbr() {
13247
- this._physicsHalfExtent = -1;
13247
+ return;
13248
13248
  }
13249
13249
  getLinkTo() {
13250
13250
  return this.linkTo.link;
@@ -13355,16 +13355,6 @@ var init_BaseItem = __esm(() => {
13355
13355
  }
13356
13356
  }
13357
13357
  this.transformation.apply(transformOp);
13358
- const m = transformOp.method;
13359
- if (m !== "translateTo" && m !== "translateBy" && m !== "rotateTo" && m !== "rotateBy" && m !== "locked" && m !== "unlocked") {
13360
- if (m === "applyMatrix") {
13361
- if (transformOp.items.some((i) => i.matrix.scaleX !== 1 || i.matrix.scaleY !== 1)) {
13362
- this._physicsHalfExtent = -1;
13363
- }
13364
- } else {
13365
- this._physicsHalfExtent = -1;
13366
- }
13367
- }
13368
13358
  break;
13369
13359
  }
13370
13360
  case "LinkTo":
@@ -42764,6 +42754,7 @@ var init_Connector = __esm(() => {
42764
42754
  transformation;
42765
42755
  middlePoint = new BoardPoint;
42766
42756
  lineColor;
42757
+ smartJump = true;
42767
42758
  linkTo;
42768
42759
  lineWidth;
42769
42760
  borderStyle;
@@ -42863,6 +42854,8 @@ var init_Connector = __esm(() => {
42863
42854
  }
42864
42855
  };
42865
42856
  smartJumpStartEdge() {
42857
+ if (!this.smartJump)
42858
+ return false;
42866
42859
  const start = this.startPoint;
42867
42860
  if (start.pointType !== "Fixed" && start.pointType !== "Floating")
42868
42861
  return false;
@@ -42899,6 +42892,8 @@ var init_Connector = __esm(() => {
42899
42892
  return true;
42900
42893
  }
42901
42894
  smartJumpEndEdge() {
42895
+ if (!this.smartJump)
42896
+ return false;
42902
42897
  const end = this.endPoint;
42903
42898
  if (end.pointType !== "Fixed" && end.pointType !== "Floating")
42904
42899
  return false;
@@ -42934,6 +42929,20 @@ var init_Connector = __esm(() => {
42934
42929
  this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
42935
42930
  return true;
42936
42931
  }
42932
+ setSmartJump(value) {
42933
+ this.emit({
42934
+ class: "Connector",
42935
+ method: "setSmartJump",
42936
+ item: [this.id],
42937
+ smartJump: value
42938
+ });
42939
+ }
42940
+ applySmartJump(value) {
42941
+ this.smartJump = value;
42942
+ }
42943
+ getSmartJump() {
42944
+ return this.smartJump;
42945
+ }
42937
42946
  clearObservedItems() {
42938
42947
  const startPoint = this.getStartPoint();
42939
42948
  const endPoint = this.getEndPoint();
@@ -43012,6 +43021,9 @@ var init_Connector = __esm(() => {
43012
43021
  case "switchPointers":
43013
43022
  this.applySwitchPointers();
43014
43023
  break;
43024
+ case "setSmartJump":
43025
+ this.applySmartJump(operation.smartJump);
43026
+ break;
43015
43027
  }
43016
43028
  break;
43017
43029
  case "LinkTo":
@@ -43447,6 +43459,7 @@ var init_Connector = __esm(() => {
43447
43459
  lineWidth: this.lineWidth,
43448
43460
  text: text5,
43449
43461
  borderStyle: this.borderStyle,
43462
+ smartJump: this.smartJump,
43450
43463
  linkTo: this.linkTo.serialize()
43451
43464
  };
43452
43465
  }
@@ -43481,6 +43494,9 @@ var init_Connector = __esm(() => {
43481
43494
  }
43482
43495
  this.lineWidth = data.lineWidth ?? this.lineWidth;
43483
43496
  this.borderStyle = data.borderStyle ?? this.borderStyle;
43497
+ if (data.smartJump != null) {
43498
+ this.smartJump = data.smartJump;
43499
+ }
43484
43500
  if (data.transformation) {
43485
43501
  this.transformation.deserialize(data.transformation);
43486
43502
  }
@@ -43669,6 +43685,7 @@ class ConnectorData {
43669
43685
  linkTo;
43670
43686
  lineWidth = 1;
43671
43687
  borderStyle = "solid";
43688
+ smartJump = true;
43672
43689
  transformation = new DefaultTransformationData;
43673
43690
  text = new DefaultRichTextData([], "center", undefined);
43674
43691
  optionalFindItemFn;
package/dist/cjs/node.js CHANGED
@@ -13264,7 +13264,7 @@ var init_BaseItem = __esm(() => {
13264
13264
  this.subject.publish(this);
13265
13265
  }
13266
13266
  updateMbr() {
13267
- this._physicsHalfExtent = -1;
13267
+ return;
13268
13268
  }
13269
13269
  getLinkTo() {
13270
13270
  return this.linkTo.link;
@@ -13375,16 +13375,6 @@ var init_BaseItem = __esm(() => {
13375
13375
  }
13376
13376
  }
13377
13377
  this.transformation.apply(transformOp);
13378
- const m = transformOp.method;
13379
- if (m !== "translateTo" && m !== "translateBy" && m !== "rotateTo" && m !== "rotateBy" && m !== "locked" && m !== "unlocked") {
13380
- if (m === "applyMatrix") {
13381
- if (transformOp.items.some((i) => i.matrix.scaleX !== 1 || i.matrix.scaleY !== 1)) {
13382
- this._physicsHalfExtent = -1;
13383
- }
13384
- } else {
13385
- this._physicsHalfExtent = -1;
13386
- }
13387
- }
13388
13378
  break;
13389
13379
  }
13390
13380
  case "LinkTo":
@@ -45184,6 +45174,7 @@ var init_Connector = __esm(() => {
45184
45174
  transformation;
45185
45175
  middlePoint = new BoardPoint;
45186
45176
  lineColor;
45177
+ smartJump = true;
45187
45178
  linkTo;
45188
45179
  lineWidth;
45189
45180
  borderStyle;
@@ -45283,6 +45274,8 @@ var init_Connector = __esm(() => {
45283
45274
  }
45284
45275
  };
45285
45276
  smartJumpStartEdge() {
45277
+ if (!this.smartJump)
45278
+ return false;
45286
45279
  const start = this.startPoint;
45287
45280
  if (start.pointType !== "Fixed" && start.pointType !== "Floating")
45288
45281
  return false;
@@ -45319,6 +45312,8 @@ var init_Connector = __esm(() => {
45319
45312
  return true;
45320
45313
  }
45321
45314
  smartJumpEndEdge() {
45315
+ if (!this.smartJump)
45316
+ return false;
45322
45317
  const end = this.endPoint;
45323
45318
  if (end.pointType !== "Fixed" && end.pointType !== "Floating")
45324
45319
  return false;
@@ -45354,6 +45349,20 @@ var init_Connector = __esm(() => {
45354
45349
  this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
45355
45350
  return true;
45356
45351
  }
45352
+ setSmartJump(value) {
45353
+ this.emit({
45354
+ class: "Connector",
45355
+ method: "setSmartJump",
45356
+ item: [this.id],
45357
+ smartJump: value
45358
+ });
45359
+ }
45360
+ applySmartJump(value) {
45361
+ this.smartJump = value;
45362
+ }
45363
+ getSmartJump() {
45364
+ return this.smartJump;
45365
+ }
45357
45366
  clearObservedItems() {
45358
45367
  const startPoint = this.getStartPoint();
45359
45368
  const endPoint = this.getEndPoint();
@@ -45432,6 +45441,9 @@ var init_Connector = __esm(() => {
45432
45441
  case "switchPointers":
45433
45442
  this.applySwitchPointers();
45434
45443
  break;
45444
+ case "setSmartJump":
45445
+ this.applySmartJump(operation.smartJump);
45446
+ break;
45435
45447
  }
45436
45448
  break;
45437
45449
  case "LinkTo":
@@ -45867,6 +45879,7 @@ var init_Connector = __esm(() => {
45867
45879
  lineWidth: this.lineWidth,
45868
45880
  text: text5,
45869
45881
  borderStyle: this.borderStyle,
45882
+ smartJump: this.smartJump,
45870
45883
  linkTo: this.linkTo.serialize()
45871
45884
  };
45872
45885
  }
@@ -45901,6 +45914,9 @@ var init_Connector = __esm(() => {
45901
45914
  }
45902
45915
  this.lineWidth = data.lineWidth ?? this.lineWidth;
45903
45916
  this.borderStyle = data.borderStyle ?? this.borderStyle;
45917
+ if (data.smartJump != null) {
45918
+ this.smartJump = data.smartJump;
45919
+ }
45904
45920
  if (data.transformation) {
45905
45921
  this.transformation.deserialize(data.transformation);
45906
45922
  }
@@ -46089,6 +46105,7 @@ class ConnectorData {
46089
46105
  linkTo;
46090
46106
  lineWidth = 1;
46091
46107
  borderStyle = "solid";
46108
+ smartJump = true;
46092
46109
  transformation = new DefaultTransformationData;
46093
46110
  text = new DefaultRichTextData([], "center", undefined);
46094
46111
  optionalFindItemFn;
@@ -13216,7 +13216,7 @@ var init_BaseItem = __esm(() => {
13216
13216
  this.subject.publish(this);
13217
13217
  }
13218
13218
  updateMbr() {
13219
- this._physicsHalfExtent = -1;
13219
+ return;
13220
13220
  }
13221
13221
  getLinkTo() {
13222
13222
  return this.linkTo.link;
@@ -13327,16 +13327,6 @@ var init_BaseItem = __esm(() => {
13327
13327
  }
13328
13328
  }
13329
13329
  this.transformation.apply(transformOp);
13330
- const m = transformOp.method;
13331
- if (m !== "translateTo" && m !== "translateBy" && m !== "rotateTo" && m !== "rotateBy" && m !== "locked" && m !== "unlocked") {
13332
- if (m === "applyMatrix") {
13333
- if (transformOp.items.some((i) => i.matrix.scaleX !== 1 || i.matrix.scaleY !== 1)) {
13334
- this._physicsHalfExtent = -1;
13335
- }
13336
- } else {
13337
- this._physicsHalfExtent = -1;
13338
- }
13339
- }
13340
13330
  break;
13341
13331
  }
13342
13332
  case "LinkTo":
@@ -42702,6 +42692,7 @@ var init_Connector = __esm(() => {
42702
42692
  transformation;
42703
42693
  middlePoint = new BoardPoint;
42704
42694
  lineColor;
42695
+ smartJump = true;
42705
42696
  linkTo;
42706
42697
  lineWidth;
42707
42698
  borderStyle;
@@ -42801,6 +42792,8 @@ var init_Connector = __esm(() => {
42801
42792
  }
42802
42793
  };
42803
42794
  smartJumpStartEdge() {
42795
+ if (!this.smartJump)
42796
+ return false;
42804
42797
  const start = this.startPoint;
42805
42798
  if (start.pointType !== "Fixed" && start.pointType !== "Floating")
42806
42799
  return false;
@@ -42837,6 +42830,8 @@ var init_Connector = __esm(() => {
42837
42830
  return true;
42838
42831
  }
42839
42832
  smartJumpEndEdge() {
42833
+ if (!this.smartJump)
42834
+ return false;
42840
42835
  const end = this.endPoint;
42841
42836
  if (end.pointType !== "Fixed" && end.pointType !== "Floating")
42842
42837
  return false;
@@ -42872,6 +42867,20 @@ var init_Connector = __esm(() => {
42872
42867
  this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
42873
42868
  return true;
42874
42869
  }
42870
+ setSmartJump(value) {
42871
+ this.emit({
42872
+ class: "Connector",
42873
+ method: "setSmartJump",
42874
+ item: [this.id],
42875
+ smartJump: value
42876
+ });
42877
+ }
42878
+ applySmartJump(value) {
42879
+ this.smartJump = value;
42880
+ }
42881
+ getSmartJump() {
42882
+ return this.smartJump;
42883
+ }
42875
42884
  clearObservedItems() {
42876
42885
  const startPoint = this.getStartPoint();
42877
42886
  const endPoint = this.getEndPoint();
@@ -42950,6 +42959,9 @@ var init_Connector = __esm(() => {
42950
42959
  case "switchPointers":
42951
42960
  this.applySwitchPointers();
42952
42961
  break;
42962
+ case "setSmartJump":
42963
+ this.applySmartJump(operation.smartJump);
42964
+ break;
42953
42965
  }
42954
42966
  break;
42955
42967
  case "LinkTo":
@@ -43385,6 +43397,7 @@ var init_Connector = __esm(() => {
43385
43397
  lineWidth: this.lineWidth,
43386
43398
  text: text5,
43387
43399
  borderStyle: this.borderStyle,
43400
+ smartJump: this.smartJump,
43388
43401
  linkTo: this.linkTo.serialize()
43389
43402
  };
43390
43403
  }
@@ -43419,6 +43432,9 @@ var init_Connector = __esm(() => {
43419
43432
  }
43420
43433
  this.lineWidth = data.lineWidth ?? this.lineWidth;
43421
43434
  this.borderStyle = data.borderStyle ?? this.borderStyle;
43435
+ if (data.smartJump != null) {
43436
+ this.smartJump = data.smartJump;
43437
+ }
43422
43438
  if (data.transformation) {
43423
43439
  this.transformation.deserialize(data.transformation);
43424
43440
  }
@@ -43607,6 +43623,7 @@ class ConnectorData {
43607
43623
  linkTo;
43608
43624
  lineWidth = 1;
43609
43625
  borderStyle = "solid";
43626
+ smartJump = true;
43610
43627
  transformation = new DefaultTransformationData;
43611
43628
  text = new DefaultRichTextData([], "center", undefined);
43612
43629
  optionalFindItemFn;
package/dist/esm/index.js CHANGED
@@ -13209,7 +13209,7 @@ var init_BaseItem = __esm(() => {
13209
13209
  this.subject.publish(this);
13210
13210
  }
13211
13211
  updateMbr() {
13212
- this._physicsHalfExtent = -1;
13212
+ return;
13213
13213
  }
13214
13214
  getLinkTo() {
13215
13215
  return this.linkTo.link;
@@ -13320,16 +13320,6 @@ var init_BaseItem = __esm(() => {
13320
13320
  }
13321
13321
  }
13322
13322
  this.transformation.apply(transformOp);
13323
- const m = transformOp.method;
13324
- if (m !== "translateTo" && m !== "translateBy" && m !== "rotateTo" && m !== "rotateBy" && m !== "locked" && m !== "unlocked") {
13325
- if (m === "applyMatrix") {
13326
- if (transformOp.items.some((i) => i.matrix.scaleX !== 1 || i.matrix.scaleY !== 1)) {
13327
- this._physicsHalfExtent = -1;
13328
- }
13329
- } else {
13330
- this._physicsHalfExtent = -1;
13331
- }
13332
- }
13333
13323
  break;
13334
13324
  }
13335
13325
  case "LinkTo":
@@ -42695,6 +42685,7 @@ var init_Connector = __esm(() => {
42695
42685
  transformation;
42696
42686
  middlePoint = new BoardPoint;
42697
42687
  lineColor;
42688
+ smartJump = true;
42698
42689
  linkTo;
42699
42690
  lineWidth;
42700
42691
  borderStyle;
@@ -42794,6 +42785,8 @@ var init_Connector = __esm(() => {
42794
42785
  }
42795
42786
  };
42796
42787
  smartJumpStartEdge() {
42788
+ if (!this.smartJump)
42789
+ return false;
42797
42790
  const start = this.startPoint;
42798
42791
  if (start.pointType !== "Fixed" && start.pointType !== "Floating")
42799
42792
  return false;
@@ -42830,6 +42823,8 @@ var init_Connector = __esm(() => {
42830
42823
  return true;
42831
42824
  }
42832
42825
  smartJumpEndEdge() {
42826
+ if (!this.smartJump)
42827
+ return false;
42833
42828
  const end = this.endPoint;
42834
42829
  if (end.pointType !== "Fixed" && end.pointType !== "Floating")
42835
42830
  return false;
@@ -42865,6 +42860,20 @@ var init_Connector = __esm(() => {
42865
42860
  this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
42866
42861
  return true;
42867
42862
  }
42863
+ setSmartJump(value) {
42864
+ this.emit({
42865
+ class: "Connector",
42866
+ method: "setSmartJump",
42867
+ item: [this.id],
42868
+ smartJump: value
42869
+ });
42870
+ }
42871
+ applySmartJump(value) {
42872
+ this.smartJump = value;
42873
+ }
42874
+ getSmartJump() {
42875
+ return this.smartJump;
42876
+ }
42868
42877
  clearObservedItems() {
42869
42878
  const startPoint = this.getStartPoint();
42870
42879
  const endPoint = this.getEndPoint();
@@ -42943,6 +42952,9 @@ var init_Connector = __esm(() => {
42943
42952
  case "switchPointers":
42944
42953
  this.applySwitchPointers();
42945
42954
  break;
42955
+ case "setSmartJump":
42956
+ this.applySmartJump(operation.smartJump);
42957
+ break;
42946
42958
  }
42947
42959
  break;
42948
42960
  case "LinkTo":
@@ -43378,6 +43390,7 @@ var init_Connector = __esm(() => {
43378
43390
  lineWidth: this.lineWidth,
43379
43391
  text: text5,
43380
43392
  borderStyle: this.borderStyle,
43393
+ smartJump: this.smartJump,
43381
43394
  linkTo: this.linkTo.serialize()
43382
43395
  };
43383
43396
  }
@@ -43412,6 +43425,9 @@ var init_Connector = __esm(() => {
43412
43425
  }
43413
43426
  this.lineWidth = data.lineWidth ?? this.lineWidth;
43414
43427
  this.borderStyle = data.borderStyle ?? this.borderStyle;
43428
+ if (data.smartJump != null) {
43429
+ this.smartJump = data.smartJump;
43430
+ }
43415
43431
  if (data.transformation) {
43416
43432
  this.transformation.deserialize(data.transformation);
43417
43433
  }
@@ -43600,6 +43616,7 @@ class ConnectorData {
43600
43616
  linkTo;
43601
43617
  lineWidth = 1;
43602
43618
  borderStyle = "solid";
43619
+ smartJump = true;
43603
43620
  transformation = new DefaultTransformationData;
43604
43621
  text = new DefaultRichTextData([], "center", undefined);
43605
43622
  optionalFindItemFn;
package/dist/esm/node.js CHANGED
@@ -13231,7 +13231,7 @@ var init_BaseItem = __esm(() => {
13231
13231
  this.subject.publish(this);
13232
13232
  }
13233
13233
  updateMbr() {
13234
- this._physicsHalfExtent = -1;
13234
+ return;
13235
13235
  }
13236
13236
  getLinkTo() {
13237
13237
  return this.linkTo.link;
@@ -13342,16 +13342,6 @@ var init_BaseItem = __esm(() => {
13342
13342
  }
13343
13343
  }
13344
13344
  this.transformation.apply(transformOp);
13345
- const m = transformOp.method;
13346
- if (m !== "translateTo" && m !== "translateBy" && m !== "rotateTo" && m !== "rotateBy" && m !== "locked" && m !== "unlocked") {
13347
- if (m === "applyMatrix") {
13348
- if (transformOp.items.some((i) => i.matrix.scaleX !== 1 || i.matrix.scaleY !== 1)) {
13349
- this._physicsHalfExtent = -1;
13350
- }
13351
- } else {
13352
- this._physicsHalfExtent = -1;
13353
- }
13354
- }
13355
13345
  break;
13356
13346
  }
13357
13347
  case "LinkTo":
@@ -45104,6 +45094,7 @@ var init_Connector = __esm(() => {
45104
45094
  transformation;
45105
45095
  middlePoint = new BoardPoint;
45106
45096
  lineColor;
45097
+ smartJump = true;
45107
45098
  linkTo;
45108
45099
  lineWidth;
45109
45100
  borderStyle;
@@ -45203,6 +45194,8 @@ var init_Connector = __esm(() => {
45203
45194
  }
45204
45195
  };
45205
45196
  smartJumpStartEdge() {
45197
+ if (!this.smartJump)
45198
+ return false;
45206
45199
  const start = this.startPoint;
45207
45200
  if (start.pointType !== "Fixed" && start.pointType !== "Floating")
45208
45201
  return false;
@@ -45239,6 +45232,8 @@ var init_Connector = __esm(() => {
45239
45232
  return true;
45240
45233
  }
45241
45234
  smartJumpEndEdge() {
45235
+ if (!this.smartJump)
45236
+ return false;
45242
45237
  const end = this.endPoint;
45243
45238
  if (end.pointType !== "Fixed" && end.pointType !== "Floating")
45244
45239
  return false;
@@ -45274,6 +45269,20 @@ var init_Connector = __esm(() => {
45274
45269
  this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
45275
45270
  return true;
45276
45271
  }
45272
+ setSmartJump(value) {
45273
+ this.emit({
45274
+ class: "Connector",
45275
+ method: "setSmartJump",
45276
+ item: [this.id],
45277
+ smartJump: value
45278
+ });
45279
+ }
45280
+ applySmartJump(value) {
45281
+ this.smartJump = value;
45282
+ }
45283
+ getSmartJump() {
45284
+ return this.smartJump;
45285
+ }
45277
45286
  clearObservedItems() {
45278
45287
  const startPoint = this.getStartPoint();
45279
45288
  const endPoint = this.getEndPoint();
@@ -45352,6 +45361,9 @@ var init_Connector = __esm(() => {
45352
45361
  case "switchPointers":
45353
45362
  this.applySwitchPointers();
45354
45363
  break;
45364
+ case "setSmartJump":
45365
+ this.applySmartJump(operation.smartJump);
45366
+ break;
45355
45367
  }
45356
45368
  break;
45357
45369
  case "LinkTo":
@@ -45787,6 +45799,7 @@ var init_Connector = __esm(() => {
45787
45799
  lineWidth: this.lineWidth,
45788
45800
  text: text5,
45789
45801
  borderStyle: this.borderStyle,
45802
+ smartJump: this.smartJump,
45790
45803
  linkTo: this.linkTo.serialize()
45791
45804
  };
45792
45805
  }
@@ -45821,6 +45834,9 @@ var init_Connector = __esm(() => {
45821
45834
  }
45822
45835
  this.lineWidth = data.lineWidth ?? this.lineWidth;
45823
45836
  this.borderStyle = data.borderStyle ?? this.borderStyle;
45837
+ if (data.smartJump != null) {
45838
+ this.smartJump = data.smartJump;
45839
+ }
45824
45840
  if (data.transformation) {
45825
45841
  this.transformation.deserialize(data.transformation);
45826
45842
  }
@@ -46009,6 +46025,7 @@ class ConnectorData {
46009
46025
  linkTo;
46010
46026
  lineWidth = 1;
46011
46027
  borderStyle = "solid";
46028
+ smartJump = true;
46012
46029
  transformation = new DefaultTransformationData;
46013
46030
  text = new DefaultRichTextData([], "center", undefined);
46014
46031
  optionalFindItemFn;
@@ -38,6 +38,7 @@ export declare class Connector extends BaseItem<Connector> {
38
38
  readonly transformation: Transformation;
39
39
  private middlePoint;
40
40
  private lineColor;
41
+ private smartJump;
41
42
  readonly linkTo: LinkTo;
42
43
  private lineWidth;
43
44
  borderStyle: BorderStyle;
@@ -62,6 +63,9 @@ export declare class Connector extends BaseItem<Connector> {
62
63
  private smartJumpStartEdge;
63
64
  /** Mirror of smartJumpStartEdge for the end point. */
64
65
  private smartJumpEndEdge;
66
+ setSmartJump(value: boolean): void;
67
+ private applySmartJump;
68
+ getSmartJump(): boolean;
65
69
  clearObservedItems(): void;
66
70
  private unsubscribeFromItem;
67
71
  private subscribeToItem;
@@ -17,6 +17,7 @@ export declare class ConnectorData {
17
17
  linkTo?: string;
18
18
  lineWidth: ConnectionLineWidth;
19
19
  borderStyle: BorderStyle;
20
+ smartJump: boolean;
20
21
  transformation: DefaultTransformationData;
21
22
  text: DefaultRichTextData;
22
23
  optionalFindItemFn?: FindItemFn;
@@ -84,5 +85,11 @@ interface SwitchPointers {
84
85
  method: "switchPointers";
85
86
  item: string[];
86
87
  }
87
- export type ConnectorOperation = SetStartPoint | SetEndPoint | SetMiddlePoint | SetStartPointerStyle | SetEndPointerStyle | SetLineStyle | SetLineColor | SetLineWidth | SwitchPointers | SetBorderStyle;
88
+ interface SetSmartJump {
89
+ class: "Connector";
90
+ method: "setSmartJump";
91
+ item: string[];
92
+ smartJump: boolean;
93
+ }
94
+ export type ConnectorOperation = SetStartPoint | SetEndPoint | SetMiddlePoint | SetStartPointerStyle | SetEndPointerStyle | SetLineStyle | SetLineColor | SetLineWidth | SwitchPointers | SetBorderStyle | SetSmartJump;
88
95
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.57",
3
+ "version": "0.13.59",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",