Isometric Drawing Toolkit
    Preparing search index...

    Type Alias ExportButtonProps

    type ExportButtonProps = {
        asPNG: boolean;
        containerParentRef: RefObject<Element | null>;
        filename?: string;
        text?: string;
    }
    Index

    Properties

    asPNG: boolean

    True to export PNGs, false to export SVGs.

    containerParentRef: RefObject<Element | null>

    Reference to the parent element that contains one or more export containers. The reference can be temporarily null, but should not be when this button is clickable.

    filename?: string

    Filename of the export, not including extension which will automatically be determined.

    text?: string

    Text to be displayed after Export on the button. Default is PNG or SVG depending on asPNG.