fix loaded stickers has wrong text placement for right-sided captions

This commit is contained in:
muerwre 2019-02-06 14:55:40 +07:00
parent b2760307e4
commit 46a7d30f8a
4 changed files with 15 additions and 10 deletions

View file

@ -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] }