Skip to content

Visualize Your Ideas With Code

fix(2d): point arrow heads in correct direction (#792)

Jacob52ed52e963cc
diff --git a/packages/2d/src/curves/CircleSegment.ts b/packages/2d/src/curves/CircleSegment.ts
index be25c29b..28f52f28 100644
--- a/packages/2d/src/curves/CircleSegment.ts
+++ b/packages/2d/src/curves/CircleSegment.ts
@@ -53,7 +53,7 @@ export class CircleSegment extends Segment {
{
position: this.center.add(startNormal.scale(this.radius)),
tangent: this.counter ? startNormal : startNormal.flipped,
- normal: this.counter ? startNormal : startNormal.flipped,
+ normal: this.counter ? startNormal.flipped : startNormal,
},
{
position: this.center.add(endNormal.scale(this.radius)),