From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Tue, 26 Oct 2021 12:50:07 +0000 (+0200) Subject: Fix object notation border width barchart (#9800) X-Git-Tag: v3.6.1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10106e4ec6e9f3a61fbaf01df3cd46b9119386a4;p=thirdparty%2FChart.js.git Fix object notation border width barchart (#9800) * make object available for bar as border Radius * override only the bar borderWidth prop * spacing --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 9ae7132b4..6e36c9ab4 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -1908,7 +1908,7 @@ export interface BarProps { height: number; } -export interface BarOptions extends CommonElementOptions { +export interface BarOptions extends Omit { /** * 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 {