@univerjs/sheets-drawing-ui v0.4.2 • 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 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 (opens in a new tab) |
_lifecycleService | readonly | LifecycleService | undefined | - | sheets-drawing-ui/src/services/canvas-float-dom-manager.service.ts:204 (opens in a new tab) |
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 (opens in a new tab) |
remove$ | public | Observable <{ 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$ | public | Observable <{ 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
Parameter | Type | Default value |
---|---|---|
layer | ICanvasFloatDom | undefined |
propId ? | string | undefined |
executeCommand ? | boolean | true |
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
Parameter | Type |
---|---|
hook | ISheetCanvasFloatDomHook |
Returns
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
Defined in
core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100 (opens in a new tab)
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 (opens in a new tab)
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:541 (opens in a new tab)