drawthe.net icon indicating copy to clipboard operation
drawthe.net copied to clipboard

Label text size

Open matejv opened this issue 8 years ago • 3 comments

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.

matejv avatar Jan 18 '17 10:01 matejv

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

cidrblock avatar Jan 18 '17 22:01 cidrblock

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.

matejv avatar Jan 19 '17 07:01 matejv

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

edurguti avatar Apr 15 '19 11:04 edurguti