Skip to content

Commit b40e282

Browse files
Merge
2 parents e7ff06d + 515ee03 commit b40e282

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/network/exampleApplications/nodeLegend.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@
9797
var x = - mynetwork.clientWidth / 2 + 50;
9898
var y = - mynetwork.clientHeight / 2 + 50;
9999
var step = 50;
100-
nodes.push({id: 1000, x: x, y: y, label: 'Internet', group: 'internet', value: 1, fixed: true, labelPosition: 'right', physics:false});
101-
nodes.push({id: 1001, x: x, y: y + step, label: 'Switch', group: 'switch', value: 1, fixed: true, labelPosition: 'right', physics:false});
102-
nodes.push({id: 1002, x: x, y: y + 2 * step, label: 'Server', group: 'server', value: 1, fixed: true, labelPosition: 'right', physics:false});
103-
nodes.push({id: 1003, x: x, y: y + 3 * step, label: 'Computer', group: 'desktop', value: 1, fixed: true, labelPosition: 'right', physics:false});
104-
nodes.push({id: 1004, x: x, y: y + 4 * step, label: 'Smartphone', group: 'mobile', value: 1, fixed: true, labelPosition: 'right', physics:false});
100+
nodes.push({id: 1000, x: x, y: y, label: 'Internet', group: 'internet', value: 1, labelPosition:'right', fixed: true, physics:false});
101+
nodes.push({id: 1001, x: x, y: y + step, label: 'Switch', group: 'switch', value: 1, labelPosition:'right', fixed: true, physics:false});
102+
nodes.push({id: 1002, x: x, y: y + 2 * step, label: 'Server', group: 'server', value: 1, labelPosition:'right', fixed: true, physics:false});
103+
nodes.push({id: 1003, x: x, y: y + 3 * step, label: 'Computer', group: 'desktop', value: 1, labelPosition:'right', fixed: true, physics:false});
104+
nodes.push({id: 1004, x: x, y: y + 4 * step, label: 'Smartphone', group: 'mobile', value: 1, labelPosition:'right', fixed: true, physics:false});
105105

106106
// create a network
107107
var container = document.getElementById('mynetwork');

test/Label.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,8 +1649,8 @@ describe('Shorthand Font Options', function() {
16491649
}
16501650

16511651
var label = new Label(body, options)
1652-
label.size.width = 1
1653-
label.size.height = 1
1652+
label.dimensions.width = 1
1653+
label.dimensions.height = 1
16541654

16551655
assert(
16561656
!label.visible(),

0 commit comments

Comments
 (0)