Hiyve Components - v1.0.0
    Preparing search index...

    What fitCamera takes: a picture's size, the box it is shown in, the edges covered, and the point to keep in view.

    interface GameCameraInput {
        content: { height: number; width: number };
        focus?: { x: number; y: number } | null;
        inset?: { bottom?: number; left?: number; right?: number; top?: number };
        maxScale?: number;
        minScale?: number;
        view: { height: number; width: number };
    }
    Index

    Properties

    content: { height: number; width: number }
    focus?: { x: number; y: number } | null

    The point of the picture to keep in view when it cannot all be shown at minScale

    inset?: { bottom?: number; left?: number; right?: number; top?: number }

    Edges of the view covered by something (a sheet, a sign), in pixels

    maxScale?: number

    The largest it is drawn (default: 1)

    minScale?: number

    The smallest the picture is drawn before the camera follows focus instead (default: 0, always fit)

    view: { height: number; width: number }