mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-11 18:56:49 +01:00
Babel loose (#7452)
* Use loose mode for babel * Add note about loose mode in performance docs
This commit is contained in:
committed by
Evert Timberg
parent
937845956c
commit
35520dfca8
@@ -122,9 +122,9 @@ function updateConfig(chart) {
|
||||
chart._animationsDisabled = isAnimationDisabled(newOptions);
|
||||
}
|
||||
|
||||
const KNOWN_POSITIONS = new Set(['top', 'bottom', 'left', 'right', 'chartArea']);
|
||||
const KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea'];
|
||||
function positionIsHorizontal(position, axis) {
|
||||
return position === 'top' || position === 'bottom' || (!KNOWN_POSITIONS.has(position) && axis === 'x');
|
||||
return position === 'top' || position === 'bottom' || (KNOWN_POSITIONS.indexOf(position) === -1 && axis === 'x');
|
||||
}
|
||||
|
||||
function compare2Level(l1, l2) {
|
||||
|
||||
Reference in New Issue
Block a user