mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-05 16:04:03 +01:00
Minor type fixes (#7812)
This commit is contained in:
3
types/controllers/index.d.ts
vendored
3
types/controllers/index.d.ts
vendored
@@ -119,7 +119,8 @@ export interface ILineControllerDatasetOptions
|
||||
extends IControllerDatasetOptions,
|
||||
ScriptableAndArrayOptions<IPointPrefixedOptions>,
|
||||
ScriptableAndArrayOptions<IPointPrefixedHoverOptions>,
|
||||
ScriptableOptions<ILineOptions> {
|
||||
ScriptableOptions<ILineOptions>,
|
||||
ScriptableOptions<ILineHoverOptions> {
|
||||
/**
|
||||
* The ID of the x axis to plot this dataset on.
|
||||
*/
|
||||
|
||||
8
types/elements/index.d.ts
vendored
8
types/elements/index.d.ts
vendored
@@ -43,9 +43,15 @@ export interface IArcOptions extends ICommonOptions {
|
||||
* Arc stroke alignment.
|
||||
*/
|
||||
borderAlign: 'center' | 'inner';
|
||||
/**
|
||||
* Arc offset (in pixels).
|
||||
*/
|
||||
offset: number;
|
||||
}
|
||||
|
||||
export interface IArcHoverOptions extends ICommonHoverOptions {}
|
||||
export interface IArcHoverOptions extends ICommonHoverOptions {
|
||||
hoverOffset: number;
|
||||
}
|
||||
|
||||
export interface Arc<T extends IArcProps = IArcProps, O extends IArcOptions = IArcOptions>
|
||||
extends Element<T, O>,
|
||||
|
||||
2
types/plugins/index.d.ts
vendored
2
types/plugins/index.d.ts
vendored
@@ -9,7 +9,7 @@ export interface IFillerOptions {
|
||||
propagate: boolean;
|
||||
}
|
||||
|
||||
export type FillTarget = number | string | 'start' | 'end' | 'origin' | false;
|
||||
export type FillTarget = number | string | 'start' | 'end' | 'origin' | 'stack' | false;
|
||||
|
||||
export interface IFillTarget {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user