API Reference
@univerjs
@univerjs/sheets-drawing-ui
classes
Sheetcanvasfloatdommanagerservice

@univerjs/sheets-drawing-ui v0.4.2Docs


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 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93 (opens in a new tab)
_lifecycleServicereadonlyLifecycleServiceundefined-sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:204 (opens in a new tab)
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 (opens in a new tab)
remove$publicObservable<{ id: string; subUnitId: string; unitId: string; }>undefined-sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:193 (opens in a new tab)
transformChange$publicObservable<{ id: string; value: ITransformState; }>undefined-sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:187 (opens in a new tab)

Methods

addFloatDomToPosition()

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

Parameters

ParameterTypeDefault value
layerICanvasFloatDomundefined
propId?stringundefined
executeCommand?booleantrue

Returns

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

Defined in

sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:554 (opens in a new tab)


addHook()

addHook(hook): IDisposable

Parameters

ParameterType
hookISheetCanvasFloatDomHook

Returns

IDisposable

Defined in

sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:636 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100 (opens in a new tab)


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 (opens in a new tab)


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:541 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.