Browse Source

- Fixed #904, correctly parsing global font options now.

flowchartTest
Alex de Mulder 9 years ago
parent
commit
8732beefa0
3 changed files with 3961 additions and 3960 deletions
  1. +1
    -0
      HISTORY.md
  2. +3959
    -3959
      dist/vis.js
  3. +1
    -1
      lib/network/modules/EdgesHandler.js

+ 1
- 0
HISTORY.md View File

@ -16,6 +16,7 @@ http://visjs.org
- Improved robustness against people molesting the Function.prototype.bind() - Improved robustness against people molesting the Function.prototype.bind()
- Fixed few functions including storePositions(). - Fixed few functions including storePositions().
- Added beginnings of unit testing for network. - Added beginnings of unit testing for network.
- Fixed #904, correctly parsing global font options now.
## 2015-05-28, version 4.1.0 ## 2015-05-28, version 4.1.0

+ 3959
- 3959
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
lib/network/modules/EdgesHandler.js View File

@ -169,7 +169,7 @@ class EdgesHandler {
// update fonts in all edges // update fonts in all edges
if (options.font !== undefined) { if (options.font !== undefined) {
// use the parser from the Label class to fill in all shorthand notations // use the parser from the Label class to fill in all shorthand notations
Label.parseOptions(this.options, options);
Label.parseOptions(this.options.font, options);
for (let edgeId in this.body.edges) { for (let edgeId in this.body.edges) {
if (this.body.edges.hasOwnProperty(edgeId)) { if (this.body.edges.hasOwnProperty(edgeId)) {
this.body.edges[edgeId].updateLabelModule(); this.body.edges[edgeId].updateLabelModule();

Loading…
Cancel
Save