UI: move OH indicators in two bars more aggressively

This commit is contained in:
Pieter Vander Vennet 2025-06-03 23:48:03 +02:00
parent 4744471495
commit dabc6500bb

View file

@ -978,7 +978,7 @@ changes // => [[36000,61200], ["10:00", "17:00"]]
* OH.partitionOHForDistance([0, 15, 3615], ["start", "15s", "1h15s"]) // => [{changeHours: [0, 3615], changeTexts: ["start", "1h15s"]}, {changeHours: [15], changeTexts: ["15s"]}] * OH.partitionOHForDistance([0, 15, 3615], ["start", "15s", "1h15s"]) // => [{changeHours: [0, 3615], changeTexts: ["start", "1h15s"]}, {changeHours: [15], changeTexts: ["15s"]}]
* *
*/ */
public static partitionOHForDistance(changeHours: number[], changeHourText: string[], maxDiff = 3600): { public static partitionOHForDistance(changeHours: number[], changeHourText: string[], maxDiff = 5400): {
changeHours: number[], changeHours: number[],
changeTexts: string[] changeTexts: string[]
}[] { }[] {