Skip to content

Commit 9cce723

Browse files
committed
Making arrow heads much larger
1 parent 90727f5 commit 9cce723

File tree

5 files changed

+28
-16
lines changed

5 files changed

+28
-16
lines changed

dist/pdf-annotate.js

Lines changed: 15 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pdf-annotate.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pdf-annotate.min.js

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pdf-annotate.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/render/renderArrow.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export default function renderArrow(a) {
3333
let thickness = a.width || 10;
3434

3535
let A = addVector(pt0, multiplyVector(unitY, thickness * 0.5));
36-
let B = addVector(A, multiplyVector(unitX, magnitude(x) - thickness));
37-
let C = addVector(B, multiplyVector(unitY, thickness * 0.5));
36+
let B = addVector(A, multiplyVector(unitX, magnitude(x) - thickness * 2.0));
37+
let C = addVector(B, multiplyVector(unitY, thickness));
3838
let D = pt1;
3939
let G = addVector(pt0, multiplyVector(negateVector(unitY), thickness * 0.5));
40-
let F = addVector(G, multiplyVector(unitX, magnitude(x) - thickness));
41-
let E = addVector(F, multiplyVector(negateVector(unitY), thickness * 0.5));
40+
let F = addVector(G, multiplyVector(unitX, magnitude(x) - thickness * 2.0));
41+
let E = addVector(F, multiplyVector(negateVector(unitY), thickness));
4242

4343
let points = '' +
4444
A.x + ',' + A.y + ' ' +

0 commit comments

Comments
 (0)