@univerjsdocs-uiindexclassesDoccanvaspopmanagerservice

@univerjs/docs-ui v0.5.0-beta.1Docs


Class: DocCanvasPopManagerService

Extends

Constructors

new DocCanvasPopManagerService()

new DocCanvasPopManagerService(
   _globalPopupManagerService, 
   _renderManagerService, 
   _univerInstanceService, 
   _commandService): DocCanvasPopManagerService

Parameters

ParameterType
_globalPopupManagerServiceICanvasPopupService
_renderManagerServiceIRenderManagerService
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService

Returns

DocCanvasPopManagerService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/docs-ui/src/services/doc-popup-manager.service.ts:127

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

attachPopupToObject()

attachPopupToObject(
   targetObject, 
   popup, 
   unitId): IDisposable

attach a popup to canvas object

Parameters

ParameterTypeDescription
targetObjectBaseObjecttarget canvas object
popupIDocCanvasPopuppopup item
unitIdstring-

Returns

IDisposable

disposable

Defined in

submodules/univer/packages/docs-ui/src/services/doc-popup-manager.service.ts:235


attachPopupToRange()

attachPopupToRange(
   range, 
   popup, 
   unitId): INeedCheckDisposable

attach a popup to doc range

Parameters

ParameterTypeDescription
rangeITextRangeParamdoc range
popupIDocCanvasPopuppopup item
unitIdstringunit id

Returns

INeedCheckDisposable

disposable

Defined in

submodules/univer/packages/docs-ui/src/services/doc-popup-manager.service.ts:269


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100