@univerjs/core v0.5.0-beta.1 • Docs
Function: mergeWorksheetSnapshotWithDefault()
function mergeWorksheetSnapshotWithDefault(snapshot): IWorksheetData
This function is used to merge the user passed in snapshot with the default snapshot without changing the user’s snapshot’s reference.
Parameters
Parameter | Type | Description |
---|---|---|
snapshot | Partial <IWorksheetData > | user passed in snapshot |
Returns
merged snapshot
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/sheet-snapshot-utils.ts:47