From 8780aaf3aa4ad04c3cd0e3417d84a48ecdbd773f Mon Sep 17 00:00:00 2001 From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Thu, 3 Jun 2021 14:04:04 +0200 Subject: [PATCH] add missing types to legend (#9226) --- types/index.esm.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 082186217..9043ac851 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -2120,6 +2120,14 @@ export interface LegendOptions { * @default 'center' */ align: 'start' | 'center' | 'end'; + /** + * Maximum height of the legend, in pixels + */ + maxHeight: number; + /** + * Maximum width of the legend, in pixels + */ + maxWidth: number; /** * Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use. * @default true @@ -2200,6 +2208,15 @@ export interface LegendOptions { */ usePointStyle: boolean; }; + /** + * true for rendering the legends from right to left. + */ + rtl: boolean; + /** + * This will force the text direction 'rtl' or 'ltr' on the canvas for rendering the legend, regardless of the css specified on the canvas + * @default canvas' default + */ + textDirection: string; title: { /** -- 2.47.2