@hydroperx/metrodesign
    Preparing search index...

    Type Alias BulkChange

    Bulk change in a live tiles layout.

    type BulkChange = {
        groupCreation: null | { tile: string };
        groupRemovals: { id: string }[];
        groupTransfers: { group: string; id: string; x: number; y: number }[];
        movedTiles: { id: string; x: number; y: number }[];
    }
    Index

    Properties

    groupCreation: null | { tile: string }

    Requests to create a new group at the end, in response to a drag-n-drop in the last empty space. Specifies a tile to transfer to the new group from the old group.

    groupRemovals: { id: string }[]

    Group removals (in response to drag-n-drop or explicit tile removal (in case group turns empty))

    groupTransfers: { group: string; id: string; x: number; y: number }[]

    Group transfers (tiles moving to other groups, in response to actions like drag-n-drop).

    movedTiles: { id: string; x: number; y: number }[]

    Moved tiles (in response to actions like drag-n-drop or direction change).

    x and y may be -1 to indicate last position (when a shifting/bounds limit occurs).