]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
fix: add pointStyleWidth to type definitions (#11383)
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 1 Jul 2023 12:51:53 +0000 (08:51 -0400)
committerGitHub <noreply@github.com>
Sat, 1 Jul 2023 12:51:53 +0000 (08:51 -0400)
src/types/index.d.ts

index 9ce9c5e842fd10bf47cd7df02daa790a19375b13..8875bc79cc3cd00955b5a6763dd0a7d9f81f6b4c 100644 (file)
@@ -2399,6 +2399,10 @@ export interface LegendOptions<TType extends ChartType> {
      * @default 10
      */
     padding: number;
+    /**
+     * If usePointStyle is true, the width of the point style used for the legend.
+     */
+    pointStyleWidth: number;
     /**
      * Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See Legend Item for details.
      */