aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/pathops_sorter.htm
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pathops_sorter.htm')
-rw-r--r--tools/pathops_sorter.htm42
1 files changed, 21 insertions, 21 deletions
diff --git a/tools/pathops_sorter.htm b/tools/pathops_sorter.htm
index d8371ad9be..42708c428c 100644
--- a/tools/pathops_sorter.htm
+++ b/tools/pathops_sorter.htm
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
@@ -7,14 +7,14 @@
<div style="height:0">
<div id="cubics">
-{{{152, 16}, {152, 16.0685501}, {91.06044, 16.1242027}, {16, 16.1242027}}}, id=0
-{{{16, 16.1242027}, {-59.06044, 16.1242027}, {-120, 16.0685501}, {-120, 16}}}, id=1
-{{{-120, 16}, {-120, 15.9314508}, {-59.06044, 15.8757973}, {16, 15.8757973}}}, id=2
-{{{16, 15.8757973}, {91.06044, 15.8757973}, {152, 15.9314508}, {152, 16}}}, id=3
-{{{16, 16}, {152, 16}}}, id=4
-{{{16, 17}, {152, 17}}}, id=5
-{{{16, 16}, {16, 17}}}, id=6
-{{{152, 16}, {152, 17}}}, id=7
+{{{152, 16}, {152, 16.0685501}, {91.06044, 16.1242027}, {16, 16.1242027}}}, id=0
+{{{16, 16.1242027}, {-59.06044, 16.1242027}, {-120, 16.0685501}, {-120, 16}}}, id=1
+{{{-120, 16}, {-120, 15.9314508}, {-59.06044, 15.8757973}, {16, 15.8757973}}}, id=2
+{{{16, 15.8757973}, {91.06044, 15.8757973}, {152, 15.9314508}, {152, 16}}}, id=3
+{{{16, 16}, {152, 16}}}, id=4
+{{{16, 17}, {152, 17}}}, id=5
+{{{16, 16}, {16, 17}}}, id=6
+{{{152, 16}, {152, 17}}}, id=7
</div>
</div>
@@ -145,7 +145,7 @@
mouseX = (screenWidth / 2) / hscale + srcLeft;
mouseY = (screenHeight / 2) / vscale + srcTop;
hinitScale = hscale;
- vinitScale = vscale;
+ vinitScale = vscale;
}
function setScale(x0, x1, y0, y1) {
@@ -160,7 +160,7 @@
vscale = screenHeight / srcHeight;
if (uniformScale) {
hscale = Math.min(hscale, vscale);
- vscale = hscale;
+ vscale = hscale;
}
var hinvScale = 1 / hscale;
var vinvScale = 1 / vscale;
@@ -897,10 +897,10 @@ function dxy_at_t(curve, t) {
var scaleTextOffset = hscale != vscale ? -25 : -5;
ctx.fillText(hscale.toFixed(decimal_places) + 'x',
screenWidth - 10, screenHeight - scaleTextOffset);
- if (hscale != vscale) {
+ if (hscale != vscale) {
ctx.fillText(vscale.toFixed(decimal_places) + 'y',
- screenWidth - 10, screenHeight - 5);
- }
+ screenWidth - 10, screenHeight - 5);
+ }
}
if (draw_t) {
drawPointAtT(curve);
@@ -1105,10 +1105,10 @@ function dxy_at_t(curve, t) {
if (focusWasOn) {
focus_on_selection = false;
hscale /= 1.2;
- vscale /= 1.2;
+ vscale /= 1.2;
} else {
- hscale /= 2;
- vscale /= 2;
+ hscale /= 2;
+ vscale /= 2;
}
calcLeftTop();
redraw();
@@ -1119,11 +1119,11 @@ function dxy_at_t(curve, t) {
focusWasOn = focus_on_selection;
if (focusWasOn) {
focus_on_selection = false;
- hscale *= 1.2;
- vscale *= 1.2;
+ hscale *= 1.2;
+ vscale *= 1.2;
} else {
- hscale *= 2;
- vscale *= 2;
+ hscale *= 2;
+ vscale *= 2;
}
calcLeftTop();
redraw();