@graphty/graphty-element / session / ProjectConfig
Interface: ProjectConfig ​
Defined in: graphty-element/src/session/types.ts:1282
The project settings: the ones a project file saves, every one of them undoable.
data is the element's data configuration in its own shape: the on-load algorithms, the directed policy, and knownFields with every known field (nodeIdPath, nodeLabelPath, nodeWeightPath, nodeTimePath, edgeSrcIdPath, edgeDstIdPath, edgeIdPath, repeatedEdges, edgeWeightPath, edgeTimePath, positionScale, idCoercion). A setting nobody has set reads as its default.
Extended by ​
Properties ​
author? ​
readonlyoptionalauthor?:string
Defined in: graphty-element/src/session/types.ts:1307
Who is writing: stamped on each note added from now on. Absent when no name is set, never blank. A claim, never a verified identity.
background ​
readonlybackground: {backgroundType:"color";color:string|undefined; } | {backgroundType:"skybox";data:string; }
Defined in: graphty-element/src/session/types.ts:1287
What the graph is drawn against: a colour or a skybox.
data ​
readonlydata:SessionDataConfig
Defined in: graphty-element/src/session/types.ts:1283
layoutBehavior ​
readonlylayoutBehavior:object
Defined in: graphty-element/src/session/types.ts:1295
The layout-behaviour settings a project file saves. The rest of the element's layoutBehavior (label declutter, pin on drag, throughput tuning) is a preference of the view and not a project setting.
minDelta ​
readonlyminDelta:number
The movement below which a simulation counts as settled.
preSteps ​
readonlypreSteps:number
Simulation steps run before the first frame is drawn.
stepMultiplier ​
readonlystepMultiplier:number
Simulation steps per frame.
name? ​
readonlyoptionalname?:string
Defined in: graphty-element/src/session/types.ts:1309
The project's name, which a project file carries. Absent when none is set, never blank.
runAlgorithmsOnLoad ​
readonlyrunAlgorithmsOnLoad:boolean
Defined in: graphty-element/src/session/types.ts:1285
Whether the algorithms in data.algorithms run once data has loaded.
selectionStyle ​
readonlyselectionStyle:object
Defined in: graphty-element/src/session/types.ts:1289
What a selected node's halo looks like.
color ​
color:
string
The halo's colour. Any colour the element understands; normalised to hex on parse.
opacity ​
opacity:
number
How solid the halo is, in [0, 1]. Low enough to read as a highlight rather than a node.
scale ​
scale:
number
How much of the node's own size the halo is drawn at.
Greater than 1 puts a ring around the node, which is what a highlight reads as. Below 1 the halo disappears inside the node it is meant to mark, so the schema takes any positive number and the default stands a little clear of the node.