Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label text size #5

Open
matejv opened this issue Jan 18, 2017 · 3 comments
Open

Label text size #5

matejv opened this issue Jan 18, 2017 · 3 comments

Comments

@matejv
Copy link

matejv commented Jan 18, 2017

Hi. That looks to be a very promising tool to possibly automate generation of network diagrams.

But is there a way to increase the size of icon and connection labels? The defaults are kind of small.

@cidrblock
Copy link
Owner

The labels should be sized to fit within the space they have. Do you have an example yaml?

@matejv
Copy link
Author

matejv commented Jan 19, 2017

Oh, I see. Thanks for the answer.

Well, that works for icon labels. But connections labels are always the same size. For example:

diagram:
  fill: "white"
  rows: 5
  columns: 5
  gridLines: true
cisco: &cisco
  x: "+2"
  y: "+2"
  w: "1.5"
  h: "1.5"
  fill: "none"
  stroke: "none"
  iconFamily: "cisco"
  icon: "router"
icons:
  router1: {<<: *cisco, x: 1, y: 1 }
  router2: {<<: *cisco}
connections:
  - {endpoints: ["router1:labelstart","router2:labelend"]}

Ideally you could define labels the same way you can define notes. But instead of placing it on the diagram with x and y you would reference it in one or more icons or connections and the app would place it in an appropriate place.

Alternatively just some controls over text size and possibly placement from start/end of connection would be great.

@edurguti
Copy link

I have the same issue.. my connection labels are invisible when i do 20 columns/rows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants