Skip to content

FitToCanvasGeometry

Where the scaled source image sits on the canvas.

Import:

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

Signature:

export interface FitToCanvasGeometry

Properties

PropertyTypeDescription
marginInPixelsnumberWidth of each side margin, in pixels. Both sides are equal by construction.
offsetXInPixelsnumberLeft offset of the scaled image on the canvas, in pixels.
offsetYInPixelsnumberTop offset of the scaled image on the canvas, in pixels.
scaledHeightInPixelsnumberHeight the source is scaled to, in pixels.
scaledWidthInPixelsnumberWidth the source is scaled to, in pixels.

Links to this page: