Repository navigation
Conversation
Deploying nmrium with
|
| Latest commit: |
6229644
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://dc46f20d.nmrium.pages.dev |
| Branch Preview URL: | https://feat-brush-tracker-drag-even.nmrium.pages.dev |
- Extend BrushTrackerProps with onDrag/onDragEnd and a DragTrackerEvent payload (chart-relative coordinates, start position, mouse button, modifier keys, domEvent and a gesture claim API). - Extend the emitter union with 'drag' | 'drag-end'. - Emit drag from the first pointermove with a pressed button (no threshold) and on every move; a consumer claim (stopPropagation) suppresses the brush dispatch for the rest of the gesture. - Extract the gesture logic to brush_tracker_drag_gesture.ts with unit tests. - Thread onChange to the operator ChartSVG slot so SVG-layer interactions (keyboard anchor deletion) can update the operation.
the contract from nmrium-core
jobo322
force-pushed
the
feat/brush-tracker-drag-events
branch
from
October 20, 2026 19:24
e066211 to
6229644
Compare
This branch has not been deployed
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.
feat: add drag and drag-end events to
BrushTrackerAdds
onDrag/onDragEndevents to theBrushTrackergesture pipeline so plugin chart slots can implement anchor dragging through the tracker event API instead of local DOM overlays.Scope and backward compatibility
This change is additive and does not modify the legacy filters pipeline:
The only functional consumer of the new API is the baseline correction operator UI in the new pipeline of processors