Skip to content

Commit 21bc975

Browse files
committed
fix: betweenLink, withinLink
1 parent e06a988 commit 21bc975

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/core/mark/betweenLink.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function drawBetweenLink(g: PIXI.Graphics, trackInfo: any, model: Gosling
135135
trackOuterRadius,
136136
positionToRadian(posX1E.x, posX1E.y, tcx, tcy),
137137
positionToRadian(posX1.x, posX1.y, tcx, tcy),
138-
false
138+
isClockwise
139139
);
140140

141141
// inner curve
@@ -147,7 +147,7 @@ export function drawBetweenLink(g: PIXI.Graphics, trackInfo: any, model: Gosling
147147
trackOuterRadius,
148148
positionToRadian(posXE.x, posXE.y, tcx, tcy),
149149
positionToRadian(posX.x, posX.y, tcx, tcy),
150-
false
150+
isClockwise
151151
);
152152
g.endFill();
153153
} else {

src/core/mark/withinLink.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function drawWithinLink(g: PIXI.Graphics, trackInfo: any, model: GoslingT
145145
trackOuterRadius,
146146
positionToRadian(posX1E.x, posX1E.y, tcx, tcy),
147147
positionToRadian(posX1.x, posX1.y, tcx, tcy),
148-
false
148+
isClockwise
149149
);
150150

151151
// inner curve
@@ -157,7 +157,7 @@ export function drawWithinLink(g: PIXI.Graphics, trackInfo: any, model: GoslingT
157157
trackOuterRadius,
158158
positionToRadian(posXE.x, posXE.y, tcx, tcy),
159159
positionToRadian(posX.x, posX.y, tcx, tcy),
160-
false
160+
isClockwise
161161
);
162162
pathForMouseEvent = Array.from(g.currentPath.points);
163163
g.endFill();

0 commit comments

Comments
 (0)