FSSC
| packages | @univerjs-pro/ssc |
|---|
APIs
compute
Get the SSC instance to manage the SSC issue of the current univer.
Signature
compute(context: ILogContext, unitId: string, rev: number, timeout: number): Promise<{
revision: number;
sscBlock: { [key: string]: ISheetBlockMeta };
}>Parameters
context(ILogContext) — The log context.unitId(string) — The ID of the unit.rev(number) — The revision number.timeout(number) — The timeout duration.
Returns
- (
Promise<{ revision: number; sscBlock: { [key: string]: ISheetBlockMeta }; }>) — The SSC instance.
Examples
const ssc = univerAPI.getSSC()getPreprocessRanges
Get preprocess ranges for a given unit and revision.
Signature
getPreprocessRanges(context: ILogContext, unitId: string, responseDataMode?: string = '', rev?: number = 0): Promise<{ [key: string]: ITableInfo[] }>Parameters
context(ILogContext) — The log context.unitId(string) — The ID of the unit.rev(number) — The revision number, 0 is newest.
Returns
- (
Promise<{ [key: string]: ITableInfo[] }>) — A promise that resolves to a record mapping sheet IDs to arrays of table information.
GetValues
Get values for a specified range in a worksheet.
Signature
GetValues(context: ILogContext, request: IGetValuesRequest, rev?: number = 0): Promise<IGetValuesResponse>Parameters
context(ILogContext) — The log contextrequest(IGetValuesRequest) — The get values requestrev(number) — The revision number, 0 is newest
Returns
- (
Promise<IGetValuesResponse>) — A promise that resolves to the get values response
