|
@ -10494,6 +10494,7 @@ Edge.prototype.setProperties = function(properties, constants) { |
|
|
this.fontSize = constants.edges.fontSize; |
|
|
this.fontSize = constants.edges.fontSize; |
|
|
this.fontFace = constants.edges.fontFace; |
|
|
this.fontFace = constants.edges.fontFace; |
|
|
this.fontColor = constants.edges.fontColor; |
|
|
this.fontColor = constants.edges.fontColor; |
|
|
|
|
|
|
|
|
if (properties.fontColor !== undefined) {this.fontColor = properties.fontColor;} |
|
|
if (properties.fontColor !== undefined) {this.fontColor = properties.fontColor;} |
|
|
if (properties.fontSize !== undefined) {this.fontSize = properties.fontSize;} |
|
|
if (properties.fontSize !== undefined) {this.fontSize = properties.fontSize;} |
|
|
if (properties.fontFace !== undefined) {this.fontFace = properties.fontFace;} |
|
|
if (properties.fontFace !== undefined) {this.fontFace = properties.fontFace;} |
|
@ -16389,7 +16390,10 @@ Graph.prototype.setOptions = function (options) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!options.edges.fontColor) { |
|
|
if (!options.edges.fontColor) { |
|
|
this.constants.edges.fontColor = options.edges.color; |
|
|
|
|
|
|
|
|
if (options.edges.color !== undefined) { |
|
|
|
|
|
if (util.isString(options.edges.color)) {this.constants.edges.fontColor = options.edges.color;} |
|
|
|
|
|
else if (options.edges.color.color !== undefined) {this.constants.edges.fontColor = options.edges.color.color;} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Added to support dashed lines
|
|
|
// Added to support dashed lines
|
|
|