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:
Jacco van den Berg 2021-10-26 14:50:07 +02:00 committed by GitHub
parent 2a97192154
commit 10106e4ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {