Skip to content

@graphty/graphty-element / index / ProjectSaveOptions

Interface: ProjectSaveOptions ​

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

How project.save writes the file.

Properties ​

extensions? ​

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

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

Your own data to store in the file, under reverse-domain names ("com.example.app"), at most 64 KB of JSON each. open hands them back untouched. Names starting graphty are reserved.


leaveOut? ​

readonly optional leaveOut?: readonly ("graphty-notes" | "graphty-style" | "graphty-view-state")[]

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

Members to leave out of the file. Default: none.


markSaved? ​

readonly optional markSaved?: boolean

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

Whether the save clears dirty at once. Pass false when you write the file yourself, then call project.markSaved(saved) once the write succeeded: a failed write leaves the project dirty, and so does any change made while the write was under way. Default true.