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

@@ -315,7 +315,7 @@ export const draw = function (text, id) {
parser.parse(text + '\n')
bounds.init()
const diagram = d3.select('#' + id)
const diagram = d3.select(`[id="${id}"]`)
let startx
let stopx