|
12 | 12 | alt="Vue" |
13 | 13 | src="https://img.shields.io/static/v1.svg?label=&message=Vue&style=flat-square&color=3fb984"></a> |
14 | 14 | </p> |
15 | | -<p align="middle">Moveable is Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable</p> |
| 15 | +<p align="middle">Moveable is Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable</p> |
16 | 16 | <p align="middle"> |
17 | 17 | <a href="https://daybrush.com/moveable" target="_blank"><strong>Demo</strong></a> / |
18 | 18 | <a href="https://daybrush.com/moveable/release/latest/doc/" target="_blank"><strong>API</strong></a> / |
|
47 | 47 | <tr> |
48 | 48 | <td align="center"><strong>Warpable</strong></td> |
49 | 49 | <td align="center"><strong>Pinchable</strong></td> |
50 | | -<td align="center"><strong></strong></td> |
| 50 | +<td align="center"><a href="https://github.com/daybrush/moveable/blob/master/groupable.md"><strong>Groupable</strong></a></td> |
51 | 51 | <td align="center"><strong></strong></td> |
52 | 52 | </tr> |
53 | 53 | <tr> |
54 | 54 | <td align="center"><img src="https://raw.githubusercontent.com/daybrush/moveable/master/demo/images/warpable.gif"></td> |
55 | 55 | <td align="center"><img src="https://raw.githubusercontent.com/daybrush/moveable/master/demo/images/pinchable.gif"></td> |
56 | | -<td align="center"><strong></strong></td> |
| 56 | +<td align="center"><img src="https://raw.githubusercontent.com/daybrush/moveable/master/demo/images/groupable.gif"></td> |
57 | 57 | <td align="center"><strong></strong></td> |
58 | 58 | </tr> |
59 | 59 | </table> |
60 | 60 |
|
| 61 | + |
61 | 62 | ## 🔥 Features |
62 | 63 | * **Draggable** refers to the ability to drag and move targets. |
63 | 64 | * **Resizable** indicates whether the target's width and height can be increased or decreased. |
64 | 65 | * **Scalable** indicates whether the target's x and y can be scale of transform. |
65 | 66 | * **Rotatable** indicates whether the target can be rotated. |
66 | 67 | * **Warpable** indicates whether the target can be warped(distorted, bented). |
67 | 68 | * **Pinchable** indicates whether the target can be pinched with draggable, resizable, scalable, rotatable. |
| 69 | +* **[Groupable](https://github.com/daybrush/moveable/blob/master/groupable.md)** indicates Whether the targets can be moved in group with draggable, resizable, scalable, rotatable. |
68 | 70 | * Support SVG Elements (svg, path, line, ellipse, g, rect, ...etc) |
69 | 71 | * Support 3d Transform |
70 | 72 |
|
@@ -101,6 +103,8 @@ const moveable = new Moveable(document.body, { |
101 | 103 | pinchable: true, // ["resizable", "scalable", "rotatable"] |
102 | 104 | origin: true, |
103 | 105 | keepRatio: true, |
| 106 | + // Resize, Scale Events at edges. |
| 107 | + edge: false, |
104 | 108 | throttleDrag: 0, |
105 | 109 | throttleResize: 0, |
106 | 110 | throttleScale: 0, |
|
0 commit comments