visjs / vis-network

:dizzy: Display dynamic, automatically organised, customizable network views.

Home Page:https://visjs.github.io/vis-network/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Init elementOptions from options: _getColor, this.elementOptions.scaling.label.drawThreshold always equal 5 (default value)

KBAHTNET opened this issue · comments

There was a problem with the disappearance of signatures from nodes when a graph is drawn on a very large canvas, for example, 100000 * 100000 px. The equivalent effect of rendering on a canvas, the size of a standard screen and the maximum approximation when the signatures become transparent. I started to figure out how to make them stay, eventually I found the "scaling.label" parameter in the options in the documentation. I changed this object in different ways. The effect values 0. I started reading the sources and got to the _getColor function. Inside the function, I output various parameters and realized that the values I set in the options (not at the node itself) have no effect on what will be inside this.elementOptions.scaling.label. I use the library in vue 3

  • version 9.1.9
  • date 2023-11-03T01:42:27.418Z
    image