File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,16 @@ See [Mermaid nested states export sample](https://github.com/nsk90/kstatemachine
64
64
65
65
## Controlling export output
66
66
67
- To beautify and enrich export output, you can use ` UmlMetaInfo ` for both ` IState ` and ` Transition ` :
67
+ To beautify and enrich export output, you can use ` UmlMetaInfo ` for both ` IState ` and ` Transition ` . It can be built
68
+ with ` buildUmlMetaInfo() ` function:
68
69
69
70
``` kotlin
70
71
state(" State1" ) {
71
- metaInfo = UmlMetaInfo (
72
- umlLabel = " State 1 long label" ,
73
- umlStateDescriptions = listOf (" Description 1" , " Description 2" ),
74
- umlNotes = listOf (" Note 1" , " Note 2" ),
75
- )
72
+ metaInfo = buildUmlMetaInfo {
73
+ umlLabel = " State 1 long label"
74
+ umlStateDescriptions = listOf (" Description 1" , " Description 2" )
75
+ umlNotes = listOf (" Note 1" , " Note 2" )
76
+ }
76
77
}
77
78
```
78
79
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ The library provides `metaInfo` property for `IState` and `Transition` types.
19
19
This mechanism is extendable and users may add their own ` MetaInfo ` sub interfaces/classes if necessary.
20
20
Currently, the only standard implementation is ` UmlMetaInfo ` which is useful for export feature.
21
21
See [ controlling export output] ( https://kstatemachine.github.io/kstatemachine/pages/export.html#controlling-export-output ) .
22
+ You can build it using ` buildUmlMetaInfo() ` function.
22
23
23
24
{: .note }
24
25
` MetaInfo ` considered to be immutable data by design
You can’t perform that action at this time.
0 commit comments