Moving the SVG styles out of the svg element
They are now processed with compass
This commit is contained in:
@@ -141,6 +141,12 @@ export default class Regexper {
|
||||
this.state = 'is-loading';
|
||||
this._trackEvent('visualization', 'start');
|
||||
|
||||
this.svg.innerHTML = [
|
||||
'<style type="text/css">',
|
||||
this.root.querySelector('#svg-styles').innerHTML,
|
||||
'</style>'
|
||||
].join('');
|
||||
|
||||
this.runningParser = new Parser();
|
||||
|
||||
return this.runningParser.parse(expression)
|
||||
|
||||
Reference in New Issue
Block a user