editor - viewer buttons

This commit is contained in:
muerwre 2018-08-31 16:25:42 +07:00
parent 1ecc2d2a92
commit 293f3cd7b9
5 changed files with 41 additions and 2 deletions

View file

@ -92,6 +92,7 @@ export class Sticker {
};
estimateAngle = e => {
console.log('est');
const { x, y } = this.element.getBoundingClientRect();
const { pageX, pageY } = e;
this.angle = Math.atan2((y - pageY), (x - pageX));