Skip to content

Add support for a title - #29

Merged
agarny merged 2 commits into
opencor:mainfrom
agarny:issue28
Dec 3, 2026
Merged

agarny merged 2 commits into
opencor:mainfrom
agarny:issue28

Conversation

@agarny

@agarny agarny commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #28.

Copilot AI lite review requested due to automatic review settings December 3, 2026 23:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@agarny
agarny merged commit e5879a6 into opencor:main Dec 3, 2026
5 checks passed
@agarny
agarny deleted the issue28 branch December 3, 2026 23:13
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.

Add support for a title

2 participants