Skip to content

vjust support #148

@tdhock

Description

@tdhock
  • a test for values of 0, 0.5, 1-- draw an hline at say y=5, then draw some text at x=1,2,3 and y=5 with vjust=0,0.5,1. Test that bounding box of text element is on either side or in the middle of the bounding box for the hline.
  • similar test for hjust.
  • use the measureText JS function to get the height and width of a text element, and use that to compute vjust.
  • also use that for hjust instead of text-anchor property.
  • also use that for text elements that are not geoms, for example axis tick labels.

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