archaeopteryx 3.5.1 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -633,17 +633,19 @@ viewer.destroy(); // unmount COMPLETELY: the container DOM, the node
633
633
  // handler; a later launch() works normally
634
634
  ```
635
635
 
636
- **Big trees draw on the next frame.** Above 3,000 nodes, `launch()` does all
636
+ **Big trees draw on the next frame.** From 5,000 nodes, `launch()` does all
637
637
  its validation, shows a "Drawing N nodes" card over the tree area, and
638
638
  returns within milliseconds — the label analysis, visualization candidates,
639
639
  control panel and the draw itself all run one frame later, so the browser
640
640
  can paint the card instead of appearing frozen for the seconds a large tree
641
641
  takes. Every error still throws synchronously from `launch()`
642
642
  exactly as before; only the draw is deferred. `viewer.ready` resolves when it
643
- has run (immediately for a small tree, which stays fully synchronous). Later
644
- redraws on a big tree — a checkbox, a slider, a search — work the same way:
645
- they show a "Redrawing" card and run on the next frame, and every redraw
646
- requested in the same tick collapses into one. Wait on `ready` before reading
643
+ has run (immediately for a smaller tree, which draws synchronously). Later
644
+ redraws — a checkbox, a slider, a search, the mouse wheel — run on the next
645
+ animation frame for a tree of any size, and every redraw requested before
646
+ that frame collapses into one: a wheel flick is one redraw, not one per
647
+ notch. A "Redrawing" card appears only when the tree's previous redraw took
648
+ 300 ms or more on the computer it runs on. Wait on `ready` before reading
647
649
  the tree's DOM after `launch()`:
648
650
 
649
651
  ```js