Skip to content

How to center the text on 'edges' #2287

@wei-X7

Description

@wei-X7

Why are some 'unauthorized' displayed in the middle, while others are not? How to make all 'unauthorized' displayed in the middle?

Image

Options:
this.options = {
configure: false,
nodes: {
chosen: true,
shape: "image",
image: require("@/assets/access-control.png"),
font: {
color: "#000",
size: 12,
},
physics: false,
},
edges: {
arrows: {
to: {
enabled: true,
scaleFactor: 0.5,
},
},
font: { align: "middle" },
physics: false,
smooth: true,
},
interaction: {
hover: true,
dragNodes: false,
},
layout: {
hierarchical: {
enabled: true,
direction: "LR",
levelSeparation: 180,
nodeSpacing: 100,
},
},
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions