@univerjs/sheets-ui v0.5.4


Class: AutoFillService

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:92

Extends

Implements

Constructors

new AutoFillService()

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

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:136

Parameters

ParameterType
_commandServiceICommandService
_undoRedoServiceIUndoRedoService
_renderManagerServiceRenderManagerService
_univerInstanceServiceIUniverInstanceService
_selectionManagerServiceSheetsSelectionsService
_injectorInjector

Returns

AutoFillService

Overrides

Disposable.constructor

Properties

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

Accessors

applyType

Get Signature

get applyType(): APPLY_TYPE

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:337

Returns

APPLY_TYPE

Set Signature

set applyType(type): void

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:341

Parameters
ParameterType
typeAPPLY_TYPE
Returns

void

Implementation of

IAutoFillService.applyType


autoFillLocation

Get Signature

get autoFillLocation(): Nullable<IAutoFillLocation>

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:365

Returns

Nullable<IAutoFillLocation>

Set Signature

set autoFillLocation(location): void

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:369

Parameters
ParameterType
locationNullable<IAutoFillLocation>
Returns

void

Implementation of

IAutoFillService.autoFillLocation


direction

Get Signature

get direction(): Direction

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:349

Returns

Direction

Set Signature

set direction(direction): void

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:353

Parameters
ParameterType
directionDirection
Returns

void

Implementation of

IAutoFillService.direction


Get Signature

get menu(): IApplyMenuItem[]

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:345

Returns

IApplyMenuItem[]

Implementation of

IAutoFillService.menu

Methods

addHook()

addHook(hook): IDisposable

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:279

Parameters

ParameterType
hookISheetAutoFillHook

Returns

IDisposable

Implementation of

IAutoFillService.addHook


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


fillData()

fillData(applyType): boolean

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:392

Parameters

ParameterType
applyTypeAPPLY_TYPE

Returns

boolean

Implementation of

IAutoFillService.fillData


getActiveHooks()

getActiveHooks(): ISheetAutoFillHook[]

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:317

Returns

ISheetAutoFillHook[]

Implementation of

IAutoFillService.getActiveHooks


getAllHooks()

getAllHooks(): ISheetAutoFillHook[]

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:313

Returns

ISheetAutoFillHook[]

Implementation of

IAutoFillService.getAllHooks


getRules()

getRules(): IAutoFillRule[]

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:309

Returns

IAutoFillRule[]

Implementation of

IAutoFillService.getRules


isFillingStyle()

isFillingStyle(): boolean

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:357

Returns

boolean

Implementation of

IAutoFillService.isFillingStyle


registerRule()

registerRule(rule): void

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:299

Parameters

ParameterType
ruleIAutoFillRule

Returns

void

Implementation of

IAutoFillService.registerRule


setDisableApplyType()

setDisableApplyType(type, disable): void

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:373

Parameters

ParameterType
typeAPPLY_TYPE
disableboolean

Returns

void

Implementation of

IAutoFillService.setDisableApplyType


setFillingStyle()

setFillingStyle(isFillingStyle): void

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:361

Parameters

ParameterType
isFillingStyleboolean

Returns

void

Implementation of

IAutoFillService.setFillingStyle


setShowMenu()

setShowMenu(show): void

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:387

Parameters

ParameterType
showboolean

Returns

void

Implementation of

IAutoFillService.setShowMenu


triggerAutoFill()

triggerAutoFill(
   unitId, 
   subUnitId, 
   source, 
selection): Promise<boolean>

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:178

Parameters

ParameterType
unitIdstring
subUnitIdstring
sourceIRange
selectionIRange

Returns

Promise<boolean>

Implementation of

IAutoFillService.triggerAutoFill