Repository navigation
Add support for a title - #29
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
The change spans browser-dependent layout, multi-plot alignment, export, and accessibility behavior without focused PlotWidget integration tests, so human visual and runtime validation is needed.
No open issues 🎉
What changed in this PR
Adds configurable plot titles with placement, alignment, accessibility, and SVG export support.
Changes:
- Adds title properties and public exports.
- Updates margin alignment and title rendering.
- Adds documentation, tests, version update, and demo controls.
| File | Description |
|---|---|
| src/widgets/PlotWidget.vue | Renders, positions, aligns, labels, and exports plot titles. |
| src/common/alignUtils.ts | Supports aligned margin sections for plot titles. |
| src/common/alignUtils.test.ts | Tests the enhanced margin-sharing behavior. |
| README.md | Documents plot title properties and alignment behavior. |
| package.json | Updates the package version. |
| index.ts | Exports the PlotTitlePosition type. |
| demo/App.vue | Adds controls demonstrating title positions. |
Review effort: Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #28.