mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
#989 Font configuration
This commit is contained in:
@@ -309,10 +309,18 @@ export const draw = function(text, id) {
|
||||
if (endX + textWidth + 1.5 * conf.leftPadding > w) {
|
||||
return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;
|
||||
} else {
|
||||
return classStr + ' taskTextOutsideRight taskTextOutside' + secNum + ' ' + taskType;
|
||||
return (
|
||||
classStr +
|
||||
' taskTextOutsideRight taskTextOutside' +
|
||||
secNum +
|
||||
' ' +
|
||||
taskType +
|
||||
' width-' +
|
||||
textWidth
|
||||
);
|
||||
}
|
||||
} else {
|
||||
return classStr + ' taskText taskText' + secNum + ' ' + taskType;
|
||||
return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user