Trevixal API
    Preparing search index...

    Interface ImageActions

    Image actions the UI drives; @trevixal/extension-image satisfies this.

    interface ImageActions {
        capturePhoto?: () => void;
        captureScreen?: () => void;
        insertDrawing?: () => void;
        insertImage: (attrs: { alt?: string; src: string; title?: string }) => void;
        pickFiles: () => void;
        pickGallery?: () => void;
    }
    Index
    capturePhoto?: () => void

    Take a photo with the camera and insert it.

    captureScreen?: () => void

    Take a screenshot of a screen, window or tab and insert it.

    insertDrawing?: () => void

    Open the drawing board, and insert what is drawn on it.

    insertImage: (attrs: { alt?: string; src: string; title?: string }) => void

    Insert an image that is already hosted somewhere.

    pickFiles: () => void

    Open a file picker and upload whatever the user chooses.

    pickGallery?: () => void

    Pick several images and put them in as one gallery.