@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.mjs CHANGED
@@ -250,9 +250,7 @@ function RadarChartCore({
250
250
  fill: matches ? "#fed12e" : "#7C6B9E",
251
251
  stroke: "#FFFFFF",
252
252
  strokeWidth: 3,
253
- style: { cursor: "default" },
254
- onMouseEnter: () => setTooltip({ x: cx, y: cy, text: getStanceText(shortTitle, userVal) }),
255
- onMouseLeave: () => setTooltip(null)
253
+ style: { pointerEvents: "none" }
256
254
  }
257
255
  );
258
256
  }),
@@ -287,9 +285,7 @@ function RadarChartCore({
287
285
  fill: matches ? "#fed12e" : "#5A9A6E",
288
286
  stroke: "#FFFFFF",
289
287
  strokeWidth: 3,
290
- style: { cursor: "default" },
291
- onMouseEnter: () => setTooltip({ x: cx, y: cy, text: getStanceText(shortTitle, compareVal) }),
292
- onMouseLeave: () => setTooltip(null)
288
+ style: { pointerEvents: "none" }
293
289
  }
294
290
  );
295
291
  }),
@@ -313,6 +309,44 @@ function RadarChartCore({
313
309
  }
314
310
  );
315
311
  }),
312
+ pointsArr.map(([cx, cy], i) => {
313
+ const shortTitle = spokes[i][0];
314
+ const userVal = spokes[i][1];
315
+ if (!userVal || Number(userVal) === 0) return null;
316
+ return /* @__PURE__ */ React.createElement(
317
+ "circle",
318
+ {
319
+ key: `user-sensor-${i}`,
320
+ cx,
321
+ cy,
322
+ r: 14,
323
+ fill: "transparent",
324
+ stroke: "none",
325
+ style: { cursor: "default" },
326
+ onMouseEnter: () => setTooltip({ x: cx, y: cy, text: getStanceText(shortTitle, userVal) }),
327
+ onMouseLeave: () => setTooltip(null)
328
+ }
329
+ );
330
+ }),
331
+ hasCompareData && compareCoords && compareCoords.map(([cx, cy], i) => {
332
+ const shortTitle = spokes[i][0];
333
+ const compareVal = compareData[shortTitle];
334
+ if (!compareVal || Number(compareVal) === 0) return null;
335
+ return /* @__PURE__ */ React.createElement(
336
+ "circle",
337
+ {
338
+ key: `compare-sensor-${i}`,
339
+ cx,
340
+ cy,
341
+ r: 14,
342
+ fill: "transparent",
343
+ stroke: "none",
344
+ style: { cursor: "default" },
345
+ onMouseEnter: () => setTooltip({ x: cx, y: cy, text: getStanceText(shortTitle, compareVal) }),
346
+ onMouseLeave: () => setTooltip(null)
347
+ }
348
+ );
349
+ }),
316
350
  tooltip && (() => {
317
351
  const tipW = 190;
318
352
  const tipH = 70;