diff options
| author | bobzel <zzzman@gmail.com> | 2021-09-28 18:10:26 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-09-28 18:10:26 -0400 |
| commit | 244e06ec9873888dcef3cd08322880d73848fe69 (patch) | |
| tree | 3bc49ecabef65cc1ccb701d72a0f9816b65f7722 /src/client/util | |
| parent | bc654229325e8bbd30c0b3e464c7e66fa0fbc609 (diff) | |
renamed some ink files
Diffstat (limited to 'src/client/util')
| -rw-r--r-- | src/client/util/InteractionUtils.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/InteractionUtils.tsx b/src/client/util/InteractionUtils.tsx index 3e7a4924f..71d68262f 100644 --- a/src/client/util/InteractionUtils.tsx +++ b/src/client/util/InteractionUtils.tsx @@ -98,8 +98,8 @@ export namespace InteractionUtils { if (isNaN(scaley)) scaley = 1; const toScr = (p: { X: number, Y: number }) => ` ${(p.X - left - width / 2) * scalex + width / 2}, ${(p.Y - top - width / 2) * scaley + width / 2} `; - var strpts = bezier ? - pts.reduce((acc: string, pt, i) => acc + (i % 4 !== 0 ? "" : "M" + toScr(pts[i]) + "C" + toScr(pts[i + 1]) + toScr(pts[i + 2]) + toScr(pts[i + 3])), "") : + 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) => acc + `${toScr(pt)} `, ""); const dashArray = dash && Number(dash) ? String(Number(width) * Number(dash)) : undefined; |
