Skip to content

Commit 3dcdfe9

Browse files
committed
fix hash symbol rotation
1 parent 9772168 commit 3dcdfe9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/drawing/symbol_defs.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,11 +463,10 @@ module.exports = {
463463
var r1 = round(r / 2, 2);
464464
var r2 = round(r, 2);
465465

466-
// TODO: fix me! The following path does not align correctly having 'm' commands
467466
return align(angle, 'M' + r1 + ',' + r2 + 'V-' + r2 +
468-
'm-' + r2 + ',0V' + r2 +
467+
'M' + (r1 - r2) + ',-' + r2 + 'V' + r2 +
469468
'M' + r2 + ',' + r1 + 'H-' + r2 +
470-
'm0,-' + r2 + 'H' + r2);
469+
'M-' + r2 + ',' + (r1 - r2) + 'H' + r2);
471470
},
472471
needLine: true,
473472
noFill: true
111 Bytes
Loading

0 commit comments

Comments
 (0)