Skip to content

Commit 794d763

Browse files
committed
better markdown
1 parent 0067c34 commit 794d763

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

README.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# jquery-svgpan
22

3-
This is an an adaptation of Andrea Leofreddi's [SVGPan
4-
library](http://code.google.com/p/svgpan/), version 1.2.2, for use as
5-
a jQuery plugin.
3+
This is an an adaptation of Andrea Leofreddi's [SVGPan library][],
4+
version 1.2.2, for use as a [jQuery][] plugin.
5+
6+
[SVGPan library]: http://code.google.com/p/svgpan/
7+
[jQuery]: http://jquery.org/
68

79
When called upon SVG element(s), this will add all the capabilities of
810
Andrea Leofreddi's SVGPan library to those elements. Non-SVG elements
911
will be silently ignored.
1012

1113
This is useful if you have SVG content sitting in the DOM. For
12-
example, if you are generating graphics via the [d3
13-
visualization](http://mbostock.github.com/d3/) library. It will not
14-
work if you are embedding the SVG through some other means.
14+
example, if you are generating graphics via the [d3 visualization][]
15+
library. It will not work if you are embedding the SVG through some
16+
other means.
17+
18+
[d3 visualization]: http://mbostock.github.com/d3/
1519

1620
[See it in action!](http://talos.github.com/jquery-svgpan/demo.html)
1721

@@ -20,15 +24,11 @@ work if you are embedding the SVG through some other means.
2024
You can configure the behaviour of the pan/zoom/drag by passing
2125
arguments.
2226

23-
`viewportId`: String ID of the root SVG element.
24-
25-
`enablePan`: Boolean enable or disable panning (default enabled)
26-
27-
`enableZoom`: Boolean enable or disable zooming (default enabled)
28-
29-
`enableDrag`: Boolean enable or disable dragging (default disabled)
30-
31-
`zoomScale`: Float zoom sensitivity, defaults to .2
27+
* `viewportId`: String ID of the root SVG element.
28+
* `enablePan`: Boolean enable or disable panning (default enabled)
29+
* `enableZoom`: Boolean enable or disable zooming (default enabled)
30+
* `enableDrag`: Boolean enable or disable dragging (default disabled)
31+
* `zoomScale`: Float zoom sensitivity, defaults to .2
3232

3333
```javascript
3434
$(selector).svgPan(viewportId, enablePan, enableZoom, enableDrag, zoomScale);
@@ -53,14 +53,14 @@ This would enable SVGPan for a single element (provided it is an SVG).
5353

5454
Andrea Leofreddi's original SVGPan library on Google code
5555

56-
http://code.google.com/p/svgpan/
56+
* <http://code.google.com/p/svgpan/>
5757

5858
Fork jquery-svgpan at
5959

60-
http://www.github.com/talos/jquery-svgpan
60+
* <http://www.github.com/talos/jquery-svgpan>
6161

6262
CDN jquery-svgpan from
6363

64-
http://talos.github.com/jquery-svgpan/jquery-svgpan.js
64+
* <http://talos.github.com/jquery-svgpan/jquery-svgpan.js>
6565

66-
http://talos.github.com/jquery-svgpan/jquery-svgpan.min.js
66+
* <http://talos.github.com/jquery-svgpan/jquery-svgpan.min.js>

0 commit comments

Comments
 (0)