Skip to content

Superviseur — Frontend v0.14.0


Superviseur — Frontend / features/map/composables/useMapSvgRendering / useMapSvgRendering

Fonction: useMapSvgRendering()

ts
function useMapSvgRendering(): object;

Défini dans: features/map/composables/useMapSvgRendering.ts:7

Composable fournissant des utilitaires de rendu SVG pour les composants de cartes. Fournit des fonctions pour générer des motifs SVG, des chemins d'accès (paths) et des couleurs de remplissage selon l'état des zones.

Retourne

NameTypeDescriptionDéfini dans
getPolygonPath()(polygon, width, height) => stringGenerates SVG path data for a polygon.features/map/composables/useMapSvgRendering.ts:235
getZoneFill()(status, baseColor) => stringGets the appropriate fill pattern URL based on zone status.features/map/composables/useMapSvgRendering.ts:236
getPolygonStrokeColor()(status, baseColor) => stringGets the polygon stroke color based on status.features/map/composables/useMapSvgRendering.ts:237
getPolygonFillColor()(status, baseColor) => stringGets the polygon fill color (non-pattern) based on status.features/map/composables/useMapSvgRendering.ts:238
getBorderFlashClass()(status) => stringGets the CSS class for border flashing animation based on status.features/map/composables/useMapSvgRendering.ts:239
getZoneIncidentClass()(status) => stringGets the CSS class applied to the zone polygon body for incident states. Adds a soft animated glow (drop-shadow) and a subtle "breathing" of the fill, tuned by urgency: fire pulses fast, fault calmer, test/disabled steady.features/map/composables/useMapSvgRendering.ts:240
svgPatternDefsstringSVG pattern definitions for zone fills.features/map/composables/useMapSvgRendering.ts:241
svgMarkerDefsstringSVG marker definitions.features/map/composables/useMapSvgRendering.ts:242
svgFilterDefsstringSVG filter definitions.features/map/composables/useMapSvgRendering.ts:243

Documentation Technique