Skip to content

Support SED-ML Plot2D axis options, line styles, and markers - #26

Merged
agarny merged 35 commits into
opencor:mainfrom
agarny:main
Dec 3, 2026
Merged

agarny merged 35 commits into
opencor:mainfrom
agarny:main

Conversation

@agarny

@agarny agarny commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #25.

agarny added 30 commits December 2, 2026 12:59
…nge` with `xAxis` and `yAxis` (`PlotAxis`).
…c, and whether each axis is logarithmic to the payload of the `rangesUpdated` event.
…xis` submenu to edit the range of an axis, show or hide its grid lines, and make it logarithmic.
…pdate:showLegend` event (for `v-model:showLegend`).
…legend or grid lines, rather than also those of the instances that follow it.
…olid, or dashed), colour (with some transparency, if needed), and thickness of the line of a trace.
… of a trace is that of its line (from a built-in palette by default).
… fill, outline colour, and thickness of the markers of a trace, which then has markers whatever its number of points (unless their type is none).
…red per browser), a benchmark section with its results in a table, and an X/Y grid of axis settings.
…nario), which was only needed for our WebGL renderer's 32-bit floats.
…colour, so that the plot, its legend, and its SVG export agree.
… doesn't get applied after the reset (e.g., when pressing 0 right after using the mouse wheel).
…ps any pending wheel zoom for the reset axes only.
…en canvas has no 2D context, and only try to create their canvas once.
Copilot AI lite review requested due to automatic review settings December 3, 2026 11:02

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.

🟡 Changes recommended

Approval is blocked by three active issues, including a critical CSV export regression and moderate marker clipping and live-point color defects.

3 open issues
What changed in this PR

Adds SED-ML-compatible axis options and per-trace line and marker styling across plotting, exports, documentation, and the demo.

Changes:

  • Adds configurable axes, line styles, markers, legends, and autoranging.
  • Updates rendering utilities, tests, public exports, documentation, and demo controls.
  • Refreshes benchmark scenarios and dependency metadata.
File Description
src/​widgets/​PlotSwatchWidget.vue Renders styled legend and hover swatches.
src/​common/​traceVisibilityUtils.ts Handles visibility for displayed traces.
src/​common/​traceVisibilityUtils.test.ts Tests displayed-trace visibility behavior.
src/​common/​rangeUtils.ts Adds partial and padded range calculations.
src/​common/​rangeUtils.test.ts Tests range calculations.
src/​common/​markerStyleUtils.ts Implements marker shapes, rendering, sizing, and grids.
src/​common/​markerStyleUtils.test.ts Tests marker rendering and geometry.
src/​common/​lineStyleUtils.ts Resolves line styles, dash patterns, colors, and opacity.
src/​common/​lineStyleUtils.test.ts Tests line-style utilities.
src/​common/​icons.ts Adds the legend icon.
src/​common/​chunkedPathUtils.ts Preserves dash offsets across chunked paths.
src/​common/​chunkedPathUtils.test.ts Tests dashed path chunking.
scripts/​benchmark.ts Updates benchmark scenarios for the new plotting behavior.
README.md Documents the expanded axis, line, marker, and event APIs.
package.json Updates package metadata and dependencies.
index.ts Exports new public plotting types.
demo/​data.ts Updates demo data for the new plotting API.
demo/​App.vue Adds controls for axis, line, marker, legend, and benchmark options.
bun.lock Refreshes locked dependency versions.

Review effort: Lite

Comment thread src/widgets/PlotWidget.vue Resolved
Comment thread src/common/markerStyleUtils.ts Resolved
Comment thread src/widgets/PlotWidget.vue Resolved
…ness of their outline, so that a thick outline doesn't get clipped.
…its markers, so that its live point and hover points can be seen.
@agarny
agarny merged commit 916a58b into opencor:main Dec 3, 2026
5 checks passed
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.

Support SED-ML Plot2D axis options, line styles, and markers

2 participants