@empoweredvote/ev-ui 0.8.4 → 0.8.6

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
@@ -109,7 +109,9 @@ function RadarChartCore({
109
109
  tightFit = false,
110
110
  activeSpoke = null,
111
111
  writeIns = {},
112
- darkMode = false
112
+ darkMode = false,
113
+ lineColor,
114
+ ringColor
113
115
  }) {
114
116
  var _a;
115
117
  const radius = size / 2 - 40;
@@ -221,7 +223,7 @@ function RadarChartCore({
221
223
  ring.push(`${centerX + radius * scale * Math.sin(angle)},${centerY - radius * scale * Math.cos(angle)}`);
222
224
  }
223
225
  guidePolygons.push(
224
- /* @__PURE__ */ import_react.default.createElement("polygon", { key: level, points: ring.join(" "), fill: "none", stroke: darkMode ? "#555" : "#ccc" })
226
+ /* @__PURE__ */ import_react.default.createElement("polygon", { key: level, points: ring.join(" "), fill: "none", stroke: ringColor != null ? ringColor : darkMode ? "#555" : "#ccc" })
225
227
  );
226
228
  }
227
229
  const getStanceText = (shortTitle, value) => {
@@ -258,7 +260,7 @@ function RadarChartCore({
258
260
  y1: centerY,
259
261
  x2: endX,
260
262
  y2: endY,
261
- stroke: isUnanswered ? "#9ca3af" : darkMode ? "#bbb" : "#888",
263
+ stroke: isUnanswered ? "#9ca3af" : lineColor != null ? lineColor : darkMode ? "#bbb" : "#888",
262
264
  strokeDasharray: isUnanswered ? "4 3" : void 0,
263
265
  opacity: isUnanswered ? 0.6 : 1
264
266
  }