Skip to content

Commit 6ea115a

Browse files
Fix relationship stylings not getting applied (neo4j#1858)
* add render * add comment * Update src/neo4j-arc/graph-visualization/GraphVisualizer/Graph/visualization/Visualization.ts Co-authored-by: Eija Werner <[email protected]> Co-authored-by: Eija Werner <[email protected]>
1 parent d76007f commit 6ea115a

File tree

1 file changed

+6
-0
lines changed
  • src/neo4j-arc/graph-visualization/GraphVisualizer/Graph/visualization

1 file changed

+6
-0
lines changed

src/neo4j-arc/graph-visualization/GraphVisualizer/Graph/visualization/Visualization.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ export class Visualization {
234234
)
235235

236236
this.forceSimulation.updateRelationships(this.graph)
237+
// The onGraphChange handler does only repaint relationship color
238+
// not width and caption, since it requires taking into account surrounding data
239+
// since the arrows have different bending depending on how the nodes are
240+
// connected. We work around that by doing an additional full render to get the
241+
// new stylings
242+
this.render()
237243
}
238244

239245
zoomByType = (zoomType: ZoomType): void => {

0 commit comments

Comments
 (0)