]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix couple of small issues (#7268)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Mon, 13 Apr 2020 23:33:15 +0000 (02:33 +0300)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2020 23:33:15 +0000 (19:33 -0400)
rollup.config.js
src/elements/element.rectangle.js
src/plugins/plugin.tooltip.js

index a9d49a223c456dea883f13c3a49809f3b99a7b87..40b949bd1a165c404cb22900697ab54825113848 100644 (file)
@@ -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;
index e58a02a054cd82622014d6c64e52f8d07af8da4d..55878f782e92bc980cc141a108deb05c7f3ba046 100644 (file)
@@ -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
index 64725340b61bb9135c8626c7b07c7c2819a94f25..dd51a7f4299e69c200e97a67e64d952d73195e66 100644 (file)
@@ -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',