mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-16 06:49:31 +02:00
Fix (tmp) for handling of config of htmlLabels ion note. MOvint class box out of flowchart docs
This commit is contained in:
@@ -449,14 +449,6 @@ export const shapesDefs = [
|
||||
aliases: ['lined-document'],
|
||||
handler: linedWaveEdgedRect,
|
||||
},
|
||||
{
|
||||
semanticName: 'Class Box',
|
||||
name: 'Class Box',
|
||||
shortName: 'classBox',
|
||||
description: 'Class Box',
|
||||
aliases: ['class-box'],
|
||||
handler: classBox,
|
||||
},
|
||||
] as const satisfies ShapeDefinition[];
|
||||
|
||||
const generateShapeMap = () => {
|
||||
@@ -477,8 +469,13 @@ const generateShapeMap = () => {
|
||||
icon,
|
||||
iconRounded,
|
||||
imageSquare,
|
||||
kanbanItem,
|
||||
anchor,
|
||||
|
||||
// Kanban diagram
|
||||
kanbanItem,
|
||||
|
||||
// class diagram
|
||||
classBox,
|
||||
} as const;
|
||||
|
||||
const entries = [
|
||||
|
@@ -13,7 +13,7 @@ export async function note<T extends SVGGraphicsElement>(
|
||||
) {
|
||||
const { labelStyles, nodeStyles } = styles2String(node);
|
||||
node.labelStyle = labelStyles;
|
||||
const useHtmlLabels = node.useHtmlLabels || getConfig().htmlLabels;
|
||||
const useHtmlLabels = node.useHtmlLabels || getConfig().flowchart?.htmlLabels !== false;
|
||||
if (!useHtmlLabels) {
|
||||
node.centerLabel = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user