This commit is contained in:
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
import { NodeStyles } from '../enums/Styles';
|
||||
import { NodeShapes } from '../enums/Shapes';
|
||||
import { Element } from './Element';
|
||||
import { Color } from './Color';
|
||||
|
||||
@ -15,6 +16,7 @@ export class Node extends Element {
|
||||
public table_contents?: Array<Array<string>>;
|
||||
public style?: NodeStyles;
|
||||
public color?: Color;
|
||||
public shape?: NodeShapes;
|
||||
|
||||
public constructor (name: string, parent: string, label?: string) {
|
||||
super (name, parent);
|
||||
@ -47,6 +49,8 @@ export class Node extends Element {
|
||||
}
|
||||
if (this.style)
|
||||
attributes.push ({ name: 'style', value: this.style.toString () });
|
||||
if (this.shape)
|
||||
attributes.push ({ name: 'shape', value: this.shape.toString () });
|
||||
if (this.color)
|
||||
attributes.push ({ name: 'color', value: this.color.toString () });
|
||||
|
||||
|
Reference in New Issue
Block a user