The annotation layer is the most important thing we do
- Amanda Cox -
Creates a new swoopyDrag
.
Function called on each annotation object to determine its x
position.
Function called on each annotation object to determine its y
position.
Boolean. Pass true while adjusting annotations to enable dragging and add control points to paths.
Array of objects representing annotations. The path
in each annotations will have its d
attribute set to the path
property. The text
element will contain the text
property and be translated by textOffset
.
Called as the labels or paths are dragged.