Skip to content

Commit aa046be

Browse files
committed
fix: HighlightEventData
1 parent 7c1f4af commit aa046be

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/charting/charts/Chart.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { ChartAnimator, EasingFunction } from '../animation/ChartAnimator';
2020
import { ViewPortJob } from '../jobs/ViewPortJob';
2121
import { ChartTouchListener } from '../listener/ChartTouchListener';
2222
import { layout } from '@nativescript/core/utils/utils';
23+
import { EventData } from '@nativescript/core';
2324

2425
const LOG_TAG = 'NSChart';
2526

@@ -29,6 +30,10 @@ const LOG_TAG = 'NSChart';
2930
// }
3031
// }
3132

33+
export interface HighlightEventData extends EventData {
34+
entry?: Entry;
35+
highlight?: Highlight;
36+
}
3237
/**
3338
* Baseclass of all Chart-Views.
3439
*
@@ -608,7 +613,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
608613
if (high == null) {
609614
this.mIndicesToHighlight = null;
610615
} else {
611-
if (this.mLogEnabled) console.log(LOG_TAG, 'Highlighted', high);
616+
// if (this.mLogEnabled) console.log(LOG_TAG, 'Highlighted', high);
612617

613618
e = this.mData.getEntryForHighlight(high);
614619
if (e == null) {
@@ -1058,6 +1063,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
10581063
* @param enabled
10591064
*/
10601065
public setTouchEnabled(enabled) {
1066+
// actually not used...
10611067
this.mTouchEnabled = enabled;
10621068
}
10631069

0 commit comments

Comments
 (0)