Skip to content

Add text on network edge when focusing a package #284

@fraxken

Description

@fraxken

When focusing a package we highlight parent and children packages with some colors, but most of the time this is not enough to understand who is child and who is a parent

Vis.js allow to write text on edges

image

This has been done by editing the following code (in vis-network package)

this.rawEdgesData.push({
  from: id,
  label: "foobar",
  font: {
    size: 30,
    align: "middle",
    background: "#EEE"
  },
  to: data.dependencies[name].versions[version].id
});

Tip

Documentation is available here

The goal of the task is to implement on the highlight some text on edges with:

  • parent
  • children

So that's visually better for the end user

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions