diff --git a/HISTORY.md b/HISTORY.md index 8ee7ce20..e04e9ae8 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -22,8 +22,33 @@ http://visjs.org - Fixed invalid css names for time axis grid, renamed hours class names from `4-8h` to `h4-h8`. +### Network + +- Rebuilt the cluster system + + + +## not yet released, version 3.10.1-SNAPSHOT + +### Network + +- (added gradient coloring for lines, but set for release in 4.0 due to required refactoring of options) +- Fixed bug where a network that has frozen physics would resume redrawing after setData, setOptions etc. +- (add docs) Added option to bypass default groups. If more groups are specified in the nodes than there are in the groups, loop over supplied groups instead of default. +- (add docs) Added two new static smooth curves modes: curveCW and curve CCW. +- Added request redraw for certain internal processes to reduce number of draw calls. +- Added pull request for usage of Icons. Thanks @Dude9177! +- Allow hierarchical view to be set in setOptions. + +### Graph2d + + + +### Timeline + +- Fixed not property initializing with a DataView for groups. + -## not yet released, version 3.9.2-SNAPSHOT ## 2015-02-11, version 3.10.0 ### Network diff --git a/docs/graph2d.html b/docs/graph2d.html index bcc03402..a4355b1b 100644 --- a/docs/graph2d.html +++ b/docs/graph2d.html @@ -175,6 +175,12 @@ var items = [ no The ID of the group this point belongs to. + + label + object + no + A label object which will be displayed near to the item. A label object has one requirement - a content property. In addition you can set the xOffset, yOffset and className for further appearance customisations +

Groups

diff --git a/docs/network.html b/docs/network.html index d1c2e9af..dfbac7e0 100644 --- a/docs/network.html +++ b/docs/network.html @@ -1009,7 +1009,6 @@ mySize = minSize + diff * scale; 'white' The color of the label stroke. - shape string @@ -1018,7 +1017,7 @@ mySize = minSize + diff * scale; Choose from ellipse (default), circle, box, database, image, circularImage, label, dot, - star, triangle, triangleDown, and square. + star, triangle, triangleDown, square and icon.

In case of image and circularImage, a property with name image must @@ -1095,6 +1094,30 @@ mySize = minSize + diff * scale; The maximum radius for a scaled node. Only applicable to shapes dot, star, triangle, triangleDown, and square. This only does something if you supply a value. + + iconFontFace + String + undefined + Font face for icons, for example FontAwesome or Ionicon.
You have to link to the css defining the font by yourself (see Examples) + + + icon + String + undefined + Unicode of the icon f.e. \uf0c0 (user-icon in FontAwesome) + + + iconSize + Number + 50 + Size of the icon + + + color + String + black + Color of the icon + diff --git a/examples/graph2d/19_labels.html b/examples/graph2d/19_labels.html new file mode 100644 index 00000000..7f140180 --- /dev/null +++ b/examples/graph2d/19_labels.html @@ -0,0 +1,65 @@ + + + + + + + Graph2d | Basic Example + + + + + + + +

Graph2d | Label Example

+
+ This example shows the how to add a label to each point in Graph2d. Each item can have a label object which contains the content and CSS class.In addition, xOffset and yOffset will adjust the location of the label relative to the point being labelled. + + +

+ +
+
+
+ + + + \ No newline at end of file diff --git a/examples/network/06_groups.html b/examples/network/06_groups.html index 19964045..1e2ecf3b 100644 --- a/examples/network/06_groups.html +++ b/examples/network/06_groups.html @@ -8,9 +8,10 @@ font: 10pt arial; } #mynetwork { - width: 600px; - height: 600px; + width: 1900px; + height: 900px; border: 1px solid lightgray; + background-color:#222222; } @@ -139,11 +140,14 @@ edges: edges }; var options = { - stabilize: false, + stabilize: true, nodes: { - shape: 'dot' + shape: 'dot', + radius:30, + fontColor:'#ffffff', + borderWidth:2 }, - physics: {barnesHut:{springLength: 200}} + physics: {barnesHut:{springLength: 100}} }; network = new vis.Network(container, data, options); } @@ -154,9 +158,9 @@
Number of groups: - + Number of nodes per group: - +

diff --git a/examples/network/25_physics_configuration.html b/examples/network/25_physics_configuration.html index 1d42c625..104040be 100644 --- a/examples/network/25_physics_configuration.html +++ b/examples/network/25_physics_configuration.html @@ -78,7 +78,6 @@ }; var options = { - edges:{opacity:0.2}, stabilize: false, configurePhysics:true }; diff --git a/examples/network/26_staticSmoothCurves.html b/examples/network/26_staticSmoothCurves.html index 1c338269..d6b06dde 100644 --- a/examples/network/26_staticSmoothCurves.html +++ b/examples/network/26_staticSmoothCurves.html @@ -32,19 +32,26 @@ Smooth curve type: + + +
+Roundness (0..1): (0.5 is max roundness for continuous, 1.0 for the others)
diff --git a/examples/network/27_world_cup_network.html b/examples/network/27_world_cup_network.html index 54e85cb5..7361849d 100644 --- a/examples/network/27_world_cup_network.html +++ b/examples/network/27_world_cup_network.html @@ -39,6 +39,8 @@ Smooth curve type: + +
inheritColor option: