Skip to content

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

@vphatfla

Description

@vphatfla

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions