@vanduo-oss/vd3-flowchart 1.5.0 → 1.5.1
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/CHANGELOG.md +18 -0
- package/README.md +7 -2
- package/dist/index.cjs +283 -35
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +283 -35
- package/dist/index.js.map +3 -3
- package/dist/meta.json +10 -10
- package/dist/vd3-flowchart.css +50 -4
- package/package.json +1 -1
package/dist/meta.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"inputs": {
|
|
3
3
|
"src/layout.js": {
|
|
4
|
-
"bytes":
|
|
4
|
+
"bytes": 12120,
|
|
5
5
|
"imports": [],
|
|
6
6
|
"format": "esm"
|
|
7
7
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"format": "esm"
|
|
12
12
|
},
|
|
13
13
|
"src/core.js": {
|
|
14
|
-
"bytes":
|
|
14
|
+
"bytes": 213356,
|
|
15
15
|
"imports": [
|
|
16
16
|
{
|
|
17
17
|
"path": "src/layout.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"imports": [],
|
|
70
70
|
"exports": [],
|
|
71
71
|
"inputs": {},
|
|
72
|
-
"bytes":
|
|
72
|
+
"bytes": 398554
|
|
73
73
|
},
|
|
74
74
|
"dist/index.js": {
|
|
75
75
|
"imports": [
|
|
@@ -98,25 +98,25 @@
|
|
|
98
98
|
"bytesInOutput": 4145
|
|
99
99
|
},
|
|
100
100
|
"src/layout.js": {
|
|
101
|
-
"bytesInOutput":
|
|
101
|
+
"bytesInOutput": 11220
|
|
102
102
|
},
|
|
103
103
|
"src/mindmap.js": {
|
|
104
104
|
"bytesInOutput": 4886
|
|
105
105
|
},
|
|
106
106
|
"src/core.js": {
|
|
107
|
-
"bytesInOutput":
|
|
107
|
+
"bytesInOutput": 203072
|
|
108
108
|
},
|
|
109
109
|
"src/index.js": {
|
|
110
110
|
"bytesInOutput": 0
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
"bytes":
|
|
113
|
+
"bytes": 223728
|
|
114
114
|
},
|
|
115
115
|
"dist/index.cjs.map": {
|
|
116
116
|
"imports": [],
|
|
117
117
|
"exports": [],
|
|
118
118
|
"inputs": {},
|
|
119
|
-
"bytes":
|
|
119
|
+
"bytes": 399234
|
|
120
120
|
},
|
|
121
121
|
"dist/index.cjs": {
|
|
122
122
|
"imports": [
|
|
@@ -136,16 +136,16 @@
|
|
|
136
136
|
"bytesInOutput": 4208
|
|
137
137
|
},
|
|
138
138
|
"src/layout.js": {
|
|
139
|
-
"bytesInOutput":
|
|
139
|
+
"bytesInOutput": 11220
|
|
140
140
|
},
|
|
141
141
|
"src/mindmap.js": {
|
|
142
142
|
"bytesInOutput": 4886
|
|
143
143
|
},
|
|
144
144
|
"src/core.js": {
|
|
145
|
-
"bytesInOutput":
|
|
145
|
+
"bytesInOutput": 203072
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
|
-
"bytes":
|
|
148
|
+
"bytes": 224954
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
package/dist/vd3-flowchart.css
CHANGED
|
@@ -28,6 +28,27 @@
|
|
|
28
28
|
--vd-flowchart-font: inherit;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/* Dark idle strokes lean on accent so nodes stay outlined without hover. Hosts
|
|
32
|
+
may still override --vd-flowchart-node-stroke for a stronger brand stroke. */
|
|
33
|
+
[data-theme='dark'],
|
|
34
|
+
:root:where([data-theme='dark']) {
|
|
35
|
+
--vd-flowchart-node-stroke: color-mix(
|
|
36
|
+
in srgb,
|
|
37
|
+
var(--vd-flowchart-accent) 48%,
|
|
38
|
+
var(--vd-border-color, #404040)
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (prefers-color-scheme: dark) {
|
|
43
|
+
:root:not([data-theme='light']) {
|
|
44
|
+
--vd-flowchart-node-stroke: color-mix(
|
|
45
|
+
in srgb,
|
|
46
|
+
var(--vd-flowchart-accent) 48%,
|
|
47
|
+
var(--vd-border-color, #404040)
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
31
52
|
.vd-flowchart-host {
|
|
32
53
|
/* A definite height (not just min-height) so the editor's internal grid can
|
|
33
54
|
size its body row deterministically. Consumers that set a larger min-height
|
|
@@ -753,11 +774,14 @@
|
|
|
753
774
|
box-sizing: border-box;
|
|
754
775
|
min-width: 0;
|
|
755
776
|
min-height: 0;
|
|
756
|
-
|
|
777
|
+
/* Transparent chrome so the SVG silhouette (circle, diamond, …) stays
|
|
778
|
+
visible while typing. Opaque fills are restored for textbox/edge/label. */
|
|
779
|
+
border: 1px solid transparent;
|
|
757
780
|
border-radius: 8px;
|
|
758
|
-
background:
|
|
781
|
+
background: transparent;
|
|
759
782
|
color: var(--vd-flowchart-text);
|
|
760
|
-
box-shadow:
|
|
783
|
+
box-shadow: none;
|
|
784
|
+
caret-color: var(--vd-flowchart-accent);
|
|
761
785
|
font: inherit;
|
|
762
786
|
font-weight: 600;
|
|
763
787
|
outline: none;
|
|
@@ -766,13 +790,27 @@
|
|
|
766
790
|
text-align: center;
|
|
767
791
|
}
|
|
768
792
|
|
|
793
|
+
.vd-flowchart-text-editor--circle {
|
|
794
|
+
border-radius: 50%;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.vd-flowchart-text-editor--diamond {
|
|
798
|
+
border-radius: 0;
|
|
799
|
+
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
|
|
800
|
+
}
|
|
801
|
+
|
|
769
802
|
.vd-flowchart-text-editor--textbox {
|
|
770
|
-
border
|
|
803
|
+
border: 1px dashed color-mix(in srgb, var(--vd-flowchart-accent) 78%, var(--vd-flowchart-border));
|
|
804
|
+
background: color-mix(in srgb, var(--vd-flowchart-panel) 92%, var(--vd-bg-primary, #fcfbf7));
|
|
805
|
+
box-shadow: 0 12px 26px color-mix(in srgb, var(--vd-flowchart-accent) 16%, transparent);
|
|
771
806
|
font-weight: 500;
|
|
772
807
|
text-align: left;
|
|
773
808
|
}
|
|
774
809
|
|
|
775
810
|
.vd-flowchart-text-editor--edge {
|
|
811
|
+
border: 1px solid color-mix(in srgb, var(--vd-flowchart-accent) 78%, var(--vd-flowchart-border));
|
|
812
|
+
background: color-mix(in srgb, var(--vd-flowchart-panel) 92%, var(--vd-bg-primary, #fcfbf7));
|
|
813
|
+
box-shadow: 0 12px 26px color-mix(in srgb, var(--vd-flowchart-accent) 16%, transparent);
|
|
776
814
|
font-weight: 500;
|
|
777
815
|
white-space: nowrap;
|
|
778
816
|
}
|
|
@@ -780,6 +818,7 @@
|
|
|
780
818
|
.vd-flowchart-text-editor--label {
|
|
781
819
|
border-color: transparent;
|
|
782
820
|
background: color-mix(in srgb, var(--vd-flowchart-panel) 82%, transparent);
|
|
821
|
+
box-shadow: 0 12px 26px color-mix(in srgb, var(--vd-flowchart-accent) 16%, transparent);
|
|
783
822
|
font-weight: 700;
|
|
784
823
|
}
|
|
785
824
|
|
|
@@ -937,6 +976,13 @@
|
|
|
937
976
|
outline-offset: -2px;
|
|
938
977
|
}
|
|
939
978
|
|
|
979
|
+
/* The canvas is often full-bleed. Hide the viewport ring once a node is
|
|
980
|
+
selected (Enter/Tab shape entry). An empty focused canvas still shows it. */
|
|
981
|
+
.vd-flowchart-canvas:focus-visible:has(.is-selected),
|
|
982
|
+
.vd-flowchart-canvas:focus:has(.is-selected) {
|
|
983
|
+
outline: none;
|
|
984
|
+
}
|
|
985
|
+
|
|
940
986
|
.vd-flowchart-sr-only {
|
|
941
987
|
position: absolute;
|
|
942
988
|
width: 1px;
|
package/package.json
CHANGED