mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
editor - viewer buttons
This commit is contained in:
parent
1ecc2d2a92
commit
293f3cd7b9
5 changed files with 41 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue