@yuneta/gobj-ui 7.31.3 → 7.31.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/README.md +1 -1
- package/dist/gobj-ui.cjs.js +2 -2
- package/dist/gobj-ui.es.js +2 -2
- package/package.json +1 -1
- package/src/c_g6_nodes_tree.js +3 -3
package/README.md
CHANGED
|
@@ -2626,7 +2626,7 @@ on the same edge, or a click on the canvas, puts it out. The treedb graph
|
|
|
2626
2626
|
(`C_G6_NODES_TREE`) lights an edge and its two records the same way, except in
|
|
2627
2627
|
`edition`, where a click selects the edge. In both graphs an edge takes a
|
|
2628
2628
|
click some 7px either side of its line (`increasedLineWidthForHitTesting: 14`,
|
|
2629
|
-
`7.31.3`; G6's default adds 2px to a line
|
|
2629
|
+
`7.31.3`; G6's default adds 2px to a line a couple of px wide). And the drawing always carries a
|
|
2630
2630
|
**minimap** (bottom left, the library's `yui_graph_minimap.js`), because a
|
|
2631
2631
|
schema of more cards than the screen holds is the usual case.
|
|
2632
2632
|
|
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -67296,7 +67296,7 @@ function build_graph$1(gobj) {
|
|
|
67296
67296
|
},
|
|
67297
67297
|
state: { lit: () => ({
|
|
67298
67298
|
stroke: highlight_color(priv.theme),
|
|
67299
|
-
lineWidth:
|
|
67299
|
+
lineWidth: 3,
|
|
67300
67300
|
halo: true,
|
|
67301
67301
|
haloStroke: highlight_halo(priv.theme),
|
|
67302
67302
|
haloLineWidth: 8
|
|
@@ -72771,7 +72771,7 @@ function default_edge_stroke(gobj, d, theme) {
|
|
|
72771
72771
|
function edge_inherited_style_of(gobj, d) {
|
|
72772
72772
|
let priv = gobj.priv;
|
|
72773
72773
|
let style = {
|
|
72774
|
-
lineWidth: d.is_tree ? 2
|
|
72774
|
+
lineWidth: d.is_tree ? 2 : 1.6,
|
|
72775
72775
|
stroke: default_edge_stroke(gobj, d, priv.theme),
|
|
72776
72776
|
themed_default: true
|
|
72777
72777
|
};
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -67291,7 +67291,7 @@ function build_graph$1(gobj) {
|
|
|
67291
67291
|
},
|
|
67292
67292
|
state: { lit: () => ({
|
|
67293
67293
|
stroke: highlight_color(priv.theme),
|
|
67294
|
-
lineWidth:
|
|
67294
|
+
lineWidth: 3,
|
|
67295
67295
|
halo: true,
|
|
67296
67296
|
haloStroke: highlight_halo(priv.theme),
|
|
67297
67297
|
haloLineWidth: 8
|
|
@@ -72766,7 +72766,7 @@ function default_edge_stroke(gobj, d, theme) {
|
|
|
72766
72766
|
function edge_inherited_style_of(gobj, d) {
|
|
72767
72767
|
let priv = gobj.priv;
|
|
72768
72768
|
let style = {
|
|
72769
|
-
lineWidth: d.is_tree ? 2
|
|
72769
|
+
lineWidth: d.is_tree ? 2 : 1.6,
|
|
72770
72770
|
stroke: default_edge_stroke(gobj, d, priv.theme),
|
|
72771
72771
|
themed_default: true
|
|
72772
72772
|
};
|
package/package.json
CHANGED
package/src/c_g6_nodes_tree.js
CHANGED
|
@@ -1238,7 +1238,7 @@ function build_graph(gobj)
|
|
|
1238
1238
|
style: {
|
|
1239
1239
|
startArrow: true, // HACK target/source interchanged
|
|
1240
1240
|
endArrow: false,
|
|
1241
|
-
/* A line of
|
|
1241
|
+
/* A line of 1.6px is a 1.6px target: answer a click
|
|
1242
1242
|
* some px around it (G6's default adds 2). */
|
|
1243
1243
|
increasedLineWidthForHitTesting: 14,
|
|
1244
1244
|
},
|
|
@@ -1248,7 +1248,7 @@ function build_graph(gobj)
|
|
|
1248
1248
|
state: {
|
|
1249
1249
|
lit: () => ({
|
|
1250
1250
|
stroke: highlight_color(priv.theme),
|
|
1251
|
-
lineWidth:
|
|
1251
|
+
lineWidth: 3,
|
|
1252
1252
|
halo: true,
|
|
1253
1253
|
haloStroke: highlight_halo(priv.theme),
|
|
1254
1254
|
haloLineWidth: 8,
|
|
@@ -9391,7 +9391,7 @@ function edge_inherited_style_of(gobj, d)
|
|
|
9391
9391
|
{
|
|
9392
9392
|
let priv = gobj.priv;
|
|
9393
9393
|
let style = {
|
|
9394
|
-
lineWidth: d.is_tree ? 2
|
|
9394
|
+
lineWidth: d.is_tree ? 2 : 1.6,
|
|
9395
9395
|
stroke: default_edge_stroke(gobj, d, priv.theme),
|
|
9396
9396
|
themed_default: true,
|
|
9397
9397
|
};
|