@@ -30,22 +30,20 @@ mdc: true
30
30
31
31
# Positioning
32
32
33
- <div grid =" ~ cols-3 gap-4 " mt-6 >
33
+ <div grid =" ~ cols-3 gap-4 " mt-6 h-100 >
34
34
35
- <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " >
35
+ <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " flex = " ~ col " >
36
36
37
37
### Absolute positioning
38
38
39
- <p ><!-- placeholder --> </p >
40
-
41
39
<FancyArrow
42
40
x1="120"
43
41
y1="200"
44
42
x2="260"
45
43
y2="300"
46
44
/>
47
45
48
- <div h-50 ><!-- Placeholder--> </div >
46
+ <div grow-1 ><!-- Placeholder--> </div >
49
47
50
48
``` html
51
49
<FancyArrow
@@ -58,7 +56,7 @@ mdc: true
58
56
59
57
</div >
60
58
61
- <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " >
59
+ <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " flex = " ~ col " >
62
60
63
61
### Snapped to elements
64
62
@@ -69,7 +67,7 @@ mdc: true
69
67
id2="snapped-element2"
70
68
/>
71
69
72
- <div h-50 ><!-- Placeholder--> </div >
70
+ <div grow-1 ><!-- Placeholder--> </div >
73
71
74
72
``` html
75
73
<code id =" snapped-element1" absolute left-380px top-200px >#snapped-element1</code >
@@ -82,7 +80,7 @@ mdc: true
82
80
83
81
</div >
84
82
85
- <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " >
83
+ <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " flex = " ~ col " >
86
84
87
85
### Mixed
88
86
@@ -93,7 +91,7 @@ mdc: true
93
91
y2="300"
94
92
/>
95
93
96
- <div h-50 ><!-- Placeholder--> </div >
94
+ <div grow-1 ><!-- Placeholder--> </div >
97
95
98
96
``` html
99
97
<code id =" snapped-element3" absolute left-680px top-200px >#snapped-element3</code >
@@ -162,17 +160,17 @@ Use `pos1` and `pos2` to specify the anchor point on the snapped elements.
162
160
163
161
# Appearance
164
162
165
- <div grid =" ~ cols-3 gap-4 " mt-6 >
163
+ <div grid =" ~ cols-3 gap-4 " mt-6 h-80 >
166
164
167
- <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " >
165
+ <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " flex = " ~ col " >
168
166
169
167
### Color
170
168
171
169
<FancyArrow color =" orange " x1 =" 100 " y1 =" 200 " x2 =" 200 " y2 =" 300 " />
172
170
<FancyArrow color =" lime " x1 =" 140 " y1 =" 200 " x2 =" 240 " y2 =" 300 " />
173
171
<FancyArrow color =" sky " x1 =" 180 " y1 =" 200 " x2 =" 280 " y2 =" 300 " />
174
172
175
- <div h-40 ><!-- Placeholder--> </div >
173
+ <div grow-1 ><!-- Placeholder--> </div >
176
174
177
175
``` html
178
176
<FancyArrow color =" orange" x1 =" 100" y1 =" 200" x2 =" 200" y2 =" 300" />
@@ -182,15 +180,15 @@ Use `pos1` and `pos2` to specify the anchor point on the snapped elements.
182
180
183
181
</div >
184
182
185
- <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " >
183
+ <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " flex = " ~ col " >
186
184
187
185
### Width
188
186
189
187
<FancyArrow width =" 2 " x1 =" 400 " y1 =" 200 " x2 =" 500 " y2 =" 300 " />
190
188
<FancyArrow width =" 4 " x1 =" 440 " y1 =" 200 " x2 =" 540 " y2 =" 300 " />
191
189
<FancyArrow width =" 6 " x1 =" 480 " y1 =" 200 " x2 =" 580 " y2 =" 300 " />
192
190
193
- <div h-40 ><!-- Placeholder--> </div >
191
+ <div grow-1 ><!-- Placeholder--> </div >
194
192
195
193
``` html
196
194
<FancyArrow width =" 2" x1 =" 400" y1 =" 200" x2 =" 500" y2 =" 300" />
@@ -200,15 +198,15 @@ Use `pos1` and `pos2` to specify the anchor point on the snapped elements.
200
198
201
199
</div >
202
200
203
- <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " >
201
+ <div bg-gray:10 p-4 border =" ~ gray/50 rounded-lg " flex = " ~ col " >
204
202
205
203
### Arrow head customization
206
204
207
205
<FancyArrow two-way x1 =" 700 " y1 =" 200 " x2 =" 800 " y2 =" 300 " />
208
206
<FancyArrow arrowHeadType =" polygon " x1 =" 740 " y1 =" 200 " x2 =" 840 " y2 =" 300 " />
209
207
<FancyArrow arrowHeadSize =" 60 " x1 =" 780 " y1 =" 200 " x2 =" 880 " y2 =" 300 " />
210
208
211
- <div h-40 ><!-- Placeholder--> </div >
209
+ <div grow-1 ><!-- Placeholder--> </div >
212
210
213
211
``` html
214
212
<FancyArrow two-way x1 =" 700" y1 =" 200" x2 =" 800" y2 =" 300" />
0 commit comments