Class: EditorBridgeService
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:107
Extends
Implements
Constructors
new EditorBridgeService()
new EditorBridgeService(
_sheetInterceptorService,
_renderManagerService,
_themeService,
_univerInstanceService,
_editorService,
_refSelectionsService,
_contextService): EditorBridgeService
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:142
Parameters
Parameter | Type |
---|---|
_sheetInterceptorService | SheetInterceptorService |
_renderManagerService | IRenderManagerService |
_themeService | ThemeService |
_univerInstanceService | IUniverInstanceService |
_editorService | IEditorService |
_refSelectionsService | SheetsSelectionsService |
_contextService | IContextService |
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 |
afterVisible$ | readonly | Observable <IEditorBridgeServiceVisibleParam > | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:137 |
currentEditCell$ | readonly | Observable < | null | { canvasOffset : { left : number ; top : number ; }; column : number ; documentLayoutObject : IDocumentLayoutObject ; editorUnitId : string ; isInArrayFormulaRange : Nullable <boolean >; position : IPosition ; row : number ; scaleX : number ; scaleY : number ; sheetId : string ; unitId : string ; }> | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:129 |
currentEditCellLayout$ | readonly | Observable <Nullable <ICellEditorLayout >> | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:127 |
currentEditCellState$ | readonly | Observable <Nullable <ICellEditorState >> | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:124 |
forceKeepVisible$ | readonly | Observable <boolean > | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:140 |
visible$ | readonly | Observable <IEditorBridgeServiceVisibleParam > | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:134 |
Methods
changeEditorDirty()
changeEditorDirty(dirtyStatus): void
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:438
Parameters
Parameter | Type |
---|---|
dirtyStatus | boolean |
Returns
void
Implementation of
IEditorBridgeService
.changeEditorDirty
changeVisible()
changeVisible(param): void
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:410
Parameters
Parameter | Type |
---|---|
param | IEditorBridgeServiceVisibleParam |
Returns
void
Implementation of
IEditorBridgeService
.changeVisible
disableForceKeepVisible()
disableForceKeepVisible(): void
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:430
Returns
void
Implementation of
IEditorBridgeService
.disableForceKeepVisible
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Implementation of
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
enableForceKeepVisible()
enableForceKeepVisible(): void
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:426
Returns
void
Implementation of
IEditorBridgeService
.enableForceKeepVisible
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getCurrentEditorId()
getCurrentEditorId(): string
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:406
Returns
string
Implementation of
IEditorBridgeService
.getCurrentEditorId
getEditCellLayout()
getEditCellLayout(): Readonly<Nullable<ICellEditorLayout>>
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:282
Returns
Readonly
<Nullable
<ICellEditorLayout
>>
Implementation of
IEditorBridgeService
.getEditCellLayout
getEditCellState()
getEditCellState(): Readonly<Nullable<IEditorBridgeServiceParam>>
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:274
Returns
Readonly
<Nullable
<IEditorBridgeServiceParam
>>
Implementation of
IEditorBridgeService
.getEditCellState
getEditLocation()
getEditLocation(): Readonly<Nullable<ICellEditorState>>
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:286
Returns
Readonly
<Nullable
<ICellEditorState
>>
Implementation of
IEditorBridgeService
.getEditLocation
getEditorDirty()
getEditorDirty(): boolean
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:442
Returns
boolean
Implementation of
IEditorBridgeService
.getEditorDirty
getLatestEditCellState()
getLatestEditCellState():
| undefined
| {
canvasOffset: {
left: number;
top: number;
};
column: number;
documentLayoutObject: IDocumentLayoutObject;
editorUnitId: string;
isInArrayFormulaRange: Nullable<boolean>;
position: {
endX: number;
endY: number;
startX: number;
startY: number;
};
row: number;
scaleX: number;
scaleY: number;
sheetId: string;
unitId: string;
}
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:291
Returns
| undefined
| {
canvasOffset
: {
left
: number
;
top
: number
;
};
column
: number
;
documentLayoutObject
: IDocumentLayoutObject
;
editorUnitId
: string
;
isInArrayFormulaRange
: Nullable
<boolean
>;
position
: {
endX
: number
;
endY
: number
;
startX
: number
;
startY
: number
;
};
row
: number
;
scaleX
: number
;
scaleY
: number
;
sheetId
: string
;
unitId
: string
;
}
Implementation of
IEditorBridgeService
.getLatestEditCellState
isForceKeepVisible()
isForceKeepVisible(): boolean
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:434
Returns
boolean
Implementation of
IEditorBridgeService
.isForceKeepVisible
isVisible()
isVisible(): IEditorBridgeServiceVisibleParam
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:422
Returns
IEditorBridgeServiceVisibleParam
Implementation of
IEditorBridgeService
.isVisible
refreshEditCellPosition()
refreshEditCellPosition(resetSizeOnly?): void
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:181
Parameters
Parameter | Type |
---|---|
resetSizeOnly ? | boolean |
Returns
void
Implementation of
IEditorBridgeService
.refreshEditCellPosition
refreshEditCellState()
refreshEditCellState(): void
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:165
Returns
void
Implementation of
IEditorBridgeService
.refreshEditCellState
setEditCell()
setEditCell(param): void
Defined in: submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:235
Parameters
Parameter | Type |
---|---|
param | ICurrentEditCellParam |
Returns
void