@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Describes how a source image is positioned within the canvas. Used to convert between image coordinates and canvas coordinates.

    interface ImageFit {
        height: number;
        scale: number;
        width: number;
        x: number;
        y: number;
    }
    Index

    Properties

    Properties

    height: number

    Rendered height of the image on the canvas (CSS pixels).

    scale: number

    Scale factor: canvas pixels per image pixel.

    width: number

    Rendered width of the image on the canvas (CSS pixels).

    x: number

    Horizontal offset of the image's left edge on the canvas.

    y: number

    Vertical offset of the image's top edge on the canvas.