routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// Types
|
||||
import { getOverlapGroupHandler } from "./common.js";
|
||||
const FULL_WIDTH = 100;
|
||||
export const column = (events, firstWeekday, overlapThreshold) => {
|
||||
const handler = getOverlapGroupHandler(firstWeekday);
|
||||
return (day, dayEvents, timed, reset) => {
|
||||
const visuals = handler.getVisuals(day, dayEvents, timed, reset);
|
||||
if (timed) {
|
||||
visuals.forEach(visual => {
|
||||
visual.left = visual.column * FULL_WIDTH / visual.columnCount;
|
||||
visual.width = FULL_WIDTH / visual.columnCount;
|
||||
});
|
||||
}
|
||||
return visuals;
|
||||
};
|
||||
};
|
||||
//# sourceMappingURL=column.js.map
|
||||
Reference in New Issue
Block a user