Interface ImageNode

An image in the book.

interface ImageNode {
    alt?: string;
    content?: ArrayBuffer;
    format: string;
    id: string;
    name?: string;
    src?: PathLike;
    type: Image;
}

Hierarchy (view full)

Properties

alt?: string

The alt text of the image.

content?: ArrayBuffer

The content of the source. If provided, the src property is ignored.

format: string

The format of the image.

id: string

The unique identifier of the node.

name?: string

The name of the image.

src?: PathLike

The file path or URL of the source. If content is provided, this property is ignored.

type: Image

The type of the node.