Skip to content

Commit

Permalink
fix: HighlightEventData
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 20, 2020
1 parent 7c1f4af commit aa046be
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/charting/charts/Chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { ChartAnimator, EasingFunction } from '../animation/ChartAnimator';
import { ViewPortJob } from '../jobs/ViewPortJob';
import { ChartTouchListener } from '../listener/ChartTouchListener';
import { layout } from '@nativescript/core/utils/utils';
import { EventData } from '@nativescript/core';

const LOG_TAG = 'NSChart';

Expand All @@ -29,6 +30,10 @@ const LOG_TAG = 'NSChart';
// }
// }

export interface HighlightEventData extends EventData {
entry?: Entry;
highlight?: Highlight;
}
/**
* Baseclass of all Chart-Views.
*
Expand Down Expand Up @@ -608,7 +613,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
if (high == null) {
this.mIndicesToHighlight = null;
} else {
if (this.mLogEnabled) console.log(LOG_TAG, 'Highlighted', high);
// if (this.mLogEnabled) console.log(LOG_TAG, 'Highlighted', high);

e = this.mData.getEntryForHighlight(high);
if (e == null) {
Expand Down Expand Up @@ -1058,6 +1063,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
* @param enabled
*/
public setTouchEnabled(enabled) {
// actually not used...
this.mTouchEnabled = enabled;
}

Expand Down

0 comments on commit aa046be

Please sign in to comment.