@univerjs/sheets-ui v0.5.0-beta.1 • Docs
Class: EditorBridgeService
Extends
Implements
Constructors
new EditorBridgeService()
new EditorBridgeService(
_sheetInterceptorService,
_renderManagerService,
_themeService,
_univerInstanceService,
_editorService,
_refSelectionsService,
_contextService): EditorBridgeService
Parameters
Parameter | Type |
---|---|
_sheetInterceptorService | SheetInterceptorService |
_renderManagerService | IRenderManagerService |
_themeService | ThemeService |
_univerInstanceService | IUniverInstanceService |
_editorService | IEditorService |
_refSelectionsService | SheetsSelectionsService |
_contextService | IContextService |
Returns
Overrides
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:143
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 |
afterVisible$ | readonly | Observable <IEditorBridgeServiceVisibleParam > | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:141 |
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:133 |
currentEditCellLayout$ | readonly | Observable <Nullable <ICellEditorLayout >> | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:131 |
currentEditCellState$ | readonly | Observable <Nullable <ICellEditorState >> | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:128 |
visible$ | readonly | Observable <IEditorBridgeServiceVisibleParam > | undefined | - | submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:138 |
Methods
changeEditorDirty()
changeEditorDirty(dirtyStatus): void
Parameters
Parameter | Type |
---|---|
dirtyStatus | boolean |
Returns
void
Implementation of
IEditorBridgeService
.changeEditorDirty
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:456
changeVisible()
changeVisible(param): void
Parameters
Parameter | Type |
---|---|
param | IEditorBridgeServiceVisibleParam |
Returns
void
Implementation of
IEditorBridgeService
.changeVisible
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:419
disableForceKeepVisible()
disableForceKeepVisible(): void
Returns
void
Implementation of
IEditorBridgeService
.disableForceKeepVisible
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:448
dispose()
dispose(): void
Returns
void
Implementation of
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
enableForceKeepVisible()
enableForceKeepVisible(): void
Returns
void
Implementation of
IEditorBridgeService
.enableForceKeepVisible
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:444
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
getCurrentEditorId()
getCurrentEditorId(): string
Returns
string
Implementation of
IEditorBridgeService
.getCurrentEditorId
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:415
getEditCellLayout()
getEditCellLayout(): Readonly<Nullable<ICellEditorLayout>>
Returns
Readonly
<Nullable
<ICellEditorLayout
>>
Implementation of
IEditorBridgeService
.getEditCellLayout
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:288
getEditCellState()
getEditCellState(): Readonly<Nullable<IEditorBridgeServiceParam>>
Returns
Readonly
<Nullable
<IEditorBridgeServiceParam
>>
Implementation of
IEditorBridgeService
.getEditCellState
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:280
getEditLocation()
getEditLocation(): Readonly<Nullable<ICellEditorState>>
Returns
Readonly
<Nullable
<ICellEditorState
>>
Implementation of
IEditorBridgeService
.getEditLocation
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:292
getEditorDirty()
getEditorDirty(): boolean
Returns
boolean
Implementation of
IEditorBridgeService
.getEditorDirty
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:460
getLatestEditCellState()
getLatestEditCellState(): undefined | {
canvasOffset: {
left: 0;
top: 0;
};
column: startColumn;
documentLayoutObject: IDocumentLayoutObject;
editorUnitId: string;
isInArrayFormulaRange: cell.isInArrayFormulaRange;
position: {
endX: number;
endY: number;
startX: number;
startY: number;
};
row: startRow;
scaleX: number;
scaleY: number;
sheetId: string;
unitId: string;
}
Returns
undefined
| {
canvasOffset
: {
left
: 0
;
top
: 0
;
};
column
: startColumn
;
documentLayoutObject
: IDocumentLayoutObject
;
editorUnitId
: string
;
isInArrayFormulaRange
: cell.isInArrayFormulaRange
;
position
: {
endX
: number
;
endY
: number
;
startX
: number
;
startY
: number
;
};
row
: startRow
;
scaleX
: number
;
scaleY
: number
;
sheetId
: string
;
unitId
: string
;
}
Implementation of
IEditorBridgeService
.getLatestEditCellState
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:297
isForceKeepVisible()
isForceKeepVisible(): boolean
Returns
boolean
Implementation of
IEditorBridgeService
.isForceKeepVisible
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:452
isVisible()
isVisible(): IEditorBridgeServiceVisibleParam
Returns
IEditorBridgeServiceVisibleParam
Implementation of
IEditorBridgeService
.isVisible
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:440
refreshEditCellPosition()
refreshEditCellPosition(resetSizeOnly?): void
Parameters
Parameter | Type |
---|---|
resetSizeOnly ? | boolean |
Returns
void
Implementation of
IEditorBridgeService
.refreshEditCellPosition
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:182
refreshEditCellState()
refreshEditCellState(): void
Returns
void
Implementation of
IEditorBridgeService
.refreshEditCellState
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:166
setEditCell()
setEditCell(param): void
Parameters
Parameter | Type |
---|---|
param | ICurrentEditCellParam |
Returns
void
Implementation of
IEditorBridgeService
.setEditCell
Defined in
submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:240