fix
This commit is contained in:
10
lib/Graph.ts
10
lib/Graph.ts
@ -27,15 +27,15 @@ export class Graph extends Element {
|
||||
private get attributes (): Array<{name: string; value: string}> {
|
||||
const attributes = [];
|
||||
|
||||
if (this.color)
|
||||
if (typeof this.color !== 'undefined')
|
||||
attributes.push ({ name: 'color', value: this.color.toString () });
|
||||
if (this.style)
|
||||
if (typeof this.style !== 'undefined')
|
||||
attributes.push ({ name: 'style', value: this.style.toString () });
|
||||
if (this.overlap)
|
||||
if (typeof this.overlap !== 'undefined')
|
||||
attributes.push ({ name: 'overlap', value: this.overlap.toString () });
|
||||
if (this.splines)
|
||||
if (typeof this.splines !== 'undefined')
|
||||
attributes.push ({ name: 'splines', value: this.splines.toString () });
|
||||
if (this.layout)
|
||||
if (typeof this.layout !== 'undefined')
|
||||
attributes.push ({ name: 'layout', value: this.layout.toString () });
|
||||
|
||||
return attributes;
|
||||
|
Reference in New Issue
Block a user