fix: path building error
This commit is contained in:
parent
1b4e206a1e
commit
db12dcf27c
@ -58,6 +58,8 @@ export function shortenLargeNumber(label) {
|
||||
export function getSplineCurvePointsStr(xList, yList) {
|
||||
|
||||
let points = [];
|
||||
const length = Math.min(xList.length, yList.length);
|
||||
|
||||
for (let i = 0; i < xList.length; i++) {
|
||||
points.push([xList[i], yList[i]]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user