From be8854811c180209c20b506cf470b8c215d3e31f Mon Sep 17 00:00:00 2001 From: Joshua Kiwiet-Pantaleoni Date: Wed, 26 Jun 2024 09:17:40 -0700 Subject: [PATCH] fix: add parenthesis to arrow function inline return value --- src/components/Charts/PieChartFigure.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Charts/PieChartFigure.vue b/src/components/Charts/PieChartFigure.vue index 9d7166f8bd..5c4d81754e 100644 --- a/src/components/Charts/PieChartFigure.vue +++ b/src/components/Charts/PieChartFigure.vue @@ -5,7 +5,6 @@ >
-
@@ -92,7 +91,7 @@ import numeral from 'numeral'; import Alea from '@/util/experiment/Alea'; import KvLoadingPlaceholder from '~/@kiva/kv-components/vue/KvLoadingPlaceholder'; -// convenience function to get point on circumfrence of a given circle (from https://codepen.io/grieve/pen/xwGMJp) +// convenience function to get point on circumference of a given circle (from https://codepen.io/grieve/pen/xwGMJp) function circumPointFromAngle(cx, cy, r, a) { return [ cx + r * Math.cos(a), @@ -109,7 +108,7 @@ export default { }, values: { type: Array, - default: () => [], + default: () => ([]), }, }, components: { @@ -152,8 +151,6 @@ export default { const largeArc = value.percent > 0.5 ? 1 : 0; // Draw just the outer arc of the slice const path = `M ${startX} ${startY} A ${r} ${r} 0 ${largeArc} 1 ${endX} ${endY}`; - // Draw the entire slice - // const path = `M ${cX} ${cY} L ${startX} ${startY} A ${r} ${r} 0 ${largeArc} 1 ${endX} ${endY} Z`; slices.push({ ...value, path,