aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/InteractionUtils.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-29 11:26:58 -0400
committerbobzel <zzzman@gmail.com>2021-09-29 11:26:58 -0400
commite5905220a84a62fff36965a3bf74a55b793ae31b (patch)
tree28fe1ead8db094bf130a96164773821e24567f35 /src/client/util/InteractionUtils.tsx
parent048f22e2c5a2254591aad4719a8efd6357d16430 (diff)
fixed filling of curves. added toggling of brokenindex with right-click. changed look of ink handles to be lighter weight and to reflect brokenindex sttate
Diffstat (limited to 'src/client/util/InteractionUtils.tsx')
-rw-r--r--src/client/util/InteractionUtils.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/InteractionUtils.tsx b/src/client/util/InteractionUtils.tsx
index 633876683..d43ebd692 100644
--- a/src/client/util/InteractionUtils.tsx
+++ b/src/client/util/InteractionUtils.tsx
@@ -99,7 +99,7 @@ export namespace InteractionUtils {
const toScr = (p: { X: number, Y: number }) => ` ${!p ? 0 : (p.X - left - width / 2) * scalex + width / 2}, ${!p ? 0 : (p.Y - top - width / 2) * scaley + width / 2} `;
const strpts = bezier ?
- pts.reduce((acc: string, pt, i) => acc + (i % 4 !== 0 ? "" : "M" + toScr(pt) + "C" + toScr(pts[i + 1]) + toScr(pts[i + 2]) + toScr(pts[i + 3])), "") :
+ pts.reduce((acc: string, pt, i) => acc + (i % 4 !== 0 ? "" : (i === 0 ? "M" + toScr(pt) : "") + "C" + toScr(pts[i + 1]) + toScr(pts[i + 2]) + toScr(pts[i + 3])), "") :
pts.reduce((acc: string, pt) => acc + `${toScr(pt)} `, "");
const dashArray = dash && Number(dash) ? String(Number(width) * Number(dash)) : undefined;