@univerjssheets-drawing-uiindexclassesSheetcanvasfloatdommanagerservice

@univerjs/sheets-drawing-ui v0.5.4


Class: SheetCanvasFloatDomManagerService

Defined in: sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:182

Extends

Constructors

new SheetCanvasFloatDomManagerService()

new SheetCanvasFloatDomManagerService(
   _renderManagerService, 
   _univerInstanceService, 
   _commandService, 
   _drawingManagerService, 
   _canvasFloatDomService, 
   _sheetDrawingService, 
   _lifecycleService): SheetCanvasFloatDomManagerService

Defined in: sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:197

Parameters

ParameterType
_renderManagerServiceIRenderManagerService
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_drawingManagerServiceIDrawingManagerService
_canvasFloatDomServiceCanvasFloatDomService
_sheetDrawingServiceISheetDrawingService
_lifecycleServiceLifecycleService

Returns

SheetCanvasFloatDomManagerService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:96
_lifecycleServicereadonlyLifecycleServiceundefined-sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:204
add$publicObservable<{ data: Record<string, any>; id: string; subUnitId: string; unitId: string; }>undefined-sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:190
remove$publicObservable<{ id: string; subUnitId: string; unitId: string; }>undefined-sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:193
transformChange$publicObservable<{ id: string; value: ITransformState; }>undefined-sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:187

Methods

addFloatDomToPosition()

addFloatDomToPosition(layer, propId?): 
  | undefined
  | {
  dispose: () => void;
  id: string;
}

Defined in: sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:569

Parameters

ParameterType
layerICanvasFloatDom
propId?string

Returns

| undefined | { dispose: () => void; id: string; }


addHook()

addHook(hook): IDisposable

Defined in: sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:649

Parameters

ParameterType
hookISheetCanvasFloatDomHook

Returns

IDisposable


dispose()

dispose(): void

Defined in: core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getFloatDomInfo()

getFloatDomInfo(id): undefined | ICanvasFloatDomInfo

Defined in: sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:235

Parameters

ParameterType
idstring

Returns

undefined | ICanvasFloatDomInfo


updateFloatDomProps()

updateFloatDomProps(
   unitId, 
   subUnitId, 
   id, 
   props): void

Defined in: sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:556

Parameters

ParameterType
unitIdstring
subUnitIdstring
idstring
propsRecord<string, any>

Returns

void