Repository navigation
Support SED-ML Plot2D axis options, line styles, and markers - #26
Merged
Merged
Conversation
…nge` with `xAxis` and `yAxis` (`PlotAxis`).
…l]`), with the other end fitting the data.
…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.
…ers, now falls back to the default range.
…ts for traces that no longer have markers.
…at have neither a line nor markers.
…raw per marker to stay accelerated.
…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).
…ey were before it got run.
…ps any pending wheel zoom for the reset axes only.
…en canvas has no 2D context, and only try to create their canvas once.
…very data update.
… zoom for that axis.
…ing for the other axis.
…pending wheel zoom.
…ow shows the data as it was.
There was a problem hiding this comment.
🟡 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
…have checked too many of them.
… again, as documented.
…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.
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 #25.