@osfarm/itineraire-technique 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/chart-render.js +3 -7
- package/package.json +1 -1
package/js/chart-render.js
CHANGED
|
@@ -13,13 +13,13 @@ class RotationRenderer {
|
|
|
13
13
|
if (Array.isArray(rotationData)) {
|
|
14
14
|
this.hasTimeline = true;
|
|
15
15
|
rotationData = rotationData.map((item) => {
|
|
16
|
-
|
|
16
|
+
this.fixRotationData(item);
|
|
17
17
|
});
|
|
18
18
|
this.chartOptions = rotationData[0].options;
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
21
|
this.hasTimeline = false;
|
|
22
|
-
|
|
22
|
+
this.fixRotationData(rotationData);
|
|
23
23
|
this.chartOptions = rotationData.options;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -925,8 +925,4 @@ class RotationRenderer {
|
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
|
|
929
|
-
// Les mois ne sont pas bien affichés
|
|
930
|
-
// Les dates ne correspondent pas à la rotation (2023 ???)
|
|
931
|
-
// Les trous dans la rotation ne sont pas affichés correctement
|
|
932
|
-
|
|
928
|
+
window.RotationRenderer = RotationRenderer;
|