File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 367
367
$el . find ( 'polygon, ellipse, path' ) . each ( function ( ) {
368
368
var $this = $ ( this )
369
369
var color = $this . data ( 'graphviz.svg.color' )
370
- if ( color . fill && $this . prop ( 'tagName' ) != 'path' ) {
370
+ if ( color . fill && color . fill != "none" && $this . prop ( 'tagName' ) != 'path' ) {
371
371
$this . attr ( 'fill' , getColor ( color . fill , bg ) ) // don't set fill if it's a path
372
372
}
373
- if ( color . stroke ) {
373
+ if ( color . stroke && color . stroke != "none" ) {
374
374
$this . attr ( 'stroke' , getColor ( color . stroke , bg ) )
375
375
}
376
376
} )
380
380
$el . find ( 'polygon, ellipse, path' ) . each ( function ( ) {
381
381
var $this = $ ( this )
382
382
var color = $this . data ( 'graphviz.svg.color' )
383
- if ( color . fill ) {
383
+ if ( color . fill && color . fill != "none" ) {
384
384
$this . attr ( 'fill' , color . fill ) // don't set fill if it's a path
385
385
}
386
- if ( color . stroke ) {
386
+ if ( color . stroke && color . stroke != "none" ) {
387
387
$this . attr ( 'stroke' , color . stroke )
388
388
}
389
389
} )
You can’t perform that action at this time.
0 commit comments