@opendata-ai/openchart-vanilla 2.13.0 → 2.13.1
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 +1 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/svg-renderer.ts +4 -0
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendata-ai/openchart-vanilla",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.1",
|
|
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": "2.13.
|
|
54
|
-
"@opendata-ai/openchart-engine": "2.13.
|
|
53
|
+
"@opendata-ai/openchart-core": "2.13.1",
|
|
54
|
+
"@opendata-ai/openchart-engine": "2.13.1",
|
|
55
55
|
"d3-force": "^3.0.0",
|
|
56
56
|
"d3-quadtree": "^3.0.1"
|
|
57
57
|
},
|
package/src/svg-renderer.ts
CHANGED
|
@@ -1064,6 +1064,10 @@ export function renderChartSVG(layout: ChartLayout, container: HTMLElement): SVG
|
|
|
1064
1064
|
viewBox: `0 0 ${width} ${height}`,
|
|
1065
1065
|
xmlns: SVG_NS,
|
|
1066
1066
|
});
|
|
1067
|
+
// Set explicit pixel height via inline style. iOS Safari misresolves CSS
|
|
1068
|
+
// height:100% when the ancestor chain uses minHeight instead of height,
|
|
1069
|
+
// causing the top of the chart (title) to clip on real mobile devices.
|
|
1070
|
+
svg.style.height = `${height}px`;
|
|
1067
1071
|
svg.setAttribute('role', layout.a11y.role);
|
|
1068
1072
|
svg.setAttribute('aria-label', layout.a11y.altText);
|
|
1069
1073
|
svg.setAttribute('class', 'viz-chart');
|