@univerjs/sheets-ui v0.5.4


Class: AutoWidthController

Defined in: submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:57

Extends

Constructors

new AutoWidthController()

new AutoWidthController(_renderManagerService, _univerInstanceService): AutoWidthController

Defined in: submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:58

Parameters

ParameterType
_renderManagerServiceRenderManagerService
_univerInstanceServiceIUniverInstanceService

Returns

AutoWidthController

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getUndoRedoParamsOfColWidth()

getUndoRedoParamsOfColWidth(params): {
  redos: {
     id: string;
     params: ISetWorksheetColWidthMutationParams;
    }[];
  undos: {
     id: string;
     params: ISetWorksheetColWidthMutationParams;
    }[];
}

Defined in: submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:65

Parameters

ParameterType
paramsRequired<ISetWorksheetColIsAutoWidthCommandParams>

Returns

{
  redos: {
     id: string;
     params: ISetWorksheetColWidthMutationParams;
    }[];
  undos: {
     id: string;
     params: ISetWorksheetColWidthMutationParams;
    }[];
}
NameTypeDefined in
redos{ id: string; params: ISetWorksheetColWidthMutationParams; }[]submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:98
undos{ id: string; params: ISetWorksheetColWidthMutationParams; }[]submodules/univer/packages/sheets-ui/src/controllers/auto-width.controller.ts:92