@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 +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/mount.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendata-ai/openchart-vanilla",
|
|
3
|
-
"version": "6.25.
|
|
3
|
+
"version": "6.25.4",
|
|
4
4
|
"description": "Vanilla JS renderer for openchart: SVG charts, HTML tables, force-directed graphs",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Riley Hilliard",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@floating-ui/dom": "^1.7.6",
|
|
53
|
-
"@opendata-ai/openchart-core": "6.25.
|
|
54
|
-
"@opendata-ai/openchart-engine": "6.25.
|
|
53
|
+
"@opendata-ai/openchart-core": "6.25.4",
|
|
54
|
+
"@opendata-ai/openchart-engine": "6.25.4",
|
|
55
55
|
"d3-force": "^3.0.0",
|
|
56
56
|
"d3-quadtree": "^3.0.1"
|
|
57
57
|
},
|
package/src/mount.ts
CHANGED
|
@@ -1181,8 +1181,9 @@ function wireSeriesLabelDrag(
|
|
|
1181
1181
|
const labels = svg.querySelectorAll('.oc-mark-label');
|
|
1182
1182
|
const cleanups: Array<() => void> = [];
|
|
1183
1183
|
|
|
1184
|
-
// Read existing label offsets from the spec
|
|
1185
|
-
const
|
|
1184
|
+
// Read existing label offsets from the spec (skip boolean shorthand)
|
|
1185
|
+
const rawLabels = 'labels' in spec ? spec.labels : undefined;
|
|
1186
|
+
const labelsConfig = typeof rawLabels === 'object' ? rawLabels : undefined;
|
|
1186
1187
|
|
|
1187
1188
|
for (const label of labels) {
|
|
1188
1189
|
const labelEl = label as SVGTextElement;
|