Added RoomOptions component (#25)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user