microboard-temp 0.13.58 → 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.
- package/dist/cjs/browser.js +27 -0
- package/dist/cjs/index.js +27 -0
- package/dist/cjs/node.js +27 -0
- package/dist/esm/browser.js +27 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/node.js +27 -0
- package/dist/types/Items/Connector/Connector.d.ts +4 -0
- package/dist/types/Items/Connector/ConnectorOperations.d.ts +8 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -42754,6 +42754,7 @@ var init_Connector = __esm(() => {
|
|
|
42754
42754
|
transformation;
|
|
42755
42755
|
middlePoint = new BoardPoint;
|
|
42756
42756
|
lineColor;
|
|
42757
|
+
smartJump = true;
|
|
42757
42758
|
linkTo;
|
|
42758
42759
|
lineWidth;
|
|
42759
42760
|
borderStyle;
|
|
@@ -42853,6 +42854,8 @@ var init_Connector = __esm(() => {
|
|
|
42853
42854
|
}
|
|
42854
42855
|
};
|
|
42855
42856
|
smartJumpStartEdge() {
|
|
42857
|
+
if (!this.smartJump)
|
|
42858
|
+
return false;
|
|
42856
42859
|
const start = this.startPoint;
|
|
42857
42860
|
if (start.pointType !== "Fixed" && start.pointType !== "Floating")
|
|
42858
42861
|
return false;
|
|
@@ -42889,6 +42892,8 @@ var init_Connector = __esm(() => {
|
|
|
42889
42892
|
return true;
|
|
42890
42893
|
}
|
|
42891
42894
|
smartJumpEndEdge() {
|
|
42895
|
+
if (!this.smartJump)
|
|
42896
|
+
return false;
|
|
42892
42897
|
const end = this.endPoint;
|
|
42893
42898
|
if (end.pointType !== "Fixed" && end.pointType !== "Floating")
|
|
42894
42899
|
return false;
|
|
@@ -42924,6 +42929,20 @@ var init_Connector = __esm(() => {
|
|
|
42924
42929
|
this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
|
|
42925
42930
|
return true;
|
|
42926
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
|
+
}
|
|
42927
42946
|
clearObservedItems() {
|
|
42928
42947
|
const startPoint = this.getStartPoint();
|
|
42929
42948
|
const endPoint = this.getEndPoint();
|
|
@@ -43002,6 +43021,9 @@ var init_Connector = __esm(() => {
|
|
|
43002
43021
|
case "switchPointers":
|
|
43003
43022
|
this.applySwitchPointers();
|
|
43004
43023
|
break;
|
|
43024
|
+
case "setSmartJump":
|
|
43025
|
+
this.applySmartJump(operation.smartJump);
|
|
43026
|
+
break;
|
|
43005
43027
|
}
|
|
43006
43028
|
break;
|
|
43007
43029
|
case "LinkTo":
|
|
@@ -43437,6 +43459,7 @@ var init_Connector = __esm(() => {
|
|
|
43437
43459
|
lineWidth: this.lineWidth,
|
|
43438
43460
|
text: text5,
|
|
43439
43461
|
borderStyle: this.borderStyle,
|
|
43462
|
+
smartJump: this.smartJump,
|
|
43440
43463
|
linkTo: this.linkTo.serialize()
|
|
43441
43464
|
};
|
|
43442
43465
|
}
|
|
@@ -43471,6 +43494,9 @@ var init_Connector = __esm(() => {
|
|
|
43471
43494
|
}
|
|
43472
43495
|
this.lineWidth = data.lineWidth ?? this.lineWidth;
|
|
43473
43496
|
this.borderStyle = data.borderStyle ?? this.borderStyle;
|
|
43497
|
+
if (data.smartJump != null) {
|
|
43498
|
+
this.smartJump = data.smartJump;
|
|
43499
|
+
}
|
|
43474
43500
|
if (data.transformation) {
|
|
43475
43501
|
this.transformation.deserialize(data.transformation);
|
|
43476
43502
|
}
|
|
@@ -43659,6 +43685,7 @@ class ConnectorData {
|
|
|
43659
43685
|
linkTo;
|
|
43660
43686
|
lineWidth = 1;
|
|
43661
43687
|
borderStyle = "solid";
|
|
43688
|
+
smartJump = true;
|
|
43662
43689
|
transformation = new DefaultTransformationData;
|
|
43663
43690
|
text = new DefaultRichTextData([], "center", undefined);
|
|
43664
43691
|
optionalFindItemFn;
|
package/dist/cjs/index.js
CHANGED
|
@@ -42754,6 +42754,7 @@ var init_Connector = __esm(() => {
|
|
|
42754
42754
|
transformation;
|
|
42755
42755
|
middlePoint = new BoardPoint;
|
|
42756
42756
|
lineColor;
|
|
42757
|
+
smartJump = true;
|
|
42757
42758
|
linkTo;
|
|
42758
42759
|
lineWidth;
|
|
42759
42760
|
borderStyle;
|
|
@@ -42853,6 +42854,8 @@ var init_Connector = __esm(() => {
|
|
|
42853
42854
|
}
|
|
42854
42855
|
};
|
|
42855
42856
|
smartJumpStartEdge() {
|
|
42857
|
+
if (!this.smartJump)
|
|
42858
|
+
return false;
|
|
42856
42859
|
const start = this.startPoint;
|
|
42857
42860
|
if (start.pointType !== "Fixed" && start.pointType !== "Floating")
|
|
42858
42861
|
return false;
|
|
@@ -42889,6 +42892,8 @@ var init_Connector = __esm(() => {
|
|
|
42889
42892
|
return true;
|
|
42890
42893
|
}
|
|
42891
42894
|
smartJumpEndEdge() {
|
|
42895
|
+
if (!this.smartJump)
|
|
42896
|
+
return false;
|
|
42892
42897
|
const end = this.endPoint;
|
|
42893
42898
|
if (end.pointType !== "Fixed" && end.pointType !== "Floating")
|
|
42894
42899
|
return false;
|
|
@@ -42924,6 +42929,20 @@ var init_Connector = __esm(() => {
|
|
|
42924
42929
|
this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
|
|
42925
42930
|
return true;
|
|
42926
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
|
+
}
|
|
42927
42946
|
clearObservedItems() {
|
|
42928
42947
|
const startPoint = this.getStartPoint();
|
|
42929
42948
|
const endPoint = this.getEndPoint();
|
|
@@ -43002,6 +43021,9 @@ var init_Connector = __esm(() => {
|
|
|
43002
43021
|
case "switchPointers":
|
|
43003
43022
|
this.applySwitchPointers();
|
|
43004
43023
|
break;
|
|
43024
|
+
case "setSmartJump":
|
|
43025
|
+
this.applySmartJump(operation.smartJump);
|
|
43026
|
+
break;
|
|
43005
43027
|
}
|
|
43006
43028
|
break;
|
|
43007
43029
|
case "LinkTo":
|
|
@@ -43437,6 +43459,7 @@ var init_Connector = __esm(() => {
|
|
|
43437
43459
|
lineWidth: this.lineWidth,
|
|
43438
43460
|
text: text5,
|
|
43439
43461
|
borderStyle: this.borderStyle,
|
|
43462
|
+
smartJump: this.smartJump,
|
|
43440
43463
|
linkTo: this.linkTo.serialize()
|
|
43441
43464
|
};
|
|
43442
43465
|
}
|
|
@@ -43471,6 +43494,9 @@ var init_Connector = __esm(() => {
|
|
|
43471
43494
|
}
|
|
43472
43495
|
this.lineWidth = data.lineWidth ?? this.lineWidth;
|
|
43473
43496
|
this.borderStyle = data.borderStyle ?? this.borderStyle;
|
|
43497
|
+
if (data.smartJump != null) {
|
|
43498
|
+
this.smartJump = data.smartJump;
|
|
43499
|
+
}
|
|
43474
43500
|
if (data.transformation) {
|
|
43475
43501
|
this.transformation.deserialize(data.transformation);
|
|
43476
43502
|
}
|
|
@@ -43659,6 +43685,7 @@ class ConnectorData {
|
|
|
43659
43685
|
linkTo;
|
|
43660
43686
|
lineWidth = 1;
|
|
43661
43687
|
borderStyle = "solid";
|
|
43688
|
+
smartJump = true;
|
|
43662
43689
|
transformation = new DefaultTransformationData;
|
|
43663
43690
|
text = new DefaultRichTextData([], "center", undefined);
|
|
43664
43691
|
optionalFindItemFn;
|
package/dist/cjs/node.js
CHANGED
|
@@ -45174,6 +45174,7 @@ var init_Connector = __esm(() => {
|
|
|
45174
45174
|
transformation;
|
|
45175
45175
|
middlePoint = new BoardPoint;
|
|
45176
45176
|
lineColor;
|
|
45177
|
+
smartJump = true;
|
|
45177
45178
|
linkTo;
|
|
45178
45179
|
lineWidth;
|
|
45179
45180
|
borderStyle;
|
|
@@ -45273,6 +45274,8 @@ var init_Connector = __esm(() => {
|
|
|
45273
45274
|
}
|
|
45274
45275
|
};
|
|
45275
45276
|
smartJumpStartEdge() {
|
|
45277
|
+
if (!this.smartJump)
|
|
45278
|
+
return false;
|
|
45276
45279
|
const start = this.startPoint;
|
|
45277
45280
|
if (start.pointType !== "Fixed" && start.pointType !== "Floating")
|
|
45278
45281
|
return false;
|
|
@@ -45309,6 +45312,8 @@ var init_Connector = __esm(() => {
|
|
|
45309
45312
|
return true;
|
|
45310
45313
|
}
|
|
45311
45314
|
smartJumpEndEdge() {
|
|
45315
|
+
if (!this.smartJump)
|
|
45316
|
+
return false;
|
|
45312
45317
|
const end = this.endPoint;
|
|
45313
45318
|
if (end.pointType !== "Fixed" && end.pointType !== "Floating")
|
|
45314
45319
|
return false;
|
|
@@ -45344,6 +45349,20 @@ var init_Connector = __esm(() => {
|
|
|
45344
45349
|
this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
|
|
45345
45350
|
return true;
|
|
45346
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
|
+
}
|
|
45347
45366
|
clearObservedItems() {
|
|
45348
45367
|
const startPoint = this.getStartPoint();
|
|
45349
45368
|
const endPoint = this.getEndPoint();
|
|
@@ -45422,6 +45441,9 @@ var init_Connector = __esm(() => {
|
|
|
45422
45441
|
case "switchPointers":
|
|
45423
45442
|
this.applySwitchPointers();
|
|
45424
45443
|
break;
|
|
45444
|
+
case "setSmartJump":
|
|
45445
|
+
this.applySmartJump(operation.smartJump);
|
|
45446
|
+
break;
|
|
45425
45447
|
}
|
|
45426
45448
|
break;
|
|
45427
45449
|
case "LinkTo":
|
|
@@ -45857,6 +45879,7 @@ var init_Connector = __esm(() => {
|
|
|
45857
45879
|
lineWidth: this.lineWidth,
|
|
45858
45880
|
text: text5,
|
|
45859
45881
|
borderStyle: this.borderStyle,
|
|
45882
|
+
smartJump: this.smartJump,
|
|
45860
45883
|
linkTo: this.linkTo.serialize()
|
|
45861
45884
|
};
|
|
45862
45885
|
}
|
|
@@ -45891,6 +45914,9 @@ var init_Connector = __esm(() => {
|
|
|
45891
45914
|
}
|
|
45892
45915
|
this.lineWidth = data.lineWidth ?? this.lineWidth;
|
|
45893
45916
|
this.borderStyle = data.borderStyle ?? this.borderStyle;
|
|
45917
|
+
if (data.smartJump != null) {
|
|
45918
|
+
this.smartJump = data.smartJump;
|
|
45919
|
+
}
|
|
45894
45920
|
if (data.transformation) {
|
|
45895
45921
|
this.transformation.deserialize(data.transformation);
|
|
45896
45922
|
}
|
|
@@ -46079,6 +46105,7 @@ class ConnectorData {
|
|
|
46079
46105
|
linkTo;
|
|
46080
46106
|
lineWidth = 1;
|
|
46081
46107
|
borderStyle = "solid";
|
|
46108
|
+
smartJump = true;
|
|
46082
46109
|
transformation = new DefaultTransformationData;
|
|
46083
46110
|
text = new DefaultRichTextData([], "center", undefined);
|
|
46084
46111
|
optionalFindItemFn;
|
package/dist/esm/browser.js
CHANGED
|
@@ -42692,6 +42692,7 @@ var init_Connector = __esm(() => {
|
|
|
42692
42692
|
transformation;
|
|
42693
42693
|
middlePoint = new BoardPoint;
|
|
42694
42694
|
lineColor;
|
|
42695
|
+
smartJump = true;
|
|
42695
42696
|
linkTo;
|
|
42696
42697
|
lineWidth;
|
|
42697
42698
|
borderStyle;
|
|
@@ -42791,6 +42792,8 @@ var init_Connector = __esm(() => {
|
|
|
42791
42792
|
}
|
|
42792
42793
|
};
|
|
42793
42794
|
smartJumpStartEdge() {
|
|
42795
|
+
if (!this.smartJump)
|
|
42796
|
+
return false;
|
|
42794
42797
|
const start = this.startPoint;
|
|
42795
42798
|
if (start.pointType !== "Fixed" && start.pointType !== "Floating")
|
|
42796
42799
|
return false;
|
|
@@ -42827,6 +42830,8 @@ var init_Connector = __esm(() => {
|
|
|
42827
42830
|
return true;
|
|
42828
42831
|
}
|
|
42829
42832
|
smartJumpEndEdge() {
|
|
42833
|
+
if (!this.smartJump)
|
|
42834
|
+
return false;
|
|
42830
42835
|
const end = this.endPoint;
|
|
42831
42836
|
if (end.pointType !== "Fixed" && end.pointType !== "Floating")
|
|
42832
42837
|
return false;
|
|
@@ -42862,6 +42867,20 @@ var init_Connector = __esm(() => {
|
|
|
42862
42867
|
this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
|
|
42863
42868
|
return true;
|
|
42864
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
|
+
}
|
|
42865
42884
|
clearObservedItems() {
|
|
42866
42885
|
const startPoint = this.getStartPoint();
|
|
42867
42886
|
const endPoint = this.getEndPoint();
|
|
@@ -42940,6 +42959,9 @@ var init_Connector = __esm(() => {
|
|
|
42940
42959
|
case "switchPointers":
|
|
42941
42960
|
this.applySwitchPointers();
|
|
42942
42961
|
break;
|
|
42962
|
+
case "setSmartJump":
|
|
42963
|
+
this.applySmartJump(operation.smartJump);
|
|
42964
|
+
break;
|
|
42943
42965
|
}
|
|
42944
42966
|
break;
|
|
42945
42967
|
case "LinkTo":
|
|
@@ -43375,6 +43397,7 @@ var init_Connector = __esm(() => {
|
|
|
43375
43397
|
lineWidth: this.lineWidth,
|
|
43376
43398
|
text: text5,
|
|
43377
43399
|
borderStyle: this.borderStyle,
|
|
43400
|
+
smartJump: this.smartJump,
|
|
43378
43401
|
linkTo: this.linkTo.serialize()
|
|
43379
43402
|
};
|
|
43380
43403
|
}
|
|
@@ -43409,6 +43432,9 @@ var init_Connector = __esm(() => {
|
|
|
43409
43432
|
}
|
|
43410
43433
|
this.lineWidth = data.lineWidth ?? this.lineWidth;
|
|
43411
43434
|
this.borderStyle = data.borderStyle ?? this.borderStyle;
|
|
43435
|
+
if (data.smartJump != null) {
|
|
43436
|
+
this.smartJump = data.smartJump;
|
|
43437
|
+
}
|
|
43412
43438
|
if (data.transformation) {
|
|
43413
43439
|
this.transformation.deserialize(data.transformation);
|
|
43414
43440
|
}
|
|
@@ -43597,6 +43623,7 @@ class ConnectorData {
|
|
|
43597
43623
|
linkTo;
|
|
43598
43624
|
lineWidth = 1;
|
|
43599
43625
|
borderStyle = "solid";
|
|
43626
|
+
smartJump = true;
|
|
43600
43627
|
transformation = new DefaultTransformationData;
|
|
43601
43628
|
text = new DefaultRichTextData([], "center", undefined);
|
|
43602
43629
|
optionalFindItemFn;
|
package/dist/esm/index.js
CHANGED
|
@@ -42685,6 +42685,7 @@ var init_Connector = __esm(() => {
|
|
|
42685
42685
|
transformation;
|
|
42686
42686
|
middlePoint = new BoardPoint;
|
|
42687
42687
|
lineColor;
|
|
42688
|
+
smartJump = true;
|
|
42688
42689
|
linkTo;
|
|
42689
42690
|
lineWidth;
|
|
42690
42691
|
borderStyle;
|
|
@@ -42784,6 +42785,8 @@ var init_Connector = __esm(() => {
|
|
|
42784
42785
|
}
|
|
42785
42786
|
};
|
|
42786
42787
|
smartJumpStartEdge() {
|
|
42788
|
+
if (!this.smartJump)
|
|
42789
|
+
return false;
|
|
42787
42790
|
const start = this.startPoint;
|
|
42788
42791
|
if (start.pointType !== "Fixed" && start.pointType !== "Floating")
|
|
42789
42792
|
return false;
|
|
@@ -42820,6 +42823,8 @@ var init_Connector = __esm(() => {
|
|
|
42820
42823
|
return true;
|
|
42821
42824
|
}
|
|
42822
42825
|
smartJumpEndEdge() {
|
|
42826
|
+
if (!this.smartJump)
|
|
42827
|
+
return false;
|
|
42823
42828
|
const end = this.endPoint;
|
|
42824
42829
|
if (end.pointType !== "Fixed" && end.pointType !== "Floating")
|
|
42825
42830
|
return false;
|
|
@@ -42855,6 +42860,20 @@ var init_Connector = __esm(() => {
|
|
|
42855
42860
|
this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
|
|
42856
42861
|
return true;
|
|
42857
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
|
+
}
|
|
42858
42877
|
clearObservedItems() {
|
|
42859
42878
|
const startPoint = this.getStartPoint();
|
|
42860
42879
|
const endPoint = this.getEndPoint();
|
|
@@ -42933,6 +42952,9 @@ var init_Connector = __esm(() => {
|
|
|
42933
42952
|
case "switchPointers":
|
|
42934
42953
|
this.applySwitchPointers();
|
|
42935
42954
|
break;
|
|
42955
|
+
case "setSmartJump":
|
|
42956
|
+
this.applySmartJump(operation.smartJump);
|
|
42957
|
+
break;
|
|
42936
42958
|
}
|
|
42937
42959
|
break;
|
|
42938
42960
|
case "LinkTo":
|
|
@@ -43368,6 +43390,7 @@ var init_Connector = __esm(() => {
|
|
|
43368
43390
|
lineWidth: this.lineWidth,
|
|
43369
43391
|
text: text5,
|
|
43370
43392
|
borderStyle: this.borderStyle,
|
|
43393
|
+
smartJump: this.smartJump,
|
|
43371
43394
|
linkTo: this.linkTo.serialize()
|
|
43372
43395
|
};
|
|
43373
43396
|
}
|
|
@@ -43402,6 +43425,9 @@ var init_Connector = __esm(() => {
|
|
|
43402
43425
|
}
|
|
43403
43426
|
this.lineWidth = data.lineWidth ?? this.lineWidth;
|
|
43404
43427
|
this.borderStyle = data.borderStyle ?? this.borderStyle;
|
|
43428
|
+
if (data.smartJump != null) {
|
|
43429
|
+
this.smartJump = data.smartJump;
|
|
43430
|
+
}
|
|
43405
43431
|
if (data.transformation) {
|
|
43406
43432
|
this.transformation.deserialize(data.transformation);
|
|
43407
43433
|
}
|
|
@@ -43590,6 +43616,7 @@ class ConnectorData {
|
|
|
43590
43616
|
linkTo;
|
|
43591
43617
|
lineWidth = 1;
|
|
43592
43618
|
borderStyle = "solid";
|
|
43619
|
+
smartJump = true;
|
|
43593
43620
|
transformation = new DefaultTransformationData;
|
|
43594
43621
|
text = new DefaultRichTextData([], "center", undefined);
|
|
43595
43622
|
optionalFindItemFn;
|
package/dist/esm/node.js
CHANGED
|
@@ -45094,6 +45094,7 @@ var init_Connector = __esm(() => {
|
|
|
45094
45094
|
transformation;
|
|
45095
45095
|
middlePoint = new BoardPoint;
|
|
45096
45096
|
lineColor;
|
|
45097
|
+
smartJump = true;
|
|
45097
45098
|
linkTo;
|
|
45098
45099
|
lineWidth;
|
|
45099
45100
|
borderStyle;
|
|
@@ -45193,6 +45194,8 @@ var init_Connector = __esm(() => {
|
|
|
45193
45194
|
}
|
|
45194
45195
|
};
|
|
45195
45196
|
smartJumpStartEdge() {
|
|
45197
|
+
if (!this.smartJump)
|
|
45198
|
+
return false;
|
|
45196
45199
|
const start = this.startPoint;
|
|
45197
45200
|
if (start.pointType !== "Fixed" && start.pointType !== "Floating")
|
|
45198
45201
|
return false;
|
|
@@ -45229,6 +45232,8 @@ var init_Connector = __esm(() => {
|
|
|
45229
45232
|
return true;
|
|
45230
45233
|
}
|
|
45231
45234
|
smartJumpEndEdge() {
|
|
45235
|
+
if (!this.smartJump)
|
|
45236
|
+
return false;
|
|
45232
45237
|
const end = this.endPoint;
|
|
45233
45238
|
if (end.pointType !== "Fixed" && end.pointType !== "Floating")
|
|
45234
45239
|
return false;
|
|
@@ -45264,6 +45269,20 @@ var init_Connector = __esm(() => {
|
|
|
45264
45269
|
this.setEndPoint(new FixedPoint(item, toRelativePoint(best, item)));
|
|
45265
45270
|
return true;
|
|
45266
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
|
+
}
|
|
45267
45286
|
clearObservedItems() {
|
|
45268
45287
|
const startPoint = this.getStartPoint();
|
|
45269
45288
|
const endPoint = this.getEndPoint();
|
|
@@ -45342,6 +45361,9 @@ var init_Connector = __esm(() => {
|
|
|
45342
45361
|
case "switchPointers":
|
|
45343
45362
|
this.applySwitchPointers();
|
|
45344
45363
|
break;
|
|
45364
|
+
case "setSmartJump":
|
|
45365
|
+
this.applySmartJump(operation.smartJump);
|
|
45366
|
+
break;
|
|
45345
45367
|
}
|
|
45346
45368
|
break;
|
|
45347
45369
|
case "LinkTo":
|
|
@@ -45777,6 +45799,7 @@ var init_Connector = __esm(() => {
|
|
|
45777
45799
|
lineWidth: this.lineWidth,
|
|
45778
45800
|
text: text5,
|
|
45779
45801
|
borderStyle: this.borderStyle,
|
|
45802
|
+
smartJump: this.smartJump,
|
|
45780
45803
|
linkTo: this.linkTo.serialize()
|
|
45781
45804
|
};
|
|
45782
45805
|
}
|
|
@@ -45811,6 +45834,9 @@ var init_Connector = __esm(() => {
|
|
|
45811
45834
|
}
|
|
45812
45835
|
this.lineWidth = data.lineWidth ?? this.lineWidth;
|
|
45813
45836
|
this.borderStyle = data.borderStyle ?? this.borderStyle;
|
|
45837
|
+
if (data.smartJump != null) {
|
|
45838
|
+
this.smartJump = data.smartJump;
|
|
45839
|
+
}
|
|
45814
45840
|
if (data.transformation) {
|
|
45815
45841
|
this.transformation.deserialize(data.transformation);
|
|
45816
45842
|
}
|
|
@@ -45999,6 +46025,7 @@ class ConnectorData {
|
|
|
45999
46025
|
linkTo;
|
|
46000
46026
|
lineWidth = 1;
|
|
46001
46027
|
borderStyle = "solid";
|
|
46028
|
+
smartJump = true;
|
|
46002
46029
|
transformation = new DefaultTransformationData;
|
|
46003
46030
|
text = new DefaultRichTextData([], "center", undefined);
|
|
46004
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
|
-
|
|
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 {};
|