@opendata-ai/openchart-core 6.19.1 → 6.19.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
@@ -1140,7 +1140,8 @@ function computeChrome(chrome, theme, width, measureText, chromeMode = "full", p
1140
1140
  }
1141
1141
  const pad2 = padding ?? theme.spacing.padding;
1142
1142
  const chromeGap = theme.spacing.chromeGap;
1143
- const maxWidth = width - pad2 * 2;
1143
+ const WRAP_SAFETY_BUFFER = 5;
1144
+ const maxWidth = width - pad2 * 2 - WRAP_SAFETY_BUFFER;
1144
1145
  const fontFamily = theme.fonts.family;
1145
1146
  let topY = pad2;
1146
1147
  const topElements = {};