From 6b44986641be59099a97ffae2855fa7b0530ae95 Mon Sep 17 00:00:00 2001 From: huyph Date: Fri, 6 May 2016 03:10:13 +1000 Subject: [PATCH] Correct AmPieChart typings (#9193) * Correct AmPieChart typings AmPieChart should inherit from AmChart (as mentioned in the AmChart website: https://docs.amcharts.com/javascriptcharts/AmPieChart) * Removed the duplicate addListener AmChart class should already have description for 'addListener' --- amcharts/AmCharts.d.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/amcharts/AmCharts.d.ts b/amcharts/AmCharts.d.ts index a54ed5d515b1ac..543467feacdbf4 100644 --- a/amcharts/AmCharts.d.ts +++ b/amcharts/AmCharts.d.ts @@ -36,7 +36,7 @@ declare namespace AmCharts { chart.dataProvider = chartData; chart.write("chartdiv"); */ - class AmPieChart { + class AmPieChart extends AmChart { /** Name of the field in chart's dataProvider which holds slice's alpha. */ alphaField: string; /** Pie lean angle (for 3D effect). Valid range is 0 - 90. */ @@ -187,19 +187,6 @@ declare namespace AmCharts { rollOverSlice(index: number); /** Shows slice. index - the number of a slice or Slice object. */ showSlice(index: number); - - /** Adds event listener of the type "clickSlice" or "pullInSlice" or "pullOutSlice" to the object. - @param type Always "clickSlice" or "pullInSlice" or "pullOutSlice". - @param handler - If the type is "clickSlice", dispatched when user clicks on a slice. - If the type is "pullInSlice", dispatched when user clicks on a slice and the slice is pulled-in. - If the type is "pullOutSlice", dispatched when user clicks on a slice and the slice is pulled-out. - If the type is "rollOutSlice", dispatched when user rolls-out of the slice. - If the type is "rollOverSlice", dispatched when user rolls-over the slice. - */ - addListener(type: string, handler: (e: {/** Always "rollOverSlice". */ - type: string; dataItem: Slice; - }) => void ); } /** AmRadarChart is the class you have to use for radar and polar chart types.