This commit is contained in:
ISA
2025-05-28 08:04:34 +02:00
parent 97fbb6fdc1
commit 5f0133d638
107 changed files with 1446 additions and 454 deletions

View File

@@ -1,16 +1,24 @@
# 📶 lineVisibilitySlice
<!-- /docs/redux/slices/ui/lineVisibilitySlice.md -->
Speichert, welche Linien (Kabelstrecken) aktiv sichtbar sind.
# 📶 lineVisibilitySlice.js
## 🔧 Zustand
Redux-Slice zur Steuerung der Sichtbarkeit aktiver Linien auf der Karte.
```ts
## Zustand
```js
{
activeLines: { [idLD]: true | false }
activeLines: {
[idLD]: true | false
}
}
```
## 🎯 Aktionen
## Aktionen
- `updateLineStatus({ idLD, active })`
- `setActiveLines({...})`
- `updateLineStatus({ idLD, active })`: Einzelne Linie sichtbar/unsichtbar
- `setActiveLines({ ... })`: Ganze Objektzuweisung
## Anwendung
Wird verwendet z.B. in `useLineData.js`, `MapComponent.js`