Skip to content

Commit

Permalink
fix(graph): fix physics
Browse files Browse the repository at this point in the history
  • Loading branch information
asAlwaysZahra committed Sep 9, 2024
1 parent c297257 commit fab6d2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/graph/components/data-analysis/graph-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ export function getOptions() {

const svgDataUrl =
'data:image/svg+xml;charset=UTF-8,' +
encodeURIComponent(`
encodeURIComponent(`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="${labelColor}" >
<path d="M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Z"/>
</svg>
`);

return {
physics: false,
physics: {
stabilization: true,
barnesHut: { damping: 1, springLength: 150 },
},
edges: {
smooth: { enabled: false, type: 'vertical', roundness: 0 },
arrows: {
Expand Down

0 comments on commit fab6d2b

Please sign in to comment.