API Reference
@univerjs
@univerjs/core
functions
Mergeworksheetsnapshotwithdefault

@univerjs/core v0.1.17Docs


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

submodules/univer/packages/core/src/sheets/sheet-snapshot-utils.ts:47 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.