dash14 / v-network-graph

An interactive network graph visualization component for Vue 3
https://dash14.github.io/v-network-graph/
MIT License
495 stars 44 forks source link

Font-size in configs.label not working. #154

Open vphatfla opened 1 month ago

vphatfla commented 1 month ago

configs.label font-size is NOT working, although other options like color or direction works fine.

const nodeSize = 50
...
configs = {
  node: {
    normal: {
      type: 'rect',
      width: nodeSize * 2,
      height: nodeSize * 1.5,
      color: 'gray'
    },
    label: {
      text: 'short_name',
      visible: true,
      direction: 'center',
      fontSize: 12,
      color: 'black',
      directionAutoAdjustment: false
    }
  },
}
image

Also, is the a way that force the label to break a line new when the text goes out of the rect area?

Thanks!