From: Jukka Kurkela Date: Mon, 13 Apr 2020 23:33:15 +0000 (+0300) Subject: Fix couple of small issues (#7268) X-Git-Tag: v3.0.0-beta.2~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1228981e4f62d9a9d3f8cf3b90ef9138ebba7983;p=thirdparty%2FChart.js.git Fix couple of small issues (#7268) --- diff --git a/rollup.config.js b/rollup.config.js index a9d49a223..40b949bd1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,7 +3,7 @@ const babel = require('rollup-plugin-babel'); const cleanup = require('rollup-plugin-cleanup'); -const polyfill = require('rollup-plugin-polyfill') +const polyfill = require('rollup-plugin-polyfill'); const json = require('@rollup/plugin-json'); const resolve = require('@rollup/plugin-node-resolve'); const terser = require('rollup-plugin-terser').terser; diff --git a/src/elements/element.rectangle.js b/src/elements/element.rectangle.js index e58a02a05..55878f782 100644 --- a/src/elements/element.rectangle.js +++ b/src/elements/element.rectangle.js @@ -176,7 +176,7 @@ export default class Rectangle extends Element { } getCenterPoint(useFinalPosition) { - const {x, y, base, horizontal} = this.getProps(['x', 'y', 'base', 'horizontal', useFinalPosition]); + const {x, y, base, horizontal} = this.getProps(['x', 'y', 'base', 'horizontal'], useFinalPosition); return { x: horizontal ? (x + base) / 2 : x, y: horizontal ? y : (y + base) / 2 diff --git a/src/plugins/plugin.tooltip.js b/src/plugins/plugin.tooltip.js index 64725340b..dd51a7f42 100644 --- a/src/plugins/plugin.tooltip.js +++ b/src/plugins/plugin.tooltip.js @@ -45,7 +45,7 @@ defaults.set('tooltips', { easing: 'easeOutQuart', numbers: { type: 'number', - properties: ['x', 'y', 'width', 'height'], + properties: ['x', 'y', 'width', 'height', 'caretX', 'caretY'], }, opacity: { easing: 'linear',