@tsdraw/react 0.9.0 → 0.9.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.
- package/dist/index.cjs +212 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +213 -46
- package/dist/index.js.map +1 -1
- package/dist/tsdraw.css +29 -8
- package/package.json +1 -1
package/dist/tsdraw.css
CHANGED
|
@@ -52,17 +52,28 @@
|
|
|
52
52
|
--tsdraw-color-tool-ring-fill: rgba(255, 255, 255, 0.08);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
.tsdraw-component {
|
|
56
|
+
background: var(--tsdraw-color-panel);
|
|
57
|
+
border-radius: var(--tsdraw-radius);
|
|
58
|
+
box-shadow: var(--tsdraw-shadow);
|
|
59
|
+
pointer-events: all;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tsdraw-component--draggable {
|
|
63
|
+
cursor: grab;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.tsdraw-component--dragging {
|
|
67
|
+
cursor: grabbing;
|
|
68
|
+
}
|
|
69
|
+
|
|
55
70
|
.tsdraw-toolbar {
|
|
56
71
|
position: absolute;
|
|
57
72
|
display: flex;
|
|
58
73
|
align-items: center;
|
|
59
74
|
gap: 0;
|
|
60
75
|
padding: 4.5px;
|
|
61
|
-
background: var(--tsdraw-color-panel);
|
|
62
|
-
border-radius: var(--tsdraw-radius);
|
|
63
|
-
box-shadow: var(--tsdraw-shadow);
|
|
64
76
|
z-index: 100;
|
|
65
|
-
pointer-events: all;
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
.tsdraw-toolbar-part {
|
|
@@ -71,6 +82,20 @@
|
|
|
71
82
|
gap: 2px;
|
|
72
83
|
}
|
|
73
84
|
|
|
85
|
+
.tsdraw-toolbar--vertical {
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tsdraw-toolbar--vertical .tsdraw-toolbar-part {
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.tsdraw-toolbar--vertical .tsdraw-toolbar-separator {
|
|
94
|
+
width: 24px;
|
|
95
|
+
height: 1px;
|
|
96
|
+
margin: 5px 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
74
99
|
.tsdraw-toolbar-separator {
|
|
75
100
|
width: 1px;
|
|
76
101
|
height: 24px;
|
|
@@ -121,12 +146,8 @@
|
|
|
121
146
|
|
|
122
147
|
.tsdraw-style-panel {
|
|
123
148
|
position: absolute;
|
|
124
|
-
background: var(--tsdraw-color-panel);
|
|
125
|
-
border-radius: var(--tsdraw-radius);
|
|
126
|
-
box-shadow: var(--tsdraw-shadow);
|
|
127
149
|
color: var(--tsdraw-color-text);
|
|
128
150
|
overflow: hidden;
|
|
129
|
-
pointer-events: all;
|
|
130
151
|
z-index: 120;
|
|
131
152
|
padding-top: 8px;
|
|
132
153
|
}
|