Skip to content

getCanvasViewConstructor

Unofficial

Get the CanvasView constructor.

Import:

import { getCanvasViewConstructor } from '@obsidian-typings/obsidian-catalyst-latest/implementations';

Signature:

function getCanvasViewConstructor(app: App): ConstructorBase<[leaf: WorkspaceLeaf, canvasPluginInstance: CanvasPluginInstance], CanvasView>

Parameters:

ParameterTypeDescription
appAppThe app.

Returns: ConstructorBase<[leaf: WorkspaceLeaf, canvasPluginInstance: CanvasPluginInstance], CanvasView> — The CanvasView constructor.