diff --git a/rollup.config.js b/rollup.config.js index c6a77531048..a69759667a4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -30,7 +30,7 @@ const plugins = (minify) => module: { type: 'es6' }, - sourceMaps: true + sourceMaps: false }), minify ? terser({ @@ -54,7 +54,7 @@ export default [ file: 'dist/chart.umd.js', format: 'umd', indent: false, - sourcemap: true, + sourcemap: false, }, }, @@ -75,7 +75,7 @@ export default [ banner, format: 'esm', indent: false, - sourcemap: true, + sourcemap: false, }, }, @@ -96,7 +96,7 @@ export default [ banner, format: 'commonjs', indent: false, - sourcemap: true, + sourcemap: false, }, } ]; diff --git a/src/helpers/helpers.dom.ts b/src/helpers/helpers.dom.ts index c83712983ac..ec3b42c9fa6 100644 --- a/src/helpers/helpers.dom.ts +++ b/src/helpers/helpers.dom.ts @@ -200,7 +200,7 @@ export function getMaximumSize( const maintainHeight = bbWidth !== undefined || bbHeight !== undefined; if (maintainHeight && aspectRatio && containerSize.height && height > containerSize.height) { - height = containerSize.height; + height = round1(containerSize.height); width = round1(Math.floor(height * aspectRatio)); }