bpmn-visualization-js
bpmn-visualization-js copied to clipboard
[FEAT] Add padding/margin to the default Badge Overlay
Is your feature request related to a problem? Please describe. The current default badge displays the overlay text to close from the border. This is particularly visible with the default white fill and black stroke colors. This would be less visible with alternate colors, especially if the fill and stroke colors were the same (#1172)


Describe the solution you'd like Set default padding/margin to add more spaces between the text and the border. Desicion of making the value configurable is deferred to #1172
This would look like the following when applied to the 2 previous examples


that's exactly what I meant. Thanks.
it seems that in mxSvgCanvas2D.prototype.addTextBackground method
(which is used for adding the background
n.setAttribute('width', Math.ceil(bbox.width + 2));
n.setAttribute('height', Math.ceil(bbox.height));