From b97a2a74f3d7d479906b3e32f53e0ccb09c6dc4b Mon Sep 17 00:00:00 2001 From: Coleman Kane Date: Sun, 6 Mar 2016 14:44:48 -0500 Subject: [PATCH] Add left-align to the example --- examples/network/labels/labelAlignment.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/network/labels/labelAlignment.html b/examples/network/labels/labelAlignment.html index d302bc84..2397e219 100644 --- a/examples/network/labels/labelAlignment.html +++ b/examples/network/labels/labelAlignment.html @@ -21,7 +21,10 @@ -

Labels of edges can be aligned to edges in various ways.
Label alignment for nodes (top, bottom, left, right, inside) is planned but not in vis yet.

+

Labels of edges can be aligned to edges in various ways.

+

Text-alignment within node labels can be 'left' or 'center', other font alignments not implemented.

+

Label alignment (placement of label "box") for nodes (top, bottom, left, right, inside) is +planned but not in vis yet.

@@ -30,9 +33,10 @@ var nodes = [ {id: 1, label: 'Node 1'}, {id: 2, label: 'Node 2'}, - {id: 3, label: 'Node 3'}, + {id: 3, label: 'Node 3:\nLeft-Aligned', font: {'face': 'Monospace', align: 'left'}}, {id: 4, label: 'Node 4'}, - {id: 5, label: 'Node 5'} + {id: 5, label: 'Node 5\nLeft-Aligned box', shape: 'box', + font: {'face': 'Monospace', align: 'left'}} ]; // create an array with edges