diff --git a/HISTORY.md b/HISTORY.md index 70b082e8..43ffbce6 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -13,6 +13,7 @@ http://visjs.org - Fixed some positioning issues with the close button of the manipulation menu. - Added fontFill to Nodes as it is in Edges. - Implemented support for broken image fallback. Thanks @sfairgrieve. +- Added multiline labels to edges as they are implemented in nodes. Updated multiline example to show this. ### Timeline diff --git a/examples/network/10_multiline_text.html b/examples/network/10_multiline_text.html index f05c70f3..dfea910d 100644 --- a/examples/network/10_multiline_text.html +++ b/examples/network/10_multiline_text.html @@ -29,8 +29,8 @@ var edges = [ {from: 1, to: 2, style: 'line', color: 'red', width: 3, length: 200}, // individual length definition is possible {from: 1, to: 3, style: 'dash-line', width: 1, length: 200}, - {from: 1, to: 4, style: 'line', width: 1, length: 200}, - {from: 1, to: 5, style: 'arrow', width: 3, length: 200} + {from: 1, to: 4, style: 'line', width: 1, length: 200, label:'I\'m an edge!'}, + {from: 1, to: 5, style: 'arrow', width: 3, length: 200, label:'arrows\nare cool'} ]; // create a network