Skip to content

Commit

Permalink
Improved composition.
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin19 authored and TorsteinHonsi committed Jul 9, 2021
1 parent 9016006 commit 24fb413
Show file tree
Hide file tree
Showing 3 changed files with 253 additions and 232 deletions.
6 changes: 3 additions & 3 deletions samples/unit-tests/axis/ordinal/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ QUnit.test('Panning ordinal axis on mobile devices- lin2val calculation, #13238'
QUnit.test('findIndexOf', assert => {
const findIndexOf =
// eslint-disable-next-line no-underscore-dangle
Highcharts._modules['Core/Axis/OrdinalAxis.js'].Composition.findIndexOf;
Highcharts._modules['Core/Axis/OrdinalAxis.js'].Additions.findIndexOf;
const array = [0, 1, 3, 5, 10, 12, 13, 15];
assert.equal(findIndexOf(array, 3), 2);
assert.equal(findIndexOf(array, 0), 0);
Expand Down Expand Up @@ -312,10 +312,10 @@ QUnit.test('lin2val- unit test for values outside the plotArea.', function (asse

axis.ordinal.getIndexOfPoint =
// eslint-disable-next-line no-underscore-dangle
Highcharts._modules['Core/Axis/OrdinalAxis.js'].Composition.prototype.getIndexOfPoint;
Highcharts._modules['Core/Axis/OrdinalAxis.js'].Additions.prototype.getIndexOfPoint;
axis.ordinal.findIndexOf =
// eslint-disable-next-line no-underscore-dangle
Highcharts._modules['Core/Axis/OrdinalAxis.js'].Composition.prototype.findIndexOf;
Highcharts._modules['Core/Axis/OrdinalAxis.js'].Additions.prototype.findIndexOf;
function lin2val(val) {
return Highcharts.Axis.prototype.lin2val.call(axis, val);
}
Expand Down
Loading

0 comments on commit 24fb413

Please sign in to comment.