Skip to content

Superviseur — Frontend v0.14.0


Superviseur — Frontend / features/map/map.utils

features/map/map.utils

Fonctions

FonctionDescription
findZoneFinds a Zone in the system state corresponding to a MapPoint. Handles: 1. Match by Label (case-insensitive) 2. Match by ID (exact or string-to-number) 3. Match by Index (Aviss 1-based offset)
findDetectorFinds a Detector in the system state corresponding to a MapPoint. Requires the zone to be found first.
getPointStatusCalculates the status of a point based on its type and detectors.
getPointLabelGenerates a label for a point based on panel type and index.

Documentation Technique