API Reference
@univerjs
@univerjs/sheets-ui
classes
Autofillservice

@univerjs/sheets-ui v0.4.2Docs


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

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:135 (opens in a new tab)

Properties

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

Accessors

applyType

get applyType(): APPLY_TYPE
set applyType(type): void

Parameters

ParameterType
typeAPPLY_TYPE

Returns

APPLY_TYPE

Implementation of

IAutoFillService.applyType

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:234 (opens in a new tab)


autoFillLocation

get autoFillLocation(): Nullable<IAutoFillLocation>
set autoFillLocation(location): void

Parameters

ParameterType
locationNullable<IAutoFillLocation>

Returns

Nullable<IAutoFillLocation>

Implementation of

IAutoFillService.autoFillLocation

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:262 (opens in a new tab)


direction

get direction(): Direction
set direction(direction): void

Parameters

ParameterType
directionDirection

Returns

Direction

Implementation of

IAutoFillService.direction

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:246 (opens in a new tab)


menu

get menu(): IApplyMenuItem[]

Returns

IApplyMenuItem[]

Implementation of

IAutoFillService.menu

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:242 (opens in a new tab)

Methods

addHook()

addHook(hook): IDisposable

Parameters

ParameterType
hookISheetAutoFillHook

Returns

IDisposable

Implementation of

IAutoFillService.addHook

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:176 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


fillData()

fillData(triggerUnitId, triggerSubUnitId): boolean

Parameters

ParameterType
triggerUnitIdstring
triggerSubUnitIdstring

Returns

boolean

Implementation of

IAutoFillService.fillData

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:288 (opens in a new tab)


getActiveHooks()

getActiveHooks(): ISheetAutoFillHook[]

Returns

ISheetAutoFillHook[]

Implementation of

IAutoFillService.getActiveHooks

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:214 (opens in a new tab)


getAllHooks()

getAllHooks(): ISheetAutoFillHook[]

Returns

ISheetAutoFillHook[]

Implementation of

IAutoFillService.getAllHooks

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:210 (opens in a new tab)


getRules()

getRules(): IAutoFillRule[]

Returns

IAutoFillRule[]

Implementation of

IAutoFillService.getRules

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:206 (opens in a new tab)


initPrevUndo()

initPrevUndo(): void

Returns

void

Implementation of

IAutoFillService.initPrevUndo

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:172 (opens in a new tab)


isFillingStyle()

isFillingStyle(): boolean

Returns

boolean

Implementation of

IAutoFillService.isFillingStyle

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:254 (opens in a new tab)


registerRule()

registerRule(rule): void

Parameters

ParameterType
ruleIAutoFillRule

Returns

void

Implementation of

IAutoFillService.registerRule

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:196 (opens in a new tab)


setDisableApplyType()

setDisableApplyType(type, disable): void

Parameters

ParameterType
typeAPPLY_TYPE
disableboolean

Returns

void

Implementation of

IAutoFillService.setDisableApplyType

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:270 (opens in a new tab)


setFillingStyle()

setFillingStyle(isFillingStyle): void

Parameters

ParameterType
isFillingStyleboolean

Returns

void

Implementation of

IAutoFillService.setFillingStyle

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:258 (opens in a new tab)


setShowMenu()

setShowMenu(show): void

Parameters

ParameterType
showboolean

Returns

void

Implementation of

IAutoFillService.setShowMenu

Defined in

packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:284 (opens in a new tab)


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