Skip to content

@graphty/graphty-element / index / ProjectOpenReport

Interface: ProjectOpenReport ​

Defined in: graphty-element/src/session/projectFile.ts:142

What project.open did. Frozen.

Properties ​

draft? ​

readonly optional draft?: 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 ​

readonly extensions: Readonly<Record<string, unknown>>

Defined in: graphty-element/src/session/projectFile.ts:165

The file's extensions, untouched.


name ​

readonly name: string | null

Defined in: graphty-element/src/session/projectFile.ts:159

The project's name after the open.


opened ​

readonly opened: "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 ​

readonly problems: readonly ProjectProblem[]

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 ​

readonly restored: readonly ProjectSlice[]

Defined in: graphty-element/src/session/projectFile.ts:161

The parts of the project that came back.