mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +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'],
|
aliases: ['lined-document'],
|
||||||
handler: linedWaveEdgedRect,
|
handler: linedWaveEdgedRect,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
semanticName: 'Class Box',
|
|
||||||
name: 'Class Box',
|
|
||||||
shortName: 'classBox',
|
|
||||||
description: 'Class Box',
|
|
||||||
aliases: ['class-box'],
|
|
||||||
handler: classBox,
|
|
||||||
},
|
|
||||||
] as const satisfies ShapeDefinition[];
|
] as const satisfies ShapeDefinition[];
|
||||||
|
|
||||||
const generateShapeMap = () => {
|
const generateShapeMap = () => {
|
||||||
@@ -477,8 +469,13 @@ const generateShapeMap = () => {
|
|||||||
icon,
|
icon,
|
||||||
iconRounded,
|
iconRounded,
|
||||||
imageSquare,
|
imageSquare,
|
||||||
kanbanItem,
|
|
||||||
anchor,
|
anchor,
|
||||||
|
|
||||||
|
// Kanban diagram
|
||||||
|
kanbanItem,
|
||||||
|
|
||||||
|
// class diagram
|
||||||
|
classBox,
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
const entries = [
|
const entries = [
|
||||||
|
@@ -13,7 +13,7 @@ export async function note<T extends SVGGraphicsElement>(
|
|||||||
) {
|
) {
|
||||||
const { labelStyles, nodeStyles } = styles2String(node);
|
const { labelStyles, nodeStyles } = styles2String(node);
|
||||||
node.labelStyle = labelStyles;
|
node.labelStyle = labelStyles;
|
||||||
const useHtmlLabels = node.useHtmlLabels || getConfig().htmlLabels;
|
const useHtmlLabels = node.useHtmlLabels || getConfig().flowchart?.htmlLabels !== false;
|
||||||
if (!useHtmlLabels) {
|
if (!useHtmlLabels) {
|
||||||
node.centerLabel = true;
|
node.centerLabel = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user