Skip to content

Commit 33b4acf

Browse files
[autofix.ci] apply automated fixes
1 parent 5da4549 commit 33b4acf

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

app/components/Compare/FacetBarChart.vue

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -215,32 +215,32 @@ const config = computed<VueUiHorizontalBarConfig>(() => {
215215
backdropFilter: false,
216216
backgroundColor: 'transparent',
217217
customFormat: ({ datapoint }) => {
218-
const name = datapoint?.name?.replace(/\n/g, '<br>') ?? ''
219-
const safeSeriesIndex = (datapoint?.absoluteIndex as number) ?? 0
220-
const patternId = `tooltip-pattern-${safeSeriesIndex}`
221-
const usePattern = safeSeriesIndex !== 0
218+
const name = datapoint?.name?.replace(/\n/g, '<br>') ?? ''
219+
const safeSeriesIndex = (datapoint?.absoluteIndex as number) ?? 0
220+
const patternId = `tooltip-pattern-${safeSeriesIndex}`
221+
const usePattern = safeSeriesIndex !== 0
222222
223-
const patternMarkup = usePattern
224-
? createChartPatternSlotMarkup({
225-
id: patternId,
226-
seed: safeSeriesIndex,
227-
foregroundColor: colors.value.bg!,
228-
fallbackColor: 'transparent',
229-
maxSize: 24,
230-
minSize: 16,
231-
})
232-
: ''
223+
const patternMarkup = usePattern
224+
? createChartPatternSlotMarkup({
225+
id: patternId,
226+
seed: safeSeriesIndex,
227+
foregroundColor: colors.value.bg!,
228+
fallbackColor: 'transparent',
229+
maxSize: 24,
230+
minSize: 16,
231+
})
232+
: ''
233233
234-
const markerMarkup = usePattern
235-
? `
234+
const markerMarkup = usePattern
235+
? `
236236
<rect x="0" y="0" width="20" height="20" rx="3" fill="${datapoint?.color ?? 'transparent'}" />
237237
<rect x="0" y="0" width="20" height="20" rx="3" fill="url(#${patternId})" />
238238
`
239-
: `
239+
: `
240240
<rect x="0" y="0" width="20" height="20" rx="3" fill="${datapoint?.color ?? 'transparent'}" />
241241
`
242242
243-
return `
243+
return `
244244
<div class="font-mono p-3 border border-border rounded-md bg-[var(--bg)]/10 backdrop-blur-md">
245245
<div class="grid grid-cols-[12px_minmax(0,1fr)_max-content] items-center gap-x-3">
246246
<div class="w-3 h-3">
@@ -260,7 +260,7 @@ const config = computed<VueUiHorizontalBarConfig>(() => {
260260
</div>
261261
</div>
262262
`
263-
}
263+
},
264264
},
265265
},
266266
},

app/utils/charts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,4 +1094,4 @@ export function createChartPatternSlotMarkup({
10941094
${pattern.contentMarkup}
10951095
</pattern>
10961096
`
1097-
}
1097+
}

test/unit/app/utils/charts.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,4 +1650,4 @@ describe('createChartPatternSlotMarkup', () => {
16501650

16511651
expect(first).not.toBe(second)
16521652
})
1653-
})
1653+
})

0 commit comments

Comments
 (0)