Skip to content

Conversation

@BryonLewis
Copy link
Collaborator

Zooming out caused the text to move significantly when using the bounding box.

20251003-BatAI-MeasuringTextAlignment_small.mp4
  • Removes all offsetX and offsetY setting for values
  • Updates the TextData with BoundingBoxTextData that includes textAlign and textBaseline
    • textAlign allows you to specify the start/end/center location for the X-axis of the text
    • textBaseline allows you to specify the top/middle/bottom for the Y-axis fo the text
  • Using these I could get rid of deteremineFreqOffset
  • I replaced all ms with ₘₛ the subscript version that is used else where in the annotation area. It just reduces the size of text to hopefully make it easier if things are closer together.
  • Also did a minor adjustment to the types.ts, I had an extra visible type declaration so I cleaned that up.

@BryonLewis BryonLewis merged commit 5775c0e into issue-201-nabat-bounding-box Oct 3, 2025
4 checks passed
@BryonLewis BryonLewis deleted the issue-201-text-alignment branch November 25, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants