API Reference
@univerjs
@univerjs/sheets-ui
classes
Sheetcanvaspopmanagerservice

@univerjs/sheets-ui v0.4.2Docs


Class: SheetCanvasPopManagerService

Extends

Constructors

new SheetCanvasPopManagerService()

new SheetCanvasPopManagerService(
   _globalPopupManagerService, 
   _renderManagerService, 
   _univerInstanceService, 
   _refRangeService, 
   _commandService): SheetCanvasPopManagerService

Parameters

ParameterType
_globalPopupManagerServiceICanvasPopupService
_renderManagerServiceIRenderManagerService
_univerInstanceServiceIUniverInstanceService
_refRangeServiceRefRangeService
_commandServiceICommandService

Returns

SheetCanvasPopManagerService

Overrides

Disposable.constructor

Defined in

packages/sheets-ui/src/services/canvas-pop-manager.service.ts:38 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

attachPopupByPosition()

attachPopupByPosition(
   bound, 
   popup, 
   _unitId?, 
_subUnitId?): Nullable<INeedCheckDisposable>

Parameters

ParameterType
boundIBoundRectNoAngle
popupICanvasPopup
_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

ParameterType
boundIBoundRectNoAngle
popupICanvasPopup
_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

ParameterTypeDefault value
rownumberundefined
colnumberundefined
popupICanvasPopupundefined
_unitId?stringundefined
_subUnitId?stringundefined
viewport?Viewportundefined
showOnSelectionMoving?booleanfalse

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

ParameterTypeDescription
targetObjectBaseObjecttarget canvas object
popupICanvasPopuppopup item

Returns

INeedCheckDisposable

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

Disposable.dispose

Defined in

packages/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

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

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


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