Skip to content
Snippets Groups Projects
Commit 3bcc8803 authored by Dennis Collaris's avatar Dennis Collaris Committed by Leonardo
Browse files

fix: correctly set anchor to center for sprites

parent 2a7cec25
No related branches found
No related tags found
1 merge request!150feat: only apply layouting optimizations for graphs larger than 5k nodes
......@@ -292,6 +292,7 @@ export const NLPixi = (props: Props) => {
const gfx = new Sprite(texture);
gfx.tint = nodeColor(node.type);
gfx.scale.set(0.75, 0.75);
gfx.anchor.set(0.5, 0.5);
nodeMap.set(node._id, gfx);
nodeLayer.addChild(gfx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment