Adding size-tester for checking size calculations with fixed sizes

This commit is contained in:
Knut Sveidqvist
2024-09-26 18:26:49 +02:00
parent 2a05b479ae
commit 0afd83a0c3
2 changed files with 83 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import { getConfig } from '../../../diagram-api/diagramAPI.js';
import { select } from 'd3';
import { evaluate, sanitizeText } from '../../../diagrams/common/common.js';
import { decodeEntities } from '../../../utils.js';
import { log } from '../../../logger.js';
export const labelHelper = async (parent, node, _classes) => {
let cssClasses;
@@ -110,6 +111,9 @@ export const updateNodeBounds = (node, element) => {
const bbox = element.node().getBBox();
node.width = bbox.width;
node.height = bbox.height;
log.debug('updateNodeBounds: #####################################');
log.debug('updateNodeBounds:', node.id, node.width, node.height);
log.debug('updateNodeBounds: #####################################');
};
/**