@empoweredvote/ev-ui 0.9.2 → 0.9.4
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 +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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,9 +370,9 @@ function RadarChartCore({
|
|
|
369
370
|
key: `user-dot-${i}`,
|
|
370
371
|
cx,
|
|
371
372
|
cy,
|
|
372
|
-
r: matches ? 8 :
|
|
373
|
+
r: matches ? dotRadius * (8 / 7) : dotRadius,
|
|
373
374
|
fill: matches ? "#fed12e" : "#7C6B9E",
|
|
374
|
-
stroke: "#
|
|
375
|
+
stroke: matches ? "#fed12e" : "#7C6B9E",
|
|
375
376
|
strokeWidth: 3
|
|
376
377
|
}
|
|
377
378
|
);
|
|
@@ -411,9 +412,9 @@ function RadarChartCore({
|
|
|
411
412
|
key: `compare-dot-${i}`,
|
|
412
413
|
cx,
|
|
413
414
|
cy,
|
|
414
|
-
r: matches ? 8 :
|
|
415
|
+
r: matches ? dotRadius * (8 / 7) : dotRadius,
|
|
415
416
|
fill: matches ? "#fed12e" : "#5A9A6E",
|
|
416
|
-
stroke: "#
|
|
417
|
+
stroke: matches ? "#fed12e" : "#5A9A6E",
|
|
417
418
|
strokeWidth: 3
|
|
418
419
|
}
|
|
419
420
|
);
|