mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
changed tspan as default of sequence actor text placement
This commit is contained in:
parent
b426e600ce
commit
5d99e9c0b8
@ -34,8 +34,8 @@ var conf = {
|
||||
// width of activation box
|
||||
activationWidth:10,
|
||||
|
||||
//text placement as: tspan | fo | <else> only text as before
|
||||
textPlacement: 'fo',
|
||||
//text placement as: tspan | fo | old only text as before
|
||||
textPlacement: 'tspan',
|
||||
};
|
||||
|
||||
exports.bounds = {
|
||||
|
@ -326,6 +326,6 @@ var _drawTextCandidateFunc = (function() {
|
||||
|
||||
return function(conf) {
|
||||
return conf.textPlacement==='fo' ? byFo : (
|
||||
conf.textPlacement==='tspan' ? byTspan : byText);
|
||||
conf.textPlacement==='old' ? byText: byTspan);
|
||||
};
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user