@opendata-ai/openchart-engine 6.28.2 → 6.28.5

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
@@ -11956,6 +11956,7 @@ function compileTileMap(spec, options) {
11956
11956
  keyboardNavigable: tiles.length > 0
11957
11957
  };
11958
11958
  const resolvedAnimation = resolveAnimation(tilemapSpec.animation);
11959
+ const contentHeight = tileGridOffsetY + tilePositions.gridHeight + legendGap2 + legendTotalHeight + chrome.bottomHeight + padding;
11959
11960
  return {
11960
11961
  area: fullArea,
11961
11962
  chrome,
@@ -11965,7 +11966,7 @@ function compileTileMap(spec, options) {
11965
11966
  a11y,
11966
11967
  theme,
11967
11968
  width: options.width,
11968
- height: options.height,
11969
+ height: contentHeight,
11969
11970
  animation: resolvedAnimation,
11970
11971
  watermark,
11971
11972
  measureText: options.measureText ?? ((text, fontSize) => ({ width: estimateTextWidth15(text, fontSize), height: fontSize }))