added calendar and implemented bridge between small and big calendar

This commit is contained in:
2025-05-11 21:13:56 +02:00
parent f8cb42962a
commit 555aca0a99
10 changed files with 77 additions and 48 deletions

View File

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