@joint/react
    Preparing search index...

    Interface TransactionOptions

    Options for a Transaction.

    interface TransactionOptions {
        deferPaint?: boolean;
        name?: string;
        rollbackOnError?: boolean;
    }
    Index

    Properties

    deferPaint?: boolean

    Defer paint on every paper bound to the graph for the duration, so all views repaint once when the transaction closes instead of on every edit. Disabled by default; pass true to coalesce the repaint (hides intermediate frames).

    name?: string

    Name of the JointJS batch used to group the edits — drives undo grouping and identifies the batch on batch:start / batch:stop. Defaults to 'transaction'.

    rollbackOnError?: boolean

    Restore the graph to its pre-transaction state when the callback throws or its promise rejects. Disabled by default; pass true to roll back on error (otherwise partial edits are kept). The error is always re-thrown.

    Comes with an up-front overhead: enabling it snapshots the full cells array at transaction start (an O(n) shallow copy over every cell in the graph), even when the callback succeeds and no rollback is needed. Leave off for large graphs where the callback is trusted not to throw.