Fix CSS cannot select number ID issue

This commit is contained in:
Tyler Long
2018-03-17 09:10:10 +08:00
parent b777c8de15
commit 015b976c28
10 changed files with 51 additions and 10 deletions

View File

@@ -307,7 +307,7 @@ export const draw = function (text, id) {
logger.info('Rendering diagram ' + text)
/// / Fetch the default direction, use TD if none was found
const diagram = d3.select('#' + id)
const diagram = d3.select(`[id="${id}"]`)
insertMarkers(diagram)
// Layout graph, Create a new directed graph