Skip to content

@graphty/graphty-element / index / ProjectOpenOptions

Interface: ProjectOpenOptions ​

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

How project.open reads a file.

Properties ​

discard? ​

readonly optional discard?: boolean

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

Discard the session's unsaved changes: open a project over them. Without it, opening a project while project.dirty is true is refused with E_UNSAVED_CHANGES.


fileName? ​

readonly optional fileName?: string

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

The file's name, for the project's name when the file holds none. A File's own name is used otherwise.


limits? ​

readonly optional limits?: object

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

fileBytes? ​

readonly optional fileBytes?: number

The largest file to read, in bytes. Default 256 MiB.