almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

network > nodes: feature request and bug - fixed size

SumNeuron opened this issue · comments

I am trying to (following the legend example)

make a legend which includes a star node (label goes below node) and circle (label goes inside and blows the node up)

I have tried every combination based on the specifications found here:

...
       // assume n is a node in the legend
        n.scaling = {
            min: 10,
            max: 10,
            label: {
              enabled: true,
              min: 10,
              max: 10,
              scalingMaxVisible: 10,
            },
            customScalingFunction: (min, max, total, value) => 1
          },
          // n.widthConstraint = {
          //   minimum: 10,
          //   maximum: 10,
          // }
...

when the network is loaded, things work fine, but when I use mouse to scroll on the container, the sizes change anyway.

Feature request: add toggle for label below node for all shapes.