@univerjs/sheets-drawing-ui v0.5.0-beta.1 • Docs
Class: SheetCanvasFloatDomManagerService
Extends
Constructors
new SheetCanvasFloatDomManagerService()
new SheetCanvasFloatDomManagerService(
_renderManagerService,
_univerInstanceService,
_commandService,
_drawingManagerService,
_canvasFloatDomService,
_sheetDrawingService,
_lifecycleService): SheetCanvasFloatDomManagerService
Parameters
Parameter | Type |
---|---|
_renderManagerService | IRenderManagerService |
_univerInstanceService | IUniverInstanceService |
_commandService | ICommandService |
_drawingManagerService | IDrawingManagerService |
_canvasFloatDomService | CanvasFloatDomService |
_sheetDrawingService | ISheetDrawingService |
_lifecycleService | LifecycleService |
Returns
SheetCanvasFloatDomManagerService
Overrides
Defined in
sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:197
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 |
_lifecycleService | readonly | LifecycleService | undefined | - | sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:204 |
add$ | public | Observable <{ data : Record <string , any >; id : string ; subUnitId : string ; unitId : string ; }> | undefined | - | sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:190 |
remove$ | public | Observable <{ id : string ; subUnitId : string ; unitId : string ; }> | undefined | - | sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:193 |
transformChange$ | public | Observable <{ 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
Parameter | Type |
---|---|
layer | ICanvasFloatDom |
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
Parameter | Type |
---|---|
hook | ISheetCanvasFloatDomHook |
Returns
Defined in
sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:648
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100
getFloatDomInfo()
getFloatDomInfo(id): undefined | ICanvasFloatDomInfo
Parameters
Parameter | Type |
---|---|
id | string |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
id | string |
props | Record <string , any > |
Returns
void
Defined in
sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:555