added calendar and implemented bridge between small and big calendar
This commit is contained in:
@@ -19,21 +19,10 @@ export type AnonymousEvent = {
|
||||
to: Moment
|
||||
}
|
||||
|
||||
export type SerializableEvent = {
|
||||
title: string,
|
||||
from: string,
|
||||
to: string
|
||||
}
|
||||
|
||||
export type EventWithCollisions = Event & {
|
||||
collisions: number
|
||||
}
|
||||
|
||||
export type EventDimensions = {
|
||||
from: number,
|
||||
to: number
|
||||
}
|
||||
|
||||
export function percentToPixelDimensions(dimensions: EventDimensions, totalHeight: number): EventDimensions {
|
||||
return {
|
||||
from: (dimensions.from / 100) * totalHeight,
|
||||
|
||||
Reference in New Issue
Block a user