@cyvest/cyvest-vis 5.4.0 → 6.0.0
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 +57 -50
- package/dist/index.cjs +537 -637
- package/dist/index.d.cts +49 -60
- package/dist/index.d.ts +49 -60
- package/dist/index.js +541 -636
- package/dist/styles.css +29 -86
- package/package.json +10 -10
package/dist/styles.css
CHANGED
|
@@ -2,52 +2,33 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
border: 1px solid var(--cyvest-panel-border);
|
|
5
|
-
border-radius:
|
|
6
|
-
background:
|
|
7
|
-
radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.9), transparent 52%),
|
|
8
|
-
radial-gradient(circle at 90% 84%, rgba(31, 111, 235, 0.12), transparent 50%),
|
|
9
|
-
var(--cyvest-background);
|
|
5
|
+
border-radius: 12px;
|
|
6
|
+
background: var(--cyvest-background);
|
|
10
7
|
font-family: var(--cyvest-font-family);
|
|
11
8
|
}
|
|
12
9
|
|
|
13
|
-
.cyvest-canvas::before {
|
|
14
|
-
content: "";
|
|
15
|
-
position: absolute;
|
|
16
|
-
inset: 0;
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
background-image: linear-gradient(
|
|
19
|
-
to right,
|
|
20
|
-
rgba(120, 138, 170, 0.2) 1px,
|
|
21
|
-
transparent 1px
|
|
22
|
-
),
|
|
23
|
-
linear-gradient(
|
|
24
|
-
to bottom,
|
|
25
|
-
rgba(120, 138, 170, 0.2) 1px,
|
|
26
|
-
transparent 1px
|
|
27
|
-
);
|
|
28
|
-
background-size: 28px 28px;
|
|
29
|
-
opacity: 0.34;
|
|
30
|
-
z-index: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
10
|
.cyvest-canvas__surface {
|
|
34
11
|
position: absolute;
|
|
35
12
|
inset: 0;
|
|
36
|
-
z-index: 1;
|
|
37
13
|
}
|
|
38
14
|
|
|
39
15
|
.cyvest-toolbar {
|
|
40
16
|
position: absolute;
|
|
41
|
-
top: 10px;
|
|
42
|
-
right: 10px;
|
|
43
17
|
z-index: 12;
|
|
44
18
|
display: flex;
|
|
45
|
-
|
|
46
|
-
padding: 6px;
|
|
47
|
-
border-radius: 10px;
|
|
19
|
+
align-items: center;
|
|
48
20
|
border: 1px solid var(--cyvest-panel-border);
|
|
49
21
|
background: var(--cyvest-panel-bg);
|
|
50
|
-
box-shadow: 0
|
|
22
|
+
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
|
|
23
|
+
backdrop-filter: blur(8px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cyvest-toolbar {
|
|
27
|
+
top: 12px;
|
|
28
|
+
right: 12px;
|
|
29
|
+
gap: 2px;
|
|
30
|
+
padding: 3px;
|
|
31
|
+
border-radius: 9px;
|
|
51
32
|
}
|
|
52
33
|
|
|
53
34
|
.cyvest-toolbar__button {
|
|
@@ -56,77 +37,39 @@
|
|
|
56
37
|
display: inline-flex;
|
|
57
38
|
align-items: center;
|
|
58
39
|
justify-content: center;
|
|
59
|
-
border:
|
|
60
|
-
border-radius:
|
|
61
|
-
color: var(--cyvest-panel-
|
|
40
|
+
border: 0;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
color: var(--cyvest-panel-muted);
|
|
62
43
|
background: transparent;
|
|
63
44
|
cursor: pointer;
|
|
64
|
-
transition: background-color
|
|
65
|
-
color 0.14s ease;
|
|
45
|
+
transition: background-color 120ms ease, color 120ms ease;
|
|
66
46
|
}
|
|
67
47
|
|
|
68
48
|
.cyvest-toolbar__button:hover {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
49
|
+
color: var(--cyvest-panel-text);
|
|
50
|
+
background: rgba(15, 23, 42, 0.055);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cyvest-toolbar__button:focus-visible {
|
|
54
|
+
outline: 2px solid var(--cyvest-accent);
|
|
55
|
+
outline-offset: 1px;
|
|
72
56
|
}
|
|
73
57
|
|
|
74
58
|
.cyvest-toolbar__button svg {
|
|
75
|
-
width:
|
|
76
|
-
height:
|
|
59
|
+
width: 15px;
|
|
60
|
+
height: 15px;
|
|
77
61
|
stroke: currentColor;
|
|
78
|
-
stroke-width:
|
|
62
|
+
stroke-width: 1.7;
|
|
79
63
|
stroke-linecap: round;
|
|
80
64
|
stroke-linejoin: round;
|
|
81
65
|
}
|
|
82
66
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
top: 12px;
|
|
86
|
-
left: 12px;
|
|
87
|
-
z-index: 22;
|
|
88
|
-
display: flex;
|
|
89
|
-
gap: 4px;
|
|
90
|
-
padding: 4px;
|
|
91
|
-
border-radius: 11px;
|
|
92
|
-
border: 1px solid var(--cyvest-panel-border, #d3dae6);
|
|
93
|
-
background: var(--cyvest-panel-bg, rgba(255, 255, 255, 0.96));
|
|
94
|
-
box-shadow: 0 8px 18px rgba(13, 27, 52, 0.16);
|
|
95
|
-
font-family: var(--cyvest-font-family, "IBM Plex Sans", "Segoe UI", sans-serif);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.cyvest-view-toggle__button {
|
|
99
|
-
border: none;
|
|
100
|
-
border-radius: 8px;
|
|
101
|
-
padding: 8px 12px;
|
|
102
|
-
color: var(--cyvest-panel-muted, #556079);
|
|
103
|
-
background: transparent;
|
|
104
|
-
font-size: 12px;
|
|
105
|
-
font-weight: 600;
|
|
106
|
-
letter-spacing: 0.01em;
|
|
107
|
-
cursor: pointer;
|
|
108
|
-
transition: background-color 0.14s ease, color 0.14s ease;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.cyvest-view-toggle__button:hover {
|
|
112
|
-
background: rgba(31, 111, 235, 0.12);
|
|
113
|
-
color: var(--cyvest-accent, #1f6feb);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.cyvest-view-toggle__button--active,
|
|
117
|
-
.cyvest-view-toggle__button--active:hover {
|
|
118
|
-
background: var(--cyvest-accent, #1f6feb);
|
|
119
|
-
color: #ffffff;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@media (max-width: 768px) {
|
|
123
|
-
.cyvest-view-toggle {
|
|
67
|
+
@media (max-width: 640px) {
|
|
68
|
+
.cyvest-toolbar {
|
|
124
69
|
top: 8px;
|
|
125
|
-
left: 8px;
|
|
126
70
|
}
|
|
127
71
|
|
|
128
72
|
.cyvest-toolbar {
|
|
129
|
-
top: 8px;
|
|
130
73
|
right: 8px;
|
|
131
74
|
}
|
|
132
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyvest/cyvest-vis",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"react-dom": "^19.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"cytoscape": "^3.
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"dagre": "^0.8.5",
|
|
34
|
-
"elkjs": "^0.11.0",
|
|
35
|
-
"@cyvest/cyvest-js": "5.4.0"
|
|
30
|
+
"cytoscape": "^3.34.0",
|
|
31
|
+
"d3-force": "^3.0.0",
|
|
32
|
+
"@cyvest/cyvest-js": "6.0.0"
|
|
36
33
|
},
|
|
37
34
|
"devDependencies": {
|
|
38
|
-
"@types/
|
|
35
|
+
"@types/d3-force": "^3.0.10",
|
|
36
|
+
"@types/react": "^19.2.17",
|
|
39
37
|
"@types/react-dom": "^19.2.3",
|
|
38
|
+
"react": "^19.2.7",
|
|
39
|
+
"react-dom": "^19.2.7",
|
|
40
40
|
"tsup": "^8.5.1",
|
|
41
|
-
"typescript": "^
|
|
42
|
-
"vitest": "^4.
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"vitest": "^4.1.8"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=20"
|