]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FAsciiSVGPlugin
function _PageList_Column* are not private
[SourceForge/phpwiki.git] / pgsrc / Help%2FAsciiSVGPlugin
1 Date: Fri,  7 Dec 2012 14:58:45 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FAsciiSVGPlugin;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   markup=2;
7   charset=UTF-8
8 Content-Transfer-Encoding: binary
9
10 The **~AsciiSVGPlugin** [[Help:WikiPlugin|plugin]] is an interface to
11 [[http://www1.chapman.edu/~jipsen/svg/asciisvg.html]]
12
13 Requires ENABLE_XHTML_XML = true
14
15 Syntax: [[http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html]]
16
17 If you are using Internet Explorer 6 + Adobe SVGviewer (often included
18 by default with Windows XP) or SVG-enabled Firefox (2.0 or above)
19 then you should see the examples.
20
21 == Usage ==
22 {{{
23 <<AsciiSVG width= height= onmousemove="" script=""
24          code...
25 >>
26 }}}
27
28 == Arguments ==
29
30 {| class="bordered"
31 |-
32 ! Argument
33 ! Description
34 ! Default value
35 |-
36 | **height**
37 | graph width
38 | 200
39 |-
40 | **height**
41 | graph height
42 | 200
43 |-
44 | **script**
45 |
46 | false
47 |-
48 | **onmouseover**
49 |
50 | false
51 |}
52
53 All other arguments are passed to the ASCIISvg javascript library and rendered as SVG.
54
55 See [[http://www1.chapman.edu/~jipsen/svg/asciisvg.html]]
56
57 == Example ==
58
59 {{{
60 <<AsciiSVG width="117" height="117"
61   initPicture(-10,10)
62   axes()
63   stroke = "red"
64   p = []
65   with (Math)
66     for (t = 0; t < 10.01; t += 0.05)
67       p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
68   path(p)
69 >>
70 }}}
71
72 <<AsciiSVG width="117" height="117"
73   initPicture(-10,10)
74   axes()
75   stroke = "red"
76   p = []
77   with (Math)
78     for (t = 0; t < 10.01; t += 0.05)
79       p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
80   path(p)
81 >>
82
83 == Known Problems ==
84
85 With multiple ~AsciiSVG plugins on the same page the second and subsequent ones will have the same width and height.
86
87 == Author ==
88 * [[Help:Reini Urban|Reini Urban]]
89
90 == See Also ==
91 * [[Help:AsciiMathPlugin]]
92 * [[Help:ChartPlugin]]
93
94 <noinclude>
95 ----
96 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
97 </noinclude>