@opendata-ai/openchart-vanilla 6.25.2 → 6.25.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 CHANGED
@@ -5319,7 +5319,8 @@ function wireLegendDrag(svg, spec, onEdit, setDragging) {
5319
5319
  function wireSeriesLabelDrag(svg, spec, onEdit, setDragging) {
5320
5320
  const labels = svg.querySelectorAll(".oc-mark-label");
5321
5321
  const cleanups = [];
5322
- const labelsConfig = "labels" in spec ? spec.labels : void 0;
5322
+ const rawLabels = "labels" in spec ? spec.labels : void 0;
5323
+ const labelsConfig = typeof rawLabels === "object" ? rawLabels : void 0;
5323
5324
  for (const label of labels) {
5324
5325
  const labelEl = label;
5325
5326
  const series = labelEl.getAttribute("data-series") ?? labelEl.closest("[data-series]")?.getAttribute("data-series");