mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-09 01:36:51 +01:00
Fix object notation border width barchart (#9800)
* make object available for bar as border Radius * override only the bar borderWidth prop * spacing
This commit is contained in:
committed by
GitHub
parent
2a97192154
commit
10106e4ec6
8
types/index.esm.d.ts
vendored
8
types/index.esm.d.ts
vendored
@@ -1908,7 +1908,7 @@ export interface BarProps {
|
||||
height: number;
|
||||
}
|
||||
|
||||
export interface BarOptions extends CommonElementOptions {
|
||||
export interface BarOptions extends Omit<CommonElementOptions, 'borderWidth'> {
|
||||
/**
|
||||
* The base value for the bar in data units along the value axis.
|
||||
*/
|
||||
@@ -1932,6 +1932,12 @@ export interface BarOptions extends CommonElementOptions {
|
||||
* @default 'auto'
|
||||
*/
|
||||
inflateAmount: number | 'auto';
|
||||
|
||||
/**
|
||||
* Width of the border, number for all sides, object to specify width for each side specifically
|
||||
* @default 0
|
||||
*/
|
||||
borderWidth: number | { top?: number, right?: number, bottom?: number, left?: number };
|
||||
}
|
||||
|
||||
export interface BorderRadius {
|
||||
|
||||
Reference in New Issue
Block a user