Added RoomOptions component (#25)

This commit is contained in:
unknown 2021-09-09 17:49:57 +05:30
parent 652f8227b5
commit 80551124f1
11 changed files with 322 additions and 3 deletions

View file

@ -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,
};
}