microboard-temp 0.13.77 → 0.13.78
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 +236 -144
- package/dist/cjs/index.js +236 -144
- package/dist/cjs/node.js +236 -144
- package/dist/esm/browser.js +236 -144
- package/dist/esm/index.js +236 -144
- package/dist/esm/node.js +236 -144
- package/dist/types/Events/Log/EventsLog.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/Items/ItemsCommandUtils.d.ts +0 -4
package/dist/cjs/node.js
CHANGED
|
@@ -6269,6 +6269,21 @@ class EventsLog {
|
|
|
6269
6269
|
}
|
|
6270
6270
|
return records[records.length - 1].event;
|
|
6271
6271
|
}
|
|
6272
|
+
refreshUnconfirmedIdentity(sessionId, authorUserId) {
|
|
6273
|
+
const records = [
|
|
6274
|
+
...this.list.getRecordsToSend(),
|
|
6275
|
+
...this.list.getNewRecords()
|
|
6276
|
+
];
|
|
6277
|
+
for (const record of records) {
|
|
6278
|
+
record.event.body.sessionId = sessionId;
|
|
6279
|
+
record.event.body.userId = sessionId;
|
|
6280
|
+
record.event.body.authorUserId = authorUserId;
|
|
6281
|
+
}
|
|
6282
|
+
if (this.pendingEvent) {
|
|
6283
|
+
this.pendingEvent = null;
|
|
6284
|
+
this.firstSentTime = null;
|
|
6285
|
+
}
|
|
6286
|
+
}
|
|
6272
6287
|
}
|
|
6273
6288
|
function createEventsLog(board, commandFactory) {
|
|
6274
6289
|
return new EventsLog(board, commandFactory);
|
|
@@ -6286,15 +6301,6 @@ var init_Log = __esm(() => {
|
|
|
6286
6301
|
init_EventsLog();
|
|
6287
6302
|
});
|
|
6288
6303
|
|
|
6289
|
-
// src/Items/ItemsCommandUtils.ts
|
|
6290
|
-
function mapItemsByOperation(item, getCallback) {
|
|
6291
|
-
const items = Array.isArray(item) ? item : [item];
|
|
6292
|
-
return items.map((item2) => {
|
|
6293
|
-
const operation = getCallback(item2);
|
|
6294
|
-
return { item: item2, operation };
|
|
6295
|
-
});
|
|
6296
|
-
}
|
|
6297
|
-
|
|
6298
6304
|
// src/Items/Shape/ShapeCommand.ts
|
|
6299
6305
|
class ShapeCommand {
|
|
6300
6306
|
shape;
|
|
@@ -6325,52 +6331,73 @@ class ShapeCommand {
|
|
|
6325
6331
|
const shape = this.shape;
|
|
6326
6332
|
switch (this.operation.method) {
|
|
6327
6333
|
case "setBackgroundColor":
|
|
6328
|
-
return
|
|
6334
|
+
return shape.map((shape2) => {
|
|
6329
6335
|
return {
|
|
6330
|
-
|
|
6331
|
-
|
|
6336
|
+
item: shape2,
|
|
6337
|
+
operation: {
|
|
6338
|
+
...this.operation,
|
|
6339
|
+
backgroundColor: shape2.getBackgroundColor()
|
|
6340
|
+
}
|
|
6332
6341
|
};
|
|
6333
6342
|
});
|
|
6334
6343
|
case "setBackgroundOpacity":
|
|
6335
|
-
return
|
|
6344
|
+
return shape.map((shape2) => {
|
|
6336
6345
|
return {
|
|
6337
|
-
|
|
6338
|
-
|
|
6346
|
+
item: shape2,
|
|
6347
|
+
operation: {
|
|
6348
|
+
...this.operation,
|
|
6349
|
+
backgroundOpacity: shape2.getBackgroundOpacity()
|
|
6350
|
+
}
|
|
6339
6351
|
};
|
|
6340
6352
|
});
|
|
6341
6353
|
case "setBorderColor":
|
|
6342
|
-
return
|
|
6354
|
+
return shape.map((shape2) => {
|
|
6343
6355
|
return {
|
|
6344
|
-
|
|
6345
|
-
|
|
6356
|
+
item: shape2,
|
|
6357
|
+
operation: {
|
|
6358
|
+
...this.operation,
|
|
6359
|
+
borderColor: shape2.getStrokeColor()
|
|
6360
|
+
}
|
|
6346
6361
|
};
|
|
6347
6362
|
});
|
|
6348
6363
|
case "setBorderOpacity":
|
|
6349
|
-
return
|
|
6364
|
+
return shape.map((shape2) => {
|
|
6350
6365
|
return {
|
|
6351
|
-
|
|
6352
|
-
|
|
6366
|
+
item: shape2,
|
|
6367
|
+
operation: {
|
|
6368
|
+
...this.operation,
|
|
6369
|
+
borderOpacity: shape2.getBorderOpacity()
|
|
6370
|
+
}
|
|
6353
6371
|
};
|
|
6354
6372
|
});
|
|
6355
6373
|
case "setBorderStyle":
|
|
6356
|
-
return
|
|
6374
|
+
return shape.map((shape2) => {
|
|
6357
6375
|
return {
|
|
6358
|
-
|
|
6359
|
-
|
|
6376
|
+
item: shape2,
|
|
6377
|
+
operation: {
|
|
6378
|
+
...this.operation,
|
|
6379
|
+
borderStyle: shape2.getBorderStyle()
|
|
6380
|
+
}
|
|
6360
6381
|
};
|
|
6361
6382
|
});
|
|
6362
6383
|
case "setBorderWidth":
|
|
6363
|
-
return
|
|
6384
|
+
return shape.map((_shape) => {
|
|
6364
6385
|
return {
|
|
6365
|
-
|
|
6366
|
-
|
|
6386
|
+
item: _shape,
|
|
6387
|
+
operation: {
|
|
6388
|
+
...this.operation,
|
|
6389
|
+
borderWidth: this.operation.prevBorderWidth
|
|
6390
|
+
}
|
|
6367
6391
|
};
|
|
6368
6392
|
});
|
|
6369
6393
|
case "setShapeType":
|
|
6370
|
-
return
|
|
6394
|
+
return shape.map((shape2) => {
|
|
6371
6395
|
return {
|
|
6372
|
-
|
|
6373
|
-
|
|
6396
|
+
item: shape2,
|
|
6397
|
+
operation: {
|
|
6398
|
+
...this.operation,
|
|
6399
|
+
shapeType: shape2.getShapeType()
|
|
6400
|
+
}
|
|
6374
6401
|
};
|
|
6375
6402
|
});
|
|
6376
6403
|
}
|
|
@@ -6453,78 +6480,99 @@ class TransformationCommand {
|
|
|
6453
6480
|
});
|
|
6454
6481
|
}
|
|
6455
6482
|
case "translateTo":
|
|
6456
|
-
return
|
|
6483
|
+
return this.transformation.map((transformation) => {
|
|
6457
6484
|
return {
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6485
|
+
item: transformation,
|
|
6486
|
+
operation: {
|
|
6487
|
+
...this.operation,
|
|
6488
|
+
x: transformation.getTranslation().x,
|
|
6489
|
+
y: transformation.getTranslation().y
|
|
6490
|
+
}
|
|
6461
6491
|
};
|
|
6462
6492
|
});
|
|
6463
6493
|
case "translateBy": {
|
|
6464
6494
|
const op2 = this.operation;
|
|
6465
|
-
return
|
|
6495
|
+
return this.transformation.map((transformation) => {
|
|
6466
6496
|
return {
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6497
|
+
item: transformation,
|
|
6498
|
+
operation: {
|
|
6499
|
+
...this.operation,
|
|
6500
|
+
x: -op2.x,
|
|
6501
|
+
y: -op2.y
|
|
6502
|
+
}
|
|
6470
6503
|
};
|
|
6471
6504
|
});
|
|
6472
6505
|
}
|
|
6473
6506
|
case "scaleTo":
|
|
6474
6507
|
case "scaleToRelativeTo": {
|
|
6475
|
-
return
|
|
6508
|
+
return this.transformation.map((transformation) => {
|
|
6476
6509
|
return {
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6510
|
+
item: transformation,
|
|
6511
|
+
operation: {
|
|
6512
|
+
...op,
|
|
6513
|
+
x: transformation.getScale().x,
|
|
6514
|
+
y: transformation.getScale().y
|
|
6515
|
+
}
|
|
6480
6516
|
};
|
|
6481
6517
|
});
|
|
6482
6518
|
}
|
|
6483
6519
|
case "scaleBy":
|
|
6484
6520
|
case "scaleByRelativeTo": {
|
|
6485
6521
|
const op2 = this.operation;
|
|
6486
|
-
return
|
|
6522
|
+
return this.transformation.map((transformation) => {
|
|
6487
6523
|
return {
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6524
|
+
item: transformation,
|
|
6525
|
+
operation: {
|
|
6526
|
+
...op2,
|
|
6527
|
+
x: 1 / op2.x,
|
|
6528
|
+
y: 1 / op2.y
|
|
6529
|
+
}
|
|
6491
6530
|
};
|
|
6492
6531
|
});
|
|
6493
6532
|
}
|
|
6494
6533
|
case "scaleByTranslateBy": {
|
|
6495
6534
|
const op2 = this.operation;
|
|
6496
|
-
const scaleTransformation =
|
|
6535
|
+
const scaleTransformation = this.transformation.map((transformation) => {
|
|
6497
6536
|
const scaleX = 1 / op2.scale.x;
|
|
6498
6537
|
const scaleY = 1 / op2.scale.y;
|
|
6499
6538
|
const translateX = -op2.translate.x;
|
|
6500
6539
|
const translateY = -op2.translate.y;
|
|
6501
6540
|
return {
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6541
|
+
item: transformation,
|
|
6542
|
+
operation: {
|
|
6543
|
+
...op2,
|
|
6544
|
+
scale: {
|
|
6545
|
+
x: scaleX,
|
|
6546
|
+
y: scaleY
|
|
6547
|
+
},
|
|
6548
|
+
translate: {
|
|
6549
|
+
x: translateX,
|
|
6550
|
+
y: translateY
|
|
6551
|
+
}
|
|
6510
6552
|
}
|
|
6511
6553
|
};
|
|
6512
6554
|
});
|
|
6513
6555
|
return scaleTransformation;
|
|
6514
6556
|
}
|
|
6515
6557
|
case "rotateTo":
|
|
6516
|
-
return
|
|
6558
|
+
return this.transformation.map((transformation) => {
|
|
6517
6559
|
return {
|
|
6518
|
-
|
|
6519
|
-
|
|
6560
|
+
item: transformation,
|
|
6561
|
+
operation: {
|
|
6562
|
+
...this.operation,
|
|
6563
|
+
degree: transformation.getRotation()
|
|
6564
|
+
}
|
|
6520
6565
|
};
|
|
6521
6566
|
});
|
|
6522
6567
|
case "rotateBy": {
|
|
6523
6568
|
const op2 = this.operation;
|
|
6524
|
-
return
|
|
6569
|
+
return this.transformation.map((transformation) => {
|
|
6525
6570
|
return {
|
|
6526
|
-
|
|
6527
|
-
|
|
6571
|
+
item: transformation,
|
|
6572
|
+
operation: {
|
|
6573
|
+
...this.operation,
|
|
6574
|
+
degree: -op2.degree
|
|
6575
|
+
}
|
|
6528
6576
|
};
|
|
6529
6577
|
});
|
|
6530
6578
|
}
|
|
@@ -6562,23 +6610,29 @@ class TransformationCommand {
|
|
|
6562
6610
|
}
|
|
6563
6611
|
case "locked": {
|
|
6564
6612
|
const op2 = this.operation;
|
|
6565
|
-
return
|
|
6613
|
+
return this.transformation.map((transformation) => {
|
|
6566
6614
|
return {
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6615
|
+
item: transformation,
|
|
6616
|
+
operation: {
|
|
6617
|
+
...op2,
|
|
6618
|
+
item: [...op2.item],
|
|
6619
|
+
method: "unlocked",
|
|
6620
|
+
locked: false
|
|
6621
|
+
}
|
|
6571
6622
|
};
|
|
6572
6623
|
});
|
|
6573
6624
|
}
|
|
6574
6625
|
case "unlocked": {
|
|
6575
6626
|
const op2 = this.operation;
|
|
6576
|
-
return
|
|
6627
|
+
return this.transformation.map((transformation) => {
|
|
6577
6628
|
return {
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6629
|
+
item: transformation,
|
|
6630
|
+
operation: {
|
|
6631
|
+
...op2,
|
|
6632
|
+
item: [...op2.item],
|
|
6633
|
+
method: "locked",
|
|
6634
|
+
locked: true
|
|
6635
|
+
}
|
|
6582
6636
|
};
|
|
6583
6637
|
});
|
|
6584
6638
|
}
|
|
@@ -7098,16 +7152,18 @@ class StickerCommand {
|
|
|
7098
7152
|
getReverse() {
|
|
7099
7153
|
switch (this.operation.method) {
|
|
7100
7154
|
case "setBackgroundColor":
|
|
7101
|
-
return
|
|
7155
|
+
return this.sticker.map((sticker) => {
|
|
7102
7156
|
return {
|
|
7103
|
-
|
|
7104
|
-
|
|
7157
|
+
item: sticker,
|
|
7158
|
+
operation: {
|
|
7159
|
+
...this.operation,
|
|
7160
|
+
backgroundColor: sticker.getBackgroundColor()
|
|
7161
|
+
}
|
|
7105
7162
|
};
|
|
7106
7163
|
});
|
|
7107
7164
|
}
|
|
7108
7165
|
}
|
|
7109
7166
|
}
|
|
7110
|
-
var init_StickerCommand = () => {};
|
|
7111
7167
|
|
|
7112
7168
|
// src/Items/Frame/FrameCommand.ts
|
|
7113
7169
|
class FrameCommand {
|
|
@@ -7133,51 +7189,68 @@ class FrameCommand {
|
|
|
7133
7189
|
const frame = this.frame;
|
|
7134
7190
|
switch (this.operation.method) {
|
|
7135
7191
|
case "setBackgroundColor":
|
|
7136
|
-
return
|
|
7192
|
+
return frame.map((frame2) => {
|
|
7137
7193
|
return {
|
|
7138
|
-
|
|
7139
|
-
|
|
7194
|
+
item: frame2,
|
|
7195
|
+
operation: {
|
|
7196
|
+
...this.operation,
|
|
7197
|
+
backgroundColor: frame2.getBackgroundColor()
|
|
7198
|
+
}
|
|
7140
7199
|
};
|
|
7141
7200
|
});
|
|
7142
7201
|
case "setCanChangeRatio":
|
|
7143
|
-
return
|
|
7202
|
+
return frame.map((frame2) => {
|
|
7144
7203
|
return {
|
|
7145
|
-
|
|
7146
|
-
|
|
7204
|
+
item: frame2,
|
|
7205
|
+
operation: {
|
|
7206
|
+
...this.operation,
|
|
7207
|
+
canChangeRatio: frame2.getCanChangeRatio()
|
|
7208
|
+
}
|
|
7147
7209
|
};
|
|
7148
7210
|
});
|
|
7149
7211
|
case "setFrameType":
|
|
7150
|
-
return
|
|
7212
|
+
return frame.map((frame2) => {
|
|
7151
7213
|
return {
|
|
7152
|
-
|
|
7153
|
-
|
|
7214
|
+
item: frame2,
|
|
7215
|
+
operation: {
|
|
7216
|
+
...this.operation,
|
|
7217
|
+
shapeType: this.operation.prevShapeType
|
|
7218
|
+
}
|
|
7154
7219
|
};
|
|
7155
7220
|
});
|
|
7156
7221
|
case "addChild":
|
|
7157
|
-
return
|
|
7222
|
+
return frame.map((frame2) => {
|
|
7158
7223
|
return {
|
|
7159
|
-
|
|
7160
|
-
|
|
7224
|
+
item: frame2,
|
|
7225
|
+
operation: {
|
|
7226
|
+
...this.operation,
|
|
7227
|
+
children: frame2.getChildrenIds()
|
|
7228
|
+
}
|
|
7161
7229
|
};
|
|
7162
7230
|
});
|
|
7163
7231
|
case "removeChild":
|
|
7164
|
-
return
|
|
7232
|
+
return frame.map((frame2) => {
|
|
7165
7233
|
return {
|
|
7166
|
-
|
|
7167
|
-
|
|
7234
|
+
item: frame2,
|
|
7235
|
+
operation: {
|
|
7236
|
+
...this.operation,
|
|
7237
|
+
children: frame2.getChildrenIds()
|
|
7238
|
+
}
|
|
7168
7239
|
};
|
|
7169
7240
|
});
|
|
7170
7241
|
case "addChildren":
|
|
7171
7242
|
case "removeChildren":
|
|
7172
|
-
return
|
|
7243
|
+
return frame.map((item) => {
|
|
7173
7244
|
return {
|
|
7174
|
-
|
|
7245
|
+
item,
|
|
7246
|
+
operation: {
|
|
7247
|
+
...this.operation
|
|
7248
|
+
}
|
|
7175
7249
|
};
|
|
7176
7250
|
});
|
|
7177
7251
|
}
|
|
7178
7252
|
}
|
|
7179
7253
|
}
|
|
7180
|
-
var init_FrameCommand = () => {};
|
|
7181
7254
|
|
|
7182
7255
|
// src/SubjectOperation.ts
|
|
7183
7256
|
class SubjectOperation {
|
|
@@ -7659,60 +7732,80 @@ class CommentCommand {
|
|
|
7659
7732
|
const op = this.operation;
|
|
7660
7733
|
switch (op.method) {
|
|
7661
7734
|
case "createMessage":
|
|
7662
|
-
return
|
|
7735
|
+
return this.comment.map((comment) => {
|
|
7663
7736
|
return {
|
|
7664
|
-
|
|
7665
|
-
|
|
7737
|
+
item: comment,
|
|
7738
|
+
operation: {
|
|
7739
|
+
...this.operation,
|
|
7740
|
+
message: comment.getThread()[comment.getThread().length - 1]
|
|
7741
|
+
}
|
|
7666
7742
|
};
|
|
7667
7743
|
});
|
|
7668
7744
|
case "editMessage":
|
|
7669
|
-
return
|
|
7745
|
+
return this.comment.map((comment) => {
|
|
7670
7746
|
return {
|
|
7671
|
-
|
|
7672
|
-
|
|
7747
|
+
item: comment,
|
|
7748
|
+
operation: {
|
|
7749
|
+
...op,
|
|
7750
|
+
message: comment.getThread().find((mes) => mes.id === op.message.id)
|
|
7751
|
+
}
|
|
7673
7752
|
};
|
|
7674
7753
|
});
|
|
7675
7754
|
case "removeMessage":
|
|
7676
|
-
return
|
|
7755
|
+
return this.comment.map((comment) => {
|
|
7677
7756
|
return {
|
|
7678
|
-
|
|
7679
|
-
|
|
7757
|
+
item: comment,
|
|
7758
|
+
operation: {
|
|
7759
|
+
...this.operation,
|
|
7760
|
+
messageId: op.messageId
|
|
7761
|
+
}
|
|
7680
7762
|
};
|
|
7681
7763
|
});
|
|
7682
7764
|
case "setResolved":
|
|
7683
|
-
return
|
|
7765
|
+
return this.comment.map((comment) => {
|
|
7684
7766
|
return {
|
|
7685
|
-
|
|
7686
|
-
|
|
7767
|
+
item: comment,
|
|
7768
|
+
operation: {
|
|
7769
|
+
...this.operation,
|
|
7770
|
+
resolved: comment.getResolved()
|
|
7771
|
+
}
|
|
7687
7772
|
};
|
|
7688
7773
|
});
|
|
7689
7774
|
case "markMessagesAsRead":
|
|
7690
|
-
return
|
|
7775
|
+
return this.comment.map((comment) => {
|
|
7691
7776
|
return {
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7777
|
+
item: comment,
|
|
7778
|
+
operation: {
|
|
7779
|
+
...this.operation,
|
|
7780
|
+
messageIds: comment.getThread().filter((mes) => op.messageIds.includes(mes.id)).map((mes) => mes.id),
|
|
7781
|
+
userId: op.userId
|
|
7782
|
+
}
|
|
7695
7783
|
};
|
|
7696
7784
|
});
|
|
7697
7785
|
case "markThreadAsUnread":
|
|
7698
7786
|
case "markThreadAsRead":
|
|
7699
|
-
return
|
|
7787
|
+
return this.comment.map((comment) => {
|
|
7700
7788
|
return {
|
|
7701
|
-
|
|
7702
|
-
|
|
7789
|
+
item: comment,
|
|
7790
|
+
operation: {
|
|
7791
|
+
...this.operation,
|
|
7792
|
+
userId: op.userId
|
|
7793
|
+
}
|
|
7703
7794
|
};
|
|
7704
7795
|
});
|
|
7705
7796
|
case "setItemToFollow":
|
|
7706
|
-
return
|
|
7797
|
+
return this.comment.map((comment) => {
|
|
7707
7798
|
return {
|
|
7708
|
-
|
|
7709
|
-
|
|
7799
|
+
item: comment,
|
|
7800
|
+
operation: {
|
|
7801
|
+
...this.operation,
|
|
7802
|
+
itemId: op.itemId
|
|
7803
|
+
}
|
|
7710
7804
|
};
|
|
7711
7805
|
});
|
|
7712
7806
|
}
|
|
7713
7807
|
}
|
|
7714
7808
|
}
|
|
7715
|
-
var init_CommentCommand = () => {};
|
|
7716
7809
|
|
|
7717
7810
|
// src/Items/GeometricNormal.ts
|
|
7718
7811
|
class GeometricNormal {
|
|
@@ -8346,16 +8439,18 @@ class LinkToCommand {
|
|
|
8346
8439
|
getReverse() {
|
|
8347
8440
|
switch (this.operation.method) {
|
|
8348
8441
|
case "setLinkTo":
|
|
8349
|
-
return
|
|
8442
|
+
return this.linkTo.map((linkTo) => {
|
|
8350
8443
|
return {
|
|
8351
|
-
|
|
8352
|
-
|
|
8444
|
+
item: linkTo,
|
|
8445
|
+
operation: {
|
|
8446
|
+
...this.operation,
|
|
8447
|
+
link: linkTo.link
|
|
8448
|
+
}
|
|
8353
8449
|
};
|
|
8354
8450
|
});
|
|
8355
8451
|
}
|
|
8356
8452
|
}
|
|
8357
8453
|
}
|
|
8358
|
-
var init_LinkToCommand = () => {};
|
|
8359
8454
|
|
|
8360
8455
|
// src/Items/LinkTo/LinkTo.ts
|
|
8361
8456
|
class LinkTo {
|
|
@@ -8461,7 +8556,6 @@ class LinkTo {
|
|
|
8461
8556
|
}
|
|
8462
8557
|
}
|
|
8463
8558
|
var init_LinkTo = __esm(() => {
|
|
8464
|
-
init_LinkToCommand();
|
|
8465
8559
|
init_Settings();
|
|
8466
8560
|
});
|
|
8467
8561
|
|
|
@@ -13507,7 +13601,6 @@ var ANONYMOUS_ID = 9999999999, Comment;
|
|
|
13507
13601
|
var init_Comment = __esm(() => {
|
|
13508
13602
|
init_Point2();
|
|
13509
13603
|
init_Transformation2();
|
|
13510
|
-
init_CommentCommand();
|
|
13511
13604
|
init_Mbr2();
|
|
13512
13605
|
init_Line2();
|
|
13513
13606
|
init_esm();
|
|
@@ -13861,7 +13954,6 @@ var init_Comment = __esm(() => {
|
|
|
13861
13954
|
// src/Items/Comment/index.ts
|
|
13862
13955
|
var init_Comment2 = __esm(() => {
|
|
13863
13956
|
init_Comment();
|
|
13864
|
-
init_CommentCommand();
|
|
13865
13957
|
});
|
|
13866
13958
|
|
|
13867
13959
|
// src/Items/Group/GroupCommand.ts
|
|
@@ -13968,30 +14060,38 @@ class PlaceholderCommand {
|
|
|
13968
14060
|
const placeholder = this.placeholder;
|
|
13969
14061
|
switch (this.operation.method) {
|
|
13970
14062
|
case "setBackgroundColor":
|
|
13971
|
-
return
|
|
14063
|
+
return placeholder.map((placeholder2) => {
|
|
13972
14064
|
return {
|
|
13973
|
-
|
|
13974
|
-
|
|
14065
|
+
item: placeholder2,
|
|
14066
|
+
operation: {
|
|
14067
|
+
...this.operation,
|
|
14068
|
+
backgroundColor: placeholder2.getBackgroundColor()
|
|
14069
|
+
}
|
|
13975
14070
|
};
|
|
13976
14071
|
});
|
|
13977
14072
|
case "setIcon":
|
|
13978
|
-
return
|
|
14073
|
+
return placeholder.map((placeholder2) => {
|
|
13979
14074
|
return {
|
|
13980
|
-
|
|
13981
|
-
|
|
14075
|
+
item: placeholder2,
|
|
14076
|
+
operation: {
|
|
14077
|
+
...this.operation,
|
|
14078
|
+
icon: placeholder2.getIcon()
|
|
14079
|
+
}
|
|
13982
14080
|
};
|
|
13983
14081
|
});
|
|
13984
14082
|
case "setMiroData":
|
|
13985
|
-
return
|
|
14083
|
+
return placeholder.map((placeholder2) => {
|
|
13986
14084
|
return {
|
|
13987
|
-
|
|
13988
|
-
|
|
14085
|
+
item: placeholder2,
|
|
14086
|
+
operation: {
|
|
14087
|
+
...this.operation,
|
|
14088
|
+
miroData: placeholder2.getIcon()
|
|
14089
|
+
}
|
|
13989
14090
|
};
|
|
13990
14091
|
});
|
|
13991
14092
|
}
|
|
13992
14093
|
}
|
|
13993
14094
|
}
|
|
13994
|
-
var init_PlaceholderCommand = () => {};
|
|
13995
14095
|
|
|
13996
14096
|
// src/Items/Image/ImageCommand.ts
|
|
13997
14097
|
class ImageCommand {
|
|
@@ -14229,11 +14329,7 @@ var init_CreateCommand = __esm(() => {
|
|
|
14229
14329
|
init_EventsCommand();
|
|
14230
14330
|
init_ConnectorCommand();
|
|
14231
14331
|
init_DrawingCommand();
|
|
14232
|
-
init_StickerCommand();
|
|
14233
|
-
init_FrameCommand();
|
|
14234
14332
|
init_Comment2();
|
|
14235
|
-
init_LinkToCommand();
|
|
14236
|
-
init_PlaceholderCommand();
|
|
14237
14333
|
init_Command();
|
|
14238
14334
|
itemCommandFactories = {
|
|
14239
14335
|
Sticker: createStickerCommand,
|
|
@@ -60893,7 +60989,6 @@ var init_Sticker = __esm(() => {
|
|
|
60893
60989
|
init_Transformation();
|
|
60894
60990
|
init_getResizeMatrix();
|
|
60895
60991
|
init_RichText();
|
|
60896
|
-
init_StickerCommand();
|
|
60897
60992
|
init_StickerOperation();
|
|
60898
60993
|
init_LinkTo();
|
|
60899
60994
|
init_SessionStorage();
|
|
@@ -62145,7 +62240,6 @@ var init_Frame = __esm(() => {
|
|
|
62145
62240
|
init_RichText();
|
|
62146
62241
|
init_Matrix();
|
|
62147
62242
|
init_Basic();
|
|
62148
|
-
init_FrameCommand();
|
|
62149
62243
|
init_exportBoardSnapshot();
|
|
62150
62244
|
init_LinkTo();
|
|
62151
62245
|
init_HTMLRender();
|
|
@@ -62675,7 +62769,6 @@ var init_Frame = __esm(() => {
|
|
|
62675
62769
|
// src/Items/Frame/index.ts
|
|
62676
62770
|
var init_Frame2 = __esm(() => {
|
|
62677
62771
|
init_Frame();
|
|
62678
|
-
init_FrameCommand();
|
|
62679
62772
|
init_FrameData();
|
|
62680
62773
|
init_FrameData();
|
|
62681
62774
|
init_Basic();
|
|
@@ -71885,7 +71978,6 @@ var init_Placeholder2 = __esm(() => {
|
|
|
71885
71978
|
init_Shape2();
|
|
71886
71979
|
init_Path();
|
|
71887
71980
|
init_Transformation();
|
|
71888
|
-
init_PlaceholderCommand();
|
|
71889
71981
|
init_getResizeMatrix();
|
|
71890
71982
|
init_BaseItem();
|
|
71891
71983
|
Placeholder2 = class Placeholder2 extends BaseItem {
|
|
@@ -72798,10 +72890,10 @@ function normalizeForBoard(msg) {
|
|
|
72798
72890
|
}
|
|
72799
72891
|
function handleSeqNumApplication(initialSequenceNumber, board) {
|
|
72800
72892
|
const { log } = board.events;
|
|
72893
|
+
const sessionId = getConnectionSessionId(board.events.connection);
|
|
72894
|
+
const authorUserId = getConnectionAuthorUserId(board.events.connection);
|
|
72895
|
+
log.refreshUnconfirmedIdentity(sessionId, authorUserId);
|
|
72801
72896
|
log.currentSequenceNumber = initialSequenceNumber;
|
|
72802
|
-
if (log.pendingEvent) {
|
|
72803
|
-
log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
|
|
72804
|
-
}
|
|
72805
72897
|
startIntervals(board);
|
|
72806
72898
|
}
|
|
72807
72899
|
function startIntervals(board) {
|