File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type {
22 AltCopyArgs ,
33 VueUiHorizontalBarConfig ,
44 VueUiHorizontalBarDatapoint ,
5+ VueUiQuadrantConfig ,
56 VueUiQuadrantDatapoint ,
67 VueUiXyConfig ,
78 VueUiXyDatasetBarItem ,
@@ -637,10 +638,18 @@ export async function copyAltTextForCompareFacetBarChart({
637638 await config . copy ( altText )
638639}
639640
641+ type CompareQuadrantChartConfig = VueUiQuadrantConfig & {
642+ copy : ( text : string ) => Promise < void >
643+ $t : TrendTranslateFunction
644+ }
645+
646+ // Used for FacetQuadrantChart.vue
640647export function createAltTextForCompareQuadrantChart ( {
641648 dataset,
642649 config,
643- } : AltCopyArgs < VueUiQuadrantDatapoint [ ] , any > ) {
650+ } : AltCopyArgs < VueUiQuadrantDatapoint [ ] , CompareQuadrantChartConfig > ) {
651+ if ( ! dataset ) return ''
652+
644653 const packages = {
645654 topRight : dataset . filter ( d => d . quadrant === 'TOP_RIGHT' ) ,
646655 topLeft : dataset . filter ( d => d . quadrant === 'TOP_LEFT' ) ,
You can’t perform that action at this time.
0 commit comments