From 297c74f8462b65fb523d2065b8e6d8ac568f544b Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Mon, 8 Sep 2014 12:36:01 +0200 Subject: [PATCH] updated example, updated history --- HISTORY.md | 1 + examples/network/10_multiline_text.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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