@univerjs/sheets-ui v0.4.2 • Docs
Class: SheetCanvasPopManagerService
Extends
Constructors
new SheetCanvasPopManagerService()
new SheetCanvasPopManagerService(
_globalPopupManagerService,
_renderManagerService,
_univerInstanceService,
_refRangeService,
_commandService): SheetCanvasPopManagerService
Parameters
Parameter | Type |
---|---|
_globalPopupManagerService | ICanvasPopupService |
_renderManagerService | IRenderManagerService |
_univerInstanceService | IUniverInstanceService |
_refRangeService | RefRangeService |
_commandService | ICommandService |
Returns
Overrides
Defined in
packages/sheets-ui/src/services/canvas-pop-manager.service.ts:38 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
attachPopupByPosition()
attachPopupByPosition(
bound,
popup,
_unitId?,
_subUnitId?): Nullable<INeedCheckDisposable>
Parameters
Parameter | Type |
---|---|
bound | IBoundRectNoAngle |
popup | ICanvasPopup |
_unitId ? | string |
_subUnitId ? | string |
Returns
Nullable
<INeedCheckDisposable
>
Defined in
packages/sheets-ui/src/services/canvas-pop-manager.service.ts:157 (opens in a new tab)
attachPopupToAbsolutePosition()
attachPopupToAbsolutePosition(
bound,
popup,
_unitId?,
_subUnitId?): null | {
canDispose: () => boolean;
dispose: () => void;
}
Parameters
Parameter | Type |
---|---|
bound | IBoundRectNoAngle |
popup | ICanvasPopup |
_unitId ? | string |
_subUnitId ? | string |
Returns
null
| {
canDispose
: () => boolean
;
dispose
: () => void
;
}
Defined in
packages/sheets-ui/src/services/canvas-pop-manager.service.ts:201 (opens in a new tab)
attachPopupToCell()
attachPopupToCell(
row,
col,
popup,
_unitId?,
_subUnitId?,
viewport?,
showOnSelectionMoving?): Nullable<INeedCheckDisposable>
Parameters
Parameter | Type | Default value |
---|---|---|
row | number | undefined |
col | number | undefined |
popup | ICanvasPopup | undefined |
_unitId ? | string | undefined |
_subUnitId ? | string | undefined |
viewport ? | Viewport | undefined |
showOnSelectionMoving ? | boolean | false |
Returns
Nullable
<INeedCheckDisposable
>
Defined in
packages/sheets-ui/src/services/canvas-pop-manager.service.ts:256 (opens in a new tab)
attachPopupToObject()
attachPopupToObject(targetObject, popup): INeedCheckDisposable
attach a popup to canvas object
Parameters
Parameter | Type | Description |
---|---|---|
targetObject | BaseObject | target canvas object |
popup | ICanvasPopup | popup item |
Returns
disposable
Defined in
packages/sheets-ui/src/services/canvas-pop-manager.service.ts:98 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/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
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)