diff --git a/examples/network/basicUsage.html b/examples/network/basicUsage.html index 2b8b086c..f1f4e5f9 100644 --- a/examples/network/basicUsage.html +++ b/examples/network/basicUsage.html @@ -37,7 +37,8 @@ {from: 1, to: 3}, {from: 1, to: 2}, {from: 2, to: 4}, - {from: 2, to: 5} + {from: 2, to: 5}, + {from: 3, to: 3} ]); // create a network diff --git a/examples/network/edgeStyles/colors.html b/examples/network/edgeStyles/colors.html index 99d98b11..4f99a340 100644 --- a/examples/network/edgeStyles/colors.html +++ b/examples/network/edgeStyles/colors.html @@ -30,14 +30,14 @@ diff --git a/examples/network/nodeStyles/widthHeight.html b/examples/network/nodeStyles/widthHeight.html index 565e900b..0453116e 100644 --- a/examples/network/nodeStyles/widthHeight.html +++ b/examples/network/nodeStyles/widthHeight.html @@ -86,7 +86,7 @@ Whole-set node and edge constraints are exclusive.

{ from: 300, to: 301, label: "more minimum height"}, { from: 100, to: 400, label: "unconstrained to top valign"}, { from: 400, to: 401, label: "top valign to middle valign"}, - { from: 401, to: 402, label: "middle valign to bottom valign"}, + { from: 401, to: 402, widthConstraint: { maximum: 150 }, label: "middle valign to bottom valign"}, ]; var container = document.getElementById('mynetwork'); @@ -105,7 +105,10 @@ Whole-set node and edge constraints are exclusive.

}, nodes: { shape: 'box', - margin: 10 + margin: 10, + widthConstraint: { + maximum: 200 + } }, physics: { enabled: false diff --git a/examples/timeline/items/htmlContents.html b/examples/timeline/items/htmlContents.html index d790133a..c57b5652 100644 --- a/examples/timeline/items/htmlContents.html +++ b/examples/timeline/items/htmlContents.html @@ -48,7 +48,7 @@ item5.appendChild(document.createTextNode('item 5')); item5.appendChild(document.createElement('br')); var img5 = document.createElement('img'); - img5.src = 'img/attachment-icon.png'; + img5.src = '../resources/img/attachment-icon.png'; img5.style.width = '48px'; img5.style.height = '48px'; item5.appendChild(img5); @@ -72,4 +72,4 @@ var timeline = new vis.Timeline(container, items, options); - \ No newline at end of file + diff --git a/examples/timeline/other/usingReact.html b/examples/timeline/other/usingReact.html index ba7bb49f..8c9ade42 100644 --- a/examples/timeline/other/usingReact.html +++ b/examples/timeline/other/usingReact.html @@ -93,7 +93,7 @@ return ReactDOM.render(, element); }, groupTemplate: function (group, element) { - if (!item) { return } + if (!group) { return } ReactDOM.unmountComponentAtNode(element); return ReactDOM.render(, element); }