@yuneta/gobj-ui 7.4.3 → 7.4.4
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 +7 -1
- package/dist/gobj-ui.es.js +7 -1
- package/package.json +1 -1
- package/src/c_g6_nodes_tree.js +15 -2
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -55708,6 +55708,7 @@ function refresh_minimap(gobj) {
|
|
|
55708
55708
|
return;
|
|
55709
55709
|
}
|
|
55710
55710
|
if (graph_get_plugin(gobj, "minimap")) return;
|
|
55711
|
+
(0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: minimap: adding for ${n} nodes (threshold ${threshold})`);
|
|
55711
55712
|
graph_add_plugin(gobj, "minimap", {
|
|
55712
55713
|
size: [200, 140],
|
|
55713
55714
|
position: "bottom-left",
|
|
@@ -55736,6 +55737,7 @@ function refresh_minimap(gobj) {
|
|
|
55736
55737
|
} catch (e) {
|
|
55737
55738
|
(0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: cannot draw the minimap: ${e}`);
|
|
55738
55739
|
}
|
|
55740
|
+
(0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: minimap: plugin is ${graph_get_plugin(gobj, "minimap") ? "up" : "MISSING"}`);
|
|
55739
55741
|
}
|
|
55740
55742
|
/************************************************************
|
|
55741
55743
|
* The innerHTML of ONE node, in the given theme and highlight state.
|
|
@@ -56534,7 +56536,11 @@ function ac_load_data(gobj, event, kw, src) {
|
|
|
56534
56536
|
graph_layout(gobj).then(() => {
|
|
56535
56537
|
if (priv.edit_mode) graph_add_plugin(gobj, "history");
|
|
56536
56538
|
else graph_remove_plugin(gobj, "history");
|
|
56537
|
-
|
|
56539
|
+
try {
|
|
56540
|
+
refresh_minimap(gobj);
|
|
56541
|
+
} catch (e) {
|
|
56542
|
+
(0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: refresh_minimap failed: ${e}`);
|
|
56543
|
+
}
|
|
56538
56544
|
if (priv._pending_focus_topic !== null) {
|
|
56539
56545
|
let ft = priv._pending_focus_topic;
|
|
56540
56546
|
priv._pending_focus_topic = null;
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -55695,6 +55695,7 @@ function refresh_minimap(gobj) {
|
|
|
55695
55695
|
return;
|
|
55696
55696
|
}
|
|
55697
55697
|
if (graph_get_plugin(gobj, "minimap")) return;
|
|
55698
|
+
log_warning(`${gobj_short_name(gobj)}: minimap: adding for ${n} nodes (threshold ${threshold})`);
|
|
55698
55699
|
graph_add_plugin(gobj, "minimap", {
|
|
55699
55700
|
size: [200, 140],
|
|
55700
55701
|
position: "bottom-left",
|
|
@@ -55723,6 +55724,7 @@ function refresh_minimap(gobj) {
|
|
|
55723
55724
|
} catch (e) {
|
|
55724
55725
|
log_error(`${gobj_short_name(gobj)}: cannot draw the minimap: ${e}`);
|
|
55725
55726
|
}
|
|
55727
|
+
log_warning(`${gobj_short_name(gobj)}: minimap: plugin is ${graph_get_plugin(gobj, "minimap") ? "up" : "MISSING"}`);
|
|
55726
55728
|
}
|
|
55727
55729
|
/************************************************************
|
|
55728
55730
|
* The innerHTML of ONE node, in the given theme and highlight state.
|
|
@@ -56521,7 +56523,11 @@ function ac_load_data(gobj, event, kw, src) {
|
|
|
56521
56523
|
graph_layout(gobj).then(() => {
|
|
56522
56524
|
if (priv.edit_mode) graph_add_plugin(gobj, "history");
|
|
56523
56525
|
else graph_remove_plugin(gobj, "history");
|
|
56524
|
-
|
|
56526
|
+
try {
|
|
56527
|
+
refresh_minimap(gobj);
|
|
56528
|
+
} catch (e) {
|
|
56529
|
+
log_error(`${gobj_short_name(gobj)}: refresh_minimap failed: ${e}`);
|
|
56530
|
+
}
|
|
56525
56531
|
if (priv._pending_focus_topic !== null) {
|
|
56526
56532
|
let ft = priv._pending_focus_topic;
|
|
56527
56533
|
priv._pending_focus_topic = null;
|
package/package.json
CHANGED
package/src/c_g6_nodes_tree.js
CHANGED
|
@@ -4524,6 +4524,8 @@ function refresh_minimap(gobj)
|
|
|
4524
4524
|
return; /* already up */
|
|
4525
4525
|
}
|
|
4526
4526
|
|
|
4527
|
+
log_warning(`${gobj_short_name(gobj)}: minimap: adding for ${n} nodes ` +
|
|
4528
|
+
`(threshold ${threshold})`);
|
|
4527
4529
|
graph_add_plugin(
|
|
4528
4530
|
gobj,
|
|
4529
4531
|
"minimap",
|
|
@@ -4566,6 +4568,8 @@ function refresh_minimap(gobj)
|
|
|
4566
4568
|
} catch(e) {
|
|
4567
4569
|
log_error(`${gobj_short_name(gobj)}: cannot draw the minimap: ${e}`);
|
|
4568
4570
|
}
|
|
4571
|
+
log_warning(`${gobj_short_name(gobj)}: minimap: plugin is ` +
|
|
4572
|
+
`${graph_get_plugin(gobj, "minimap")? "up" : "MISSING"}`);
|
|
4569
4573
|
}
|
|
4570
4574
|
|
|
4571
4575
|
/************************************************************
|
|
@@ -5774,8 +5778,17 @@ function ac_load_data(gobj, event, kw, src)
|
|
|
5774
5778
|
graph_remove_plugin(gobj, "history");
|
|
5775
5779
|
}
|
|
5776
5780
|
/* The graph knows its size now: a minimap appears only
|
|
5777
|
-
* when there is something to be lost in.
|
|
5778
|
-
|
|
5781
|
+
* when there is something to be lost in.
|
|
5782
|
+
*
|
|
5783
|
+
* Guarded because this runs inside a .then(): an
|
|
5784
|
+
* exception here becomes an unhandled rejection, which
|
|
5785
|
+
* is not a console error and not a pageerror — it is
|
|
5786
|
+
* nothing at all, and the feature just fails to appear. */
|
|
5787
|
+
try {
|
|
5788
|
+
refresh_minimap(gobj);
|
|
5789
|
+
} catch(e) {
|
|
5790
|
+
log_error(`${gobj_short_name(gobj)}: refresh_minimap failed: ${e}`);
|
|
5791
|
+
}
|
|
5779
5792
|
/* Nodes exist and are positioned now: apply a focus
|
|
5780
5793
|
* requested before the data was ready (deep link). */
|
|
5781
5794
|
if(priv._pending_focus_topic !== null) {
|