@empoweredvote/ev-ui 0.8.6 → 0.8.7
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 +40 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -341,9 +341,7 @@ function RadarChartCore({
|
|
|
341
341
|
fill: matches ? "#fed12e" : "#7C6B9E",
|
|
342
342
|
stroke: "#FFFFFF",
|
|
343
343
|
strokeWidth: 3,
|
|
344
|
-
style: {
|
|
345
|
-
onMouseEnter: () => setTooltip({ x: cx, y: cy, text: getStanceText(shortTitle, userVal) }),
|
|
346
|
-
onMouseLeave: () => setTooltip(null)
|
|
344
|
+
style: { pointerEvents: "none" }
|
|
347
345
|
}
|
|
348
346
|
);
|
|
349
347
|
}),
|
|
@@ -378,9 +376,7 @@ function RadarChartCore({
|
|
|
378
376
|
fill: matches ? "#fed12e" : "#5A9A6E",
|
|
379
377
|
stroke: "#FFFFFF",
|
|
380
378
|
strokeWidth: 3,
|
|
381
|
-
style: {
|
|
382
|
-
onMouseEnter: () => setTooltip({ x: cx, y: cy, text: getStanceText(shortTitle, compareVal) }),
|
|
383
|
-
onMouseLeave: () => setTooltip(null)
|
|
379
|
+
style: { pointerEvents: "none" }
|
|
384
380
|
}
|
|
385
381
|
);
|
|
386
382
|
}),
|
|
@@ -404,6 +400,44 @@ function RadarChartCore({
|
|
|
404
400
|
}
|
|
405
401
|
);
|
|
406
402
|
}),
|
|
403
|
+
pointsArr.map(([cx, cy], i) => {
|
|
404
|
+
const shortTitle = spokes[i][0];
|
|
405
|
+
const userVal = spokes[i][1];
|
|
406
|
+
if (!userVal || Number(userVal) === 0) return null;
|
|
407
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
408
|
+
"circle",
|
|
409
|
+
{
|
|
410
|
+
key: `user-sensor-${i}`,
|
|
411
|
+
cx,
|
|
412
|
+
cy,
|
|
413
|
+
r: 14,
|
|
414
|
+
fill: "transparent",
|
|
415
|
+
stroke: "none",
|
|
416
|
+
style: { cursor: "default" },
|
|
417
|
+
onMouseEnter: () => setTooltip({ x: cx, y: cy, text: getStanceText(shortTitle, userVal) }),
|
|
418
|
+
onMouseLeave: () => setTooltip(null)
|
|
419
|
+
}
|
|
420
|
+
);
|
|
421
|
+
}),
|
|
422
|
+
hasCompareData && compareCoords && compareCoords.map(([cx, cy], i) => {
|
|
423
|
+
const shortTitle = spokes[i][0];
|
|
424
|
+
const compareVal = compareData[shortTitle];
|
|
425
|
+
if (!compareVal || Number(compareVal) === 0) return null;
|
|
426
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
427
|
+
"circle",
|
|
428
|
+
{
|
|
429
|
+
key: `compare-sensor-${i}`,
|
|
430
|
+
cx,
|
|
431
|
+
cy,
|
|
432
|
+
r: 14,
|
|
433
|
+
fill: "transparent",
|
|
434
|
+
stroke: "none",
|
|
435
|
+
style: { cursor: "default" },
|
|
436
|
+
onMouseEnter: () => setTooltip({ x: cx, y: cy, text: getStanceText(shortTitle, compareVal) }),
|
|
437
|
+
onMouseLeave: () => setTooltip(null)
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
}),
|
|
407
441
|
tooltip && (() => {
|
|
408
442
|
const tipW = 190;
|
|
409
443
|
const tipH = 70;
|