Skip to content

Render labels in bricksย #353

@meganindya

Description

@meganindya

The width of the bricks should depend on the width of the brick label and the maximum width of its argument labels (if there exist any). The flexible width of the brick based on the said widths are required for the brick outline generation.

  • Render labels in the brick React components
  • Collect the widths using getBBox
  • Calculate the required flexible width of the brick using the label widths
  • Set labelWidth property in the brick model classes
  • Generate path while considering the labelWidth
  • Draw path using the generated path dimensions in the brick React components
  • Position labels accordingly within the boundaries of the path

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

๐Ÿ› ๏ธ In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions