mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 18:39:41 +02:00
Add different id generators
This commit is contained in:
@@ -119,6 +119,21 @@ const config = {
|
||||
*/
|
||||
secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],
|
||||
|
||||
/**
|
||||
* This option controls if the generated ids of nodes in the SVG are generated randomly or based on a seed.
|
||||
* If set to false, the IDs are generated based on the current date and thus are not deterministic. This is the default behaviour.
|
||||
*
|
||||
*## Notes**: This matters if your files are checked into sourcecontrol e.g. git and should not change unless content is changed.
|
||||
***Default value: false**
|
||||
*/
|
||||
deterministicIds: false,
|
||||
|
||||
/**
|
||||
* This option is the optional seed for deterministic ids. if set to undefined but deterministicIds is true, a simple number iterator is used.
|
||||
* You can set this attribute to base the seed on a static string.
|
||||
*/
|
||||
deterministicIDSeed: undefined,
|
||||
|
||||
/**
|
||||
* The object containing configurations specific for flowcharts
|
||||
*/
|
||||
|
Reference in New Issue
Block a user