@univerjsslides-uiclassesCanvasview

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


Class: CanvasView

Every render module should implement this interface.

Extends

Implements

Constructors

new CanvasView()

new CanvasView(_renderManagerService): CanvasView

Parameters

ParameterType
_renderManagerServiceIRenderManagerService

Returns

CanvasView

Overrides

RxDisposable.constructor

Defined in

submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:31

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:117

Methods

activePage()

activePage(pageId, unitId): void

Parameters

ParameterType
pageIdstring
unitIdstring

Returns

void

Defined in

submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:52


appendPage()

appendPage(unitId): void

append blank page

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:80


createObjectToPage()

createObjectToPage(
   element, 
   pageID, 
unitId): Nullable<BaseObject>

Parameters

ParameterType
elementIPageElement
pageIDstring
unitIdstring

Returns

Nullable<BaseObject>

Defined in

submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:62


createThumbs()

createThumbs(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:47


dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Inherited from

RxDisposable.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

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


getRenderUnitByPageId()

getRenderUnitByPageId(pageId, unitId): {
  engine: Engine;
  scene: pageScene;
  unit: UnitModel<object, number>;
}

Parameters

ParameterType
pageIdstring
unitIdstring

Returns

{
  engine: Engine;
  scene: pageScene;
  unit: UnitModel<object, number>;
}
NameTypeDefault valueDefined in
engineEngine-submodules/univer/packages/slides-ui/src/controllers/slide.render-controller.ts:418
sceneScenepageScenesubmodules/univer/packages/slides-ui/src/controllers/slide.render-controller.ts:417
unitUnitModel<object, number>-submodules/univer/packages/slides-ui/src/controllers/slide.render-controller.ts:419

Defined in

submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:57


removeObjectById()

removeObjectById(
   id, 
   pageID, 
   unitId): void

Parameters

ParameterType
idstring
pageIDstring
unitIdstring

Returns

void

Defined in

submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:72


setObjectActiveByPage()

setObjectActiveByPage(
   obj, 
   pageID, 
   unitId): void

Parameters

ParameterType
objBaseObject
pageIDstring
unitIdstring

Returns

void

Defined in

submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:67