@graphty/graphty-element / session / ImportOptions
Interface: ImportOptions ​
Defined in: graphty-element/src/session/types.ts:1226
How an import treats the graph already there.
Extended by ​
Properties ​
layout? ​
readonlyoptionallayout?:"keep"|"recommended"
Defined in: graphty-element/src/session/types.ts:1233
"recommended" also chooses a layout for what was loaded, from its shape and its coordinates, in the same step; "keep" (the default) leaves the layout as it is.
mode? ​
readonlyoptionalmode?:"replace"|"merge"
Defined in: graphty-element/src/session/types.ts:1228
"replace" (the default) empties the graph first, in the same step; "merge" adds to it.