API Reference
@univerjs
@univerjs/docs-ui
classes
Doccanvaspopmanagerservice

@univerjs/docs-ui v0.4.2Docs


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

packages/docs-ui/src/services/doc-popup-manager.service.ts:126 (opens in a new tab)

Properties

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

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

packages/docs-ui/src/services/doc-popup-manager.service.ts:228 (opens in a new tab)


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

packages/docs-ui/src/services/doc-popup-manager.service.ts:262 (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.