Type Alias: LayoutChange
type LayoutChange =
| {
ids: string[];
kind: "move";
view: string;
}
| {
ids: string[];
kind: "place";
view: string;
}
| {
ids: string[];
kind: "auto-layout";
scope: AutoLayoutScope;
view: string;
}
| {
ids: string[];
kind: "settings";
settings: NodeSettings;
view: string;
}
| {
ids: string[];
kind: "resize";
view: string;
};
What a reported layout change was, passed to onLayoutChange with the next layout.
Union Members
Type Literal
{
ids: string[];
kind: "move";
view: string;
}
User dragged nodes (tables, notes, or a group = its member tables). One undo step.
Type Literal
{
ids: string[];
kind: "place";
view: string;
}
Canvas placed nodes that had no saved position (new file, new table). NOT a user edit.
Type Literal
{
ids: string[];
kind: "auto-layout";
scope: AutoLayoutScope;
view: string;
}
runAutoLayout finished. One undo step.
Type Literal
{
ids: string[];
kind: "settings";
settings: NodeSettings;
view: string;
}
setNodeSettings through the handle (pin / collapse). One undo step.
Type Literal
{
ids: string[];
kind: "resize";
view: string;
}
A note (or table) was resized with the handles (editable). One undo step.