microboard-temp 0.13.80 → 0.13.82
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
CHANGED
|
@@ -6185,11 +6185,12 @@ function getSnapshotFromList(list, board) {
|
|
|
6185
6185
|
const snapshot = {
|
|
6186
6186
|
events: list.getConfirmedRecords().map((record) => record.event),
|
|
6187
6187
|
items: board.serialize(),
|
|
6188
|
-
lastIndex: list
|
|
6188
|
+
lastIndex: getLastIndexFromList(list)
|
|
6189
6189
|
};
|
|
6190
6190
|
list.applyUnconfirmed();
|
|
6191
6191
|
return snapshot;
|
|
6192
6192
|
}
|
|
6193
|
+
var init_getSnapshotFromList = () => {};
|
|
6193
6194
|
|
|
6194
6195
|
// src/Events/Log/EventsLog.ts
|
|
6195
6196
|
class EventsLog {
|
|
@@ -6278,6 +6279,7 @@ var init_EventsLog = __esm(() => {
|
|
|
6278
6279
|
init_getUndoRecordFromList();
|
|
6279
6280
|
init_getUnpublishedEventFromList();
|
|
6280
6281
|
init_insertEventsFromOtherConnectionsIntoList();
|
|
6282
|
+
init_getSnapshotFromList();
|
|
6281
6283
|
});
|
|
6282
6284
|
|
|
6283
6285
|
// src/Events/Log/index.ts
|
|
@@ -76273,7 +76275,7 @@ class Board {
|
|
|
76273
76275
|
const groupsMap = new Map;
|
|
76274
76276
|
arrayed.forEach((item) => {
|
|
76275
76277
|
const itemCenter = item.getMbr().getCenter();
|
|
76276
|
-
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
76278
|
+
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
76277
76279
|
if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
|
|
76278
76280
|
acc = groupItem2;
|
|
76279
76281
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -6185,11 +6185,12 @@ function getSnapshotFromList(list, board) {
|
|
|
6185
6185
|
const snapshot = {
|
|
6186
6186
|
events: list.getConfirmedRecords().map((record) => record.event),
|
|
6187
6187
|
items: board.serialize(),
|
|
6188
|
-
lastIndex: list
|
|
6188
|
+
lastIndex: getLastIndexFromList(list)
|
|
6189
6189
|
};
|
|
6190
6190
|
list.applyUnconfirmed();
|
|
6191
6191
|
return snapshot;
|
|
6192
6192
|
}
|
|
6193
|
+
var init_getSnapshotFromList = () => {};
|
|
6193
6194
|
|
|
6194
6195
|
// src/Events/Log/EventsLog.ts
|
|
6195
6196
|
class EventsLog {
|
|
@@ -6278,6 +6279,7 @@ var init_EventsLog = __esm(() => {
|
|
|
6278
6279
|
init_getUndoRecordFromList();
|
|
6279
6280
|
init_getUnpublishedEventFromList();
|
|
6280
6281
|
init_insertEventsFromOtherConnectionsIntoList();
|
|
6282
|
+
init_getSnapshotFromList();
|
|
6281
6283
|
});
|
|
6282
6284
|
|
|
6283
6285
|
// src/Events/Log/index.ts
|
|
@@ -76273,7 +76275,7 @@ class Board {
|
|
|
76273
76275
|
const groupsMap = new Map;
|
|
76274
76276
|
arrayed.forEach((item) => {
|
|
76275
76277
|
const itemCenter = item.getMbr().getCenter();
|
|
76276
|
-
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
76278
|
+
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
76277
76279
|
if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
|
|
76278
76280
|
acc = groupItem2;
|
|
76279
76281
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -6185,11 +6185,12 @@ function getSnapshotFromList(list, board) {
|
|
|
6185
6185
|
const snapshot = {
|
|
6186
6186
|
events: list.getConfirmedRecords().map((record) => record.event),
|
|
6187
6187
|
items: board.serialize(),
|
|
6188
|
-
lastIndex: list
|
|
6188
|
+
lastIndex: getLastIndexFromList(list)
|
|
6189
6189
|
};
|
|
6190
6190
|
list.applyUnconfirmed();
|
|
6191
6191
|
return snapshot;
|
|
6192
6192
|
}
|
|
6193
|
+
var init_getSnapshotFromList = () => {};
|
|
6193
6194
|
|
|
6194
6195
|
// src/Events/Log/EventsLog.ts
|
|
6195
6196
|
class EventsLog {
|
|
@@ -6278,6 +6279,7 @@ var init_EventsLog = __esm(() => {
|
|
|
6278
6279
|
init_getUndoRecordFromList();
|
|
6279
6280
|
init_getUnpublishedEventFromList();
|
|
6280
6281
|
init_insertEventsFromOtherConnectionsIntoList();
|
|
6282
|
+
init_getSnapshotFromList();
|
|
6281
6283
|
});
|
|
6282
6284
|
|
|
6283
6285
|
// src/Events/Log/index.ts
|
|
@@ -78748,7 +78750,7 @@ class Board {
|
|
|
78748
78750
|
const groupsMap = new Map;
|
|
78749
78751
|
arrayed.forEach((item) => {
|
|
78750
78752
|
const itemCenter = item.getMbr().getCenter();
|
|
78751
|
-
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
78753
|
+
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
78752
78754
|
if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
|
|
78753
78755
|
acc = groupItem2;
|
|
78754
78756
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -6157,11 +6157,12 @@ function getSnapshotFromList(list, board) {
|
|
|
6157
6157
|
const snapshot = {
|
|
6158
6158
|
events: list.getConfirmedRecords().map((record) => record.event),
|
|
6159
6159
|
items: board.serialize(),
|
|
6160
|
-
lastIndex: list
|
|
6160
|
+
lastIndex: getLastIndexFromList(list)
|
|
6161
6161
|
};
|
|
6162
6162
|
list.applyUnconfirmed();
|
|
6163
6163
|
return snapshot;
|
|
6164
6164
|
}
|
|
6165
|
+
var init_getSnapshotFromList = () => {};
|
|
6165
6166
|
|
|
6166
6167
|
// src/Events/Log/EventsLog.ts
|
|
6167
6168
|
class EventsLog {
|
|
@@ -6250,6 +6251,7 @@ var init_EventsLog = __esm(() => {
|
|
|
6250
6251
|
init_getUndoRecordFromList();
|
|
6251
6252
|
init_getUnpublishedEventFromList();
|
|
6252
6253
|
init_insertEventsFromOtherConnectionsIntoList();
|
|
6254
|
+
init_getSnapshotFromList();
|
|
6253
6255
|
});
|
|
6254
6256
|
|
|
6255
6257
|
// src/Events/Log/index.ts
|
|
@@ -76017,7 +76019,7 @@ class Board {
|
|
|
76017
76019
|
const groupsMap = new Map;
|
|
76018
76020
|
arrayed.forEach((item) => {
|
|
76019
76021
|
const itemCenter = item.getMbr().getCenter();
|
|
76020
|
-
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
76022
|
+
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
76021
76023
|
if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
|
|
76022
76024
|
acc = groupItem2;
|
|
76023
76025
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -6150,11 +6150,12 @@ function getSnapshotFromList(list, board) {
|
|
|
6150
6150
|
const snapshot = {
|
|
6151
6151
|
events: list.getConfirmedRecords().map((record) => record.event),
|
|
6152
6152
|
items: board.serialize(),
|
|
6153
|
-
lastIndex: list
|
|
6153
|
+
lastIndex: getLastIndexFromList(list)
|
|
6154
6154
|
};
|
|
6155
6155
|
list.applyUnconfirmed();
|
|
6156
6156
|
return snapshot;
|
|
6157
6157
|
}
|
|
6158
|
+
var init_getSnapshotFromList = () => {};
|
|
6158
6159
|
|
|
6159
6160
|
// src/Events/Log/EventsLog.ts
|
|
6160
6161
|
class EventsLog {
|
|
@@ -6243,6 +6244,7 @@ var init_EventsLog = __esm(() => {
|
|
|
6243
6244
|
init_getUndoRecordFromList();
|
|
6244
6245
|
init_getUnpublishedEventFromList();
|
|
6245
6246
|
init_insertEventsFromOtherConnectionsIntoList();
|
|
6247
|
+
init_getSnapshotFromList();
|
|
6246
6248
|
});
|
|
6247
6249
|
|
|
6248
6250
|
// src/Events/Log/index.ts
|
|
@@ -76010,7 +76012,7 @@ class Board {
|
|
|
76010
76012
|
const groupsMap = new Map;
|
|
76011
76013
|
arrayed.forEach((item) => {
|
|
76012
76014
|
const itemCenter = item.getMbr().getCenter();
|
|
76013
|
-
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
76015
|
+
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
76014
76016
|
if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
|
|
76015
76017
|
acc = groupItem2;
|
|
76016
76018
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -6152,11 +6152,12 @@ function getSnapshotFromList(list, board) {
|
|
|
6152
6152
|
const snapshot = {
|
|
6153
6153
|
events: list.getConfirmedRecords().map((record) => record.event),
|
|
6154
6154
|
items: board.serialize(),
|
|
6155
|
-
lastIndex: list
|
|
6155
|
+
lastIndex: getLastIndexFromList(list)
|
|
6156
6156
|
};
|
|
6157
6157
|
list.applyUnconfirmed();
|
|
6158
6158
|
return snapshot;
|
|
6159
6159
|
}
|
|
6160
|
+
var init_getSnapshotFromList = () => {};
|
|
6160
6161
|
|
|
6161
6162
|
// src/Events/Log/EventsLog.ts
|
|
6162
6163
|
class EventsLog {
|
|
@@ -6245,6 +6246,7 @@ var init_EventsLog = __esm(() => {
|
|
|
6245
6246
|
init_getUndoRecordFromList();
|
|
6246
6247
|
init_getUnpublishedEventFromList();
|
|
6247
6248
|
init_insertEventsFromOtherConnectionsIntoList();
|
|
6249
|
+
init_getSnapshotFromList();
|
|
6248
6250
|
});
|
|
6249
6251
|
|
|
6250
6252
|
// src/Events/Log/index.ts
|
|
@@ -78474,7 +78476,7 @@ class Board {
|
|
|
78474
78476
|
const groupsMap = new Map;
|
|
78475
78477
|
arrayed.forEach((item) => {
|
|
78476
78478
|
const itemCenter = item.getMbr().getCenter();
|
|
78477
|
-
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
78479
|
+
const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
|
|
78478
78480
|
if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
|
|
78479
78481
|
acc = groupItem2;
|
|
78480
78482
|
}
|