You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 报错内容
RangeError: Invalid array length
at eval (bezierCurveToPolyline.js?2db9:123)
at Array.map ()
at getSegmentPointsDistance (bezierCurveToPolyline.js?2db9:122)
at eval (bezierCurveToPolyline.js?2db9:233)
at Array.forEach ()
at _loop (bezierCurveToPolyline.js?2db9:226)
at calcUniformPointsByIteration (bezierCurveToPolyline.js?2db9:254)
at abstractBezierCurveToPolyline (bezierCurveToPolyline.js?2db9:59)
at bezierCurveToPolyline (bezierCurveToPolyline.js?2db9:294)
at Graph.draw (graphs.js?b06d:591)
// 报错内容
RangeError: Invalid array length
at eval (bezierCurveToPolyline.js?2db9:123)
at Array.map ()
at getSegmentPointsDistance (bezierCurveToPolyline.js?2db9:122)
at eval (bezierCurveToPolyline.js?2db9:233)
at Array.forEach ()
at _loop (bezierCurveToPolyline.js?2db9:226)
at calcUniformPointsByIteration (bezierCurveToPolyline.js?2db9:254)
at abstractBezierCurveToPolyline (bezierCurveToPolyline.js?2db9:59)
at bezierCurveToPolyline (bezierCurveToPolyline.js?2db9:294)
at Graph.draw (graphs.js?b06d:591)
// 解决办法
// 定位到node_modules/@jiaminghi/bezier-curve/src/core/bezierCurveToPolyline.js
// 将 return new Array(points.length - 1) 更改为 return new Array(Math.max(0, points.length - 1))
The text was updated successfully, but these errors were encountered: