Skip to content

Commit 1228981

Browse files
authored
Fix couple of small issues (#7268)
1 parent 14021d3 commit 1228981

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const babel = require('rollup-plugin-babel');
55
const cleanup = require('rollup-plugin-cleanup');
6-
const polyfill = require('rollup-plugin-polyfill')
6+
const polyfill = require('rollup-plugin-polyfill');
77
const json = require('@rollup/plugin-json');
88
const resolve = require('@rollup/plugin-node-resolve');
99
const terser = require('rollup-plugin-terser').terser;

src/elements/element.rectangle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default class Rectangle extends Element {
176176
}
177177

178178
getCenterPoint(useFinalPosition) {
179-
const {x, y, base, horizontal} = this.getProps(['x', 'y', 'base', 'horizontal', useFinalPosition]);
179+
const {x, y, base, horizontal} = this.getProps(['x', 'y', 'base', 'horizontal'], useFinalPosition);
180180
return {
181181
x: horizontal ? (x + base) / 2 : x,
182182
y: horizontal ? y : (y + base) / 2

src/plugins/plugin.tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defaults.set('tooltips', {
4545
easing: 'easeOutQuart',
4646
numbers: {
4747
type: 'number',
48-
properties: ['x', 'y', 'width', 'height'],
48+
properties: ['x', 'y', 'width', 'height', 'caretX', 'caretY'],
4949
},
5050
opacity: {
5151
easing: 'linear',

0 commit comments

Comments
 (0)