mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
chore: move default value to config.schema.yaml
This commit is contained in:
@@ -50,7 +50,6 @@ const config: Partial<MermaidConfig> = {
|
|||||||
...defaultConfigJson.gantt,
|
...defaultConfigJson.gantt,
|
||||||
tickInterval: undefined,
|
tickInterval: undefined,
|
||||||
useWidth: undefined, // can probably be removed since `configKeys` already includes this
|
useWidth: undefined, // can probably be removed since `configKeys` already includes this
|
||||||
weekday: 'sunday', // the sane default is a monday, but it's set to sunday for legacy reasons
|
|
||||||
},
|
},
|
||||||
c4: {
|
c4: {
|
||||||
...defaultConfigJson.c4,
|
...defaultConfigJson.c4,
|
||||||
|
@@ -1455,6 +1455,7 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
|
|||||||
- axisFormat
|
- axisFormat
|
||||||
- useMaxWidth
|
- useMaxWidth
|
||||||
- topAxis
|
- topAxis
|
||||||
|
- weekday
|
||||||
properties:
|
properties:
|
||||||
titleTopMargin:
|
titleTopMargin:
|
||||||
$ref: '#/$defs/GitGraphDiagramConfig/properties/titleTopMargin'
|
$ref: '#/$defs/GitGraphDiagramConfig/properties/titleTopMargin'
|
||||||
@@ -1544,6 +1545,20 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
|
|||||||
default: ''
|
default: ''
|
||||||
# Allow any string for typescript backwards compatibility (fix in Mermaid v10)
|
# Allow any string for typescript backwards compatibility (fix in Mermaid v10)
|
||||||
tsType: 'string | "compact"'
|
tsType: 'string | "compact"'
|
||||||
|
weekday:
|
||||||
|
description: |
|
||||||
|
On which day a week-based interval should start
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- monday
|
||||||
|
- tuesday
|
||||||
|
- wednesday
|
||||||
|
- thursday
|
||||||
|
- friday
|
||||||
|
- saturday
|
||||||
|
- sunday
|
||||||
|
# the sane default is a monday, but it's set to sunday for legacy reasons
|
||||||
|
default: sunday
|
||||||
|
|
||||||
SequenceDiagramConfig:
|
SequenceDiagramConfig:
|
||||||
title: Sequence Diagram Config
|
title: Sequence Diagram Config
|
||||||
|
Reference in New Issue
Block a user