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

Render labels in bricks #353

Open
7 tasks done
meganindya opened this issue Jul 9, 2023 · 0 comments
Open
7 tasks done

Render labels in bricks #353

meganindya opened this issue Jul 9, 2023 · 0 comments
Assignees

Comments

@meganindya
Copy link
Member

meganindya commented Jul 9, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🛠️ In Progress
Development

No branches or pull requests

2 participants