adds route edit menu

This commit is contained in:
Christian Beutel
2025-07-19 19:40:11 +02:00
parent 6a908a3ace
commit ef1571c54e
23 changed files with 791 additions and 386 deletions

View File

@@ -9,6 +9,7 @@
currentMin?: any;
currentMax?: any;
onset?: (data: [number, number]) => void;
onupdate?: (data: [number, number]) => void;
}
let {
@@ -17,6 +18,7 @@
currentMin = $bindable(minValue),
currentMax = $bindable(maxValue),
onset,
onupdate,
}: Props = $props();
let sliderContainer: any = $state();
@@ -25,6 +27,7 @@
const updateValues = (values: string[]) => {
currentMin = parseFloat(values[0]);
currentMax = parseFloat(values[1]);
onupdate?.([currentMin, currentMax]);
};
noUiSlider.create(sliderContainer, {