Update packages/mermaid/src/diagrams/class/svgDraw.js

Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
Justin Greywolf 2023-08-23 05:22:23 -07:00 committed by GitHub
parent bbaab54ec9
commit 3ec32521f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 !== '') {