change default useWidth in pie to 984

This commit is contained in:
Reda Al Sulais
2023-08-03 20:56:18 +03:00
parent aecf451ed1
commit bdfd8974d4
2 changed files with 3 additions and 3 deletions

View File

@@ -89,8 +89,8 @@ export type DrawDefinition = (
*/ */
export type ParseDirectiveDefinition = (statement: string, context: string, type: string) => void; export type ParseDirectiveDefinition = (statement: string, context: string, type: string) => void;
export type HTML = d3.Selection<HTMLIFrameElement, unknown, Element, unknown>; export type HTML = d3.Selection<HTMLIFrameElement, unknown, Element | null, unknown>;
export type SVG = d3.Selection<SVGSVGElement, unknown, Element, unknown>; export type SVG = d3.Selection<SVGSVGElement, unknown, Element | null, unknown>;
export type DiagramStylesProvider = (options?: any) => string; export type DiagramStylesProvider = (options?: any) => string;

View File

@@ -17,7 +17,7 @@ import type { RequiredDeep } from 'type-fest';
export const DEFAULT_PIE_CONFIG: Required<PieDiagramConfig> = { export const DEFAULT_PIE_CONFIG: Required<PieDiagramConfig> = {
useMaxWidth: true, useMaxWidth: true,
useWidth: 1200, useWidth: 984,
textPosition: 0.75, textPosition: 0.75,
} as const; } as const;