anvaka / pm

package managers visualization
https://anvaka.github.io/pm/
MIT License
1.57k stars 135 forks source link

how to set node color and text? #26

Open ruoru opened 6 years ago

ruoru commented 6 years ago

i can not found the setting in code, good repo.

brienna commented 2 years ago

Node color can be set in src/galaxy/native/renderer.js.

You will see these colors:

var defaultNodeColor = 0xffffffff; // white
var highlightNodeColor = 0xff0000ff; // red

But also note that in both the colorNode and cls functions, it manually sets the node color to white, instead of using the defaultNodeColor variable.