API reference / Common / Engine types / ShapeOutcome
Type Alias: ShapeOutcome
ts
type ShapeOutcome =
| {
shapesInserted: {
ids: ShapeNodeId[];
};
}
| {
shapesDeleted: {
ids: ShapeNodeId[];
};
}
| {
shapesReordered: {
ids: ShapeNodeId[];
};
}
| {
shapesReparented: {
ids: ShapeNodeId[];
};
}
| {
shapesReplaced: {
ids: ShapeNodeId[];
};
}
| {
shapePropertiesUpdated: {
ids: ShapeNodeId[];
};
}
| {
shapeTextEdited: {
id: ShapeNodeId;
story: TextStoryId;
outcome: TextOutcome;
};
}
| {
shapeTableEdited: {
id: ShapeNodeId;
outcome: TableOutcome;
};
};What a ShapeCommand did to a shape tree — the command's twin of the engine facet's ShapeChange, one level up: a fact about the tree, never a selection.
Nodes are named by id, and only those the tree still held: a target a peer deleted first is not listed. A variant names what happened, not which command ran: a move, a fill and a turn all change properties the node keeps, so each is ShapePropertiesUpdated.