mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Update packages/mermaid/src/diagrams/class/svgDraw.js
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
parent
bbaab54ec9
commit
3ec32521f8
@ -381,8 +381,7 @@ export const drawNote = function (elem, note, conf, diagObj) {
|
||||
* @param {{ padding: string; textHeight: string }} conf The configuration for the member
|
||||
*/
|
||||
const addTspan = function (textEl, member, isFirst, conf) {
|
||||
const displayText = member.getDisplayDetails().displayText;
|
||||
const cssStyle = member.getDisplayDetails().cssStyle;
|
||||
const { displayText, cssStyle } = member.getDisplayDetails();
|
||||
const tSpan = textEl.append('tspan').attr('x', conf.padding).text(displayText);
|
||||
|
||||
if (cssStyle !== '') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user