@univerjssheets-drawing-uiindexclassesSheetcanvasfloatdommanagerservice

@univerjs/sheets-drawing-ui v0.5.0-beta.1Docs


Class: SheetCanvasFloatDomManagerService

Extends

Constructors

new SheetCanvasFloatDomManagerService()

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

Parameters

ParameterType
_renderManagerServiceIRenderManagerService
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_drawingManagerServiceIDrawingManagerService
_canvasFloatDomServiceCanvasFloatDomService
_sheetDrawingServiceISheetDrawingService
_lifecycleServiceLifecycleService

Returns

SheetCanvasFloatDomManagerService

Overrides

Disposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93
_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;
}

Parameters

ParameterType
layerICanvasFloatDom
propId?string

Returns

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

Defined in

sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:568


addHook()

addHook(hook): IDisposable

Parameters

ParameterType
hookISheetCanvasFloatDomHook

Returns

IDisposable

Defined in

sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:648


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100


getFloatDomInfo()

getFloatDomInfo(id): undefined | ICanvasFloatDomInfo

Parameters

ParameterType
idstring

Returns

undefined | ICanvasFloatDomInfo

Defined in

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


updateFloatDomProps()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
idstring
propsRecord<string, any>

Returns

void

Defined in

sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:555