gantt-style.ts 254 B

12345678
  1. export const GANTT_BAR_MIN_WIDTH_PX = 18;
  2. type GanttItemType = "range" | "point";
  3. export function ganttItemStyle(type: GanttItemType): string | undefined {
  4. if (type !== "range") return undefined;
  5. return `min-width: ${GANTT_BAR_MIN_WIDTH_PX}px;`;
  6. }