@annotorious/annotorious 3.6.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -576,7 +576,7 @@ const oo = {
576
576
  for (let i = 1; i < e.points.length; i++) {
577
577
  const o = e.points[i], s = e.points[i - 1];
578
578
  if (o.type === "CURVE" || s.type === "CURVE") {
579
- const r = s.outHandle || s.point, l = o.inHandle || o.point, a = o.point;
579
+ const r = s.type === "CURVE" && s.outHandle || s.point, l = o.type === "CURVE" && o.inHandle || o.point, a = o.point;
580
580
  t.push(`C ${r[0]} ${r[1]} ${l[0]} ${l[1]} ${a[0]} ${a[1]}`);
581
581
  } else
582
582
  t.push(`L ${o.point[0]} ${o.point[1]}`);