mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
add stateDiagram-v2 to list of graphs with classDefs
This commit is contained in:

parent
846a03663c
commit
ccd55a0bde
@@ -32,7 +32,7 @@ import { evaluate } from './diagrams/common/common';
|
||||
import { isEmpty } from 'lodash';
|
||||
|
||||
// diagram names that support classDef statements
|
||||
const CLASSDEF_DIAGRAMS = ['graph', 'flowchart', 'flowchart-v2', 'stateDiagram'];
|
||||
const CLASSDEF_DIAGRAMS = ['graph', 'flowchart', 'flowchart-v2', 'stateDiagram', 'stateDiagram-v2'];
|
||||
|
||||
const MAX_TEXTLENGTH_EXCEEDED_MSG =
|
||||
'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';
|
||||
|
Reference in New Issue
Block a user