|
1 | 1 | import {
|
| 2 | + BarController, |
2 | 3 | BarControllerChartOptions,
|
3 | 4 | BarControllerDatasetOptions,
|
4 | 5 | BarElement,
|
5 | 6 | CartesianParsedData,
|
6 | 7 | CartesianScaleTypeRegistry,
|
| 8 | + Chart, |
| 9 | + ChartComponent, |
7 | 10 | TooltipPositionerFunction,
|
8 | 11 | } from "chart.js";
|
| 12 | +import { AnyObject } from "chart.js/dist/types/basic"; |
9 | 13 |
|
| 14 | +<<<<<<< 84cef79e36efca340515d712fbdd272866be0d14 |
10 | 15 | export function getFunnelChartController() {
|
11 | 16 | return class FunnelChartController extends window.Chart.BarController {
|
| 17 | +||||||| 18651c2be425faaaaad9871bf4a36c9acc9ec5aa |
| 18 | +export function getFunnelChartController() { |
| 19 | + return class FunnelChartController extends window.Chart?.BarController { |
| 20 | +======= |
| 21 | +export function getFunnelChartController(): ChartComponent & { |
| 22 | + prototype: BarController; |
| 23 | + new (chart: Chart, datasetIndex: number): BarController; |
| 24 | +} { |
| 25 | + return class FunnelChartController extends window.Chart?.BarController { |
| 26 | +>>>>>>> f31823e956a4a337ea91d1c1b8506284e8e2e372 |
12 | 27 | static id = "funnel";
|
13 | 28 | static defaults = {
|
14 | 29 | ...window.Chart?.BarController.defaults,
|
@@ -37,7 +52,10 @@ export function getFunnelChartController() {
|
37 | 52 | };
|
38 | 53 | }
|
39 | 54 |
|
40 |
| -export function getFunnelChartElement() { |
| 55 | +export function getFunnelChartElement(): ChartComponent & { |
| 56 | + prototype: BarElement; |
| 57 | + new (cfg: AnyObject): BarElement; |
| 58 | +} { |
41 | 59 | /**
|
42 | 60 | * Similar to a bar chart element, but it's a trapezoid rather than a rectangle. The top is of width
|
43 | 61 | * `width`, and the bottom is of width `nextElementWidth`.
|
|
0 commit comments