Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing types to legend #9226

Merged
merged 1 commit into from Jun 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions types/index.esm.d.ts
Expand Up @@ -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
Expand Down Expand Up @@ -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: {
/**
Expand Down