@opendata-ai/openchart-engine 7.9.1 → 7.9.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 CHANGED
@@ -10851,7 +10851,7 @@ function thinBandTicksIfNeeded(ticks2, angleDeg, fontSize, fontWeight, measureTe
10851
10851
  keep[lastIdx] = true;
10852
10852
  for (let i = lastIdx - 1; i > 0; i--) {
10853
10853
  if (!keep[i]) continue;
10854
- if (spans[i].right + minGap > spans[lastIdx].left) {
10854
+ if (spans[i].right > spans[lastIdx].left) {
10855
10855
  keep[i] = false;
10856
10856
  continue;
10857
10857
  }
@@ -11076,7 +11076,12 @@ function computeAxes(scales, chartArea, strategy, theme, measureText, dataContex
11076
11076
  );
11077
11077
  return Math.max(max4, w);
11078
11078
  }, 0);
11079
- const titleOff = axisTitleOffset(maxTickLabelWidth, result.y.labelStyle.fontSize, totalWidth);
11079
+ const titleOff = axisTitleOffset(
11080
+ maxTickLabelWidth,
11081
+ result.y.labelStyle.fontSize,
11082
+ totalWidth,
11083
+ result.y.tickPosition === "inline"
11084
+ );
11080
11085
  result.y.titlePosition = {
11081
11086
  x: chartArea.x - titleOff,
11082
11087
  y: chartArea.y + chartArea.height / 2,