@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

ParameterType
_sheetInterceptorServiceSheetInterceptorService
_renderManagerServiceIRenderManagerService
_themeServiceThemeService
_univerInstanceServiceIUniverInstanceService
_editorServiceIEditorService
_refSelectionsServiceSheetsSelectionsService
_contextServiceIContextService

Returns

EditorBridgeService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:143

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
afterVisible$readonlyObservable<IEditorBridgeServiceVisibleParam>undefined-submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:141
currentEditCell$readonlyObservable<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$readonlyObservable<Nullable<ICellEditorLayout>>undefined-submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:131
currentEditCellState$readonlyObservable<Nullable<ICellEditorState>>undefined-submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:128
visible$readonlyObservable<IEditorBridgeServiceVisibleParam>undefined-submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:138

Methods

changeEditorDirty()

changeEditorDirty(dirtyStatus): void

Parameters

ParameterType
dirtyStatusboolean

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

ParameterType
paramIEditorBridgeServiceVisibleParam

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

IDisposable.dispose

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

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

Disposable.ensureNotDisposed

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

ParameterType
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

ParameterType
paramICurrentEditCellParam

Returns

void

Implementation of

IEditorBridgeService.setEditCell

Defined in

submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:240