mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 19:54:17 +01:00
Remove parseError properties
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
* returns a svg element for the graph. It is is then up to the user of the API to make use of the svg, either insert it
|
||||
* somewhere in the page or something completely different.
|
||||
*/
|
||||
import EventEmitter from 'events'
|
||||
|
||||
var Logger = require('./logger')
|
||||
var log = Logger.Log
|
||||
|
||||
@@ -38,8 +36,6 @@ var gitGraphRenderer = require('./diagrams/gitGraph/gitGraphRenderer')
|
||||
var gitGraphAst = require('./diagrams/gitGraph/gitGraphAst')
|
||||
var d3 = require('./d3')
|
||||
|
||||
module.exports.eventEmitter = new EventEmitter()
|
||||
|
||||
/**
|
||||
* ## Configuration
|
||||
* These are the default options which can be overridden with the initialization call as in the example below:
|
||||
@@ -533,21 +529,10 @@ module.exports.getConfig = function () {
|
||||
return config
|
||||
}
|
||||
|
||||
module.exports.parseError = function (err, hash) {
|
||||
if (typeof mermaid !== 'undefined') {
|
||||
global.mermaid.parseError(err, hash)
|
||||
} else {
|
||||
log.debug('Mermaid Syntax error:')
|
||||
log.debug(err)
|
||||
}
|
||||
}
|
||||
|
||||
global.mermaidAPI = {
|
||||
render: module.exports.render,
|
||||
parse: module.exports.parse,
|
||||
initialize: module.exports.initialize,
|
||||
detectType: utils.detectType,
|
||||
parseError: module.exports.parseError,
|
||||
getConfig: module.exports.getConfig,
|
||||
eventEmitter: module.exports.eventEmitter
|
||||
getConfig: module.exports.getConfig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user