Fix acpl chart select (why does this work?)
parent
a57af5ab31
commit
8e3dbc048e
|
@ -81,7 +81,6 @@ lichess.advantageChart = function (data, trans, el) {
|
|||
threshold: 0,
|
||||
lineWidth: 1,
|
||||
color: '#d85000',
|
||||
allowPointSelect: true,
|
||||
cursor: 'pointer',
|
||||
states: {
|
||||
hover: {
|
||||
|
|
|
@ -21,11 +21,7 @@ export default function (element: HTMLElement, ctrl: AnalyseCtrl) {
|
|||
$menu = $('.analyse__underboard__menu'),
|
||||
$timeChart = $('#movetimes-chart'),
|
||||
inputFen = document.querySelector('.analyse__underboard__fen') as HTMLInputElement,
|
||||
unselect = (chart: Highcharts.ChartObject) => {
|
||||
chart.getSelectedPoints().forEach(function (point) {
|
||||
point.select(false);
|
||||
});
|
||||
};
|
||||
unselect = (chart: Highcharts.ChartObject) => chart.getSelectedPoints().forEach(point => point.select(false));
|
||||
let lastFen: string;
|
||||
|
||||
if (!lichess.AnalyseNVUI) {
|
||||
|
|
Loading…
Reference in New Issue