iya-sts
    Preparing search index...

    Class export=

    The photo card's behaviour. A static utility class.

    Index
    • Encodes a canvas as the largest quality the realm will keep.

      Parameters

      • canvas: any

        the canvas

      • maxBytes: number

        what the realm keeps

      Returns string

      the data: URL, or '' when none fits

    • Draws an image's centred square onto a canvas of at most LARGEST_SIDE.

      Parameters

      • doc: any

        the document

      • image: any

        the loaded image

      Returns any

      the canvas

    • Wires the photo card, where the page carries one.

      Parameters

      • doc: any

        the document

      • win: any

        the window, for FileReader and Image

      • t: any

        the translator

      Returns void