commit 477903cc79fb4d20ed5ded02381e4085d7096c0f
parent 94b7c4243b8861ff965250d8074fee46aae76216
Author: Davide P. Cervone <dpvc@union.edu>
Date: Tue, 27 Jan 2015 08:16:20 -0500
Fix problem with positioning of colored rectangles (when combined combitionings add up to zero).
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js
@@ -850,6 +850,8 @@
svg.h -= y; svg.d += y; svg.H -= y; svg.D +=y;
svg.w -= x; svg.r -= x; svg.l += x;
svg.removeable = false;
+ child.setAttribute("x",Math.floor(svg.x/svg.scale));
+ child.setAttribute("y",Math.floor(svg.y/svg.scale));
}
}
if (Math.abs(svg.x) < 1 && Math.abs(svg.y) < 1) {