mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-27 11:02:38 -05:00
The utilichart-relevant code has been overhauled for simplicity. Utilichart results and headers are now both 33 pixels tall, total. Headers are slightly larger, to make them fill the space better. The larger font size makes them more header-like, anyway. Results are two pixels taller than before, giving them enough room for gen 6 pokemon icons (not enabled in this commit), and in general aiding performance slightly (fewer result rows on the screen at a time). Making them both 33 pixels allows height to be computed precisely as 33*rows, which is relevant for result rows to be inserted into the DOM on-demand. On-demand DOM insertion has previously been implemented in pokedex.js, but the new on-demand DOM code in search.js works slightly differently. It makes stronger assumptions (that the only bottleneck is DOM insertion speed, and that ctrl+f without scrolling to the bottom doesn't need to be supported, and that result rows and result headers are always 33 pixels tall), which makes for much simpler code, and is presumably slightly faster because of this. The new on-demand DOM code is surfaced by an "All results" button in the pokedex (pokemonshowdown.com/dex/), for basic testing, but the long-term plan is for it to be used in the teambuilder for pokemon/etc selection, to massively increase performance. Nearly two years after I wrote search.js to be a better utilichart API than utilichart.js, we'll soon finally start using it in place of utilichart.js in the main sim teambuilder! |
||
|---|---|---|
| .. | ||
| font | ||
| fonts | ||
| slider | ||
| battle.css | ||
| client.css | ||
| font-awesome.css | ||
| hpbartest.html | ||
| jquery.slider.min.css | ||
| replay.css | ||
| sim-types.css | ||
| utilichart.css | ||