@univerjs/sheets-ui v0.5.4


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

ParameterType
_sheetInterceptorServiceSheetInterceptorService
_renderManagerServiceIRenderManagerService
_themeServiceThemeService
_univerInstanceServiceIUniverInstanceService
_editorServiceIEditorService
_refSelectionsServiceSheetsSelectionsService
_contextServiceIContextService

Returns

EditorBridgeService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
afterVisible$readonlyObservable<IEditorBridgeServiceVisibleParam>undefined-submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:137
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:129
currentEditCellLayout$readonlyObservable<Nullable<ICellEditorLayout>>undefined-submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:127
currentEditCellState$readonlyObservable<Nullable<ICellEditorState>>undefined-submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:124
forceKeepVisible$readonlyObservable<boolean>undefined-submodules/univer/packages/sheets-ui/src/services/editor-bridge.service.ts:140
visible$readonlyObservable<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

ParameterType
dirtyStatusboolean

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

ParameterType
paramIEditorBridgeServiceVisibleParam

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

IDisposable.dispose

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


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

Disposable.ensureNotDisposed


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

ParameterType
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

ParameterType
paramICurrentEditCellParam

Returns

void

Implementation of

IEditorBridgeService.setEditCell