Skip to content
Snippets Groups Projects

feat: only apply layouting optimizations for graphs larger than 5k nodes

Merged Leonardo Christino requested to merge performance/nodelink into main
5 unresolved threads
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -103,11 +103,11 @@ export const NLPixi = (props: Props) => {
useEffect(() => {
if (nodeMap.current.size === 0) return;
const newTexture = (props.configuration.shapes.shape == 'rectangle') ? textureSquare : texture;
const newTexture = (props.configuration.shapes?.shape == 'rectangle') ? textureSquare : texture;
for (const sprite of nodeMap.current.values()) {
sprite.texture = newTexture;
}
}, [props.configuration.shapes.shape]);
}, [props.configuration.shapes?.shape]);
const imperative = useRef<any>(null);
Loading