@ddd-tool/domain-designer-ui-component 0.1.0-beta.4 → 0.1.0-beta.5
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/index.css +127 -1
- package/index.js +24356 -13839
- package/package.json +2 -1
package/index.css
CHANGED
|
@@ -1 +1,127 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
.nomnoml[data-v-83e775ca] {
|
|
3
|
+
height: 100%;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.nomnoml text {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
@keyframes shining-info {
|
|
11
|
+
from {
|
|
12
|
+
stroke-width: 1px;
|
|
13
|
+
stroke-opacity: 0.2;
|
|
14
|
+
stroke: #000;
|
|
15
|
+
-webkit-text-stroke-color: #000;
|
|
16
|
+
}
|
|
17
|
+
to {
|
|
18
|
+
stroke-width: 1px;
|
|
19
|
+
stroke-opacity: 0.8;
|
|
20
|
+
stroke: #000;
|
|
21
|
+
-webkit-text-stroke-color: #000;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@keyframes shining-node {
|
|
25
|
+
from {
|
|
26
|
+
stroke-opacity: 0.2;
|
|
27
|
+
stroke: #33322e;
|
|
28
|
+
-webkit-text-stroke-color: #33322e;
|
|
29
|
+
}
|
|
30
|
+
to {
|
|
31
|
+
stroke-opacity: 1;
|
|
32
|
+
stroke: #33322e;
|
|
33
|
+
-webkit-text-stroke-color: #33322e;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.nomnoml .highlight-info:not(.active) text {
|
|
37
|
+
animation: shining-info 0.6s alternate infinite;
|
|
38
|
+
-webkit-animation: shining-info 0.6s alternate infinite;
|
|
39
|
+
-moz-animation: shining-info 0.6s alternate infinite;
|
|
40
|
+
}
|
|
41
|
+
.nomnoml .highlight-note:not(.active) {
|
|
42
|
+
animation: shining-info 0.6s alternate infinite;
|
|
43
|
+
-webkit-animation: shining-info 0.6s alternate infinite;
|
|
44
|
+
-moz-animation: shining-info 0.6s alternate infinite;
|
|
45
|
+
}
|
|
46
|
+
.nomnoml .highlight-node:not(.active) g:first-child {
|
|
47
|
+
animation: shining-node 0.6s alternate infinite;
|
|
48
|
+
-webkit-animation: shining-node 0.6s alternate infinite;
|
|
49
|
+
-moz-animation: shining-node 0.6s alternate infinite;
|
|
50
|
+
}
|
|
51
|
+
.nomnoml g[data-id].active text,
|
|
52
|
+
.nomnoml tspan[data-id].active {
|
|
53
|
+
stroke-width: 1px;
|
|
54
|
+
stroke-opacity: 0.8;
|
|
55
|
+
stroke: #000;
|
|
56
|
+
-webkit-text-stroke-color: #000;
|
|
57
|
+
}
|
|
58
|
+
.nomnoml g.node.active {
|
|
59
|
+
animation: shining-node 0.6s alternate infinite;
|
|
60
|
+
-webkit-animation: shining-node 0.6s alternate infinite;
|
|
61
|
+
-moz-animation: shining-node 0.6s alternate infinite;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.container {
|
|
65
|
+
width: 100vw;
|
|
66
|
+
height: 100vh;
|
|
67
|
+
background-color: #efefef;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
.draggable {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
user-select: none;
|
|
76
|
+
transform-origin: 0 0; /* 设置缩放原点为左上角 */
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.p-dock {
|
|
80
|
+
opacity: 0.4;
|
|
81
|
+
transition: 0.5s;
|
|
82
|
+
}
|
|
83
|
+
.p-dock:hover {
|
|
84
|
+
opacity: 1;
|
|
85
|
+
}
|
|
86
|
+
.p-dock .p-dock-item:hover {
|
|
87
|
+
scale: 1.1;
|
|
88
|
+
}
|
|
89
|
+
.toolbar-drawer {
|
|
90
|
+
width: 40%;
|
|
91
|
+
}
|
|
92
|
+
.toolbar-drawer .datasource {
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
.toolbar-drawer .datasource .datasource-item {
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: 20px 1fr;
|
|
98
|
+
grid-template-rows: 1fr;
|
|
99
|
+
margin: 5px 0;
|
|
100
|
+
line-height: 1.5rem;
|
|
101
|
+
font-size: 1rem;
|
|
102
|
+
border-radius: 5px;
|
|
103
|
+
}
|
|
104
|
+
.toolbar-drawer .datasource .datasource-item :hover {
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
background-image: linear-gradient(to bottom, white, rgb(228, 250, 255), white);
|
|
107
|
+
}
|
|
108
|
+
.toolbar-drawer .datasource .datasource-item label {
|
|
109
|
+
padding-left: 5px;
|
|
110
|
+
}
|
|
111
|
+
.root-fieldset {
|
|
112
|
+
opacity: 0.9;
|
|
113
|
+
white-space: pre-line;
|
|
114
|
+
position: absolute;
|
|
115
|
+
right: 4rem;
|
|
116
|
+
top: 0;
|
|
117
|
+
width: 30%;
|
|
118
|
+
}
|
|
119
|
+
.root-fieldset .note::before {
|
|
120
|
+
content: '';
|
|
121
|
+
display: inline-block;
|
|
122
|
+
height: 1rem;
|
|
123
|
+
width: 0.5rem;
|
|
124
|
+
border-radius: 0.25rem;
|
|
125
|
+
margin-right: 0.5rem;
|
|
126
|
+
background-color: #4441ff;
|
|
127
|
+
}
|