@fluidframework/matrix 2.0.0-internal.7.3.0 → 2.0.0-internal.7.4.1
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/CHANGELOG.md +4 -0
- package/README.md +39 -0
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +8 -3
- package/api-report/matrix.api.md +19 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/matrix-alpha.d.ts +71 -11
- package/dist/matrix-beta.d.ts +41 -134
- package/dist/matrix-public.d.ts +41 -134
- package/dist/matrix-untrimmed.d.ts +71 -11
- package/dist/matrix.cjs +175 -46
- package/dist/matrix.cjs.map +1 -1
- package/dist/matrix.d.ts +67 -9
- package/dist/matrix.d.ts.map +1 -1
- package/dist/ops.cjs +1 -0
- package/dist/ops.cjs.map +1 -1
- package/dist/ops.d.ts +5 -1
- package/dist/ops.d.ts.map +1 -1
- package/dist/packageVersion.cjs +1 -1
- package/dist/packageVersion.cjs.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.ts +2 -2
- package/lib/handlecache.d.ts +2 -2
- package/lib/handlecache.d.ts.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/matrix-alpha.d.ts +71 -11
- package/lib/matrix-beta.d.ts +41 -134
- package/lib/matrix-public.d.ts +41 -134
- package/lib/matrix-untrimmed.d.ts +71 -11
- package/lib/matrix.d.ts +69 -11
- package/lib/matrix.d.ts.map +1 -1
- package/lib/matrix.mjs +175 -46
- package/lib/matrix.mjs.map +1 -1
- package/lib/ops.d.ts +5 -1
- package/lib/ops.d.ts.map +1 -1
- package/lib/ops.mjs +1 -0
- package/lib/ops.mjs.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.mjs +1 -1
- package/lib/packageVersion.mjs.map +1 -1
- package/lib/permutationvector.d.ts +3 -3
- package/lib/permutationvector.d.ts.map +1 -1
- package/lib/runtime.d.ts +1 -1
- package/lib/runtime.d.ts.map +1 -1
- package/lib/runtime.mjs +1 -1
- package/lib/runtime.mjs.map +1 -1
- package/lib/serialization.d.ts.map +1 -1
- package/lib/sparsearray2d.d.ts.map +1 -1
- package/lib/types.d.ts +2 -2
- package/lib/types.mjs.map +1 -1
- package/lib/undoprovider.d.ts +4 -4
- package/lib/undoprovider.d.ts.map +1 -1
- package/matrix.test-files.tar +0 -0
- package/package.json +26 -31
- package/src/index.ts +1 -1
- package/src/matrix.ts +282 -60
- package/src/ops.ts +5 -0
- package/src/packageVersion.ts +1 -1
- package/src/runtime.ts +1 -1
- package/src/types.ts +2 -2
|
@@ -3,6 +3,7 @@ import { IChannelAttributes } from '@fluidframework/datastore-definitions';
|
|
|
3
3
|
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
4
4
|
import { IChannelServices } from '@fluidframework/datastore-definitions';
|
|
5
5
|
import { IChannelStorageService } from '@fluidframework/datastore-definitions';
|
|
6
|
+
import { IEventThisPlaceHolder } from '@fluidframework/core-interfaces';
|
|
6
7
|
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
7
8
|
import { IFluidSerializer } from '@fluidframework/shared-object-base';
|
|
8
9
|
import { IJSONSegment } from '@fluidframework/merge-tree';
|
|
@@ -11,13 +12,14 @@ import { IMatrixProducer } from '@tiny-calc/nano';
|
|
|
11
12
|
import { IMatrixReader } from '@tiny-calc/nano';
|
|
12
13
|
import { IMatrixWriter } from '@tiny-calc/nano';
|
|
13
14
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
15
|
+
import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
|
|
14
16
|
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
|
|
15
17
|
import { Serializable } from '@fluidframework/datastore-definitions';
|
|
16
18
|
import { SharedObject } from '@fluidframework/shared-object-base';
|
|
17
19
|
import { SummarySerializer } from '@fluidframework/shared-object-base';
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
|
-
* @
|
|
22
|
+
* @alpha
|
|
21
23
|
*/
|
|
22
24
|
export declare interface IRevertible {
|
|
23
25
|
revert(): any;
|
|
@@ -25,7 +27,34 @@ export declare interface IRevertible {
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* Events emitted by Shared Matrix.
|
|
31
|
+
* @alpha
|
|
32
|
+
*/
|
|
33
|
+
export declare interface ISharedMatrixEvents<T> extends ISharedObjectEvents {
|
|
34
|
+
/**
|
|
35
|
+
* This event is only emitted when the SetCell Resolution Policy is First Write Win(FWW).
|
|
36
|
+
* This is emitted when two clients race and send changes without observing each other changes,
|
|
37
|
+
* the changes that gets sequenced last would be rejected, and only client who's changes rejected
|
|
38
|
+
* would be notified via this event, with expectation that it will merge its changes back by
|
|
39
|
+
* accounting new information (state from winner of the race).
|
|
40
|
+
*
|
|
41
|
+
* @remarks Listener parameters:
|
|
42
|
+
*
|
|
43
|
+
* - `row` - Row number at which conflict happened.
|
|
44
|
+
*
|
|
45
|
+
* - `col` - Col number at which conflict happened.
|
|
46
|
+
*
|
|
47
|
+
* - `currentValue` - The current value of the cell.
|
|
48
|
+
*
|
|
49
|
+
* - `conflictingValue` - The value that this client tried to set in the cell and got ignored due to conflict.
|
|
50
|
+
*
|
|
51
|
+
* - `target` - The {@link SharedMatrix} itself.
|
|
52
|
+
*/
|
|
53
|
+
(event: "conflict", listener: (row: number, col: number, currentValue: MatrixItem<T>, conflictingValue: MatrixItem<T>, target: IEventThisPlaceHolder) => void): any;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @alpha
|
|
29
58
|
*/
|
|
30
59
|
export declare interface IUndoConsumer {
|
|
31
60
|
pushToCurrentOperation(revertible: IRevertible): any;
|
|
@@ -34,7 +63,7 @@ export declare interface IUndoConsumer {
|
|
|
34
63
|
/**
|
|
35
64
|
* A matrix cell value may be undefined (indicating an empty cell) or any serializable type,
|
|
36
65
|
* excluding null. (However, nulls may be embedded inside objects and arrays.)
|
|
37
|
-
* @
|
|
66
|
+
* @alpha
|
|
38
67
|
*/
|
|
39
68
|
export declare type MatrixItem<T> = Serializable<Exclude<T, null>> | undefined;
|
|
40
69
|
|
|
@@ -49,18 +78,29 @@ export declare type MatrixItem<T> = Serializable<Exclude<T, null>> | undefined;
|
|
|
49
78
|
* matrix data and physically stores data in Z-order to leverage CPU caches and
|
|
50
79
|
* prefetching when reading in either row or column major order. (See README.md
|
|
51
80
|
* for more details.)
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
81
|
+
* @alpha
|
|
54
82
|
*/
|
|
55
|
-
export declare class SharedMatrix<T = any> extends SharedObject implements IMatrixProducer<MatrixItem<T>>, IMatrixReader<MatrixItem<T>>, IMatrixWriter<MatrixItem<T>> {
|
|
83
|
+
export declare class SharedMatrix<T = any> extends SharedObject<ISharedMatrixEvents<T>> implements IMatrixProducer<MatrixItem<T>>, IMatrixReader<MatrixItem<T>>, IMatrixWriter<MatrixItem<T>> {
|
|
56
84
|
id: string;
|
|
57
85
|
private readonly consumers;
|
|
58
86
|
static getFactory(): SharedMatrixFactory;
|
|
59
87
|
private readonly rows;
|
|
60
88
|
private readonly cols;
|
|
61
89
|
private cells;
|
|
62
|
-
private pending;
|
|
63
|
-
|
|
90
|
+
private readonly pending;
|
|
91
|
+
private cellLastWriteTracker;
|
|
92
|
+
private setCellLwwToFwwPolicySwitchOpSeqNumber;
|
|
93
|
+
private userSwitchedSetCellPolicy;
|
|
94
|
+
private reentrantCount;
|
|
95
|
+
/**
|
|
96
|
+
* Constructor for the Shared Matrix
|
|
97
|
+
* @param runtime - DataStore runtime.
|
|
98
|
+
* @param id - id of the dds
|
|
99
|
+
* @param attributes - channel attributes
|
|
100
|
+
* @param _isSetCellConflictResolutionPolicyFWW - Conflict resolution for Matrix set op is First Writer Win in case of
|
|
101
|
+
* race condition. Client can still overwrite values in case of no race.
|
|
102
|
+
*/
|
|
103
|
+
constructor(runtime: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes, _isSetCellConflictResolutionPolicyFWW?: boolean);
|
|
64
104
|
private undo?;
|
|
65
105
|
/**
|
|
66
106
|
* Subscribes the given IUndoConsumer to the matrix.
|
|
@@ -76,12 +116,22 @@ export declare class SharedMatrix<T = any> extends SharedObject implements IMatr
|
|
|
76
116
|
closeMatrix(consumer: IMatrixConsumer<MatrixItem<T>>): void;
|
|
77
117
|
get rowCount(): number;
|
|
78
118
|
get colCount(): number;
|
|
119
|
+
isSetCellConflictResolutionPolicyFWW(): boolean;
|
|
79
120
|
getCell(row: number, col: number): MatrixItem<T>;
|
|
80
121
|
get matrixProducer(): IMatrixProducer<MatrixItem<T>>;
|
|
81
122
|
setCell(row: number, col: number, value: MatrixItem<T>): void;
|
|
82
123
|
setCells(rowStart: number, colStart: number, colCount: number, values: readonly MatrixItem<T>[]): void;
|
|
83
124
|
private setCellCore;
|
|
84
125
|
private sendSetCellOp;
|
|
126
|
+
/**
|
|
127
|
+
* This makes sure that the code inside the callback is not reentrant. We need to do that because we raise notifications
|
|
128
|
+
* to the consumers telling about these changes and they can try to change the matrix while listening to those notifications
|
|
129
|
+
* which can make the shared matrix to be in bad state. For example, we are raising notification for a setCell changes and
|
|
130
|
+
* a consumer tries to delete that row/col on receiving that notification which can lead to this matrix trying to setCell in
|
|
131
|
+
* a deleted row/col.
|
|
132
|
+
* @param callback - code that needs to protected against reentrancy.
|
|
133
|
+
*/
|
|
134
|
+
private protectAgainstReentrancy;
|
|
85
135
|
private submitVectorMessage;
|
|
86
136
|
private submitColMessage;
|
|
87
137
|
insertCols(colStart: number, count: number): void;
|
|
@@ -89,8 +139,8 @@ export declare class SharedMatrix<T = any> extends SharedObject implements IMatr
|
|
|
89
139
|
private submitRowMessage;
|
|
90
140
|
insertRows(rowStart: number, count: number): void;
|
|
91
141
|
removeRows(rowStart: number, count: number): void;
|
|
92
|
-
|
|
93
|
-
|
|
142
|
+
/***/ _undoRemoveRows(rowStart: number, spec: IJSONSegment): void;
|
|
143
|
+
/***/ _undoRemoveCols(colStart: number, spec: IJSONSegment): void;
|
|
94
144
|
protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
|
|
95
145
|
/**
|
|
96
146
|
* Runs serializer on the GC data for this SharedMatrix.
|
|
@@ -114,11 +164,21 @@ export declare class SharedMatrix<T = any> extends SharedObject implements IMatr
|
|
|
114
164
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
|
|
115
165
|
*/
|
|
116
166
|
protected loadCore(storage: IChannelStorageService): Promise<void>;
|
|
167
|
+
/**
|
|
168
|
+
* Tells whether the setCell op should be applied or not based on First Write Win policy. It assumes
|
|
169
|
+
* we are in FWW mode.
|
|
170
|
+
*/
|
|
171
|
+
private shouldSetCellBasedOnFWW;
|
|
117
172
|
protected processCore(rawMessage: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
|
|
118
173
|
private readonly onRowDelta;
|
|
119
174
|
private readonly onColDelta;
|
|
120
175
|
private readonly onRowHandlesRecycled;
|
|
121
176
|
private readonly onColHandlesRecycled;
|
|
177
|
+
/**
|
|
178
|
+
* Api to switch Set Op policy from Last Writer Win to First Writer Win. It only switches from LWW to FWW
|
|
179
|
+
* and not from FWW to LWW. The next SetOp which is sent will communicate this policy to other clients.
|
|
180
|
+
*/
|
|
181
|
+
switchSetCellPolicy(): void;
|
|
122
182
|
/**
|
|
123
183
|
* Returns true if the latest pending write to the cell indicated by the given row/col handles
|
|
124
184
|
* matches the given 'localSeq'.
|
|
@@ -137,7 +197,7 @@ export declare class SharedMatrix<T = any> extends SharedObject implements IMatr
|
|
|
137
197
|
|
|
138
198
|
/**
|
|
139
199
|
* {@link @fluidframework/datastore-definitions#IChannelFactory} for {@link SharedMatrix}.
|
|
140
|
-
* @
|
|
200
|
+
* @alpha
|
|
141
201
|
*/
|
|
142
202
|
export declare class SharedMatrixFactory implements IChannelFactory {
|
|
143
203
|
static Type: string;
|
package/lib/matrix.d.ts
CHANGED
|
@@ -2,18 +2,45 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
+
import { IEventThisPlaceHolder } from "@fluidframework/core-interfaces";
|
|
5
6
|
import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions";
|
|
6
7
|
import { IFluidDataStoreRuntime, IChannelStorageService, Serializable, IChannelAttributes } from "@fluidframework/datastore-definitions";
|
|
7
|
-
import { IFluidSerializer, SharedObject, SummarySerializer } from "@fluidframework/shared-object-base";
|
|
8
|
+
import { IFluidSerializer, ISharedObjectEvents, SharedObject, SummarySerializer } from "@fluidframework/shared-object-base";
|
|
8
9
|
import { ISummaryTreeWithStats } from "@fluidframework/runtime-definitions";
|
|
9
10
|
import { IMatrixProducer, IMatrixConsumer, IMatrixReader, IMatrixWriter } from "@tiny-calc/nano";
|
|
10
11
|
import { IJSONSegment } from "@fluidframework/merge-tree";
|
|
11
|
-
import { SharedMatrixFactory } from "./runtime";
|
|
12
|
-
import { IUndoConsumer } from "./types";
|
|
12
|
+
import { SharedMatrixFactory } from "./runtime.mjs";
|
|
13
|
+
import { IUndoConsumer } from "./types.mjs";
|
|
14
|
+
/**
|
|
15
|
+
* Events emitted by Shared Matrix.
|
|
16
|
+
* @alpha
|
|
17
|
+
*/
|
|
18
|
+
export interface ISharedMatrixEvents<T> extends ISharedObjectEvents {
|
|
19
|
+
/**
|
|
20
|
+
* This event is only emitted when the SetCell Resolution Policy is First Write Win(FWW).
|
|
21
|
+
* This is emitted when two clients race and send changes without observing each other changes,
|
|
22
|
+
* the changes that gets sequenced last would be rejected, and only client who's changes rejected
|
|
23
|
+
* would be notified via this event, with expectation that it will merge its changes back by
|
|
24
|
+
* accounting new information (state from winner of the race).
|
|
25
|
+
*
|
|
26
|
+
* @remarks Listener parameters:
|
|
27
|
+
*
|
|
28
|
+
* - `row` - Row number at which conflict happened.
|
|
29
|
+
*
|
|
30
|
+
* - `col` - Col number at which conflict happened.
|
|
31
|
+
*
|
|
32
|
+
* - `currentValue` - The current value of the cell.
|
|
33
|
+
*
|
|
34
|
+
* - `conflictingValue` - The value that this client tried to set in the cell and got ignored due to conflict.
|
|
35
|
+
*
|
|
36
|
+
* - `target` - The {@link SharedMatrix} itself.
|
|
37
|
+
*/
|
|
38
|
+
(event: "conflict", listener: (row: number, col: number, currentValue: MatrixItem<T>, conflictingValue: MatrixItem<T>, target: IEventThisPlaceHolder) => void): any;
|
|
39
|
+
}
|
|
13
40
|
/**
|
|
14
41
|
* A matrix cell value may be undefined (indicating an empty cell) or any serializable type,
|
|
15
42
|
* excluding null. (However, nulls may be embedded inside objects and arrays.)
|
|
16
|
-
* @
|
|
43
|
+
* @alpha
|
|
17
44
|
*/
|
|
18
45
|
export type MatrixItem<T> = Serializable<Exclude<T, null>> | undefined;
|
|
19
46
|
/**
|
|
@@ -27,18 +54,29 @@ export type MatrixItem<T> = Serializable<Exclude<T, null>> | undefined;
|
|
|
27
54
|
* matrix data and physically stores data in Z-order to leverage CPU caches and
|
|
28
55
|
* prefetching when reading in either row or column major order. (See README.md
|
|
29
56
|
* for more details.)
|
|
30
|
-
*
|
|
31
|
-
* @public
|
|
57
|
+
* @alpha
|
|
32
58
|
*/
|
|
33
|
-
export declare class SharedMatrix<T = any> extends SharedObject implements IMatrixProducer<MatrixItem<T>>, IMatrixReader<MatrixItem<T>>, IMatrixWriter<MatrixItem<T>> {
|
|
59
|
+
export declare class SharedMatrix<T = any> extends SharedObject<ISharedMatrixEvents<T>> implements IMatrixProducer<MatrixItem<T>>, IMatrixReader<MatrixItem<T>>, IMatrixWriter<MatrixItem<T>> {
|
|
34
60
|
id: string;
|
|
35
61
|
private readonly consumers;
|
|
36
62
|
static getFactory(): SharedMatrixFactory;
|
|
37
63
|
private readonly rows;
|
|
38
64
|
private readonly cols;
|
|
39
65
|
private cells;
|
|
40
|
-
private pending;
|
|
41
|
-
|
|
66
|
+
private readonly pending;
|
|
67
|
+
private cellLastWriteTracker;
|
|
68
|
+
private setCellLwwToFwwPolicySwitchOpSeqNumber;
|
|
69
|
+
private userSwitchedSetCellPolicy;
|
|
70
|
+
private reentrantCount;
|
|
71
|
+
/**
|
|
72
|
+
* Constructor for the Shared Matrix
|
|
73
|
+
* @param runtime - DataStore runtime.
|
|
74
|
+
* @param id - id of the dds
|
|
75
|
+
* @param attributes - channel attributes
|
|
76
|
+
* @param _isSetCellConflictResolutionPolicyFWW - Conflict resolution for Matrix set op is First Writer Win in case of
|
|
77
|
+
* race condition. Client can still overwrite values in case of no race.
|
|
78
|
+
*/
|
|
79
|
+
constructor(runtime: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes, _isSetCellConflictResolutionPolicyFWW?: boolean);
|
|
42
80
|
private undo?;
|
|
43
81
|
/**
|
|
44
82
|
* Subscribes the given IUndoConsumer to the matrix.
|
|
@@ -54,12 +92,22 @@ export declare class SharedMatrix<T = any> extends SharedObject implements IMatr
|
|
|
54
92
|
closeMatrix(consumer: IMatrixConsumer<MatrixItem<T>>): void;
|
|
55
93
|
get rowCount(): number;
|
|
56
94
|
get colCount(): number;
|
|
95
|
+
isSetCellConflictResolutionPolicyFWW(): boolean;
|
|
57
96
|
getCell(row: number, col: number): MatrixItem<T>;
|
|
58
97
|
get matrixProducer(): IMatrixProducer<MatrixItem<T>>;
|
|
59
98
|
setCell(row: number, col: number, value: MatrixItem<T>): void;
|
|
60
99
|
setCells(rowStart: number, colStart: number, colCount: number, values: readonly MatrixItem<T>[]): void;
|
|
61
100
|
private setCellCore;
|
|
62
101
|
private sendSetCellOp;
|
|
102
|
+
/**
|
|
103
|
+
* This makes sure that the code inside the callback is not reentrant. We need to do that because we raise notifications
|
|
104
|
+
* to the consumers telling about these changes and they can try to change the matrix while listening to those notifications
|
|
105
|
+
* which can make the shared matrix to be in bad state. For example, we are raising notification for a setCell changes and
|
|
106
|
+
* a consumer tries to delete that row/col on receiving that notification which can lead to this matrix trying to setCell in
|
|
107
|
+
* a deleted row/col.
|
|
108
|
+
* @param callback - code that needs to protected against reentrancy.
|
|
109
|
+
*/
|
|
110
|
+
private protectAgainstReentrancy;
|
|
63
111
|
private submitVectorMessage;
|
|
64
112
|
private submitColMessage;
|
|
65
113
|
insertCols(colStart: number, count: number): void;
|
|
@@ -67,8 +115,8 @@ export declare class SharedMatrix<T = any> extends SharedObject implements IMatr
|
|
|
67
115
|
private submitRowMessage;
|
|
68
116
|
insertRows(rowStart: number, count: number): void;
|
|
69
117
|
removeRows(rowStart: number, count: number): void;
|
|
70
|
-
|
|
71
|
-
|
|
118
|
+
/***/ _undoRemoveRows(rowStart: number, spec: IJSONSegment): void;
|
|
119
|
+
/***/ _undoRemoveCols(colStart: number, spec: IJSONSegment): void;
|
|
72
120
|
protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
|
|
73
121
|
/**
|
|
74
122
|
* Runs serializer on the GC data for this SharedMatrix.
|
|
@@ -92,11 +140,21 @@ export declare class SharedMatrix<T = any> extends SharedObject implements IMatr
|
|
|
92
140
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
|
|
93
141
|
*/
|
|
94
142
|
protected loadCore(storage: IChannelStorageService): Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Tells whether the setCell op should be applied or not based on First Write Win policy. It assumes
|
|
145
|
+
* we are in FWW mode.
|
|
146
|
+
*/
|
|
147
|
+
private shouldSetCellBasedOnFWW;
|
|
95
148
|
protected processCore(rawMessage: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
|
|
96
149
|
private readonly onRowDelta;
|
|
97
150
|
private readonly onColDelta;
|
|
98
151
|
private readonly onRowHandlesRecycled;
|
|
99
152
|
private readonly onColHandlesRecycled;
|
|
153
|
+
/**
|
|
154
|
+
* Api to switch Set Op policy from Last Writer Win to First Writer Win. It only switches from LWW to FWW
|
|
155
|
+
* and not from FWW to LWW. The next SetOp which is sent will communicate this policy to other clients.
|
|
156
|
+
*/
|
|
157
|
+
switchSetCellPolicy(): void;
|
|
100
158
|
/**
|
|
101
159
|
* Returns true if the latest pending write to the cell indicated by the given row/col handles
|
|
102
160
|
* matches the given 'localSeq'.
|
package/lib/matrix.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../src/matrix.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../src/matrix.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAKI,EAAE,qBAAqB,EAAE,MAAM,iCAAiC;OAChE,EAAE,yBAAyB,EAAE,MAAM,sCAAsC;OACzE,EACN,sBAAsB,EACtB,sBAAsB,EACtB,YAAY,EACZ,kBAAkB,EAClB,MAAM,uCAAuC;OACvC,EACN,gBAAgB,EAChB,mBAAmB,EAGnB,YAAY,EACZ,iBAAiB,EACjB,MAAM,oCAAoC;OACpC,EAAE,qBAAqB,EAAE,MAAM,qCAAqC;OAEpE,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB;OACzF,EAKN,YAAY,EACZ,MAAM,4BAA4B;OAI5B,EAAE,mBAAmB,EAAE;OAIvB,EAAE,aAAa,EAAE;AA0BxB;;;GAGG;AACH,MAAM,WAAW,mBAAmB,CAAC,CAAC,CAAE,SAAQ,mBAAmB;IAClE;;;;;;;;;;;;;;;;;;OAkBG;IACH,CACC,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,CACT,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC,EAC3B,gBAAgB,EAAE,UAAU,CAAC,C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