@univerjscorefunctionsMergeworksheetsnapshotwithdefault

@univerjs/core v0.5.0-beta.1Docs


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

ParameterTypeDescription
snapshotPartial<IWorksheetData>user passed in snapshot

Returns

IWorksheetData

merged snapshot

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/sheet-snapshot-utils.ts:47