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


Class: AutoFillService

Extends

Implements

Constructors

new AutoFillService()

new AutoFillService(
   _commandService, 
   _undoRedoService, 
   _renderManagerService, 
   _univerInstanceService, 
   _selectionManagerService, 
   _injector): AutoFillService

Parameters

ParameterType
_commandServiceICommandService
_undoRedoServiceIUndoRedoService
_renderManagerServiceRenderManagerService
_univerInstanceServiceIUniverInstanceService
_selectionManagerServiceSheetsSelectionsService
_injectorInjector

Returns

AutoFillService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:135

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
applyType$readonlyObservable<APPLY_TYPE>undefined-submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:109
autoFillLocation$readonlyObservable<Nullable<IAutoFillLocation>>undefined-submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:103
menu$readonlyObservable<IApplyMenuItem[]>undefined-submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:134
showMenu$readonlyObservable<boolean>undefined-submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:106

Accessors

applyType

Get Signature

get applyType(): APPLY_TYPE
Returns

APPLY_TYPE

Set Signature

set applyType(type): void
Parameters
ParameterType
typeAPPLY_TYPE
Returns

void

Implementation of

IAutoFillService.applyType

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:234


autoFillLocation

Get Signature

get autoFillLocation(): Nullable<IAutoFillLocation>
Returns

Nullable<IAutoFillLocation>

Set Signature

set autoFillLocation(location): void
Parameters
ParameterType
locationNullable<IAutoFillLocation>
Returns

void

Implementation of

IAutoFillService.autoFillLocation

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:262


direction

Get Signature

get direction(): Direction
Returns

Direction

Set Signature

set direction(direction): void
Parameters
ParameterType
directionDirection
Returns

void

Implementation of

IAutoFillService.direction

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:246


Get Signature

get menu(): IApplyMenuItem[]
Returns

IApplyMenuItem[]

Implementation of

IAutoFillService.menu

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:242

Methods

addHook()

addHook(hook): IDisposable

Parameters

ParameterType
hookISheetAutoFillHook

Returns

IDisposable

Implementation of

IAutoFillService.addHook

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:176


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


fillData()

fillData(triggerUnitId, triggerSubUnitId): boolean

Parameters

ParameterType
triggerUnitIdstring
triggerSubUnitIdstring

Returns

boolean

Implementation of

IAutoFillService.fillData

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:288


getActiveHooks()

getActiveHooks(): ISheetAutoFillHook[]

Returns

ISheetAutoFillHook[]

Implementation of

IAutoFillService.getActiveHooks

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:214


getAllHooks()

getAllHooks(): ISheetAutoFillHook[]

Returns

ISheetAutoFillHook[]

Implementation of

IAutoFillService.getAllHooks

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:210


getRules()

getRules(): IAutoFillRule[]

Returns

IAutoFillRule[]

Implementation of

IAutoFillService.getRules

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:206


initPrevUndo()

initPrevUndo(): void

Returns

void

Implementation of

IAutoFillService.initPrevUndo

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:172


isFillingStyle()

isFillingStyle(): boolean

Returns

boolean

Implementation of

IAutoFillService.isFillingStyle

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:254


registerRule()

registerRule(rule): void

Parameters

ParameterType
ruleIAutoFillRule

Returns

void

Implementation of

IAutoFillService.registerRule

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:196


setDisableApplyType()

setDisableApplyType(type, disable): void

Parameters

ParameterType
typeAPPLY_TYPE
disableboolean

Returns

void

Implementation of

IAutoFillService.setDisableApplyType

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:270


setFillingStyle()

setFillingStyle(isFillingStyle): void

Parameters

ParameterType
isFillingStyleboolean

Returns

void

Implementation of

IAutoFillService.setFillingStyle

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:258


setShowMenu()

setShowMenu(show): void

Parameters

ParameterType
showboolean

Returns

void

Implementation of

IAutoFillService.setShowMenu

Defined in

submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:284