mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-01 14:46:41 +02:00
Put label right down the vert line
This commit is contained in:
@@ -316,7 +316,11 @@ export const draw = function (text, id, version, diagObj) {
|
|||||||
// .attr('height', theBarHeight)
|
// .attr('height', theBarHeight)
|
||||||
.attr('height', function (d) {
|
.attr('height', function (d) {
|
||||||
if (d.vert) {
|
if (d.vert) {
|
||||||
return 1000.5 * theBarHeight;
|
return (
|
||||||
|
conf.gridLineStartPadding +
|
||||||
|
taskArray.length * (conf.barHeight + conf.barGap) +
|
||||||
|
conf.barHeight * 2
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return theBarHeight;
|
return theBarHeight;
|
||||||
})
|
})
|
||||||
@@ -426,7 +430,7 @@ export const draw = function (text, id, version, diagObj) {
|
|||||||
.attr('y', function (d, i) {
|
.attr('y', function (d, i) {
|
||||||
// Ignore the incoming i value and use our order instead
|
// Ignore the incoming i value and use our order instead
|
||||||
if (d.vert) {
|
if (d.vert) {
|
||||||
return conf.gridLineStartPadding + taskArray.length * (conf.barHeight + conf.barGap) + 50;
|
return conf.gridLineStartPadding + taskArray.length * (conf.barHeight + conf.barGap) + 60;
|
||||||
}
|
}
|
||||||
i = d.order;
|
i = d.order;
|
||||||
return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;
|
return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;
|
||||||
|
@@ -237,6 +237,10 @@ const getStyles = (options) =>
|
|||||||
fill: ${options.taskTextDarkColor} !important;
|
fill: ${options.taskTextDarkColor} !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vertText {
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.activeCritText0,
|
.activeCritText0,
|
||||||
.activeCritText1,
|
.activeCritText1,
|
||||||
.activeCritText2,
|
.activeCritText2,
|
||||||
|
Reference in New Issue
Block a user