@yuneta/gobj-ui 7.4.1 → 7.4.3
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/dist/gobj-ui.cjs.js +6 -1
- package/dist/gobj-ui.es.js +6 -1
- package/package.json +1 -1
- package/src/c_g6_nodes_tree.js +10 -0
- package/src/c_yui_treedb_graph.js +4 -1
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -19915,7 +19915,7 @@ function refresh_legend(gobj) {
|
|
|
19915
19915
|
let $item = (0, _yuneta_gobj_js.createElement2)([
|
|
19916
19916
|
"button",
|
|
19917
19917
|
{
|
|
19918
|
-
class: "GRAPH_LEGEND_ITEM button is-small" + (focused ? " is-primary" : ""),
|
|
19918
|
+
class: "GRAPH_LEGEND_ITEM button is-small" + (focused ? " is-primary is-light" : ""),
|
|
19919
19919
|
title: topic_name,
|
|
19920
19920
|
"aria-label": topic_name,
|
|
19921
19921
|
"aria-pressed": focused ? "true" : "false"
|
|
@@ -55731,6 +55731,11 @@ function refresh_minimap(gobj) {
|
|
|
55731
55731
|
}
|
|
55732
55732
|
}
|
|
55733
55733
|
});
|
|
55734
|
+
try {
|
|
55735
|
+
graph.draw();
|
|
55736
|
+
} catch (e) {
|
|
55737
|
+
(0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: cannot draw the minimap: ${e}`);
|
|
55738
|
+
}
|
|
55734
55739
|
}
|
|
55735
55740
|
/************************************************************
|
|
55736
55741
|
* The innerHTML of ONE node, in the given theme and highlight state.
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -19902,7 +19902,7 @@ function refresh_legend(gobj) {
|
|
|
19902
19902
|
let $item = createElement2([
|
|
19903
19903
|
"button",
|
|
19904
19904
|
{
|
|
19905
|
-
class: "GRAPH_LEGEND_ITEM button is-small" + (focused ? " is-primary" : ""),
|
|
19905
|
+
class: "GRAPH_LEGEND_ITEM button is-small" + (focused ? " is-primary is-light" : ""),
|
|
19906
19906
|
title: topic_name,
|
|
19907
19907
|
"aria-label": topic_name,
|
|
19908
19908
|
"aria-pressed": focused ? "true" : "false"
|
|
@@ -55718,6 +55718,11 @@ function refresh_minimap(gobj) {
|
|
|
55718
55718
|
}
|
|
55719
55719
|
}
|
|
55720
55720
|
});
|
|
55721
|
+
try {
|
|
55722
|
+
graph.draw();
|
|
55723
|
+
} catch (e) {
|
|
55724
|
+
log_error(`${gobj_short_name(gobj)}: cannot draw the minimap: ${e}`);
|
|
55725
|
+
}
|
|
55721
55726
|
}
|
|
55722
55727
|
/************************************************************
|
|
55723
55728
|
* The innerHTML of ONE node, in the given theme and highlight state.
|
package/package.json
CHANGED
package/src/c_g6_nodes_tree.js
CHANGED
|
@@ -4556,6 +4556,16 @@ function refresh_minimap(gobj)
|
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
4558
4558
|
);
|
|
4559
|
+
|
|
4560
|
+
/* The plugin builds its canvas on its FIRST render, and it renders off
|
|
4561
|
+
* the graph's draw events — which have all already happened by the time
|
|
4562
|
+
* the node count is known and this runs. Without a draw of its own it
|
|
4563
|
+
* sits there having never painted, with no container in the DOM at all. */
|
|
4564
|
+
try {
|
|
4565
|
+
graph.draw();
|
|
4566
|
+
} catch(e) {
|
|
4567
|
+
log_error(`${gobj_short_name(gobj)}: cannot draw the minimap: ${e}`);
|
|
4568
|
+
}
|
|
4559
4569
|
}
|
|
4560
4570
|
|
|
4561
4571
|
/************************************************************
|
|
@@ -2259,8 +2259,11 @@ function refresh_legend(gobj)
|
|
|
2259
2259
|
let focused = (priv.focus_topic === topic_name);
|
|
2260
2260
|
let $item = createElement2(
|
|
2261
2261
|
['button', {
|
|
2262
|
+
/* `is-light` on the focused one, not solid `is-primary`:
|
|
2263
|
+
* the solid fill sat right behind the swatch and swallowed
|
|
2264
|
+
* the one colour the entry exists to show. */
|
|
2262
2265
|
class: 'GRAPH_LEGEND_ITEM button is-small' +
|
|
2263
|
-
(focused? ' is-primary' : ''),
|
|
2266
|
+
(focused? ' is-primary is-light' : ''),
|
|
2264
2267
|
title: topic_name,
|
|
2265
2268
|
'aria-label': topic_name,
|
|
2266
2269
|
'aria-pressed': focused? 'true' : 'false'
|