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
Parameter | Type |
---|---|
_commandService | ICommandService |
_undoRedoService | IUndoRedoService |
_renderManagerService | RenderManagerService |
_univerInstanceService | IUniverInstanceService |
_selectionManagerService | SheetsSelectionsService |
_injector | Injector |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
applyType$ | readonly | Observable <APPLY_TYPE > | undefined | - | submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:110 |
autoFillLocation$ | readonly | Observable <Nullable <IAutoFillLocation >> | undefined | - | submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:104 |
menu$ | readonly | Observable <IApplyMenuItem []> | undefined | - | submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:135 |
showMenu$ | readonly | Observable <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
Set Signature
set applyType(type): void
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:341
Parameters
Parameter | Type |
---|---|
type | APPLY_TYPE |
Returns
void
Implementation of
autoFillLocation
Get Signature
get autoFillLocation(): Nullable<IAutoFillLocation>
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:365
Returns
Set Signature
set autoFillLocation(location): void
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:369
Parameters
Parameter | Type |
---|---|
location | Nullable <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
Set Signature
set direction(direction): void
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:353
Parameters
Parameter | Type |
---|---|
direction | Direction |
Returns
void
Implementation of
menu
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
Methods
addHook()
addHook(hook): IDisposable
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:279
Parameters
Parameter | Type |
---|---|
hook | ISheetAutoFillHook |
Returns
Implementation of
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
fillData()
fillData(applyType): boolean
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:392
Parameters
Parameter | Type |
---|---|
applyType | APPLY_TYPE |
Returns
boolean
Implementation of
getActiveHooks()
getActiveHooks(): ISheetAutoFillHook[]
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:317
Returns
Implementation of
IAutoFillService
.getActiveHooks
getAllHooks()
getAllHooks(): ISheetAutoFillHook[]
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:313
Returns
Implementation of
getRules()
getRules(): IAutoFillRule[]
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:309
Returns
Implementation of
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
Parameter | Type |
---|---|
rule | IAutoFillRule |
Returns
void
Implementation of
setDisableApplyType()
setDisableApplyType(type, disable): void
Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:373
Parameters
Parameter | Type |
---|---|
type | APPLY_TYPE |
disable | boolean |
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
Parameter | Type |
---|---|
isFillingStyle | boolean |
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
Parameter | Type |
---|---|
show | boolean |
Returns
void
Implementation of
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
source | IRange |
selection | IRange |
Returns
Promise
<boolean
>