Class: CanvasView
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:30
Every render module should implement this interface.
Extends
Implements
Constructors
new CanvasView()
new CanvasView(_renderManagerService): CanvasView
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:31
Parameters
Parameter | Type |
---|---|
_renderManagerService | IRenderManagerService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:120 |
Methods
activePage()
activePage(pageId, unitId): void
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:52
Parameters
Parameter | Type |
---|---|
pageId | string |
unitId | string |
Returns
void
appendPage()
appendPage(unitId): void
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:80
append blank page
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
createObjectToPage()
createObjectToPage(
element,
pageID,
unitId): Nullable<BaseObject>
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:62
Parameters
Parameter | Type |
---|---|
element | IPageElement |
pageID | string |
unitId | string |
Returns
createThumbs()
createThumbs(unitId): void
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:47
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:122
Returns
void
Implementation of
Inherited from
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
RxDisposable
.ensureNotDisposed
getRenderUnitByPageId()
getRenderUnitByPageId(pageId, unitId): {
engine: Engine;
scene: Scene;
unit: UnitModel;
}
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:57
Parameters
Parameter | Type |
---|---|
pageId | string |
unitId | string |
Returns
{
engine: Engine;
scene: Scene;
unit: UnitModel;
}
Name | Type | Default value | Defined in |
---|---|---|---|
engine | Engine | - | submodules/univer/packages/slides-ui/src/controllers/slide.render-controller.ts:418 |
scene | Scene | pageScene | submodules/univer/packages/slides-ui/src/controllers/slide.render-controller.ts:417 |
unit | UnitModel | - | submodules/univer/packages/slides-ui/src/controllers/slide.render-controller.ts:419 |
removeObjectById()
removeObjectById(
id,
pageID,
unitId): void
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:72
Parameters
Parameter | Type |
---|---|
id | string |
pageID | string |
unitId | string |
Returns
void
setObjectActiveByPage()
setObjectActiveByPage(
obj,
pageID,
unitId): void
Defined in: submodules/univer/packages/slides-ui/src/controllers/canvas-view.ts:67
Parameters
Parameter | Type |
---|---|
obj | BaseObject |
pageID | string |
unitId | string |
Returns
void