Grammar/rendering for setting style on class node

This commit is contained in:
Justin Greywolf
2023-12-04 13:28:31 -08:00
parent f81e4d4361
commit 239fad94ee
8 changed files with 93 additions and 4 deletions

View File

@@ -571,4 +571,14 @@ class C13["With Città foreign language"]
{ logLevel: 1, flowchart: { htmlLabels: false } }
);
});
it('should render a simple class diagram with style definition', () => {
imgSnapshotTest(
`
classDiagram-v2
class Class10
style Class10 fill:#f9f,stroke:#333,stroke-width:4px
`,
{ logLevel: 1, flowchart: { htmlLabels: false } }
);
});
});