Closed monoglo closed 2 months ago
OK, I get it, just add below code:
if (link && link.data) {
this.renderLink(
ctx,
start_node_slotpos,
end_node_slotpos,
link,
true,
true,
"green",
start_dir,
end_dir
);
continue;
}
In fact, at first I just want event triggered link's flow points animation on every link that has 'true' value, to visualize data's flow. But I haven't found that setting parameter.
So I think it's an another good idea that display link color by its value. Simplily, just boolean value, green to true, gray to false. Then we can customize a map of value to color.