Skip to content

Ag 16449/marker drawing modes#6100

Merged
alantreadway merged 12 commits intolatestfrom
AG-16449/marker-drawing-modes
Feb 6, 2026
Merged

Ag 16449/marker drawing modes#6100
alantreadway merged 12 commits intolatestfrom
AG-16449/marker-drawing-modes

Conversation

@manapeirov
Copy link
Member

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

✅ Codex review complete; no issues found

View full review

Ag 16449/marker drawing modes

PR: #6100
Author: manapeirov | Base: latest ← Head: AG-16449/marker-drawing-modes
Diff: 16 files changed, +134 -47

Summary

Adjusts marker drawing mode handling to account for opacity and user-provided highlight settings, and wires options graph user-option checks into series logic. Updates a few tests and snapshots to cover the new highlight drawing behaviour.

Findings

P0: 0 | P1: 0 | P2: 0 | P3: 0

No issues found.

Verdict

Assessment: correct
Confidence: 0.76

I did not find any correctness, performance, or maintainability issues introduced by the changes in the diff.

Required Actions: None - ready to merge

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Snapshots automatically updated, please review before merge:

@manapeirov manapeirov requested a review from a team as a code owner February 4, 2026 12:18

protected override shouldIgnoreDefaultMarkerFillOpacity(): boolean {
const seriesPath = ['series', `${this.declarationOrder}`];
return !this.ctx.optionsGraphService.hasUserOption([...seriesPath, 'fillOpacity']);
Copy link
Member

Choose a reason for hiding this comment

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

Can this be determined through the graph instead? For example drawingMode: { $isUserOption: ['./fillOpacity', true, false] } as an undocumented option.

Copy link
Member Author

Choose a reason for hiding this comment

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

actually that might be a really good idea

Comment on lines 30 to 31
hasUserOption(path: Array<string>) {
return this.hasUserOptionCallback?.(path) ?? false;
Copy link
Member

Choose a reason for hiding this comment

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

We should not expose the options graph without requiring calls to be processed through the graph itself. Otherwise this will lead to bugs where the order of node dependency resolution is not correct.

hasUserOption(path: Array<string>) {
const hasUserOptionSimple = hasPathSafe(this.userOptions, path);
if (hasUserOptionSimple) return true;
if (!this.root) return false;
Copy link
Member

@lsjroberts lsjroberts Feb 4, 2026

Choose a reason for hiding this comment

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

The reason this is needed is because the graph is deleted after it is resolved. This a reason why we shouldn't make direct calls into the graph externally, but instead should utilise graph operations, i.e. $isUserOption.

So, we shouldn't need this line.

@manapeirov manapeirov force-pushed the AG-16449/marker-drawing-modes branch 2 times, most recently from 297d76b to d7a9b3c Compare February 4, 2026 17:43
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Snapshots automatically updated, please review before merge:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Snapshots automatically updated, please review before merge:

@manapeirov manapeirov force-pushed the AG-16449/marker-drawing-modes branch from 809847f to 6993588 Compare February 5, 2026 13:15
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Snapshots automatically updated, please review before merge:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Snapshots automatically updated, please review before merge:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Snapshots automatically updated, please review before merge:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Snapshots automatically updated, please review before merge:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Snapshots automatically updated, please review before merge:

…rawing-modes

Gha/snapshots ag 16449/marker drawing modes
Copy link
Member

@alantreadway alantreadway left a comment

Choose a reason for hiding this comment

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

LGTM

@alantreadway alantreadway merged commit f0a9f97 into latest Feb 6, 2026
36 checks passed
@alantreadway alantreadway deleted the AG-16449/marker-drawing-modes branch February 6, 2026 10:08
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.

3 participants