@yuneta/gobj-ui 7.19.1 → 7.19.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/lib_graph.css +30 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.19.1",
3
+ "version": "7.19.2",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
package/src/lib_graph.css CHANGED
@@ -30,6 +30,36 @@
30
30
  * G6 injects `:not(:root):fullscreen::backdrop { background: transparent }`
31
31
  * with lower specificity, so class + pseudo-class wins without !important.
32
32
  */
33
+ /*
34
+ * A shift+click on a card must SELECT THE CARD, not smear a text
35
+ * selection across the graph.
36
+ *
37
+ * Shift+click is the browser's own "extend the text selection"
38
+ * gesture, and the cards are DOM. So the moment shift+click came to
39
+ * mean something here, marking three nodes also painted their labels
40
+ * blue -- and the wash stayed until the next click somewhere else.
41
+ * The canvas is a canvas: nothing in it is prose.
42
+ *
43
+ * Except what IS there to be read or typed into. The popovers this
44
+ * gclass appends to the same container carry record data an operator
45
+ * may well want to copy, and inputs need a caret.
46
+ */
47
+ .graph-container {
48
+ -webkit-user-select: none;
49
+ user-select: none;
50
+ }
51
+ .graph-container input,
52
+ .graph-container textarea,
53
+ .graph-container select,
54
+ .graph-container [contenteditable],
55
+ .graph-container .g6-confirm-popover,
56
+ .graph-container .g6-create-popover,
57
+ .graph-container .g6-node-popover,
58
+ .graph-container .g6-edge-popover {
59
+ -webkit-user-select: text;
60
+ user-select: text;
61
+ }
62
+
33
63
  .graph-container:fullscreen {
34
64
  background-color: var(--bulma-background, #fff);
35
65
  }