@yuneta/gobj-ui 7.23.3 → 7.23.5
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 +10 -6
- package/dist/gobj-ui.cjs.js +24253 -24286
- package/dist/gobj-ui.es.js +24253 -24286
- package/package.json +1 -1
- package/src/c_g6_nodes_tree.js +7 -0
- package/src/c_yui_gobj_tree_js.js +24 -34
- package/src/c_yui_json_graph.js +15 -126
- package/src/c_yui_treedb_graph.js +12 -0
- package/src/yui_graph_camera.js +150 -0
package/README.md
CHANGED
|
@@ -448,12 +448,16 @@ stays. Note the close contract: `C_YUI_WINDOW.close_window()` calls `on_close`
|
|
|
448
448
|
and THEN destroys itself, so a host must drop its reference rather than destroy
|
|
449
449
|
the window too.
|
|
450
450
|
|
|
451
|
-
Its camera
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
451
|
+
Its camera comes from **`yui_graph_camera.js`** (`7.23.4`), the one place every
|
|
452
|
+
DOM-toolbar graph asks for one — this gclass and the gobj tree both, so a
|
|
453
|
+
cloned toolbar cannot drift apart again. The vocabulary is the treedb graph's
|
|
454
|
+
(`c_g6_nodes_tree.js`, which draws its toolbar as a G6 plugin over an SVG
|
|
455
|
+
sprite and so cannot share the code, only the decisions): zoom in / zoom out, a
|
|
456
|
+
live **zoom readout**, `yi-fit` for fit — the same corner brackets the sprite
|
|
457
|
+
draws for `g6-icon-fit` — and the WRITTEN `1:1` for actual size, which is
|
|
458
|
+
written in every editor that offers it and never drawn. Fold is the chevron
|
|
459
|
+
pair, from the lazy tree viewer's own toolbar. The readout hangs off G6's
|
|
460
|
+
`aftertransform`, the one hook that also covers the wheel.
|
|
457
461
|
|
|
458
462
|
The graph carries **its own** toolbar, a **layout picker**
|
|
459
463
|
(`EV_CHANGE_LAYOUT {layout}`: `vertical tree`, `dagre top-down`,
|