File tree 2 files changed +7
-10
lines changed
packages/mermaid/src/rendering-util/rendering-elements
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -449,14 +449,6 @@ export const shapesDefs = [
449
449
aliases : [ 'lined-document' ] ,
450
450
handler : linedWaveEdgedRect ,
451
451
} ,
452
- {
453
- semanticName : 'Class Box' ,
454
- name : 'Class Box' ,
455
- shortName : 'classBox' ,
456
- description : 'Class Box' ,
457
- aliases : [ 'class-box' ] ,
458
- handler : classBox ,
459
- } ,
460
452
] as const satisfies ShapeDefinition [ ] ;
461
453
462
454
const generateShapeMap = ( ) => {
@@ -477,8 +469,13 @@ const generateShapeMap = () => {
477
469
icon,
478
470
iconRounded,
479
471
imageSquare,
480
- kanbanItem,
481
472
anchor,
473
+
474
+ // Kanban diagram
475
+ kanbanItem,
476
+
477
+ // class diagram
478
+ classBox,
482
479
} as const ;
483
480
484
481
const entries = [
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export async function note<T extends SVGGraphicsElement>(
13
13
) {
14
14
const { labelStyles, nodeStyles } = styles2String ( node ) ;
15
15
node . labelStyle = labelStyles ;
16
- const useHtmlLabels = node . useHtmlLabels || getConfig ( ) . htmlLabels ;
16
+ const useHtmlLabels = node . useHtmlLabels || getConfig ( ) . flowchart ?. htmlLabels !== false ;
17
17
if ( ! useHtmlLabels ) {
18
18
node . centerLabel = true ;
19
19
}
You can’t perform that action at this time.
0 commit comments