@yuneta/gobj-ui 7.19.1 → 7.19.3
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/package.json +1 -1
- package/src/lib_graph.css +36 -0
package/package.json
CHANGED
package/src/lib_graph.css
CHANGED
|
@@ -30,6 +30,42 @@
|
|
|
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. `g6-node-detail`
|
|
46
|
+
* above all: that one exists ONLY to be read.
|
|
47
|
+
*
|
|
48
|
+
* The list is every class `create_popover_base()` is called with. A
|
|
49
|
+
* new popover that forgets to join it is unreadable in a way nothing
|
|
50
|
+
* reports -- so add it here in the same commit.
|
|
51
|
+
*/
|
|
52
|
+
.graph-container {
|
|
53
|
+
-webkit-user-select: none;
|
|
54
|
+
user-select: none;
|
|
55
|
+
}
|
|
56
|
+
.graph-container input,
|
|
57
|
+
.graph-container textarea,
|
|
58
|
+
.graph-container select,
|
|
59
|
+
.graph-container [contenteditable],
|
|
60
|
+
.graph-container .g6-confirm-popover,
|
|
61
|
+
.graph-container .g6-create-popover,
|
|
62
|
+
.graph-container .g6-node-popover,
|
|
63
|
+
.graph-container .g6-edge-popover,
|
|
64
|
+
.graph-container .g6-node-detail {
|
|
65
|
+
-webkit-user-select: text;
|
|
66
|
+
user-select: text;
|
|
67
|
+
}
|
|
68
|
+
|
|
33
69
|
.graph-container:fullscreen {
|
|
34
70
|
background-color: var(--bulma-background, #fff);
|
|
35
71
|
}
|