|
1 | 1 | <template> |
2 | 2 | <div class="overflow-x-auto"> |
3 | 3 | <table class="bg-white border table-auto"> |
4 | | - <thead> |
5 | | - <tr> |
6 | | - <th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider"> |
7 | | - Name |
8 | | - </th> |
9 | | - <th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider"> |
10 | | - Params |
11 | | - </th> |
12 | | - <th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider"> |
13 | | - Description |
14 | | - </th> |
15 | | - </tr> |
16 | | - </thead> |
17 | | - <tbody class="bg-white"> |
18 | | - <tr> |
19 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
20 | | - saveSignature |
21 | | - </td> |
22 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
23 | | - format (() / image/jpeg / image/svg) |
24 | | - </td> |
25 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
26 | | - Save image as PNG/JPEG or SVG |
27 | | - </td> |
28 | | - </tr> |
29 | | - <tr> |
30 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
31 | | - clearCanvas |
32 | | - </td> |
33 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
34 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
35 | | - Clear canvas |
36 | | - </td> |
37 | | - </tr> |
38 | | - <tr> |
39 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
40 | | - isCanvasEmpty |
41 | | - </td> |
42 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
43 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
44 | | - Returns true if the canvas is empty, otherwise it returns false |
45 | | - </td> |
46 | | - </tr> |
47 | | - <tr> |
48 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
49 | | - undo |
50 | | - </td> |
51 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
52 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
53 | | - Remove the last drawing |
54 | | - </td> |
55 | | - </tr> |
56 | | - <tr> |
57 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
58 | | - addWaterMark |
59 | | - </td> |
60 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
61 | | - {} |
62 | | - </td> |
63 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
64 | | - Add waterMark |
65 | | - </td> |
66 | | - </tr> |
67 | | - <tr> |
68 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
69 | | - fromDataURL |
70 | | - </td> |
71 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
72 | | - (url) |
73 | | - </td> |
74 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
75 | | - Draw signature image from data URL |
76 | | - </td> |
77 | | - </tr> |
78 | | - <tr> |
79 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
80 | | - handleBeginStroke |
81 | | - </td> |
82 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
83 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
84 | | - Emits `Signature started` when the user starts drawing on the canvas |
85 | | - </td> |
86 | | - </tr> |
87 | | - <tr> |
88 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
89 | | - handleEndStroke |
90 | | - </td> |
91 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
92 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
93 | | - Emits `Signature ended` when the user stops drawing on the canvas |
94 | | - </td> |
95 | | - </tr> |
96 | | - <tr> |
97 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
98 | | - handleBeforeUpdateStroke |
99 | | - </td> |
100 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
101 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
102 | | - Emits `Signature before update` before the drawing gets updated on the canvas |
103 | | - </td> |
104 | | - </tr> |
105 | | - <tr> |
106 | | - <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
107 | | - handleAfterUpdateStroke |
108 | | - </td> |
109 | | - <td class="px-6 py-4 whitespace-no-wrap" /> |
110 | | - <td class="px-6 py-4 whitespace-no-wrap"> |
111 | | - Emits `Signature after update` after the drawing gets updated on the canvas |
112 | | - </td> |
113 | | - </tr> |
114 | | - </tbody> |
115 | | - </table> |
| 4 | + <thead> |
| 5 | + <tr> |
| 6 | + <th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider"> |
| 7 | + Name |
| 8 | + </th> |
| 9 | + <th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider"> |
| 10 | + Params |
| 11 | + </th> |
| 12 | + <th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider"> |
| 13 | + Description |
| 14 | + </th> |
| 15 | + </tr> |
| 16 | + </thead> |
| 17 | + <tbody class="bg-white"> |
| 18 | + <tr> |
| 19 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 20 | + saveSignature |
| 21 | + </td> |
| 22 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 23 | + format (() / image/jpeg / image/svg) |
| 24 | + </td> |
| 25 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 26 | + Save image as PNG/JPEG or SVG |
| 27 | + </td> |
| 28 | + </tr> |
| 29 | + <tr> |
| 30 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 31 | + clearCanvas |
| 32 | + </td> |
| 33 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
| 34 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 35 | + Clear canvas |
| 36 | + </td> |
| 37 | + </tr> |
| 38 | + <tr> |
| 39 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 40 | + isCanvasEmpty |
| 41 | + </td> |
| 42 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
| 43 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 44 | + Returns true if the canvas is empty, otherwise it returns false |
| 45 | + </td> |
| 46 | + </tr> |
| 47 | + <tr> |
| 48 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 49 | + undo |
| 50 | + </td> |
| 51 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
| 52 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 53 | + Remove the last drawing |
| 54 | + </td> |
| 55 | + </tr> |
| 56 | + <tr> |
| 57 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 58 | + addWaterMark |
| 59 | + </td> |
| 60 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 61 | + {} |
| 62 | + </td> |
| 63 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 64 | + Add waterMark |
| 65 | + </td> |
| 66 | + </tr> |
| 67 | + <tr> |
| 68 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 69 | + fromDataURL |
| 70 | + </td> |
| 71 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 72 | + (url) |
| 73 | + </td> |
| 74 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 75 | + Draw signature image from data URL |
| 76 | + </td> |
| 77 | + </tr> |
| 78 | + <tr> |
| 79 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 80 | + handleBeginStroke |
| 81 | + </td> |
| 82 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
| 83 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 84 | + Emits `Signature started` when the user starts drawing on the canvas |
| 85 | + </td> |
| 86 | + </tr> |
| 87 | + <tr> |
| 88 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 89 | + handleEndStroke |
| 90 | + </td> |
| 91 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
| 92 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 93 | + Emits `Signature ended` when the user stops drawing on the canvas |
| 94 | + </td> |
| 95 | + </tr> |
| 96 | + <tr> |
| 97 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 98 | + handleBeforeUpdateStroke |
| 99 | + </td> |
| 100 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" /> |
| 101 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 102 | + Emits `Signature before update` before the drawing gets updated on the canvas |
| 103 | + </td> |
| 104 | + </tr> |
| 105 | + <tr> |
| 106 | + <td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300"> |
| 107 | + handleAfterUpdateStroke |
| 108 | + </td> |
| 109 | + <td class="px-6 py-4 whitespace-no-wrap" /> |
| 110 | + <td class="px-6 py-4 whitespace-no-wrap"> |
| 111 | + Emits `Signature after update` after the drawing gets updated on the canvas |
| 112 | + </td> |
| 113 | + </tr> |
| 114 | + </tbody> |
| 115 | + </table> |
116 | 116 | </div> |
117 | 117 | </template> |
0 commit comments