mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-08 18:16:44 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -598,4 +598,90 @@ gantt
|
|||||||
5 : 0, 5
|
5 : 0, 5
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Timeline (with comments, CSS, config in frontmatter, directives)
|
||||||
|
|
||||||
|
```mermaid-example
|
||||||
|
---
|
||||||
|
# triple line MUST be first to start frontmatter. Then, any consistent indent
|
||||||
|
# yaml style comment
|
||||||
|
displayMode: compact
|
||||||
|
config:
|
||||||
|
# theme: forest
|
||||||
|
# themeCSS: " #item36 { fill: CadetBlue } "
|
||||||
|
gantt:
|
||||||
|
useWidth: 400
|
||||||
|
|
||||||
|
---
|
||||||
|
%%{
|
||||||
|
init: {
|
||||||
|
'Comment': 'Not official, but common JSON style comment',
|
||||||
|
'Comment': 'Depreciated 2023 for frontmatter, easier to format, overrides frontmatter',
|
||||||
|
'themeCSS': ' #item36 { fill: CadetBlue } rect[id^=workaround] { height: calc(100% - 50px) ; transform: translate(9px, 25px); y: 0; width: 1.5px; stroke: none; fill: red; } text[id^=workaround] { fill: red; y: 100%; font-size: 15px;}',
|
||||||
|
'gantt':{
|
||||||
|
'usedWidth': 400, 'rightPadding': 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}%%
|
||||||
|
gantt
|
||||||
|
title Sampler
|
||||||
|
dateFormat YYYY
|
||||||
|
axisFormat %y
|
||||||
|
%% comment - this next line doesn't recognise year
|
||||||
|
tickInterval 4year
|
||||||
|
|
||||||
|
|
||||||
|
section Issue19062
|
||||||
|
71 : item71, 1900, 1930
|
||||||
|
section Issue19401
|
||||||
|
36 : item36, 1913, 1935 %% themeCSS targets #item36 as id directly
|
||||||
|
section Issue1300
|
||||||
|
94 : item94, 1910, 1915
|
||||||
|
5 : item5, 1920, 1925
|
||||||
|
0 : milestone, item0, 1918, 1s
|
||||||
|
9 : vert, 1906, 1s %% not yet official
|
||||||
|
64 : workaround, 1923, 1s %% custom CSS object in themeCSS https://github.com/mermaid-js/mermaid/issues/3250
|
||||||
|
```
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
---
|
||||||
|
# triple line MUST be first to start frontmatter. Then, any consistent indent
|
||||||
|
# yaml style comment
|
||||||
|
displayMode: compact
|
||||||
|
config:
|
||||||
|
# theme: forest
|
||||||
|
# themeCSS: " #item36 { fill: CadetBlue } "
|
||||||
|
gantt:
|
||||||
|
useWidth: 400
|
||||||
|
|
||||||
|
---
|
||||||
|
%%{
|
||||||
|
init: {
|
||||||
|
'Comment': 'Not official, but common JSON style comment',
|
||||||
|
'Comment': 'Depreciated 2023 for frontmatter, easier to format, overrides frontmatter',
|
||||||
|
'themeCSS': ' #item36 { fill: CadetBlue } rect[id^=workaround] { height: calc(100% - 50px) ; transform: translate(9px, 25px); y: 0; width: 1.5px; stroke: none; fill: red; } text[id^=workaround] { fill: red; y: 100%; font-size: 15px;}',
|
||||||
|
'gantt':{
|
||||||
|
'usedWidth': 400, 'rightPadding': 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}%%
|
||||||
|
gantt
|
||||||
|
title Sampler
|
||||||
|
dateFormat YYYY
|
||||||
|
axisFormat %y
|
||||||
|
%% comment - this next line doesn't recognise year
|
||||||
|
tickInterval 4year
|
||||||
|
|
||||||
|
|
||||||
|
section Issue19062
|
||||||
|
71 : item71, 1900, 1930
|
||||||
|
section Issue19401
|
||||||
|
36 : item36, 1913, 1935 %% themeCSS targets #item36 as id directly
|
||||||
|
section Issue1300
|
||||||
|
94 : item94, 1910, 1915
|
||||||
|
5 : item5, 1920, 1925
|
||||||
|
0 : milestone, item0, 1918, 1s
|
||||||
|
9 : vert, 1906, 1s %% not yet official
|
||||||
|
64 : workaround, 1923, 1s %% custom CSS object in themeCSS https://github.com/mermaid-js/mermaid/issues/3250
|
||||||
|
```
|
||||||
|
|
||||||
<!--- cspell:ignore isadded --->
|
<!--- cspell:ignore isadded --->
|
||||||
|
@@ -471,7 +471,6 @@ gantt
|
|||||||
5 : 0, 5
|
5 : 0, 5
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Timeline (with comments, CSS, config in frontmatter, directives)
|
### Timeline (with comments, CSS, config in frontmatter, directives)
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
@@ -487,14 +486,14 @@ gantt
|
|||||||
|
|
||||||
---
|
---
|
||||||
%%{
|
%%{
|
||||||
init: {
|
init: {
|
||||||
'Comment': 'Not official, but common JSON style comment',
|
'Comment': 'Not official, but common JSON style comment',
|
||||||
'Comment': 'Depreciated 2023 for frontmatter, easier to format, overrides frontmatter',
|
'Comment': 'Depreciated 2023 for frontmatter, easier to format, overrides frontmatter',
|
||||||
'themeCSS': ' #item36 { fill: CadetBlue } rect[id^=workaround] { height: calc(100% - 50px) ; transform: translate(9px, 25px); y: 0; width: 1.5px; stroke: none; fill: red; } text[id^=workaround] { fill: red; y: 100%; font-size: 15px;}',
|
'themeCSS': ' #item36 { fill: CadetBlue } rect[id^=workaround] { height: calc(100% - 50px) ; transform: translate(9px, 25px); y: 0; width: 1.5px; stroke: none; fill: red; } text[id^=workaround] { fill: red; y: 100%; font-size: 15px;}',
|
||||||
'gantt':{
|
'gantt':{
|
||||||
'usedWidth': 400, 'rightPadding': 0
|
'usedWidth': 400, 'rightPadding': 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}%%
|
}%%
|
||||||
gantt
|
gantt
|
||||||
title Sampler
|
title Sampler
|
||||||
@@ -502,12 +501,12 @@ gantt
|
|||||||
axisFormat %y
|
axisFormat %y
|
||||||
%% comment - this next line doesn't recognise year
|
%% comment - this next line doesn't recognise year
|
||||||
tickInterval 4year
|
tickInterval 4year
|
||||||
|
|
||||||
|
|
||||||
section Issue19062
|
section Issue19062
|
||||||
71 : item71, 1900, 1930
|
71 : item71, 1900, 1930
|
||||||
section Issue19401
|
section Issue19401
|
||||||
36 : item36, 1913, 1935 %% themeCSS targets #item36 as id directly
|
36 : item36, 1913, 1935 %% themeCSS targets #item36 as id directly
|
||||||
section Issue1300
|
section Issue1300
|
||||||
94 : item94, 1910, 1915
|
94 : item94, 1910, 1915
|
||||||
5 : item5, 1920, 1925
|
5 : item5, 1920, 1925
|
||||||
@@ -516,7 +515,4 @@ gantt
|
|||||||
64 : workaround, 1923, 1s %% custom CSS object in themeCSS https://github.com/mermaid-js/mermaid/issues/3250
|
64 : workaround, 1923, 1s %% custom CSS object in themeCSS https://github.com/mermaid-js/mermaid/issues/3250
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--- cspell:ignore isadded --->
|
<!--- cspell:ignore isadded --->
|
||||||
|
Reference in New Issue
Block a user