Thème
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
| Name | Type | Description | Défini dans |
|---|---|---|---|
getPolygonPath() | (polygon, width, height) => string | Generates SVG path data for a polygon. | features/map/composables/useMapSvgRendering.ts:235 |
getZoneFill() | (status, baseColor) => string | Gets the appropriate fill pattern URL based on zone status. | features/map/composables/useMapSvgRendering.ts:236 |
getPolygonStrokeColor() | (status, baseColor) => string | Gets the polygon stroke color based on status. | features/map/composables/useMapSvgRendering.ts:237 |
getPolygonFillColor() | (status, baseColor) => string | Gets the polygon fill color (non-pattern) based on status. | features/map/composables/useMapSvgRendering.ts:238 |
getBorderFlashClass() | (status) => string | Gets the CSS class for border flashing animation based on status. | features/map/composables/useMapSvgRendering.ts:239 |
getZoneIncidentClass() | (status) => string | Gets 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 |
svgPatternDefs | string | SVG pattern definitions for zone fills. | features/map/composables/useMapSvgRendering.ts:241 |
svgMarkerDefs | string | SVG marker definitions. | features/map/composables/useMapSvgRendering.ts:242 |
svgFilterDefs | string | SVG filter definitions. | features/map/composables/useMapSvgRendering.ts:243 |