@empoweredvote/ev-ui 0.9.2 → 0.9.3

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/dist/index.js CHANGED
@@ -138,7 +138,8 @@ function RadarChartCore({
138
138
  labelOffset = 20,
139
139
  tightFit = false,
140
140
  maxLabelLines = 2,
141
- showLabels = true
141
+ showLabels = true,
142
+ dotRadius = 5
142
143
  }) {
143
144
  const { isDark } = useTheme();
144
145
  const radius = size / 2 - 40;
@@ -369,7 +370,7 @@ function RadarChartCore({
369
370
  key: `user-dot-${i}`,
370
371
  cx,
371
372
  cy,
372
- r: matches ? 8 : 7,
373
+ r: matches ? dotRadius * (8 / 7) : dotRadius,
373
374
  fill: matches ? "#fed12e" : "#7C6B9E",
374
375
  stroke: "#FFFFFF",
375
376
  strokeWidth: 3
@@ -411,7 +412,7 @@ function RadarChartCore({
411
412
  key: `compare-dot-${i}`,
412
413
  cx,
413
414
  cy,
414
- r: matches ? 8 : 7,
415
+ r: matches ? dotRadius * (8 / 7) : dotRadius,
415
416
  fill: matches ? "#fed12e" : "#5A9A6E",
416
417
  stroke: "#FFFFFF",
417
418
  strokeWidth: 3