archaeopteryx 3.5.1 → 3.6.1
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 +7 -5
- package/archaeopteryx.js +943 -416
- package/forester.js +1 -1
- package/package.json +1 -1
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.**
|
|
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
|
|
644
|
-
redraws
|
|
645
|
-
|
|
646
|
-
|
|
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
|