@univerjssheetsindexfunctionsSetworksheetcolwidthmutationfactory

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


Function: SetWorksheetColWidthMutationFactory()

function SetWorksheetColWidthMutationFactory(params, worksheet): ISetWorksheetColWidthMutationParams

This factory is for generating undo mutations for command DeltaColumnWidthCommand.

Note that this mutation may return multi mutations params if the column width is different for each column in the range.

Parameters

ParameterType
paramsISetWorksheetColWidthMutationParams
worksheetWorksheet

Returns

ISetWorksheetColWidthMutationParams

Defined in

submodules/univer/packages/sheets/src/commands/mutations/set-worksheet-col-width.mutation.ts:35