Skip to content

@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? ​

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

readonly background: { 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 ​

readonly data: SessionDataConfig

Defined in: graphty-element/src/session/types.ts:1283


layoutBehavior ​

readonly layoutBehavior: 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 ​

readonly minDelta: number

The movement below which a simulation counts as settled.

preSteps ​

readonly preSteps: number

Simulation steps run before the first frame is drawn.

stepMultiplier ​

readonly stepMultiplier: number

Simulation steps per frame.


name? ​

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

readonly runAlgorithmsOnLoad: boolean

Defined in: graphty-element/src/session/types.ts:1285

Whether the algorithms in data.algorithms run once data has loaded.


selectionStyle ​

readonly selectionStyle: 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.