Skip to content

ComputeFitToCanvasParams

Parameters for computeFitToCanvas.

Import:

import type { ComputeFitToCanvasParams } from 'obsidian-integration-testing';

Signature:

export interface ComputeFitToCanvasParams

Properties

PropertyTypeDescription
canvasHeightInPixelsnumberHeight of the target canvas, in pixels.
canvasWidthInPixelsnumberWidth of the target canvas, in pixels.
sourceHeightInPixelsnumberHeight of the source image, in pixels.
sourceWidthInPixelsnumberWidth of the source image, in pixels.

Links to this page: