From be47ba2b3e15c639ee7ffc214cea5b803b06bdeb Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 22:50:41 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- js/dos/ext/vis/docs/network/nodes.html | 651 +++++++++++++++++++++++++ 1 file changed, 651 insertions(+) create mode 100644 js/dos/ext/vis/docs/network/nodes.html diff --git a/js/dos/ext/vis/docs/network/nodes.html b/js/dos/ext/vis/docs/network/nodes.html new file mode 100644 index 0000000..53a07a0 --- /dev/null +++ b/js/dos/ext/vis/docs/network/nodes.html @@ -0,0 +1,651 @@ + + + + + + + + + + vis.js - Nodes documentation. + + + + + + + + + + + + + + + + + + + + + + + + +
+

Network - nodes

+ +

Handles the creation and deletion of nodes and contains the global node options and styles.

+ Back to overview. +

Options

+

The options for the nodes have to be contained in an object titled 'nodes'. All of these options can be supplied per node as well. Obviously, 'id' should not be defined globally but per node. Options defined + in the global nodes object, are applied to all nodes. If a node has options of its own, those will be used instead of the global options.

+

When you have given a node an option, you will override the global option for that property. If you then set that option to null, + it will revert back to the default value. +

+

Click on the full options or shorthand options to show how these options are supposed to be used.

+ +
+ + + + +

These options can also be set per individual node. All of the individual options are explained here:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
borderWidthNumber1The width of the border of the node.
borderWidthSelectedNumberundefinedThe width of the border of the node when it is selected. When undefined, the borderWidth is used
brokenImageStringundefinedWhen the shape is set to image or circularImage, this option can be an URL to + a backup image in case the URL supplied in the image option cannot be resolved. +
colorObject or StringObjectThe color object contains the color information of the node in every situation. When the node only needs + a single color, a color value like 'rgba(120,32,14,1)', '#ffffff' or 'red' + can be supplied instead of an object. +
fixedObject or BooleanObjectWhen true, the node will not move but IS part of the physics simulation. When defined as an object, + movement in either X or Y direction can be disabled. +
fontObject or StringfalseThis object defines the details of the label. A shorthand is also supported in the form 'size face + color' for example: '14px arial red'. +
groupStringundefinedWhen not undefined, the
hiddenBooleanfalseWhen true, the node will not be shown. It will still be part of the physics simulation though!
iconObjectObjectThese options are only used when the shape is set to icon.
idStringundefinedThe id of the node. The id is mandatory for nodes and they have to be unique. This should obviously be set per node, not globally.
imageStringundefinedWhen the shape is set to image or circularImage, this option should be the URL + to an image. If the image cannot be found, the brokenImage option can be used. +
labelStringundefinedThe label is the piece of text shown in or under the node, depending on the shape.
labelHighlightBoldBooleantrueDetermines whether or not the label becomes bold when the node is selected.
levelNumberundefinedWhen using the hierarchical layout, the level determines where the node is going to be positioned.
massNumber1The barnesHut physics model (which is enabled by default) is based on an inverted gravity model. By + increasing the mass of a node, you increase it's repulsion. Values lower than 1 are not recommended. +
physicsBooleantrueWhen false, the node is not part of the physics simulation. It will not move except for from manual + dragging. +
scalingObjectObjectIf the value option is specified, the size of the nodes will be scaled according to the + properties in this object. All node shapes can be scaled, but some only when label scaling is enabled as + their size is based on the size of the label. + Only scalable when label scaling is enabled are: + ellipse, circle, database, box, text. + Always scalable are: + image, circularImage, diamond, dot, + star, triangle, triangleDown, square and + icon. Keep in mind that when using scaling, the size option is neglected. +
shadowObject or BooleanObjectWhen true, the node casts a shadow using the default settings. This can be further refined by supplying + an object. +
shapeString'ellipse'The shape defines what the node looks like. There are two types of nodes. One type has the label inside + of it and the other type has the label underneath it. The types with the label inside of it are: + ellipse, circle, database, box, text. + The ones with the label outside of it are: image, circularImage, + diamond, dot, star, triangle, + triangleDown, square and icon. +
sizeNumber25The size is used to determine the size of node shapes that do not have the label inside of them. These + shapes are: image, circularImage, diamond, dot, + star, triangle, triangleDown, square and + icon
titleString or ElementundefinedTitle to be displayed when the user hovers over the node. The title can be an HTML element or a string + containing plain text or HTML. +
valueNumberundefinedWhen a value is set, the nodes will be scaled using the options in the scaling object defined above. +
xNumberundefinedThis gives a node an initial x position. When using the hierarchical layout, either the x or y position + is set by the layout engine depending on the type of view. The other value remains untouched. When using + stabilization, the stabilized position may be different from the initial one. To lock the node to that + position use the physics or fixed options. +
yNumberundefinedThis gives a node an initial y position. When using the hierarchical layout, either the x or y position + is set by the layout engine depending on the type of view. The other value remains untouched. When using + stabilization, the stabilized position may be different from the initial one. To lock the node to that + position use the physics or fixed options. +
+ +
+ + + + + + + + + \ No newline at end of file