From a42368c170d1304a03de6ca77432aec53c660de8 Mon Sep 17 00:00:00 2001 From: Paul Dugas Date: Fri, 5 Jan 2018 05:34:53 -0500 Subject: [PATCH] Add `icon` option to ShapeBase (#3756) * Add support for `icon` option to ShapeBase * Add test/example for new ShapeBase `icon` option * Update docs for new `icon` ShapeBase option --- docs/network/nodes.html | 4 +++- examples/network/nodeStyles/shapes.html | 3 +++ .../modules/components/nodes/util/ShapeBase.js | 12 ++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/network/nodes.html b/docs/network/nodes.html index c0c0fff2..c9d65f1f 100644 --- a/docs/network/nodes.html +++ b/docs/network/nodes.html @@ -653,7 +653,9 @@ network.setOptions(options); icon Object Object - These options are only used when the shape is set to icon. + These options are only used when the shape is set to icon, diamond, + dot, hexagon, square, star, + triangledown, or triangle. icon.face diff --git a/examples/network/nodeStyles/shapes.html b/examples/network/nodeStyles/shapes.html index bf1a5c85..bd1870cb 100644 --- a/examples/network/nodeStyles/shapes.html +++ b/examples/network/nodeStyles/shapes.html @@ -13,6 +13,7 @@ +