@graphty/graphty-element / index / ProjectOpenReport
Interface: ProjectOpenReport ​
Defined in: graphty-element/src/session/projectFile.ts:142
What project.open did. Frozen.
Properties ​
draft? ​
readonlyoptionaldraft?:LoadDraft
Defined in: graphty-element/src/session/projectFile.ts:157
The load draft a data file was read into, when opened is "graph": what session.data.prepare returns for the file. Nothing is in the graph until draft.load().
extensions ​
readonlyextensions:Readonly<Record<string,unknown>>
Defined in: graphty-element/src/session/projectFile.ts:165
The file's extensions, untouched.
name ​
readonlyname:string|null
Defined in: graphty-element/src/session/projectFile.ts:159
The project's name after the open.
opened ​
readonlyopened:"document"|"graph"|"project"
Defined in: graphty-element/src/session/projectFile.ts:152
What the file was: "project" (it holds a graphty-session member, and replaced the session), "document" (a graphty document that is not a project, such as a saved style or notes, whose contents were added to the session) or "graph" (a data file -- CSV, GraphML, GML, any format session.data.import reads -- read into draft and not loaded yet).
OPEN UNION: later releases add values.
problems ​
readonlyproblems: readonlyProjectProblem[]
Defined in: graphty-element/src/session/projectFile.ts:163
Every part that did not come back, or came back changed. Empty when everything did.
restored ​
readonlyrestored: readonlyProjectSlice[]
Defined in: graphty-element/src/session/projectFile.ts:161
The parts of the project that came back.