weasel API - v0.8.0
    Preparing search index...

    Interface DropSpec

    OS drag-and-drop of external content onto the canvas. types filters by MIME glob ('image/*', 'text/plain'); the spec matches when ANY item's MIME matches ANY glob. Omitted or empty = matches any drop.

    interface DropSpec {
        kind: "drop";
        mods?: Partial<
            {
                alt: boolean
                | "optional";
                ctrl: boolean | "optional";
                meta: boolean | "optional";
                mod: boolean | "optional";
                shift: boolean | "optional";
            },
        >;
        phase?: PhaseSpec;
        types?: string[];
    }
    Index

    Properties

    Properties

    kind: "drop"
    mods?: Partial<
        {
            alt: boolean
            | "optional";
            ctrl: boolean | "optional";
            meta: boolean | "optional";
            mod: boolean | "optional";
            shift: boolean | "optional";
        },
    >
    phase?: PhaseSpec
    types?: string[]