Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmasson committed May 27, 2022
1 parent 967a0fa commit 0e921f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/mathcell.js
Original file line number Diff line number Diff line change
Expand Up @@ -2540,14 +2540,14 @@ function svg( id, data, config ) {

if ( yOrigin < 0 ) {
yAxis = -1.5*ext;
yTotal += .5*ext + yOffset;
yTotal = height + 2.5*ext + yLabel + yOffset;
yShift = 1.5*ext + yOffset;
yOffset = -6;
if ( yLabel > 0 ) yLabel += 12;
}
if ( yOrigin > height ) {
yAxis = height + 1.5*ext;
yTotal += .5*ext + 1.5*yOffset;
yTotal = height + 2.5*ext + yLabel + 1.5*yOffset;
}

var svg = `
Expand Down
4 changes: 2 additions & 2 deletions src/render/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ function svg( id, data, config ) {

if ( yOrigin < 0 ) {
yAxis = -1.5*ext;
yTotal += .5*ext + yOffset;
yTotal = height + 2.5*ext + yLabel + yOffset;
yShift = 1.5*ext + yOffset;
yOffset = -6;
if ( yLabel > 0 ) yLabel += 12;
}
if ( yOrigin > height ) {
yAxis = height + 1.5*ext;
yTotal += .5*ext + 1.5*yOffset;
yTotal = height + 2.5*ext + yLabel + 1.5*yOffset;
}

var svg = `
Expand Down

0 comments on commit 0e921f7

Please sign in to comment.