mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
tooltip
This commit is contained in:
parent
94a07a89b5
commit
227d3b1f0c
2 changed files with 14 additions and 2 deletions
|
|
@ -59,10 +59,8 @@ export function getSpeedColor(speedKmh, useSpeedColors, speedColorScale) {
|
|||
...stop,
|
||||
rgb: hexToRGB(stop.color)
|
||||
}));;
|
||||
console.log("yes");
|
||||
} catch (error) { // If user has given invalid values
|
||||
colorStops = colorStopsFallback;
|
||||
console.log("oof\n" + speedColorScale);
|
||||
}
|
||||
|
||||
// Find the appropriate color segment
|
||||
|
|
|
|||
|
|
@ -141,3 +141,17 @@
|
|||
</div>
|
||||
<label class="modal-backdrop" for="speed_colored_routes_info">Close</label>
|
||||
</div>
|
||||
|
||||
<input type="checkbox" id="speed_color_scale_info" class="modal-toggle" />
|
||||
<div class="modal focus:z-99" role="dialog">
|
||||
<div class="modal-box">
|
||||
<h3 class="text-lg font-bold">Speed color scale</h3>
|
||||
<p class="py-4">
|
||||
Value in format <code>speed_kmh:hex_color|...</code>.
|
||||
</p>
|
||||
<p class="py-4">
|
||||
Here you can set a custom color scale for speed colored routes. It uses color stops at specified km/h values and creates a gradient from it. The default value is <code>0:#00ff00|15:#00ffff|30:#ff00ff|50:#ffff00|100:#ff3300</code>
|
||||
</p>
|
||||
</div>
|
||||
<label class="modal-backdrop" for="speed_color_scale_info">Close</label>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue