FitToCanvasGeometry
Where the scaled source image sits on the canvas.
Import:
import type { FitToCanvasGeometry } from 'obsidian-integration-testing';Signature:
export interface FitToCanvasGeometryProperties
| Property | Type | Description |
|---|---|---|
| marginInPixels | number | Width of each side margin, in pixels. Both sides are equal by construction. |
| offsetXInPixels | number | Left offset of the scaled image on the canvas, in pixels. |
| offsetYInPixels | number | Top offset of the scaled image on the canvas, in pixels. |
| scaledHeightInPixels | number | Height the source is scaled to, in pixels. |
| scaledWidthInPixels | number | Width the source is scaled to, in pixels. |
Links to this page: