microboard-temp 0.14.8 → 0.14.10
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 -4
- package/dist/cjs/index.js +7 -4
- package/dist/cjs/node.js +7 -4
- package/dist/esm/browser.js +7 -4
- package/dist/esm/index.js +7 -4
- package/dist/esm/node.js +7 -4
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -58246,6 +58246,7 @@ class Sticker extends BaseItem {
|
|
|
58246
58246
|
this.text.placeholderText = " ";
|
|
58247
58247
|
this.text.isInShape = false;
|
|
58248
58248
|
this.text.insideOf = this.itemType;
|
|
58249
|
+
this.text.autosizeEnable();
|
|
58249
58250
|
this.text.updateShrinkWidth();
|
|
58250
58251
|
this.text.subject.subscribe(() => {
|
|
58251
58252
|
this.subject.publish(this);
|
|
@@ -69991,11 +69992,12 @@ class AddConnector extends BoardTool {
|
|
|
69991
69992
|
this.isDown = true;
|
|
69992
69993
|
this.isQuickAdd = true;
|
|
69993
69994
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
69995
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
69994
69996
|
this.connector = new Connector2(this.board);
|
|
69995
69997
|
this.connector.deserialize({
|
|
69996
69998
|
itemType: "Connector",
|
|
69997
|
-
startPoint:
|
|
69998
|
-
endPoint:
|
|
69999
|
+
startPoint: serializedPoint,
|
|
70000
|
+
endPoint: serializedPoint,
|
|
69999
70001
|
lineStyle: this.lineStyle,
|
|
70000
70002
|
startPointer: this.startPointer,
|
|
70001
70003
|
endPointer: this.endPointer,
|
|
@@ -70011,12 +70013,13 @@ class AddConnector extends BoardTool {
|
|
|
70011
70013
|
leftButtonDown() {
|
|
70012
70014
|
this.isDown = true;
|
|
70013
70015
|
const point5 = this.snap.getControlPoint();
|
|
70016
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
70014
70017
|
if (!this.connector) {
|
|
70015
70018
|
this.connector = new Connector2(this.board);
|
|
70016
70019
|
this.connector.deserialize({
|
|
70017
70020
|
itemType: "Connector",
|
|
70018
|
-
startPoint:
|
|
70019
|
-
endPoint:
|
|
70021
|
+
startPoint: serializedPoint,
|
|
70022
|
+
endPoint: serializedPoint,
|
|
70020
70023
|
lineStyle: this.lineStyle,
|
|
70021
70024
|
startPointer: this.startPointer,
|
|
70022
70025
|
endPointer: this.endPointer,
|
package/dist/cjs/index.js
CHANGED
|
@@ -58246,6 +58246,7 @@ class Sticker extends BaseItem {
|
|
|
58246
58246
|
this.text.placeholderText = " ";
|
|
58247
58247
|
this.text.isInShape = false;
|
|
58248
58248
|
this.text.insideOf = this.itemType;
|
|
58249
|
+
this.text.autosizeEnable();
|
|
58249
58250
|
this.text.updateShrinkWidth();
|
|
58250
58251
|
this.text.subject.subscribe(() => {
|
|
58251
58252
|
this.subject.publish(this);
|
|
@@ -69991,11 +69992,12 @@ class AddConnector extends BoardTool {
|
|
|
69991
69992
|
this.isDown = true;
|
|
69992
69993
|
this.isQuickAdd = true;
|
|
69993
69994
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
69995
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
69994
69996
|
this.connector = new Connector2(this.board);
|
|
69995
69997
|
this.connector.deserialize({
|
|
69996
69998
|
itemType: "Connector",
|
|
69997
|
-
startPoint:
|
|
69998
|
-
endPoint:
|
|
69999
|
+
startPoint: serializedPoint,
|
|
70000
|
+
endPoint: serializedPoint,
|
|
69999
70001
|
lineStyle: this.lineStyle,
|
|
70000
70002
|
startPointer: this.startPointer,
|
|
70001
70003
|
endPointer: this.endPointer,
|
|
@@ -70011,12 +70013,13 @@ class AddConnector extends BoardTool {
|
|
|
70011
70013
|
leftButtonDown() {
|
|
70012
70014
|
this.isDown = true;
|
|
70013
70015
|
const point5 = this.snap.getControlPoint();
|
|
70016
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
70014
70017
|
if (!this.connector) {
|
|
70015
70018
|
this.connector = new Connector2(this.board);
|
|
70016
70019
|
this.connector.deserialize({
|
|
70017
70020
|
itemType: "Connector",
|
|
70018
|
-
startPoint:
|
|
70019
|
-
endPoint:
|
|
70021
|
+
startPoint: serializedPoint,
|
|
70022
|
+
endPoint: serializedPoint,
|
|
70020
70023
|
lineStyle: this.lineStyle,
|
|
70021
70024
|
startPointer: this.startPointer,
|
|
70022
70025
|
endPointer: this.endPointer,
|
package/dist/cjs/node.js
CHANGED
|
@@ -60719,6 +60719,7 @@ class Sticker extends BaseItem {
|
|
|
60719
60719
|
this.text.placeholderText = " ";
|
|
60720
60720
|
this.text.isInShape = false;
|
|
60721
60721
|
this.text.insideOf = this.itemType;
|
|
60722
|
+
this.text.autosizeEnable();
|
|
60722
60723
|
this.text.updateShrinkWidth();
|
|
60723
60724
|
this.text.subject.subscribe(() => {
|
|
60724
60725
|
this.subject.publish(this);
|
|
@@ -72464,11 +72465,12 @@ class AddConnector extends BoardTool {
|
|
|
72464
72465
|
this.isDown = true;
|
|
72465
72466
|
this.isQuickAdd = true;
|
|
72466
72467
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
72468
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
72467
72469
|
this.connector = new Connector2(this.board);
|
|
72468
72470
|
this.connector.deserialize({
|
|
72469
72471
|
itemType: "Connector",
|
|
72470
|
-
startPoint:
|
|
72471
|
-
endPoint:
|
|
72472
|
+
startPoint: serializedPoint,
|
|
72473
|
+
endPoint: serializedPoint,
|
|
72472
72474
|
lineStyle: this.lineStyle,
|
|
72473
72475
|
startPointer: this.startPointer,
|
|
72474
72476
|
endPointer: this.endPointer,
|
|
@@ -72484,12 +72486,13 @@ class AddConnector extends BoardTool {
|
|
|
72484
72486
|
leftButtonDown() {
|
|
72485
72487
|
this.isDown = true;
|
|
72486
72488
|
const point5 = this.snap.getControlPoint();
|
|
72489
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
72487
72490
|
if (!this.connector) {
|
|
72488
72491
|
this.connector = new Connector2(this.board);
|
|
72489
72492
|
this.connector.deserialize({
|
|
72490
72493
|
itemType: "Connector",
|
|
72491
|
-
startPoint:
|
|
72492
|
-
endPoint:
|
|
72494
|
+
startPoint: serializedPoint,
|
|
72495
|
+
endPoint: serializedPoint,
|
|
72493
72496
|
lineStyle: this.lineStyle,
|
|
72494
72497
|
startPointer: this.startPointer,
|
|
72495
72498
|
endPointer: this.endPointer,
|
package/dist/esm/browser.js
CHANGED
|
@@ -58057,6 +58057,7 @@ class Sticker extends BaseItem {
|
|
|
58057
58057
|
this.text.placeholderText = " ";
|
|
58058
58058
|
this.text.isInShape = false;
|
|
58059
58059
|
this.text.insideOf = this.itemType;
|
|
58060
|
+
this.text.autosizeEnable();
|
|
58060
58061
|
this.text.updateShrinkWidth();
|
|
58061
58062
|
this.text.subject.subscribe(() => {
|
|
58062
58063
|
this.subject.publish(this);
|
|
@@ -69802,11 +69803,12 @@ class AddConnector extends BoardTool {
|
|
|
69802
69803
|
this.isDown = true;
|
|
69803
69804
|
this.isQuickAdd = true;
|
|
69804
69805
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
69806
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
69805
69807
|
this.connector = new Connector2(this.board);
|
|
69806
69808
|
this.connector.deserialize({
|
|
69807
69809
|
itemType: "Connector",
|
|
69808
|
-
startPoint:
|
|
69809
|
-
endPoint:
|
|
69810
|
+
startPoint: serializedPoint,
|
|
69811
|
+
endPoint: serializedPoint,
|
|
69810
69812
|
lineStyle: this.lineStyle,
|
|
69811
69813
|
startPointer: this.startPointer,
|
|
69812
69814
|
endPointer: this.endPointer,
|
|
@@ -69822,12 +69824,13 @@ class AddConnector extends BoardTool {
|
|
|
69822
69824
|
leftButtonDown() {
|
|
69823
69825
|
this.isDown = true;
|
|
69824
69826
|
const point5 = this.snap.getControlPoint();
|
|
69827
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
69825
69828
|
if (!this.connector) {
|
|
69826
69829
|
this.connector = new Connector2(this.board);
|
|
69827
69830
|
this.connector.deserialize({
|
|
69828
69831
|
itemType: "Connector",
|
|
69829
|
-
startPoint:
|
|
69830
|
-
endPoint:
|
|
69832
|
+
startPoint: serializedPoint,
|
|
69833
|
+
endPoint: serializedPoint,
|
|
69831
69834
|
lineStyle: this.lineStyle,
|
|
69832
69835
|
startPointer: this.startPointer,
|
|
69833
69836
|
endPointer: this.endPointer,
|
package/dist/esm/index.js
CHANGED
|
@@ -58050,6 +58050,7 @@ class Sticker extends BaseItem {
|
|
|
58050
58050
|
this.text.placeholderText = " ";
|
|
58051
58051
|
this.text.isInShape = false;
|
|
58052
58052
|
this.text.insideOf = this.itemType;
|
|
58053
|
+
this.text.autosizeEnable();
|
|
58053
58054
|
this.text.updateShrinkWidth();
|
|
58054
58055
|
this.text.subject.subscribe(() => {
|
|
58055
58056
|
this.subject.publish(this);
|
|
@@ -69795,11 +69796,12 @@ class AddConnector extends BoardTool {
|
|
|
69795
69796
|
this.isDown = true;
|
|
69796
69797
|
this.isQuickAdd = true;
|
|
69797
69798
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
69799
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
69798
69800
|
this.connector = new Connector2(this.board);
|
|
69799
69801
|
this.connector.deserialize({
|
|
69800
69802
|
itemType: "Connector",
|
|
69801
|
-
startPoint:
|
|
69802
|
-
endPoint:
|
|
69803
|
+
startPoint: serializedPoint,
|
|
69804
|
+
endPoint: serializedPoint,
|
|
69803
69805
|
lineStyle: this.lineStyle,
|
|
69804
69806
|
startPointer: this.startPointer,
|
|
69805
69807
|
endPointer: this.endPointer,
|
|
@@ -69815,12 +69817,13 @@ class AddConnector extends BoardTool {
|
|
|
69815
69817
|
leftButtonDown() {
|
|
69816
69818
|
this.isDown = true;
|
|
69817
69819
|
const point5 = this.snap.getControlPoint();
|
|
69820
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
69818
69821
|
if (!this.connector) {
|
|
69819
69822
|
this.connector = new Connector2(this.board);
|
|
69820
69823
|
this.connector.deserialize({
|
|
69821
69824
|
itemType: "Connector",
|
|
69822
|
-
startPoint:
|
|
69823
|
-
endPoint:
|
|
69825
|
+
startPoint: serializedPoint,
|
|
69826
|
+
endPoint: serializedPoint,
|
|
69824
69827
|
lineStyle: this.lineStyle,
|
|
69825
69828
|
startPointer: this.startPointer,
|
|
69826
69829
|
endPointer: this.endPointer,
|
package/dist/esm/node.js
CHANGED
|
@@ -60518,6 +60518,7 @@ class Sticker extends BaseItem {
|
|
|
60518
60518
|
this.text.placeholderText = " ";
|
|
60519
60519
|
this.text.isInShape = false;
|
|
60520
60520
|
this.text.insideOf = this.itemType;
|
|
60521
|
+
this.text.autosizeEnable();
|
|
60521
60522
|
this.text.updateShrinkWidth();
|
|
60522
60523
|
this.text.subject.subscribe(() => {
|
|
60523
60524
|
this.subject.publish(this);
|
|
@@ -72263,11 +72264,12 @@ class AddConnector extends BoardTool {
|
|
|
72263
72264
|
this.isDown = true;
|
|
72264
72265
|
this.isQuickAdd = true;
|
|
72265
72266
|
const closestPoint = this.snap.getClosestPointOnItem(itemToStart, position4);
|
|
72267
|
+
const serializedPoint = "serialize" in closestPoint ? closestPoint.serialize() : closestPoint;
|
|
72266
72268
|
this.connector = new Connector2(this.board);
|
|
72267
72269
|
this.connector.deserialize({
|
|
72268
72270
|
itemType: "Connector",
|
|
72269
|
-
startPoint:
|
|
72270
|
-
endPoint:
|
|
72271
|
+
startPoint: serializedPoint,
|
|
72272
|
+
endPoint: serializedPoint,
|
|
72271
72273
|
lineStyle: this.lineStyle,
|
|
72272
72274
|
startPointer: this.startPointer,
|
|
72273
72275
|
endPointer: this.endPointer,
|
|
@@ -72283,12 +72285,13 @@ class AddConnector extends BoardTool {
|
|
|
72283
72285
|
leftButtonDown() {
|
|
72284
72286
|
this.isDown = true;
|
|
72285
72287
|
const point5 = this.snap.getControlPoint();
|
|
72288
|
+
const serializedPoint = "serialize" in point5 ? point5.serialize() : point5;
|
|
72286
72289
|
if (!this.connector) {
|
|
72287
72290
|
this.connector = new Connector2(this.board);
|
|
72288
72291
|
this.connector.deserialize({
|
|
72289
72292
|
itemType: "Connector",
|
|
72290
|
-
startPoint:
|
|
72291
|
-
endPoint:
|
|
72293
|
+
startPoint: serializedPoint,
|
|
72294
|
+
endPoint: serializedPoint,
|
|
72292
72295
|
lineStyle: this.lineStyle,
|
|
72293
72296
|
startPointer: this.startPointer,
|
|
72294
72297
|
endPointer: this.endPointer,
|