@univerjs/sheets-ui v0.4.2 • Docs
Class: AutoFillService
Extends
Implements
Constructors
new AutoFillService()
new AutoFillService(
_commandService,
_undoRedoService,
_renderManagerService,
_univerInstanceService,
_selectionManagerService,
_injector): AutoFillService
Parameters
Parameter | Type |
---|---|
_commandService | ICommandService |
_undoRedoService | IUndoRedoService |
_renderManagerService | RenderManagerService |
_univerInstanceService | IUniverInstanceService |
_selectionManagerService | SheetsSelectionsService |
_injector | Injector |
Returns
Overrides
Defined in
packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:135 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
applyType$ | readonly | Observable <APPLY_TYPE > | undefined | - | packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:109 (opens in a new tab) |
autoFillLocation$ | readonly | Observable <Nullable <IAutoFillLocation >> | undefined | - | packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:103 (opens in a new tab) |
menu$ | readonly | Observable <IApplyMenuItem []> | undefined | - | packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:134 (opens in a new tab) |
showMenu$ | readonly | Observable <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
Parameter | Type |
---|---|
type | APPLY_TYPE |
Returns
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
Parameter | Type |
---|---|
location | Nullable <IAutoFillLocation > |
Returns
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
Parameter | Type |
---|---|
direction | Direction |
Returns
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
Parameter | Type |
---|---|
hook | ISheetAutoFillHook |
Returns
Implementation of
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
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
fillData()
fillData(triggerUnitId, triggerSubUnitId): boolean
Parameters
Parameter | Type |
---|---|
triggerUnitId | string |
triggerSubUnitId | string |
Returns
boolean
Implementation of
Defined in
packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:288 (opens in a new tab)
getActiveHooks()
getActiveHooks(): ISheetAutoFillHook[]
Returns
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
Implementation of
Defined in
packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:210 (opens in a new tab)
getRules()
getRules(): IAutoFillRule[]
Returns
Implementation of
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
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
Parameter | Type |
---|---|
rule | IAutoFillRule |
Returns
void
Implementation of
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
Parameter | Type |
---|---|
type | APPLY_TYPE |
disable | boolean |
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
Parameter | Type |
---|---|
isFillingStyle | boolean |
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
Parameter | Type |
---|---|
show | boolean |
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)