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