From 1228981e4f62d9a9d3f8cf3b90ef9138ebba7983 Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Tue, 14 Apr 2020 02:33:15 +0300 Subject: [PATCH] Fix couple of small issues (#7268) --- rollup.config.js | 2 +- src/elements/element.rectangle.js | 2 +- src/plugins/plugin.tooltip.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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', -- 2.47.2