@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.mjs
CHANGED
|
@@ -45,7 +45,8 @@ function RadarChartCore({
|
|
|
45
45
|
labelOffset = 20,
|
|
46
46
|
tightFit = false,
|
|
47
47
|
maxLabelLines = 2,
|
|
48
|
-
showLabels = true
|
|
48
|
+
showLabels = true,
|
|
49
|
+
dotRadius = 5
|
|
49
50
|
}) {
|
|
50
51
|
const { isDark } = useTheme();
|
|
51
52
|
const radius = size / 2 - 40;
|
|
@@ -276,9 +277,9 @@ function RadarChartCore({
|
|
|
276
277
|
key: `user-dot-${i}`,
|
|
277
278
|
cx,
|
|
278
279
|
cy,
|
|
279
|
-
r: matches ? 8 :
|
|
280
|
+
r: matches ? dotRadius * (8 / 7) : dotRadius,
|
|
280
281
|
fill: matches ? "#fed12e" : "#7C6B9E",
|
|
281
|
-
stroke: "#
|
|
282
|
+
stroke: matches ? "#fed12e" : "#7C6B9E",
|
|
282
283
|
strokeWidth: 3
|
|
283
284
|
}
|
|
284
285
|
);
|
|
@@ -318,9 +319,9 @@ function RadarChartCore({
|
|
|
318
319
|
key: `compare-dot-${i}`,
|
|
319
320
|
cx,
|
|
320
321
|
cy,
|
|
321
|
-
r: matches ? 8 :
|
|
322
|
+
r: matches ? dotRadius * (8 / 7) : dotRadius,
|
|
322
323
|
fill: matches ? "#fed12e" : "#5A9A6E",
|
|
323
|
-
stroke: "#
|
|
324
|
+
stroke: matches ? "#fed12e" : "#5A9A6E",
|
|
324
325
|
strokeWidth: 3
|
|
325
326
|
}
|
|
326
327
|
);
|