From 9c27125f2dbe575c4ae08b9852feb696cca1d1a3 Mon Sep 17 00:00:00 2001 From: Shahir Ahmed Date: Fri, 21 Feb 2025 15:27:01 -0500 Subject: [PATCH] changes default values Co-authored-by: Pranav Mishra --- packages/mermaid/src/config.type.ts | 2 +- packages/mermaid/src/schemas/config.schema.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/mermaid/src/config.type.ts b/packages/mermaid/src/config.type.ts index 3b3ab4f59..faeda3eca 100644 --- a/packages/mermaid/src/config.type.ts +++ b/packages/mermaid/src/config.type.ts @@ -613,7 +613,7 @@ export interface JourneyDiagramConfig extends BaseDiagramConfig { */ titleFontFamily?: string; /** - * Font size in pixels to be used for the title text in Journey Diagrams + * Font size to be used for the title text in Journey Diagrams */ titleFontSize?: string; } diff --git a/packages/mermaid/src/schemas/config.schema.yaml b/packages/mermaid/src/schemas/config.schema.yaml index 35c1bfd51..716be1b71 100644 --- a/packages/mermaid/src/schemas/config.schema.yaml +++ b/packages/mermaid/src/schemas/config.schema.yaml @@ -1579,15 +1579,15 @@ $defs: # JSON Schema definition (maybe we should move these to a separate file) titleColor: description: Color of the title text in Journey Diagrams type: string - default: '#00ff00' + default: '' titleFontFamily: description: Font family to be used for the title text in Journey Diagrams type: string - default: '"Open Sans", sans-serif' + default: '"trebuchet ms", verdana, arial, sans-serif' titleFontSize: - description: Font size in pixels to be used for the title text in Journey Diagrams + description: Font size to be used for the title text in Journey Diagrams type: string - default: '32px' + default: '4ex' TimelineDiagramConfig: # added by https://github.com/mermaid-js/mermaid/commit/0d5246fbc730bf15463d7183fe4400a1e2fc492c