Skip to content

CanvasLinkUpdater

Unofficial

Link updater for canvas files, handling link updates when files are renamed or moved.

Import:

import type { CanvasLinkUpdater } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface CanvasLinkUpdater extends LinkUpdater

Extends: LinkUpdater

Properties

PropertyTypeDescription
appAppReference to the app.
canvasCanvasPluginInstanceCanvas plugin instance used to access canvas data.

Methods

MethodReturnsDescription
applyUpdates(file, updates)Promise<void>Apply a batch of link change updates to the given file.
(Inherited from LinkUpdater)
iterateReferences(callback)voidIterate over all references managed by this updater.
(Inherited from LinkUpdater)
iterateReferencesForFile(path, callback)voidIterate over all references managed by this updater for a specific file.
(Inherited from LinkUpdater)
renameSubpath(file, oldSubpath, newSubpath)Promise<void>Rename a subpath reference (e.g. heading or block) within a file.
(Inherited from LinkUpdater)

Links to this page: