3d-force-graph 1.73.5 → 1.73.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // Version 1.73.5 3d-force-graph - https://github.com/vasturiano/3d-force-graph
1
+ // Version 1.73.6 3d-force-graph - https://github.com/vasturiano/3d-force-graph
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -42989,7 +42989,12 @@ function InsertStackElement(node, body) {
42989
42989
  linePos.needsUpdate = true;
42990
42990
  } else {
42991
42991
  // bezier curve line
42992
- line.geometry.setFromPoints(curve.getPoints(curveResolution));
42992
+ var curvePnts = curve.getPoints(curveResolution);
42993
+ // resize buffer if needed
42994
+ if (line.geometry.getAttribute('position').array.length !== curvePnts.length * 3) {
42995
+ line.geometry[setAttributeFn]('position', new three$1$1.BufferAttribute(new Float32Array(curvePnts.length * 3), 3));
42996
+ }
42997
+ line.geometry.setFromPoints(curvePnts);
42993
42998
  }
42994
42999
  line.geometry.computeBoundingSphere();
42995
43000
  } else if (line.type === 'Mesh') {