|
|
@ -122,7 +122,7 @@ class Node { |
|
|
|
if (options.x !== undefined) {this.x = parseInt(options.x); this.predefinedPosition = true;} |
|
|
|
if (options.y !== undefined) {this.y = parseInt(options.y); this.predefinedPosition = true;} |
|
|
|
if (options.size !== undefined) {this.baseSize = options.size;} |
|
|
|
if (options.value !== undefined) {options.value = parseInt(options.value);} |
|
|
|
if (options.value !== undefined) {options.value = parseInt(options.value);} |
|
|
|
|
|
|
|
// this transforms all shorthands into fully defined options
|
|
|
|
Node.parseOptions(this.options,options); |
|
|
@ -194,6 +194,9 @@ class Node { |
|
|
|
} |
|
|
|
|
|
|
|
updateLabelModule() { |
|
|
|
if (this.options.label === undefined || this.options.label === null) { |
|
|
|
this.options.label = ''; |
|
|
|
} |
|
|
|
this.labelModule.setOptions(this.options); |
|
|
|
if (this.labelModule.baseSize !== undefined) { |
|
|
|
this.baseFontSize = this.labelModule.baseSize; |
|
|
|