@opendata-ai/openchart-core 8.0.0-rc.1 → 8.0.0-rc.2
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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/src/responsive/metrics.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -1342,7 +1342,9 @@ function computeXAxisExtentFromLabels(input) {
|
|
|
1342
1342
|
);
|
|
1343
1343
|
return input.hasTitle ? rotatedHeight + X_AXIS_TITLE_BAND_ROTATED : rotatedHeight;
|
|
1344
1344
|
}
|
|
1345
|
-
|
|
1345
|
+
const tickExtent = 4 + input.tickFontSize + Math.max(11, Math.ceil(input.tickFontSize * 0.7));
|
|
1346
|
+
const flatHeight = Math.max(baseHeight, tickExtent);
|
|
1347
|
+
return input.hasTitle ? flatHeight + X_AXIS_TITLE_BAND : flatHeight;
|
|
1346
1348
|
}
|
|
1347
1349
|
function maxRotatedLabelWidth(tickAngle, tickFontSize) {
|
|
1348
1350
|
const angleRad = Math.abs(tickAngle) * (Math.PI / 180);
|