mermaid
Version:
Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.
30 lines (23 loc) • 476 B
JavaScript
/**
* Created by knut on 15-01-14.
*/
var Logger = require('../../logger')
var log = Logger.Log
var message = ''
var info = false
exports.setMessage = function (txt) {
log.debug('Setting message to: ' + txt)
message = txt
}
exports.getMessage = function () {
return message
}
exports.setInfo = function (inf) {
info = inf
}
exports.getInfo = function () {
return info
}
exports.parseError = function (err, hash) {
global.mermaidAPI.parseError(err, hash)
}