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.
- package/dist/cjs/browser.js +438 -317
- package/dist/cjs/index.js +438 -317
- package/dist/cjs/node.js +438 -317
- package/dist/esm/browser.js +438 -317
- package/dist/esm/index.js +438 -317
- package/dist/esm/node.js +438 -317
- package/dist/types/Events/Log/EventsLog.d.ts +6 -1
- package/dist/types/Events/Log/createEventsList.d.ts +1 -0
- package/dist/types/Events/Log/getUnpublishedEventFromList.d.ts +4 -1
- package/dist/types/ForceGraph/ForceGraphEngine.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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():
|
|
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):
|
|
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;
|