Skip to content

fix(components): initialize brush mask with computed points - #2131

Merged
xile611 merged 1 commit into
developfrom
fix/brush-shape
Sep 16, 2026
Merged

xile611 merged 1 commit into
developfrom
fix/brush-shape

Conversation

@xile611

@xile611 xile611 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Compute rect and axis brush geometry on the first pointer move so the initial mask is a closed rectangle. Preserve polygon trajectories and draw event timing.

Validation: 9 targeted tests; all 127 component tests; component typecheck; scoped ESLint. All 16 source-based browser scenarios passed. All four rows of the original VChart case showed rectangular initial strokes and correct zoom ranges: 36 strokes, no diagonals.

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Site / documentation update
  • Demo update
  • Workflow
  • Release
  • Other (about what?)

🔗 Related issue link

🐞 Bugserver case id

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

Compute rect and axis brush geometry on the first pointer move so the
initial mask is a closed rectangle. Preserve polygon trajectories and
draw event timing.

Validation: 9 targeted tests; all 127 component tests; component typecheck;
scoped ESLint. All 16 source-based browser scenarios passed. All four rows
of the original VChart case showed rectangular initial strokes and correct
zoom ranges: 36 strokes, no diagonals.
@xile611
xile611 merged commit 3c80bbd into develop Sep 16, 2026
6 of 8 checks passed
@xile611
xile611 deleted the fix/brush-shape branch September 16, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants