@graphty/graphty-element / session / ProjectConfigPatch
Interface: ProjectConfigPatch ​
Defined in: graphty-element/src/session/types.ts:1317
A partial ProjectConfig, nested: { data: { knownFields: { nodeIdPath: "key" } } }. Plain objects are merged key by key; data.algorithms, background and selectionStyle are replaced whole. Setting a key to undefined returns it to its default.
Properties ​
author? ​
readonlyoptionalauthor?:string|null
Defined in: graphty-element/src/session/types.ts:1328
At most 256 characters; empty or only white space counts as no name, and null clears it.
background? ​
readonlyoptionalbackground?: {backgroundType:"color";color:string|undefined; } | {backgroundType:"skybox";data:string; }
Defined in: graphty-element/src/session/types.ts:1324
data? ​
readonlyoptionaldata?:object
Defined in: graphty-element/src/session/types.ts:1318
algorithms? ​
readonlyoptionalalgorithms?: (string| {algorithm:string;as?:string;params?:Record<string,unknown>;seed?:number;style?:boolean| {size?:boolean| readonly [number,number]; }; })[]
directed? ​
readonlyoptionaldirected?:boolean|"auto"
knownFields? ​
readonlyoptionalknownFields?:Partial<{edgeDstIdPath:string|null;edgeIdPath:string|null;edgeSrcIdPath:string|null;edgeTimePath:string|null;edgeWeightPath:string|null;idCoercion:"keep"|"canonical";nodeIdPath:string;nodeLabelPath:string|null;nodeTimePath:string|null;nodeWeightPath:string|null;positionScale:number;repeatedEdges:"error"|"min"|"max"|"keep"|"first"|"last"|"sum"; }>
layoutBehavior? ​
readonlyoptionallayoutBehavior?:Partial<{minDelta:number;preSteps:number;stepMultiplier:number; }>
Defined in: graphty-element/src/session/types.ts:1326
name? ​
readonlyoptionalname?:string|null
Defined in: graphty-element/src/session/types.ts:1330
At most 256 characters; empty or only white space counts as no name, and null clears it.
runAlgorithmsOnLoad? ​
readonlyoptionalrunAlgorithmsOnLoad?:boolean
Defined in: graphty-element/src/session/types.ts:1323
selectionStyle? ​
readonlyoptionalselectionStyle?:object
Defined in: graphty-element/src/session/types.ts:1325
color? ​
optionalcolor?:string
The halo's colour. Any colour the element understands; normalised to hex on parse.
opacity? ​
optionalopacity?:number
How solid the halo is, in [0, 1]. Low enough to read as a highlight rather than a node.
scale? ​
optionalscale?: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.