@yuneta/gobj-ui 7.31.4 → 7.31.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 +12 -0
- package/dist/gobj-ui.cjs.js +25138 -24970
- package/dist/gobj-ui.es.js +25139 -24971
- package/package.json +1 -1
- package/src/c_yui_json_graph.js +236 -9
- package/src/json_graph_lit_edge.wiring.test.js +260 -0
package/README.md
CHANGED
|
@@ -758,6 +758,18 @@ centred above the target card's title. Ports on an html node need care: the
|
|
|
758
758
|
HTML is a DOM layer over the canvas, so a port fully inside the box is painted
|
|
759
759
|
under the card — they sit ON the border.
|
|
760
760
|
|
|
761
|
+
**A click on an edge lights it** (`7.31.5`), as in the schema and treedb
|
|
762
|
+
graphs: the line in amber, its two cards ringed with it, and the row of the
|
|
763
|
+
parent's key the line leaves from washed. A second click on it, or a click on
|
|
764
|
+
the canvas, puts it out; so does a fold that takes its child card away, and a
|
|
765
|
+
new document. The cards are html, where G6 paints no state, so the lit edge is
|
|
766
|
+
BAKED into the drawing like a find match (a rebuild that keeps the camera), and
|
|
767
|
+
it is kept by the path of its child card, which survives a rebuild where the
|
|
768
|
+
ids do not. An edge takes a click 7px either side of its line. The zoom goes
|
|
769
|
+
down to 2% (`10%` before, where a document of a few hundred cards did not fit),
|
|
770
|
+
and a **minimap** (bottom left, the library's `yui_graph_minimap.js`) appears
|
|
771
|
+
from `minimap_min_nodes` cards on (default `10`).
|
|
772
|
+
|
|
761
773
|
Cards are `JSON_CARD` and carry `data-json-path` (`GOBJ_CARD` /
|
|
762
774
|
`data-gobj-name` in the gobj tree, `TREEDB_CARD` in the treedb graph): a gclass
|
|
763
775
|
that builds DOM owes the Inspector a readable tree, and the anchor's mark needs
|