Class: SheetCanvasPopManagerService
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:47
Extends
Constructors
new SheetCanvasPopManagerService()
new SheetCanvasPopManagerService(
_globalPopupManagerService,
_renderManagerService,
_univerInstanceService,
_refRangeService,
_commandService,
_refSelectionsService,
_selectionManagerService): SheetCanvasPopManagerService
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:50
Parameters
Parameter | Type |
---|---|
_globalPopupManagerService | ICanvasPopupService |
_renderManagerService | IRenderManagerService |
_univerInstanceService | IUniverInstanceService |
_refRangeService | RefRangeService |
_commandService | ICommandService |
_refSelectionsService | ISheetSelectionRenderService |
_selectionManagerService | SheetsSelectionsService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
Methods
attachPopupByPosition()
attachPopupByPosition(
bound,
popup,
location): Nullable<INeedCheckDisposable>
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:304
Parameters
Parameter | Type |
---|---|
bound | IBoundRectNoAngle |
popup | ICanvasPopup |
location | ISheetLocationBase |
Returns
Nullable
<INeedCheckDisposable
>
attachPopupToAbsolutePosition()
attachPopupToAbsolutePosition(
bound,
popup,
_unitId?,
_subUnitId?):
| undefined
| null
| {
canDispose: () => boolean;
dispose: () => void;
}
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:361
Parameters
Parameter | Type |
---|---|
bound | IBoundRectNoAngle |
popup | ICanvasPopup |
_unitId ? | string |
_subUnitId ? | string |
Returns
| undefined
| null
| {
canDispose
: () => boolean
;
dispose
: () => void
;
}
attachPopupToCell()
attachPopupToCell(
row,
col,
popup,
_unitId?,
_subUnitId?,
viewport?): Nullable<INeedCheckDisposable>
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:419
Parameters
Parameter | Type |
---|---|
row | number |
col | number |
popup | ICanvasPopup |
_unitId ? | string |
_subUnitId ? | string |
viewport ? | Viewport |
Returns
Nullable
<INeedCheckDisposable
>
attachPopupToObject()
attachPopupToObject(targetObject, popup): INeedCheckDisposable
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:245
attach a popup to canvas object
Parameters
Parameter | Type | Description |
---|---|---|
targetObject | BaseObject | target canvas object |
popup | ICanvasPopup | popup item |
Returns
disposable
dispose()
dispose(): void
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:112
Returns
void
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getFeatureMenu()
getFeatureMenu(
unitId,
subUnitId,
drawingId,
drawingType): Nullable<IPopupMenuItem[]>
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:105
Get the feature menu by drawing type, the function should be called when a drawing element need trigger popup menu, so the unitId, subUnitId, drawingId should be provided.
Parameters
Parameter | Type | Description |
---|---|---|
unitId | string | the unit id |
subUnitId | string | the sub unit id |
drawingId | string | the drawing id |
drawingType | DrawingTypeEnum | the feature type |
Returns
Nullable
<IPopupMenuItem
[]>
the feature menu if it exists, otherwise return undefined
registerFeatureMenu()
registerFeatureMenu(type, getPopupMenuCallBack): void
Defined in: submodules/univer/packages/sheets-ui/src/services/canvas-pop-manager.service.ts:93
Register a feature menu callback for a specific drawing type.such as image, chart, etc.
Parameters
Parameter | Type |
---|---|
type | DrawingTypeEnum |
getPopupMenuCallBack | getPopupMenuItemCallback |
Returns
void