rmapi-js
    Preparing search index...

    Interface RmScene

    a parsed version 6 scene

    The raw blocks are the faithful source of truth (they preserve the CRDT ids and re-serialize); the methods resolve them into ordered layers, strokes, and text.

    interface RmScene {
        authors: Map<number, string>;
        blocks: readonly RmBlock[];
        paperSize?: [number, number];
        version: 6;
        layers(): RmSceneLayer[];
        strokes(): RmV6Line[];
        text(): RmV6Text | undefined;
    }
    Index

    Properties

    authors: Map<number, string>

    the author-id to uuid table

    blocks: readonly RmBlock[]

    every parsed block, in file order

    paperSize?: [number, number]

    the page size, if the scene info block carried one

    version: 6 = ...

    the discriminant for the RmPage union

    Methods