Skip to content

Commit

Permalink
Improved formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersoncasimir committed Dec 6, 2023
1 parent 6e51e1e commit 572da97
Showing 1 changed file with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ const LineMemo = R.memoizeWith(
.range([-0.5, 0.5]),
];

const points = [
... previousPoint === null
? []
: [
vec2.fromValues(
scales[0](
interval[0] - (1 / values.length) * (interval[1] - interval[0])
),
-(scales[1](previousPoint) - DCOffset)
)
],
const points = previousPoint === null
? []
: [
vec2.fromValues(
scales[0](
interval[0] - (1 / values.length) * (interval[1] - interval[0])
),
-(scales[1](previousPoint) - DCOffset)
)
];

points.push(
...values.map((value, i) =>
vec2.fromValues(
scales[0](
Expand All @@ -58,7 +59,7 @@ const LineMemo = R.memoizeWith(
-(scales[1](value) - DCOffset)
)
)
];
);

return (
<LinePath
Expand Down

0 comments on commit 572da97

Please sign in to comment.