@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
Parameter | Type |
---|---|
_commandService | ICommandService |
_undoRedoService | IUndoRedoService |
_renderManagerService | RenderManagerService |
_univerInstanceService | IUniverInstanceService |
_selectionManagerService | SheetsSelectionsService |
_injector | Injector |
Returns
Overrides
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:135
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
applyType$ | readonly | Observable <APPLY_TYPE > | undefined | - | submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:109 |
autoFillLocation$ | readonly | Observable <Nullable <IAutoFillLocation >> | undefined | - | submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:103 |
menu$ | readonly | Observable <IApplyMenuItem []> | undefined | - | submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:134 |
showMenu$ | readonly | Observable <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
Set Signature
set applyType(type): void
Parameters
Parameter | Type |
---|---|
type | APPLY_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
Set Signature
set autoFillLocation(location): void
Parameters
Parameter | Type |
---|---|
location | Nullable <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
Set Signature
set direction(direction): void
Parameters
Parameter | Type |
---|---|
direction | Direction |
Returns
void
Implementation of
IAutoFillService
.direction
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:246
menu
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
Parameter | Type |
---|---|
hook | ISheetAutoFillHook |
Returns
Implementation of
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:176
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
fillData()
fillData(triggerUnitId, triggerSubUnitId): boolean
Parameters
Parameter | Type |
---|---|
triggerUnitId | string |
triggerSubUnitId | string |
Returns
boolean
Implementation of
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:288
getActiveHooks()
getActiveHooks(): ISheetAutoFillHook[]
Returns
Implementation of
IAutoFillService
.getActiveHooks
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:214
getAllHooks()
getAllHooks(): ISheetAutoFillHook[]
Returns
Implementation of
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:210
getRules()
getRules(): IAutoFillRule[]
Returns
Implementation of
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:206
initPrevUndo()
initPrevUndo(): void
Returns
void
Implementation of
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
Parameter | Type |
---|---|
rule | IAutoFillRule |
Returns
void
Implementation of
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:196
setDisableApplyType()
setDisableApplyType(type, disable): void
Parameters
Parameter | Type |
---|---|
type | APPLY_TYPE |
disable | boolean |
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
Parameter | Type |
---|---|
isFillingStyle | boolean |
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
Parameter | Type |
---|---|
show | boolean |
Returns
void
Implementation of
IAutoFillService
.setShowMenu
Defined in
submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:284