mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Add declaration for Decimation plugin (#9172)
This commit is contained in:
parent
188da82206
commit
aa6a9737bd
2
types/index.esm.d.ts
vendored
2
types/index.esm.d.ts
vendored
@ -1953,6 +1953,8 @@ export class BasePlatform {
|
||||
export class BasicPlatform extends BasePlatform {}
|
||||
export class DomPlatform extends BasePlatform {}
|
||||
|
||||
export const Decimation: Plugin;
|
||||
|
||||
export const enum DecimationAlgorithm {
|
||||
lttb = 'lttb',
|
||||
minmax = 'min-max',
|
||||
|
||||
52
types/tests/register.ts
Normal file
52
types/tests/register.ts
Normal file
@ -0,0 +1,52 @@
|
||||
import {
|
||||
Chart,
|
||||
ArcElement,
|
||||
LineElement,
|
||||
BarElement,
|
||||
PointElement,
|
||||
BarController,
|
||||
BubbleController,
|
||||
DoughnutController,
|
||||
LineController,
|
||||
PieController,
|
||||
PolarAreaController,
|
||||
RadarController,
|
||||
ScatterController,
|
||||
CategoryScale,
|
||||
LinearScale,
|
||||
LogarithmicScale,
|
||||
RadialLinearScale,
|
||||
TimeScale,
|
||||
TimeSeriesScale,
|
||||
Decimation,
|
||||
Filler,
|
||||
Legend,
|
||||
Title,
|
||||
Tooltip
|
||||
} from '../index.esm';
|
||||
|
||||
Chart.register(
|
||||
ArcElement,
|
||||
LineElement,
|
||||
BarElement,
|
||||
PointElement,
|
||||
BarController,
|
||||
BubbleController,
|
||||
DoughnutController,
|
||||
LineController,
|
||||
PieController,
|
||||
PolarAreaController,
|
||||
RadarController,
|
||||
ScatterController,
|
||||
CategoryScale,
|
||||
LinearScale,
|
||||
LogarithmicScale,
|
||||
RadialLinearScale,
|
||||
TimeScale,
|
||||
TimeSeriesScale,
|
||||
Decimation,
|
||||
Filler,
|
||||
Legend,
|
||||
Title,
|
||||
Tooltip
|
||||
);
|
||||
Loading…
x
Reference in New Issue
Block a user