Skip to content

Text component #111

@bianchi-dy

Description

@bianchi-dy

Vue-GG currently does not have a dedicated text component for text blocks or longer captions. The recent 02.526 assignment requires such captions, and several students have asked about how to carry it out. Some current methods include using:

  1. vgg-label - positioning-friendly and customizable, but doesn't support formatting in terms of justification, bounding area, etc. and shows only a single line of text
  2. vgg-plot-title - allows for longer text but not positioning-friendly and has the same single line of text problem
  3. text SVG - customizable (and plays nice with SVG) but not positioning-friendly

Some possible solutions:

  • extend vgg-label to handle text blocks (e.g. specifying bounding area, alignment, justification)
  • create a new component called vgg-text that handles text blocks (same principles apply)
  • consolidate all text-related handling in one component (so this component can be a plot title, a label, a longer caption, etc.)

Any thoughts?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions