mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
More forgiving flowcharts, space at the end of the line allowed
This commit is contained in:
@@ -316,12 +316,13 @@ module.exports.draw = function (text, id) {
|
||||
|
||||
function drawToday(theSidePad, theTopPad, w, h) {
|
||||
var todayG = svg.append('g')
|
||||
.attr('class', 'today')
|
||||
.attr('class', 'today');
|
||||
|
||||
var today = new Date();
|
||||
|
||||
var todayLine = todayG.append("line")
|
||||
.attr("x1", timeScale(new Date('2014-01-13')) + theSidePad)
|
||||
.attr("x2", timeScale(new Date('2014-01-13')) + theSidePad)
|
||||
.attr("x1", timeScale(today) + theSidePad)
|
||||
.attr("x2", timeScale(today) + theSidePad)
|
||||
.attr("y1", conf.titleTopMargin)
|
||||
.attr("y2", h-conf.titleTopMargin)
|
||||
.attr('class', 'today')
|
||||
|
Reference in New Issue
Block a user