Fix (tmp) for handling of config of htmlLabels ion note. MOvint class box out of flowchart docs

This commit is contained in:
Knut Sveidqvist
2024-10-30 11:54:31 +01:00
parent 953d288957
commit c1ca3511c4
2 changed files with 7 additions and 10 deletions

View File

@@ -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 = [

View File

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