@yuneta/gobj-ui 7.31.3 → 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 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
@@ -2626,7 +2638,7 @@ on the same edge, or a click on the canvas, puts it out. The treedb graph
2626
2638
  (`C_G6_NODES_TREE`) lights an edge and its two records the same way, except in
2627
2639
  `edition`, where a click selects the edge. In both graphs an edge takes a
2628
2640
  click some 7px either side of its line (`increasedLineWidthForHitTesting: 14`,
2629
- `7.31.3`; G6's default adds 2px to a line drawn 2px wide). And the drawing always carries a
2641
+ `7.31.3`; G6's default adds 2px to a line a couple of px wide). And the drawing always carries a
2630
2642
  **minimap** (bottom left, the library's `yui_graph_minimap.js`), because a
2631
2643
  schema of more cards than the screen holds is the usual case.
2632
2644