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'],
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 = [

View File

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