Skip to content

Commit

Permalink
modify extensions/math/src/math-function line 42 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
parameterman authored Dec 26, 2024
1 parent 54c3642 commit 98a7319
Show file tree
Hide file tree
Showing 5 changed files with 311 additions and 19 deletions.
2 changes: 1 addition & 1 deletion extensions/math/src/math-function.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function generateSvgPath(
const y = mathFunc(x);
// Convert the values of a mathematical function to SVG coordinates
const svgX = (x - xMin) * scaleX;
const svgX = x * scaleX;
const svgY = (yMax - y) * scaleY; // Invert the y-axis to conform to the SVG coordinate system
path.push(
`${x === xMin || svgY > 1500 || svgY < -1500 ? "M" : "L"} ${svgX} ${svgY}`,
Expand Down
Loading

0 comments on commit 98a7319

Please sign in to comment.