Commit 5326c1c
refactor: use D3 .raise() for element reordering
Replace vanilla appendChild() calls with idiomatic D3 .raise() method
when reordering zoom overlay and brush layer elements after resetData().
This change:
- Uses D3's declarative API instead of mixing D3 selections with DOM APIs
- Better expresses intent (bring to front vs append)
- Maintains same performance and behavior
- Continues refactoring toward more idiomatic D3 patterns
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 2d566db commit 5326c1c
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 177 | + | |
| 178 | + | |
182 | 179 | | |
183 | 180 | | |
184 | 181 | | |
| |||
0 commit comments