defensive arrows

This commit is contained in:
ntr
2019-06-07 13:05:43 +10:00
parent d20c8114ef
commit 1b38f8a047
3 changed files with 1 additions and 3 deletions
@@ -46,6 +46,7 @@ class TargetSvg extends Component {
const sourceY = height;
const sourceX = (source * width / 3) + width / 6;
const targetX = (target * width / 3) + width / 6
+ (defensive ? width / 64 : 0)
+ (pathOffset * width / 32);
const targetY = defensive ? height : 0;
const bendStart = height * (0.7 - 0.1 * source);