Skip to content

API reference / Common / Engine types / ObjectOutcome

Type Alias: ObjectOutcome ​

ts
type ObjectOutcome = 
  | {
  objectsInserted: {
     ids: GraphicsObjectId[];
  };
}
  | {
  objectsDeleted: {
     ids: GraphicsObjectId[];
  };
}
  | {
  objectsReordered: {
     ids: GraphicsObjectId[];
  };
}
  | {
  objectsReparented: {
     ids: GraphicsObjectId[];
  };
}
  | {
  objectPropertiesUpdated: {
     ids: GraphicsObjectId[];
  };
}
  | {
  objectTextEdited: {
     outcome: ObjectTextOutcome;
  };
};

What an ObjectCommand did to a page's objects — a fact about the page, never a selection. Objects are named by id, and only those the page still held.