Comparing version 8.0.0-beta.4 to 8.0.0-beta.5
{ | ||
"name": "mermaid", | ||
"version": "8.0.0-beta.4", | ||
"version": "8.0.0-beta.5", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
@@ -5,0 +5,0 @@ "main": "dist/mermaid.core.js", |
@@ -310,3 +310,3 @@ import dagre from 'dagre-layout' | ||
/// / Fetch the default direction, use TD if none was found | ||
const diagram = d3.select('#' + id) | ||
const diagram = d3.select(`[id="${id}"]`) | ||
insertMarkers(diagram) | ||
@@ -313,0 +313,0 @@ |
@@ -169,3 +169,3 @@ import * as d3 from 'd3' | ||
funs.push(function (element) { | ||
const elem = d3.select(element).select('#' + id) | ||
const elem = d3.select(element).select(`[id="${id}"]`) | ||
if (elem !== null) { | ||
@@ -186,3 +186,3 @@ elem.on('click', function () { | ||
funs.push(function (element) { | ||
const elem = d3.select(element).select('#' + id) | ||
const elem = d3.select(element).select(`[id="${id}"]`) | ||
if (elem !== null) { | ||
@@ -189,0 +189,0 @@ elem.on('click', function () { |
@@ -394,3 +394,3 @@ import graphlib from 'graphlibrary' | ||
// Set up an SVG group so that we can translate the final graph. | ||
const svg = d3.select('#' + id) | ||
const svg = d3.select(`[id="${id}"]`) | ||
@@ -397,0 +397,0 @@ // Run the renderer. This is what draws the final graph. |
@@ -50,3 +50,3 @@ import * as d3 from 'd3' | ||
elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h) | ||
const svg = d3.select('#' + id) | ||
const svg = d3.select(`[id="${id}"]`) | ||
@@ -53,0 +53,0 @@ // Set timescale |
@@ -259,3 +259,3 @@ import _ from 'lodash' | ||
} | ||
const svg = d3.select('#' + id) | ||
const svg = d3.select(`[id="${id}"]`) | ||
svgCreateDefs(svg) | ||
@@ -262,0 +262,0 @@ branchNum = 1 |
@@ -318,3 +318,3 @@ import * as d3 from 'd3' | ||
bounds.init() | ||
const diagram = d3.select('#' + id) | ||
const diagram = d3.select(`[id="${id}"]`) | ||
@@ -321,0 +321,0 @@ let startx |
@@ -415,3 +415,3 @@ /** | ||
d3.select('#' + id).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml') | ||
d3.select(`[id="${id}"]`).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml') | ||
@@ -418,0 +418,0 @@ let url = '' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11126164