mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fix loaded stickers has wrong text placement for right-sided captions
This commit is contained in:
parent
b2760307e4
commit
46a7d30f8a
4 changed files with 15 additions and 10 deletions
|
@ -57,7 +57,7 @@ const calcPolyDistance = route => {
|
|||
return parseFloat(Number(summ).toFixed(2));
|
||||
};
|
||||
|
||||
const stickerAngleParser = angle => parseFloat((Number(angle) - Math.PI).toFixed(2));
|
||||
const stickerAngleParser = angle => parseFloat(((Number(angle) % Math.PI) + Math.PI).toFixed(2));
|
||||
|
||||
const stickerStyleParser = style => (REPLACEMENT[style]
|
||||
? { ...REPLACEMENT[style] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue