@dhis2/analytics 24.10.0 → 24.10.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [24.10.1](https://github.com/dhis2/analytics/compare/v24.10.0...v24.10.1) (2023-04-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * sv size when downloading is a small square (DHIS2-15178) ([245d799](https://github.com/dhis2/analytics/commit/245d799d9513e0407e4a6b6ba24c3da15754618d))
7
+
1
8
  # [24.10.0](https://github.com/dhis2/analytics/compare/v24.9.3...v24.10.0) (2023-04-19)
2
9
 
3
10
 
@@ -151,8 +151,8 @@ const generateDVItem = (config, _ref3) => {
151
151
  const svg = document.createElementNS(svgNS, 'svg');
152
152
  svg.setAttribute('xmlns', svgNS);
153
153
  svg.setAttribute('viewBox', "0 0 ".concat(width, " ").concat(height));
154
- svg.setAttribute('width', '100%');
155
- svg.setAttribute('height', '100%');
154
+ svg.setAttribute('width', width);
155
+ svg.setAttribute('height', height);
156
156
  svg.setAttribute('data-test', 'visualization-container');
157
157
 
158
158
  if (backgroundColor) {
@@ -141,8 +141,8 @@ const generateDVItem = (config, _ref3) => {
141
141
  const svg = document.createElementNS(svgNS, 'svg');
142
142
  svg.setAttribute('xmlns', svgNS);
143
143
  svg.setAttribute('viewBox', "0 0 ".concat(width, " ").concat(height));
144
- svg.setAttribute('width', '100%');
145
- svg.setAttribute('height', '100%');
144
+ svg.setAttribute('width', width);
145
+ svg.setAttribute('height', height);
146
146
  svg.setAttribute('data-test', 'visualization-container');
147
147
 
148
148
  if (backgroundColor) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "24.10.0",
3
+ "version": "24.10.1",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {