From 56f8ea2e1a87d682588b5d6cc34fa03826e3e949 Mon Sep 17 00:00:00 2001 From: graphieros Date: Sun, 17 May 2026 10:16:08 +0200 Subject: [PATCH] refactor: account chart cleanup --- .../Chart/AccountEventsTimeline.vue | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/app/components/Chart/AccountEventsTimeline.vue b/app/components/Chart/AccountEventsTimeline.vue index 75fecbbd..9a1d7bcf 100644 --- a/app/components/Chart/AccountEventsTimeline.vue +++ b/app/components/Chart/AccountEventsTimeline.vue @@ -414,6 +414,11 @@ const tooltipTimeLabels = computed(() => { function getTooltipTimeLabel(index: number): string { return tooltipTimeLabels.value[index] ?? ""; } + +function getZapIconPath({ x, y }: { x: number; y: number }) { + // ⚡ with relative coordinates from initial position + return `M ${x} ${y} l 12 -17 l -6 0 l 3 -13 l -11 17 l 6 0 l -4 13`; +} - - -