microboard-temp 0.13.44 → 0.13.46

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.
@@ -21,6 +21,7 @@ export declare class EventsLog {
21
21
  currentSequenceNumber: number;
22
22
  pendingEvent: {
23
23
  event: SyncBoardEventPack;
24
+ sentEventIds: string[];
24
25
  sequenceNumber: number;
25
26
  lastSentTime: number;
26
27
  } | null;
@@ -42,6 +43,7 @@ export declare class EventsLog {
42
43
  * Note: Implementation treats the parameter as BoardEventPack
43
44
  */
44
45
  confirmSentLocalEvent(event: SyncEvent): void;
46
+ confirmSentLocalEventIds(eventIds: string[], order: number): void;
45
47
  /**
46
48
  * Retrieves unordered records (records to send and new records)
47
49
  */
@@ -75,7 +77,10 @@ export declare class EventsLog {
75
77
  /**
76
78
  * Retrieves unpublished events ready to be sent
77
79
  */
78
- getUnpublishedEvent(): BoardEventPack | null;
80
+ getUnpublishedEvent(): {
81
+ event: BoardEventPack;
82
+ sentEventIds: string[];
83
+ } | null;
79
84
  /**
80
85
  * Gets the latest event order, considering both confirmed events and snapshot index
81
86
  */
@@ -9,6 +9,7 @@ export interface EventsList {
9
9
  addConfirmedRecords(records: HistoryRecord[]): void;
10
10
  addNewRecords(records: HistoryRecord[]): void;
11
11
  confirmSentRecords(records: BoardEvent[]): void;
12
+ confirmSentRecordIds(eventIds: string[], order: number): void;
12
13
  getConfirmedRecords(): HistoryRecord[];
13
14
  getRecordsToSend(): HistoryRecord[];
14
15
  getNewRecords(): HistoryRecord[];
@@ -1,7 +1,10 @@
1
1
  import { BoardEventPack, BoardEvent } from "../Events";
2
2
  import { Operation } from "../EventsOperations";
3
3
  import { EventsList } from "./createEventsList";
4
- export declare function getUnpublishedEventFromList(list: EventsList): BoardEventPack | null;
4
+ export declare function getUnpublishedEventFromList(list: EventsList): {
5
+ event: BoardEventPack;
6
+ sentEventIds: string[];
7
+ } | null;
5
8
  export declare function combineOperationsIntoPack(baseEvent: BoardEvent, operations: (Operation & {
6
9
  actualId: string;
7
10
  })[]): BoardEventPack;
@@ -8,6 +8,9 @@ export declare class ForceGraphEngine {
8
8
  /** Active components: componentId → { nodeIds, targetGap }
9
9
  * componentId is the nodeId that was passed to enableForGraph(). */
10
10
  private activeComponents;
11
+ /** Set to true while we are emitting a physics sync operation, so the
12
+ * board-event subscription below doesn't double-update lastSyncedPositions. */
13
+ private isPhysicsEmit;
11
14
  private readonly TICK_MS;
12
15
  private readonly SYNC_MS;
13
16
  private readonly MIN_MOVE_PX;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.44",
3
+ "version": "0.13.46",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",