add stateDiagram-v2 to list of graphs with classDefs

This commit is contained in:
Ashley Engelund (weedySeaDragon @ github) 2022-11-14 11:24:59 -08:00
parent 846a03663c
commit ccd55a0bde
1 changed files with 1 additions and 1 deletions

View File

@ -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';