File tree Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ npm install slidev-addon-fancy-arrow
14
14
15
15
## Slidev configuration
16
16
17
- ```
17
+ ``` yml
18
18
---
19
19
addons :
20
20
- fancy-arrow
@@ -24,3 +24,38 @@ addons:
24
24
## Usage
25
25
26
26
[ 👉 Check out the demo and docs] ( https://whitphx.github.io/slidev-addon-fancy-arrow/ ) .
27
+
28
+ ### Basic Examples
29
+
30
+ #### Absolute positions
31
+
32
+ ``` html
33
+ <FancyArrow from =" (10, 20)" to =" (30, 40)" />
34
+ ```
35
+
36
+ #### Snapped to elements
37
+
38
+ ``` html
39
+ <div data-id =" anchor1" m-8 >anchor1</div >
40
+ <div data-id =" anchor2" m-8 >anchor2</div >
41
+ <FancyArrow from =" [data-id=anchor1]" to =" [data-id=anchor2]" />
42
+ <FancyArrow from =" [data-id=anchor1]@bottom" to =" [data-id=anchor2]@top" />
43
+ ```
44
+
45
+ #### Configure the styles
46
+
47
+ ``` html
48
+ <FancyArrow
49
+ color =" orange"
50
+ width =" 4"
51
+ two-way
52
+ head-type =" polygon"
53
+ head-size =" 40"
54
+ roughness =" 2"
55
+ bowing =" 0.5"
56
+ seed =" 42"
57
+ arc =" 0.5"
58
+ from =" (100, 200)"
59
+ to =" (300, 400)"
60
+ />
61
+ ```
You can’t perform that action at this time.
0 commit comments