@yuneta/gobj-ui 7.4.3 → 7.4.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/dist/gobj-ui.cjs.js +23 -22
- package/dist/gobj-ui.es.js +23 -22
- package/package.json +1 -1
- package/src/c_g6_nodes_tree.js +13 -13
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -55731,11 +55731,6 @@ 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
|
-
}
|
|
55739
55734
|
}
|
|
55740
55735
|
/************************************************************
|
|
55741
55736
|
* The innerHTML of ONE node, in the given theme and highlight state.
|
|
@@ -56528,26 +56523,32 @@ function ac_load_data(gobj, event, kw, src) {
|
|
|
56528
56523
|
break;
|
|
56529
56524
|
}
|
|
56530
56525
|
}
|
|
56531
|
-
if (do_links && priv.graph)
|
|
56532
|
-
|
|
56526
|
+
if (do_links && priv.graph) {
|
|
56527
|
+
try {
|
|
56528
|
+
refresh_minimap(gobj);
|
|
56529
|
+
} catch (e) {
|
|
56530
|
+
(0, _yuneta_gobj_js.log_error)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: refresh_minimap failed: ${e}`);
|
|
56531
|
+
}
|
|
56533
56532
|
graph_draw(gobj).then(() => {
|
|
56534
|
-
|
|
56535
|
-
|
|
56536
|
-
|
|
56537
|
-
|
|
56538
|
-
|
|
56539
|
-
|
|
56540
|
-
|
|
56541
|
-
|
|
56542
|
-
|
|
56543
|
-
|
|
56544
|
-
|
|
56545
|
-
|
|
56546
|
-
|
|
56547
|
-
|
|
56533
|
+
create_links(gobj);
|
|
56534
|
+
graph_draw(gobj).then(() => {
|
|
56535
|
+
graph_layout(gobj).then(() => {
|
|
56536
|
+
if (priv.edit_mode) graph_add_plugin(gobj, "history");
|
|
56537
|
+
else graph_remove_plugin(gobj, "history");
|
|
56538
|
+
if (priv._pending_focus_topic !== null) {
|
|
56539
|
+
let ft = priv._pending_focus_topic;
|
|
56540
|
+
priv._pending_focus_topic = null;
|
|
56541
|
+
graph_focus_topic(gobj, ft);
|
|
56542
|
+
}
|
|
56543
|
+
if (priv._pending_find !== null) {
|
|
56544
|
+
let term = priv._pending_find;
|
|
56545
|
+
priv._pending_find = null;
|
|
56546
|
+
publish_find_result(gobj, term, graph_find_nodes(gobj, term));
|
|
56547
|
+
}
|
|
56548
|
+
});
|
|
56548
56549
|
});
|
|
56549
56550
|
});
|
|
56550
|
-
}
|
|
56551
|
+
}
|
|
56551
56552
|
return 0;
|
|
56552
56553
|
}
|
|
56553
56554
|
/************************************************************
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -55718,11 +55718,6 @@ 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
|
-
}
|
|
55726
55721
|
}
|
|
55727
55722
|
/************************************************************
|
|
55728
55723
|
* The innerHTML of ONE node, in the given theme and highlight state.
|
|
@@ -56515,26 +56510,32 @@ function ac_load_data(gobj, event, kw, src) {
|
|
|
56515
56510
|
break;
|
|
56516
56511
|
}
|
|
56517
56512
|
}
|
|
56518
|
-
if (do_links && priv.graph)
|
|
56519
|
-
|
|
56513
|
+
if (do_links && priv.graph) {
|
|
56514
|
+
try {
|
|
56515
|
+
refresh_minimap(gobj);
|
|
56516
|
+
} catch (e) {
|
|
56517
|
+
log_error(`${gobj_short_name(gobj)}: refresh_minimap failed: ${e}`);
|
|
56518
|
+
}
|
|
56520
56519
|
graph_draw(gobj).then(() => {
|
|
56521
|
-
|
|
56522
|
-
|
|
56523
|
-
|
|
56524
|
-
|
|
56525
|
-
|
|
56526
|
-
|
|
56527
|
-
|
|
56528
|
-
|
|
56529
|
-
|
|
56530
|
-
|
|
56531
|
-
|
|
56532
|
-
|
|
56533
|
-
|
|
56534
|
-
|
|
56520
|
+
create_links(gobj);
|
|
56521
|
+
graph_draw(gobj).then(() => {
|
|
56522
|
+
graph_layout(gobj).then(() => {
|
|
56523
|
+
if (priv.edit_mode) graph_add_plugin(gobj, "history");
|
|
56524
|
+
else graph_remove_plugin(gobj, "history");
|
|
56525
|
+
if (priv._pending_focus_topic !== null) {
|
|
56526
|
+
let ft = priv._pending_focus_topic;
|
|
56527
|
+
priv._pending_focus_topic = null;
|
|
56528
|
+
graph_focus_topic(gobj, ft);
|
|
56529
|
+
}
|
|
56530
|
+
if (priv._pending_find !== null) {
|
|
56531
|
+
let term = priv._pending_find;
|
|
56532
|
+
priv._pending_find = null;
|
|
56533
|
+
publish_find_result(gobj, term, graph_find_nodes(gobj, term));
|
|
56534
|
+
}
|
|
56535
|
+
});
|
|
56535
56536
|
});
|
|
56536
56537
|
});
|
|
56537
|
-
}
|
|
56538
|
+
}
|
|
56538
56539
|
return 0;
|
|
56539
56540
|
}
|
|
56540
56541
|
/************************************************************
|
package/package.json
CHANGED
package/src/c_g6_nodes_tree.js
CHANGED
|
@@ -4556,16 +4556,6 @@ 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
|
-
}
|
|
4569
4559
|
}
|
|
4570
4560
|
|
|
4571
4561
|
/************************************************************
|
|
@@ -5764,6 +5754,19 @@ function ac_load_data(gobj, event, kw, src)
|
|
|
5764
5754
|
}
|
|
5765
5755
|
|
|
5766
5756
|
if(do_links && priv.graph) {
|
|
5757
|
+
/* Decided BEFORE the drawing, not after it.
|
|
5758
|
+
*
|
|
5759
|
+
* The plugin builds its canvas on its FIRST render, and it renders
|
|
5760
|
+
* off the graph's draw events — so a minimap added after the last
|
|
5761
|
+
* draw is instantiated, bound, and never painted: no container in
|
|
5762
|
+
* the DOM at all, and nothing anywhere says so. Added here it rides
|
|
5763
|
+
* the two draws and the layout that follow. The node count it needs
|
|
5764
|
+
* is already known: the records were turned into nodes above. */
|
|
5765
|
+
try {
|
|
5766
|
+
refresh_minimap(gobj);
|
|
5767
|
+
} catch(e) {
|
|
5768
|
+
log_error(`${gobj_short_name(gobj)}: refresh_minimap failed: ${e}`);
|
|
5769
|
+
}
|
|
5767
5770
|
graph_draw(gobj).then(() => { // draw nodes, else the link fails
|
|
5768
5771
|
create_links(gobj);
|
|
5769
5772
|
graph_draw(gobj).then(() => {
|
|
@@ -5773,9 +5776,6 @@ function ac_load_data(gobj, event, kw, src)
|
|
|
5773
5776
|
} else {
|
|
5774
5777
|
graph_remove_plugin(gobj, "history");
|
|
5775
5778
|
}
|
|
5776
|
-
/* The graph knows its size now: a minimap appears only
|
|
5777
|
-
* when there is something to be lost in. */
|
|
5778
|
-
refresh_minimap(gobj);
|
|
5779
5779
|
/* Nodes exist and are positioned now: apply a focus
|
|
5780
5780
|
* requested before the data was ready (deep link). */
|
|
5781
5781
|
if(priv._pending_focus_topic !== null) {
|