origam 2.37.38 → 2.37.40
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/CHANGELOG.md +40 -0
- package/dist/src/components/Chart/OrigamChartAxis.vue +15 -1
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +5 -1
- package/dist/src/components/Chart/OrigamChartBullet.vue +5 -1
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +5 -1
- package/dist/src/components/Chart/OrigamChartCartesian.vue +9 -2
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +6 -1
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +5 -1
- package/dist/src/components/Chart/OrigamChartMap.vue +7 -2
- package/dist/src/components/Chart/OrigamChartPareto.vue +5 -1
- package/dist/src/components/Chart/OrigamChartPictorial.vue +7 -2
- package/dist/src/components/Chart/OrigamChartPolar.vue +5 -1
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +5 -1
- package/dist/src/components/Chart/OrigamChartPyramid.vue +5 -1
- package/dist/src/components/Chart/OrigamChartRadar.vue +6 -1
- package/dist/src/components/Chart/OrigamChartSankey.vue +7 -2
- package/dist/src/components/Chart/OrigamChartSparkline.vue +11 -4
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +5 -1
- package/dist/src/components/Chart/OrigamChartSunburst.vue +5 -1
- package/dist/src/components/Chart/OrigamChartTreemap.vue +5 -1
- package/dist/src/components/Chart/OrigamChartVariwide.vue +5 -1
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +5 -1
- package/dist/src/composables/Chart/chart-roving.composable.cjs +69 -0
- package/dist/src/composables/Chart/chart-roving.composable.d.ts +33 -0
- package/dist/src/composables/Chart/chart-roving.composable.js +64 -0
- package/dist/src/composables/index.cjs +12 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/index.js +1 -0
- package/dist/src/consts/Chart/chart.const.cjs +14 -1
- package/dist/src/consts/Chart/chart.const.d.ts +53 -1
- package/dist/src/consts/Chart/chart.const.js +13 -0
- package/dist/src/interfaces/Chart/chart-axis.interface.d.ts +11 -0
- package/dist/src/interfaces/Chart/chart-roving.interface.cjs +1 -0
- package/dist/src/interfaces/Chart/chart-roving.interface.d.ts +12 -0
- package/dist/src/interfaces/Chart/chart-roving.interface.js +0 -0
- package/dist/src/interfaces/index.cjs +11 -0
- package/dist/src/interfaces/index.d.ts +1 -0
- package/dist/src/interfaces/index.js +1 -0
- package/dist/src/types/Chart/chart.type.d.ts +8 -0
- package/dist/src/utils/Chart/chart-axis-label.util.cjs +35 -0
- package/dist/src/utils/Chart/chart-axis-label.util.d.ts +24 -0
- package/dist/src/utils/Chart/chart-axis-label.util.js +24 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,46 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.37.40] - 2026-11-05
|
|
22
|
+
|
|
23
|
+
### Fixed — Charts : un seul arrêt de tabulation par chart, navigation aux flèches (#1333)
|
|
24
|
+
|
|
25
|
+
Chaque point focusable d'un chart était un arrêt de tabulation. Mesuré sur develop, cela donnait entre 3 et 1825 arrêts selon le chart et la Variant (Cartésien jusqu'à 1825, Heatmap 168). Il fallait autant de frappes de Tab pour quitter le chart.
|
|
26
|
+
|
|
27
|
+
- Pattern **roving tabindex** sur les 20 charts à points `role="button"` : un seul point est à `tabindex="0"` (le dernier point actif, sinon le premier), tous les autres sont à `-1`.
|
|
28
|
+
- Touches :
|
|
29
|
+
|
|
30
|
+
| Touche | Action |
|
|
31
|
+
|---|---|
|
|
32
|
+
| ← / → | point précédent / suivant de la série |
|
|
33
|
+
| ↑ / ↓ | série précédente / suivante, à la même position (bornée) ; à série unique, même effet que ← / → |
|
|
34
|
+
| Home / End | premier / dernier point |
|
|
35
|
+
| Entrée / Espace | active le point (émission inchangée) |
|
|
36
|
+
| Tab | sort du chart en une frappe |
|
|
37
|
+
|
|
38
|
+
- Treemap, Sunburst, Sankey, Map, Honeycomb et WordCloud suivent l'ordre du DOM. Pour Sankey, ce sont les liens puis les nœuds. Cet ordre est documenté sur chaque chart.
|
|
39
|
+
- Nouveau composable `useChartRoving` (`composables/Chart/chart-roving.composable.ts`), interface `IChartRoving`, type `TChartRovingAction`, consts `CHART_POINT_ATTR`, `CHART_POINT_SELECTOR`, `CHART_SERIES_ATTR` et `CHART_ROVING_KEY_ACTIONS`.
|
|
40
|
+
- Le bouton de réinitialisation du zoom du cartésien garde son propre arrêt de tabulation.
|
|
41
|
+
- **Vérifié** : la spec `chart-roving-tabindex.spec.ts`, inscrite dans `GREEN_SPECS`, compte 1 arrêt par chart, ainsi que flèches, Home/End et Entrée/Espace, sur toutes les Variants. Elle est rouge 21/21 sur le parent et verte avec le correctif. `chart-nested-interactive` reste verte (axe : 0 `nested-interactive`). `e2e/chart*` : 401 passés (PR #1337).
|
|
42
|
+
- **Limites** : pas d'inversion des flèches en RTL. Avant l'hydratation SSR, les points n'ont pas d'arrêt de tabulation.
|
|
43
|
+
|
|
44
|
+
## [2.37.39] - 2026-11-05
|
|
45
|
+
|
|
46
|
+
### Fixed — `OrigamChartCartesian` : les étiquettes de l'axe X ne se chevauchent plus sur un chart étroit (#1325)
|
|
47
|
+
|
|
48
|
+
Depuis 2.37.37, le cartésien suit la largeur de son conteneur. Sur un chart étroit, les graduations se resserrent et les étiquettes se chevauchaient : à 320 px, 4 paires sur 12 étiquettes.
|
|
49
|
+
|
|
50
|
+
- **Décimation** : une étiquette sur N reste affichée. N est calculé à partir de la largeur du plus long label et de l'écart minimal (`CHART_AXIS_LABEL_MIN_GAP`) rapportés au plus petit pas entre graduations. Le texte reste horizontal et entier.
|
|
51
|
+
- **Largeur mesurée** : après le montage, la largeur réelle des labels est mesurée (`getComputedTextLength`). En SSR et avant la mesure, une estimation (`CHART_AXIS_LABEL_CHAR_WIDTH`) sert de repli, ce qui garde un markup initial identique côté serveur et côté client. La mesure suit la police réelle, y compris une taille surchargée par un thème.
|
|
52
|
+
- Les labels écartés restent dans le DOM avec `visibility="hidden"` et `aria-hidden`. Chaque point garde la catégorie et la valeur dans son nom accessible.
|
|
53
|
+
- La logique vit dans `utils/Chart/chart-axis-label.util.ts` (`measureWidestAxisLabel`, `decimateAxisTicks`). L'interface `IChartAxisLabelSlot` est ajoutée.
|
|
54
|
+
- **Vérifié** par la spec `chart-cartesian-axis-label-decimation.spec.ts`, inscrite dans `GREEN_SPECS` :
|
|
55
|
+
- à 320 px, elle est rouge sur le parent (4 intersections) et verte avec le correctif (0 intersection, 6 étiquettes sur 12) ;
|
|
56
|
+
- le cas « police d'axe grossie à 1.5rem » est rouge avec l'estimation seule (1 intersection) et vert avec la mesure ;
|
|
57
|
+
- 600 et 960 px sont inchangés ;
|
|
58
|
+
- un TU SSR passe sans warning (PR #1335).
|
|
59
|
+
- **Limite** : un changement de taille de police seul, à l'exécution, ne déclenche pas de nouvelle mesure. Elle est relancée quand les graduations ou `xAxisFormat` changent.
|
|
60
|
+
|
|
21
61
|
## [2.37.38] - 2026-11-05
|
|
22
62
|
|
|
23
63
|
### Fixed — Charts : la surface de dessin suit la taille du conteneur sur 19 charts (#1324)
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<g
|
|
19
19
|
v-if="showAxis"
|
|
20
|
+
ref="axisRef"
|
|
20
21
|
class="origam-chart__axis"
|
|
21
22
|
data-cy="origam-chart-axis"
|
|
22
23
|
>
|
|
@@ -46,9 +47,11 @@
|
|
|
46
47
|
{{ formatY(tick.value as number) }}
|
|
47
48
|
</text>
|
|
48
49
|
<text
|
|
49
|
-
v-for="
|
|
50
|
+
v-for="{ tick, i, shown } in xTicks"
|
|
50
51
|
:key="`xl-${ i }`"
|
|
51
52
|
class="origam-chart__axis-label origam-chart__axis-label--x"
|
|
53
|
+
:visibility="shown ? undefined : 'hidden'"
|
|
54
|
+
:aria-hidden="shown ? undefined : 'true'"
|
|
52
55
|
:x="tick.position"
|
|
53
56
|
:y="plot.y1 + 16"
|
|
54
57
|
text-anchor="middle"
|
|
@@ -84,6 +87,8 @@
|
|
|
84
87
|
</template>
|
|
85
88
|
|
|
86
89
|
<script lang="ts" setup>
|
|
90
|
+
import { computed, nextTick, onMounted, ref, shallowRef, watch } from "vue";
|
|
91
|
+
import { decimateAxisTicks, measureWidestAxisLabel } from "../../utils/Chart/chart-axis-label.util";
|
|
87
92
|
defineOptions({
|
|
88
93
|
name: "OrigamChartAxis",
|
|
89
94
|
inheritAttrs: false
|
|
@@ -104,6 +109,15 @@ const formatX = (value) => {
|
|
|
104
109
|
if (props.xAxisFormat) return props.xAxisFormat(value);
|
|
105
110
|
return String(value);
|
|
106
111
|
};
|
|
112
|
+
const axisRef = shallowRef(null);
|
|
113
|
+
const measuredWidest = ref(measureWidestAxisLabel(null));
|
|
114
|
+
const measure = async () => {
|
|
115
|
+
await nextTick();
|
|
116
|
+
measuredWidest.value = measureWidestAxisLabel(axisRef.value);
|
|
117
|
+
};
|
|
118
|
+
onMounted(measure);
|
|
119
|
+
watch(() => [props.ticks.x, props.xAxisFormat], measure);
|
|
120
|
+
const xTicks = computed(() => decimateAxisTicks(props.ticks.x, formatX, measuredWidest.value));
|
|
107
121
|
const formatY = (value) => {
|
|
108
122
|
if (props.yAxisFormat) return props.yAxisFormat(value);
|
|
109
123
|
return String(value);
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-box-plot-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
@mousemove="onSvgMouseMove"
|
|
46
47
|
@mouseleave="onSvgMouseLeave"
|
|
47
48
|
>
|
|
@@ -119,7 +120,8 @@
|
|
|
119
120
|
class="origam-chart__box"
|
|
120
121
|
:class="{ 'origam-chart__box--active': hoveredIndex === box.index }"
|
|
121
122
|
:data-cy="`origam-chart-box-group-${ box.index }`"
|
|
122
|
-
tabindex="
|
|
123
|
+
tabindex="-1"
|
|
124
|
+
data-chart-point
|
|
123
125
|
role="button"
|
|
124
126
|
:aria-label="boxAriaLabel(box)"
|
|
125
127
|
@click="onBoxActivate(box, $event)"
|
|
@@ -260,6 +262,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
|
|
|
260
262
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
261
263
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
262
264
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
265
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
263
266
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
264
267
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
265
268
|
import { useElevation } from "../../composables/Commons/elevation.composable";
|
|
@@ -350,6 +353,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
|
|
|
350
353
|
const { headerTypographyStyles } = useChartHeaderTypography(props);
|
|
351
354
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
352
355
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.boxPlot);
|
|
356
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
353
357
|
const PADDING = { top: 20, right: 20, bottom: 40, left: 52 };
|
|
354
358
|
const PLOT = {
|
|
355
359
|
get left() {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-bullet-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
@mousemove="onSvgMouseMove"
|
|
46
47
|
@mouseleave="onSvgMouseLeave"
|
|
47
48
|
>
|
|
@@ -79,7 +80,8 @@
|
|
|
79
80
|
:height="barH(bullet)"
|
|
80
81
|
:style="{ fill: bullet.barFill }"
|
|
81
82
|
:data-cy="`origam-chart-bullet-bar-${ bullet.index }`"
|
|
82
|
-
tabindex="
|
|
83
|
+
tabindex="-1"
|
|
84
|
+
data-chart-point
|
|
83
85
|
role="button"
|
|
84
86
|
:aria-label="bulletAriaLabel(bullet)"
|
|
85
87
|
@click="onBulletActivate(bullet, $event)"
|
|
@@ -224,6 +226,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
|
|
|
224
226
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
225
227
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
226
228
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
229
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
227
230
|
import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
|
|
228
231
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
229
232
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
@@ -314,6 +317,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
|
|
|
314
317
|
const { headerTypographyStyles } = useChartHeaderTypography(props);
|
|
315
318
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
316
319
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.bullet);
|
|
320
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
317
321
|
const AXIS_TICK_COUNT = 5;
|
|
318
322
|
const TARGET_TICK_FRACTION = 0.7;
|
|
319
323
|
const LABEL_GAP = 6;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-candlestick-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
@mousemove="onSvgMouseMove"
|
|
46
47
|
@mouseleave="onSvgMouseLeave"
|
|
47
48
|
>
|
|
@@ -104,7 +105,8 @@
|
|
|
104
105
|
'origam-chart-candlestick__candle--bearish': !candle.isBullish,
|
|
105
106
|
'origam-chart-candlestick__candle--active': hoveredIndex === candle.index
|
|
106
107
|
}"
|
|
107
|
-
tabindex="
|
|
108
|
+
tabindex="-1"
|
|
109
|
+
data-chart-point
|
|
108
110
|
role="button"
|
|
109
111
|
:aria-label="candleAriaLabel(candle)"
|
|
110
112
|
:data-cy="`origam-chart-candlestick-candle-${ candle.index }`"
|
|
@@ -199,6 +201,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
|
|
|
199
201
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
200
202
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
201
203
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
204
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
202
205
|
import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
|
|
203
206
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
204
207
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
@@ -289,6 +292,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
|
|
|
289
292
|
const { headerTypographyStyles } = useChartHeaderTypography(props);
|
|
290
293
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
291
294
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.candlestick);
|
|
295
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
292
296
|
const PADDING = { top: 20, right: 20, bottom: 36, left: 56 };
|
|
293
297
|
const Y_TICK_COUNT = 5;
|
|
294
298
|
const Y_PAD_FRACTION = 0.05;
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
:aria-label="svgAriaLabel"
|
|
89
89
|
preserveAspectRatio="xMidYMid meet"
|
|
90
90
|
data-cy="origam-chart-cartesian-svg"
|
|
91
|
+
@keydown="onChartKeydown"
|
|
91
92
|
@mousemove="onSvgMouseMove"
|
|
92
93
|
@mouseleave="onSvgMouseLeave"
|
|
93
94
|
@mousedown="onSvgMouseDown"
|
|
@@ -186,7 +187,9 @@
|
|
|
186
187
|
:width="path.rect!.width"
|
|
187
188
|
:height="path.rect!.height"
|
|
188
189
|
:fill="path.color"
|
|
189
|
-
tabindex="
|
|
190
|
+
tabindex="-1"
|
|
191
|
+
data-chart-point
|
|
192
|
+
:data-chart-series="path.seriesIndex"
|
|
190
193
|
role="button"
|
|
191
194
|
:aria-label="pointAriaLabel(path)"
|
|
192
195
|
:data-cy="`origam-chart-bar-${ path.seriesIndex }-${ path.dataIndex }`"
|
|
@@ -203,7 +206,9 @@
|
|
|
203
206
|
:cy="path.circle!.cy"
|
|
204
207
|
:r="hoverMatches(path) ? path.circle!.r + 2 : path.circle!.r"
|
|
205
208
|
:fill="path.color"
|
|
206
|
-
tabindex="
|
|
209
|
+
tabindex="-1"
|
|
210
|
+
data-chart-point
|
|
211
|
+
:data-chart-series="path.seriesIndex"
|
|
207
212
|
role="button"
|
|
208
213
|
:aria-label="pointAriaLabel(path)"
|
|
209
214
|
:data-cy="`origam-chart-point-${ path.seriesIndex }-${ path.dataIndex }`"
|
|
@@ -493,6 +498,7 @@ import {
|
|
|
493
498
|
} from "vue";
|
|
494
499
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
495
500
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
501
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
496
502
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
497
503
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
498
504
|
import { useChart } from "../../composables/Chart/chart.composable";
|
|
@@ -685,6 +691,7 @@ const { resizeRef: svgSizeRef, width: svgWidth, height: svgHeight } = useChartSi
|
|
|
685
691
|
const PADDING_DEFAULT = { top: 24, right: 24, bottom: 36, left: 48 };
|
|
686
692
|
const PADDING_WITH_SECONDARY_AXIS = { top: 24, right: 56, bottom: 36, left: 48 };
|
|
687
693
|
const svgRef = ref(null);
|
|
694
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
688
695
|
const setSvgRef = (el) => {
|
|
689
696
|
svgRef.value = el;
|
|
690
697
|
svgSizeRef.value = el;
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
:aria-label="svgAriaLabel"
|
|
44
44
|
preserveAspectRatio="xMidYMid meet"
|
|
45
45
|
data-cy="origam-chart-heatmap-svg"
|
|
46
|
+
@keydown="onChartKeydown"
|
|
46
47
|
@mousemove="onSvgMouseMove"
|
|
47
48
|
@mouseleave="onSvgMouseLeave"
|
|
48
49
|
>
|
|
@@ -89,7 +90,9 @@
|
|
|
89
90
|
ry="2"
|
|
90
91
|
:style="{ fill: cell.color }"
|
|
91
92
|
:data-cy="`origam-chart-heatmap-cell-${ cell.index }`"
|
|
92
|
-
tabindex="
|
|
93
|
+
tabindex="-1"
|
|
94
|
+
data-chart-point
|
|
95
|
+
:data-chart-series="cell.yCat"
|
|
93
96
|
role="button"
|
|
94
97
|
:aria-label="cellAriaLabel(cell)"
|
|
95
98
|
@click="onCellActivate(cell, $event)"
|
|
@@ -228,6 +231,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
|
|
|
228
231
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
229
232
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
230
233
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
234
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
231
235
|
import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
|
|
232
236
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
233
237
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
@@ -401,6 +405,7 @@ const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize({
|
|
|
401
405
|
return SVG_PLOT_H + AXIS_BOTTOM + legendExtraH.value;
|
|
402
406
|
}
|
|
403
407
|
});
|
|
408
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
404
409
|
const plotX0 = AXIS_LEFT;
|
|
405
410
|
const plotY0 = 4;
|
|
406
411
|
const plotW = computed(() => Math.max(0, svgWidth.value - AXIS_LEFT));
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
:aria-label="svgAriaLabel"
|
|
44
44
|
preserveAspectRatio="xMidYMid meet"
|
|
45
45
|
data-cy="origam-chart-honeycomb-svg"
|
|
46
|
+
@keydown="onChartKeydown"
|
|
46
47
|
@mousemove="onSvgMouseMove"
|
|
47
48
|
@mouseleave="onSvgMouseLeave"
|
|
48
49
|
>
|
|
@@ -65,7 +66,8 @@
|
|
|
65
66
|
:points="tile.points"
|
|
66
67
|
:style="{ fill: tile.color }"
|
|
67
68
|
:data-cy="`origam-chart-honeycomb-tile-${ tile.index }`"
|
|
68
|
-
tabindex="
|
|
69
|
+
tabindex="-1"
|
|
70
|
+
data-chart-point
|
|
69
71
|
role="button"
|
|
70
72
|
:aria-label="tileAriaLabel(tile)"
|
|
71
73
|
@click="onTileActivate(tile, $event)"
|
|
@@ -154,6 +156,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
|
|
|
154
156
|
import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
|
|
155
157
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
156
158
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
159
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
157
160
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
158
161
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
159
162
|
import { useElevation } from "../../composables/Commons/elevation.composable";
|
|
@@ -419,6 +422,7 @@ const legendItems = computed(() => {
|
|
|
419
422
|
}));
|
|
420
423
|
});
|
|
421
424
|
const svgRef = ref(null);
|
|
425
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
422
426
|
const mousePos = ref({ x: 0, y: 0 });
|
|
423
427
|
const hoveredIndex = ref(null);
|
|
424
428
|
const hoveredTile = computed(() => {
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
:aria-label="svgAriaLabel"
|
|
42
42
|
preserveAspectRatio="xMidYMid meet"
|
|
43
43
|
data-cy="origam-chart-map-svg"
|
|
44
|
+
@keydown="onChartKeydown"
|
|
44
45
|
@mousemove="onSvgMouseMove"
|
|
45
46
|
@mouseleave="onSvgMouseLeave"
|
|
46
47
|
>
|
|
@@ -81,7 +82,8 @@
|
|
|
81
82
|
:d="country.d"
|
|
82
83
|
:style="{ fill: country.fill, stroke: resolveColor(borderColor) }"
|
|
83
84
|
:data-cy="`origam-chart-map-country-${ country.code }`"
|
|
84
|
-
|
|
85
|
+
tabindex="-1"
|
|
86
|
+
:data-chart-point="country.hasData ? '' : undefined"
|
|
85
87
|
:role="country.hasData ? 'button' : undefined"
|
|
86
88
|
:aria-label="country.hasData ? countryAriaLabel(country) : undefined"
|
|
87
89
|
@click="onCountryActivate(country, $event)"
|
|
@@ -107,7 +109,8 @@
|
|
|
107
109
|
fill="none"
|
|
108
110
|
stroke-linecap="round"
|
|
109
111
|
:data-cy="`origam-chart-map-route-${ route.index }`"
|
|
110
|
-
tabindex="
|
|
112
|
+
tabindex="-1"
|
|
113
|
+
data-chart-point
|
|
111
114
|
role="button"
|
|
112
115
|
:aria-label="routeAriaLabel(route)"
|
|
113
116
|
@click="onRouteActivate(route, $event)"
|
|
@@ -207,6 +210,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
|
|
|
207
210
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
208
211
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
209
212
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
213
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
210
214
|
import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.composable";
|
|
211
215
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
212
216
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
@@ -311,6 +315,7 @@ useUnsupportedProp(
|
|
|
311
315
|
);
|
|
312
316
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
313
317
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.map, { aspectRatio: CHART_ASPECT_RATIO.map });
|
|
318
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
314
319
|
const LEGEND_H = 14;
|
|
315
320
|
const LEGEND_Y_OFFSET = 12;
|
|
316
321
|
const LEGEND_X = 20;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-pareto-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
@mousemove="onSvgMouseMove"
|
|
46
47
|
@mouseleave="onSvgMouseLeave"
|
|
47
48
|
>
|
|
@@ -189,7 +190,8 @@
|
|
|
189
190
|
rx="2"
|
|
190
191
|
ry="2"
|
|
191
192
|
:style="{ fill: bar.color }"
|
|
192
|
-
tabindex="
|
|
193
|
+
tabindex="-1"
|
|
194
|
+
data-chart-point
|
|
193
195
|
role="button"
|
|
194
196
|
:aria-label="barAriaLabel(bar)"
|
|
195
197
|
:data-cy="`origam-chart-pareto-bar-${ bar.index }`"
|
|
@@ -303,6 +305,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
|
|
|
303
305
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
304
306
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
305
307
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
308
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
306
309
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
307
310
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
308
311
|
import { useElevation } from "../../composables/Commons/elevation.composable";
|
|
@@ -394,6 +397,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
|
|
|
394
397
|
const { headerTypographyStyles } = useChartHeaderTypography(props);
|
|
395
398
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
396
399
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.pareto);
|
|
400
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
397
401
|
const TICK_SIZE = 4;
|
|
398
402
|
const PLOT = {
|
|
399
403
|
top: 24,
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-pictorial-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
@mousemove="onSvgMouseMove"
|
|
46
47
|
@mouseleave="onSvgMouseLeave"
|
|
47
48
|
>
|
|
@@ -82,7 +83,8 @@
|
|
|
82
83
|
:transform="`translate(${ col.x }, ${ col.y })`"
|
|
83
84
|
class="origam-chart-pictorial__column"
|
|
84
85
|
:data-cy="`origam-chart-pictorial-col-${ col.dataIndex }`"
|
|
85
|
-
tabindex="
|
|
86
|
+
tabindex="-1"
|
|
87
|
+
data-chart-point
|
|
86
88
|
role="button"
|
|
87
89
|
:aria-label="columnAriaLabel(col)"
|
|
88
90
|
@click="onColumnActivate(col, $event)"
|
|
@@ -139,7 +141,8 @@
|
|
|
139
141
|
:transform="`translate(${ fillColX(col) }, ${ fillColY(col) })`"
|
|
140
142
|
class="origam-chart-pictorial__column"
|
|
141
143
|
:data-cy="`origam-chart-pictorial-col-${ col.dataIndex }`"
|
|
142
|
-
tabindex="
|
|
144
|
+
tabindex="-1"
|
|
145
|
+
data-chart-point
|
|
143
146
|
role="button"
|
|
144
147
|
:aria-label="fillColumnAriaLabel(col)"
|
|
145
148
|
@click="onColumnActivate(col, $event)"
|
|
@@ -300,6 +303,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
|
|
|
300
303
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
301
304
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
302
305
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
306
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
303
307
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
304
308
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
305
309
|
import { useElevation } from "../../composables/Commons/elevation.composable";
|
|
@@ -392,6 +396,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
|
|
|
392
396
|
const { headerTypographyStyles } = useChartHeaderTypography(props);
|
|
393
397
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
394
398
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.pictorial);
|
|
399
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
395
400
|
const ICON_GAP = 2;
|
|
396
401
|
const AXIS_LABEL_HEIGHT = 20;
|
|
397
402
|
const VALUE_LABEL_HEIGHT = 16;
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
:aria-label="svgAriaLabel"
|
|
80
80
|
preserveAspectRatio="xMidYMid meet"
|
|
81
81
|
data-cy="origam-chart-polar-svg"
|
|
82
|
+
@keydown="onChartKeydown"
|
|
82
83
|
@mousemove="onSvgMouseMove"
|
|
83
84
|
@mouseleave="onSvgMouseLeave"
|
|
84
85
|
>
|
|
@@ -96,7 +97,8 @@
|
|
|
96
97
|
:d="path.d"
|
|
97
98
|
:fill="path.color"
|
|
98
99
|
:data-cy="`origam-chart-slice-${ path.dataIndex }`"
|
|
99
|
-
tabindex="
|
|
100
|
+
tabindex="-1"
|
|
101
|
+
data-chart-point
|
|
100
102
|
role="button"
|
|
101
103
|
:aria-label="sliceAriaLabel(path)"
|
|
102
104
|
@click="onPointActivate(path, $event)"
|
|
@@ -169,6 +171,7 @@ import {
|
|
|
169
171
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
170
172
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
171
173
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
174
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
172
175
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
173
176
|
import { useChart } from "../../composables/Chart/chart.composable";
|
|
174
177
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
@@ -307,6 +310,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
|
|
|
307
310
|
const { headerTypographyStyles } = useChartHeaderTypography(props);
|
|
308
311
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
309
312
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.polar, { aspectRatio: CHART_ASPECT_RATIO.radial });
|
|
313
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
310
314
|
const PADDING_POLAR = { top: 12, right: 12, bottom: 12, left: 12 };
|
|
311
315
|
const mousePos = ref({ x: 0, y: 0 });
|
|
312
316
|
const hiddenLabels = ref(/* @__PURE__ */ new Set());
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-polar-bar-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
@mousemove="onSvgMouseMove"
|
|
46
47
|
@mouseleave="onSvgMouseLeave"
|
|
47
48
|
>
|
|
@@ -61,7 +62,8 @@
|
|
|
61
62
|
:d="wedge.d"
|
|
62
63
|
:style="{ fill: wedge.color }"
|
|
63
64
|
:data-cy="`origam-chart-polar-bar-wedge-${ wedge.index }`"
|
|
64
|
-
tabindex="
|
|
65
|
+
tabindex="-1"
|
|
66
|
+
data-chart-point
|
|
65
67
|
role="button"
|
|
66
68
|
:aria-label="wedgeAriaLabel(wedge)"
|
|
67
69
|
@click="onWedgeActivate(wedge, $event)"
|
|
@@ -165,6 +167,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
|
|
|
165
167
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
166
168
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
167
169
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
170
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
168
171
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
169
172
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
170
173
|
import { useElevation } from "../../composables/Commons/elevation.composable";
|
|
@@ -259,6 +262,7 @@ useUnsupportedProp(
|
|
|
259
262
|
);
|
|
260
263
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
261
264
|
const { resizeRef: svgRef, width: svgWidth } = useChartSize(CHART_SIZE_FALLBACK.polarBar, { aspectRatio: CHART_ASPECT_RATIO.radial });
|
|
265
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
262
266
|
const center = computed(() => svgWidth.value / 2);
|
|
263
267
|
const LABEL_RADIAL_OFFSET = 14;
|
|
264
268
|
const VALUE_LABEL_MIN_ANGLE = 0.25;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-pyramid-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
@mousemove="onSvgMouseMove"
|
|
46
47
|
@mouseleave="onSvgMouseLeave"
|
|
47
48
|
>
|
|
@@ -60,7 +61,8 @@
|
|
|
60
61
|
:d="slice.d"
|
|
61
62
|
:fill="slice.color"
|
|
62
63
|
:data-cy="`origam-chart-pyramid-slice-${ slice.index }`"
|
|
63
|
-
tabindex="
|
|
64
|
+
tabindex="-1"
|
|
65
|
+
data-chart-point
|
|
64
66
|
role="button"
|
|
65
67
|
:aria-label="sliceAriaLabel(slice)"
|
|
66
68
|
@click="onSliceActivate(slice, $event)"
|
|
@@ -163,6 +165,7 @@ import OrigamChartTooltip from "./OrigamChartTooltip.vue";
|
|
|
163
165
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
164
166
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
165
167
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
168
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
166
169
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
167
170
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
168
171
|
import { useElevation } from "../../composables/Commons/elevation.composable";
|
|
@@ -248,6 +251,7 @@ const { roundedClasses, roundedStyles } = useRounded(props);
|
|
|
248
251
|
const { headerTypographyStyles } = useChartHeaderTypography(props);
|
|
249
252
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
250
253
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.pyramid);
|
|
254
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
251
255
|
const PADDING = { top: 20, right: 120, bottom: 20, left: 20 };
|
|
252
256
|
const LABEL_FITS_INSIDE_MIN_HEIGHT = 18;
|
|
253
257
|
const LABEL_FITS_INSIDE_MIN_WIDTH = 90;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-radar-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
>
|
|
46
47
|
<title>{{ svgTitle }}</title>
|
|
47
48
|
<desc>{{ svgDesc }}</desc>
|
|
@@ -98,7 +99,9 @@
|
|
|
98
99
|
:cy="path.circle!.cy"
|
|
99
100
|
:r="path.circle!.r"
|
|
100
101
|
:fill="path.color"
|
|
101
|
-
tabindex="
|
|
102
|
+
tabindex="-1"
|
|
103
|
+
data-chart-point
|
|
104
|
+
:data-chart-series="path.seriesIndex"
|
|
102
105
|
role="button"
|
|
103
106
|
:aria-label="pointAriaLabel(path)"
|
|
104
107
|
:data-cy="`origam-chart-point-${ path.seriesIndex }-${ path.dataIndex }`"
|
|
@@ -150,6 +153,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
|
|
|
150
153
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
151
154
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
152
155
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
156
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
153
157
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
154
158
|
import { useChart } from "../../composables/Chart/chart.composable";
|
|
155
159
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
@@ -237,6 +241,7 @@ useUnsupportedProp(
|
|
|
237
241
|
);
|
|
238
242
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
239
243
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.radar, { aspectRatio: CHART_ASPECT_RATIO.radial });
|
|
244
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
240
245
|
const PADDING_RADAR = { top: 20, right: 20, bottom: 20, left: 20 };
|
|
241
246
|
const RADAR_RINGS = [0.25, 0.5, 0.75, 1];
|
|
242
247
|
const chart = useChart({
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
:aria-label="svgAriaLabel"
|
|
43
43
|
preserveAspectRatio="xMidYMid meet"
|
|
44
44
|
data-cy="origam-chart-sankey-svg"
|
|
45
|
+
@keydown="onChartKeydown"
|
|
45
46
|
@mousemove="onSvgMouseMove"
|
|
46
47
|
@mouseleave="onSvgMouseLeave"
|
|
47
48
|
>
|
|
@@ -64,7 +65,8 @@
|
|
|
64
65
|
stroke: 'none'
|
|
65
66
|
}"
|
|
66
67
|
:data-cy="`origam-chart-sankey-link-${ link.index }`"
|
|
67
|
-
tabindex="
|
|
68
|
+
tabindex="-1"
|
|
69
|
+
data-chart-point
|
|
68
70
|
role="button"
|
|
69
71
|
:aria-label="linkAriaLabel(link)"
|
|
70
72
|
@click="onLinkActivate(link, $event)"
|
|
@@ -87,7 +89,8 @@
|
|
|
87
89
|
ry="2"
|
|
88
90
|
:style="{ fill: node.color }"
|
|
89
91
|
:data-cy="`origam-chart-sankey-node-${ node.name }`"
|
|
90
|
-
tabindex="
|
|
92
|
+
tabindex="-1"
|
|
93
|
+
data-chart-point
|
|
91
94
|
role="button"
|
|
92
95
|
:aria-label="`${ node.name }: ${ node.formatted }`"
|
|
93
96
|
@click="onNodeActivate(node, $event)"
|
|
@@ -177,6 +180,7 @@ import { useUnsupportedProp } from "../../composables/Commons/unsupportedProp.co
|
|
|
177
180
|
import { useChartHeaderTypography } from "../../composables/Chart/chart-header-typography.composable";
|
|
178
181
|
import { useChartSize } from "../../composables/Chart/chart-size.composable";
|
|
179
182
|
import { useChartAnimationStyle } from "../../composables/Chart/chart-animation.composable";
|
|
183
|
+
import { useChartRoving } from "../../composables/Chart/chart-roving.composable";
|
|
180
184
|
import { useBackgroundColor } from "../../composables/Commons/backgroundColor.composable";
|
|
181
185
|
import { useDimension } from "../../composables/Commons/dimension.composable";
|
|
182
186
|
import { useElevation } from "../../composables/Commons/elevation.composable";
|
|
@@ -269,6 +273,7 @@ useUnsupportedProp(
|
|
|
269
273
|
);
|
|
270
274
|
const chartAnimationStyle = useChartAnimationStyle(props);
|
|
271
275
|
const { resizeRef: svgRef, width: svgWidth, height: svgHeight } = useChartSize(CHART_SIZE_FALLBACK.sankey);
|
|
276
|
+
const { onKeydown: onChartKeydown } = useChartRoving(svgRef);
|
|
272
277
|
const PADDING = { top: 20, right: 100, bottom: 20, left: 100 };
|
|
273
278
|
const DEFAULT_PALETTE = [
|
|
274
279
|
"primary",
|