microboard-temp 0.14.8 → 0.14.9
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 +6 -4
- package/dist/cjs/index.js +6 -4
- package/dist/cjs/node.js +6 -4
- package/dist/esm/browser.js +6 -4
- package/dist/esm/index.js +6 -4
- package/dist/esm/node.js +6 -4
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -69991,11 +69991,12 @@ class AddConnector extends BoardTool {
|
|
|
69991
69991
|
this.isDown = true;
|
|
69992
69992
|
this.isQuickAdd = true;
|
|
69993
69993
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
69994
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
69994
69995
|
this.connector = new Connector2(this.board);
|
|
69995
69996
|
this.connector.deserialize({
|
|
69996
69997
|
itemType: "Connector",
|
|
69997
|
-
startPoint:
|
|
69998
|
-
endPoint:
|
|
69998
|
+
startPoint: serializedPoint,
|
|
69999
|
+
endPoint: serializedPoint,
|
|
69999
70000
|
lineStyle: this.lineStyle,
|
|
70000
70001
|
startPointer: this.startPointer,
|
|
70001
70002
|
endPointer: this.endPointer,
|
|
@@ -70011,12 +70012,13 @@ class AddConnector extends BoardTool {
|
|
|
70011
70012
|
leftButtonDown() {
|
|
70012
70013
|
this.isDown = true;
|
|
70013
70014
|
const point5 = this.snap.getControlPoint();
|
|
70015
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
70014
70016
|
if (!this.connector) {
|
|
70015
70017
|
this.connector = new Connector2(this.board);
|
|
70016
70018
|
this.connector.deserialize({
|
|
70017
70019
|
itemType: "Connector",
|
|
70018
|
-
startPoint:
|
|
70019
|
-
endPoint:
|
|
70020
|
+
startPoint: serializedPoint,
|
|
70021
|
+
endPoint: serializedPoint,
|
|
70020
70022
|
lineStyle: this.lineStyle,
|
|
70021
70023
|
startPointer: this.startPointer,
|
|
70022
70024
|
endPointer: this.endPointer,
|
package/dist/cjs/index.js
CHANGED
|
@@ -69991,11 +69991,12 @@ class AddConnector extends BoardTool {
|
|
|
69991
69991
|
this.isDown = true;
|
|
69992
69992
|
this.isQuickAdd = true;
|
|
69993
69993
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
69994
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
69994
69995
|
this.connector = new Connector2(this.board);
|
|
69995
69996
|
this.connector.deserialize({
|
|
69996
69997
|
itemType: "Connector",
|
|
69997
|
-
startPoint:
|
|
69998
|
-
endPoint:
|
|
69998
|
+
startPoint: serializedPoint,
|
|
69999
|
+
endPoint: serializedPoint,
|
|
69999
70000
|
lineStyle: this.lineStyle,
|
|
70000
70001
|
startPointer: this.startPointer,
|
|
70001
70002
|
endPointer: this.endPointer,
|
|
@@ -70011,12 +70012,13 @@ class AddConnector extends BoardTool {
|
|
|
70011
70012
|
leftButtonDown() {
|
|
70012
70013
|
this.isDown = true;
|
|
70013
70014
|
const point5 = this.snap.getControlPoint();
|
|
70015
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
70014
70016
|
if (!this.connector) {
|
|
70015
70017
|
this.connector = new Connector2(this.board);
|
|
70016
70018
|
this.connector.deserialize({
|
|
70017
70019
|
itemType: "Connector",
|
|
70018
|
-
startPoint:
|
|
70019
|
-
endPoint:
|
|
70020
|
+
startPoint: serializedPoint,
|
|
70021
|
+
endPoint: serializedPoint,
|
|
70020
70022
|
lineStyle: this.lineStyle,
|
|
70021
70023
|
startPointer: this.startPointer,
|
|
70022
70024
|
endPointer: this.endPointer,
|
package/dist/cjs/node.js
CHANGED
|
@@ -72464,11 +72464,12 @@ class AddConnector extends BoardTool {
|
|
|
72464
72464
|
this.isDown = true;
|
|
72465
72465
|
this.isQuickAdd = true;
|
|
72466
72466
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
72467
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
72467
72468
|
this.connector = new Connector2(this.board);
|
|
72468
72469
|
this.connector.deserialize({
|
|
72469
72470
|
itemType: "Connector",
|
|
72470
|
-
startPoint:
|
|
72471
|
-
endPoint:
|
|
72471
|
+
startPoint: serializedPoint,
|
|
72472
|
+
endPoint: serializedPoint,
|
|
72472
72473
|
lineStyle: this.lineStyle,
|
|
72473
72474
|
startPointer: this.startPointer,
|
|
72474
72475
|
endPointer: this.endPointer,
|
|
@@ -72484,12 +72485,13 @@ class AddConnector extends BoardTool {
|
|
|
72484
72485
|
leftButtonDown() {
|
|
72485
72486
|
this.isDown = true;
|
|
72486
72487
|
const point5 = this.snap.getControlPoint();
|
|
72488
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
72487
72489
|
if (!this.connector) {
|
|
72488
72490
|
this.connector = new Connector2(this.board);
|
|
72489
72491
|
this.connector.deserialize({
|
|
72490
72492
|
itemType: "Connector",
|
|
72491
|
-
startPoint:
|
|
72492
|
-
endPoint:
|
|
72493
|
+
startPoint: serializedPoint,
|
|
72494
|
+
endPoint: serializedPoint,
|
|
72493
72495
|
lineStyle: this.lineStyle,
|
|
72494
72496
|
startPointer: this.startPointer,
|
|
72495
72497
|
endPointer: this.endPointer,
|
package/dist/esm/browser.js
CHANGED
|
@@ -69802,11 +69802,12 @@ class AddConnector extends BoardTool {
|
|
|
69802
69802
|
this.isDown = true;
|
|
69803
69803
|
this.isQuickAdd = true;
|
|
69804
69804
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
69805
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
69805
69806
|
this.connector = new Connector2(this.board);
|
|
69806
69807
|
this.connector.deserialize({
|
|
69807
69808
|
itemType: "Connector",
|
|
69808
|
-
startPoint:
|
|
69809
|
-
endPoint:
|
|
69809
|
+
startPoint: serializedPoint,
|
|
69810
|
+
endPoint: serializedPoint,
|
|
69810
69811
|
lineStyle: this.lineStyle,
|
|
69811
69812
|
startPointer: this.startPointer,
|
|
69812
69813
|
endPointer: this.endPointer,
|
|
@@ -69822,12 +69823,13 @@ class AddConnector extends BoardTool {
|
|
|
69822
69823
|
leftButtonDown() {
|
|
69823
69824
|
this.isDown = true;
|
|
69824
69825
|
const point5 = this.snap.getControlPoint();
|
|
69826
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
69825
69827
|
if (!this.connector) {
|
|
69826
69828
|
this.connector = new Connector2(this.board);
|
|
69827
69829
|
this.connector.deserialize({
|
|
69828
69830
|
itemType: "Connector",
|
|
69829
|
-
startPoint:
|
|
69830
|
-
endPoint:
|
|
69831
|
+
startPoint: serializedPoint,
|
|
69832
|
+
endPoint: serializedPoint,
|
|
69831
69833
|
lineStyle: this.lineStyle,
|
|
69832
69834
|
startPointer: this.startPointer,
|
|
69833
69835
|
endPointer: this.endPointer,
|
package/dist/esm/index.js
CHANGED
|
@@ -69795,11 +69795,12 @@ class AddConnector extends BoardTool {
|
|
|
69795
69795
|
this.isDown = true;
|
|
69796
69796
|
this.isQuickAdd = true;
|
|
69797
69797
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
69798
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
69798
69799
|
this.connector = new Connector2(this.board);
|
|
69799
69800
|
this.connector.deserialize({
|
|
69800
69801
|
itemType: "Connector",
|
|
69801
|
-
startPoint:
|
|
69802
|
-
endPoint:
|
|
69802
|
+
startPoint: serializedPoint,
|
|
69803
|
+
endPoint: serializedPoint,
|
|
69803
69804
|
lineStyle: this.lineStyle,
|
|
69804
69805
|
startPointer: this.startPointer,
|
|
69805
69806
|
endPointer: this.endPointer,
|
|
@@ -69815,12 +69816,13 @@ class AddConnector extends BoardTool {
|
|
|
69815
69816
|
leftButtonDown() {
|
|
69816
69817
|
this.isDown = true;
|
|
69817
69818
|
const point5 = this.snap.getControlPoint();
|
|
69819
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
69818
69820
|
if (!this.connector) {
|
|
69819
69821
|
this.connector = new Connector2(this.board);
|
|
69820
69822
|
this.connector.deserialize({
|
|
69821
69823
|
itemType: "Connector",
|
|
69822
|
-
startPoint:
|
|
69823
|
-
endPoint:
|
|
69824
|
+
startPoint: serializedPoint,
|
|
69825
|
+
endPoint: serializedPoint,
|
|
69824
69826
|
lineStyle: this.lineStyle,
|
|
69825
69827
|
startPointer: this.startPointer,
|
|
69826
69828
|
endPointer: this.endPointer,
|
package/dist/esm/node.js
CHANGED
|
@@ -72263,11 +72263,12 @@ class AddConnector extends BoardTool {
|
|
|
72263
72263
|
this.isDown = true;
|
|
72264
72264
|
this.isQuickAdd = true;
|
|
72265
72265
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
72266
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
72266
72267
|
this.connector = new Connector2(this.board);
|
|
72267
72268
|
this.connector.deserialize({
|
|
72268
72269
|
itemType: "Connector",
|
|
72269
|
-
startPoint:
|
|
72270
|
-
endPoint:
|
|
72270
|
+
startPoint: serializedPoint,
|
|
72271
|
+
endPoint: serializedPoint,
|
|
72271
72272
|
lineStyle: this.lineStyle,
|
|
72272
72273
|
startPointer: this.startPointer,
|
|
72273
72274
|
endPointer: this.endPointer,
|
|
@@ -72283,12 +72284,13 @@ class AddConnector extends BoardTool {
|
|
|
72283
72284
|
leftButtonDown() {
|
|
72284
72285
|
this.isDown = true;
|
|
72285
72286
|
const point5 = this.snap.getControlPoint();
|
|
72287
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
72286
72288
|
if (!this.connector) {
|
|
72287
72289
|
this.connector = new Connector2(this.board);
|
|
72288
72290
|
this.connector.deserialize({
|
|
72289
72291
|
itemType: "Connector",
|
|
72290
|
-
startPoint:
|
|
72291
|
-
endPoint:
|
|
72292
|
+
startPoint: serializedPoint,
|
|
72293
|
+
endPoint: serializedPoint,
|
|
72292
72294
|
lineStyle: this.lineStyle,
|
|
72293
72295
|
startPointer: this.startPointer,
|
|
72294
72296
|
endPointer: this.endPointer,
|