@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 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 drawn 2px wide). And the drawing always carries a
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
 
@@ -67296,7 +67296,7 @@ function build_graph$1(gobj) {
67296
67296
  },
67297
67297
  state: { lit: () => ({
67298
67298
  stroke: highlight_color(priv.theme),
67299
- lineWidth: 4,
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.5 : 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
  };
@@ -67291,7 +67291,7 @@ function build_graph$1(gobj) {
67291
67291
  },
67292
67292
  state: { lit: () => ({
67293
67293
  stroke: highlight_color(priv.theme),
67294
- lineWidth: 4,
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.5 : 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.31.3",
3
+ "version": "7.31.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/gobj-ui.cjs.js",
@@ -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 2px is a 2px target: answer a click
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: 4,
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.5 : 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
  };