mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-09-14 06:42:25 +03:00
Added RoomOptions component (#25)
This commit is contained in:
parent
652f8227b5
commit
80551124f1
11 changed files with 322 additions and 3 deletions
|
@ -19,3 +19,12 @@ export function isNotInSameDay(dt2, dt1) {
|
|||
|| dt2.getYear() !== dt1.getYear()
|
||||
);
|
||||
}
|
||||
|
||||
export function getEventCords(ev) {
|
||||
const boxInfo = ev.target.getBoundingClientRect();
|
||||
return {
|
||||
x: boxInfo.x,
|
||||
y: boxInfo.y,
|
||||
detail: ev.detail,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue