]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FAsciiSVGPlugin
Harmonize documentation
[SourceForge/phpwiki.git] / pgsrc / Help%2FAsciiSVGPlugin
1 Date: Wed, 28 May 2008 19:06:46 +0200
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FAsciiSVGPlugin;
5   flags="";
6   markup=2;
7   charset=iso-8859-1
8 Content-Transfer-Encoding: binary
9
10 Interface to http://www1.chapman.edu/~jipsen/svg/asciisvg.html
11
12 Requires ENABLE_XHTML_XML = true
13
14 Syntax: http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html
15
16 If you are using Internet Explorer 6 + Adobe SVGviewer (often included
17 by default with Windows XP) or SVG enabled Mozilla/Firefox (and have
18 Adobe SVGviewer installed as well!) then you should see the examples.
19
20 !!! Usage
21 <verbatim>
22   <?plugin AsciiSVG width= height= onmousemove="" script=""
23            code...
24   ?>
25 </verbatim>
26
27 !!! Arguments
28
29 width, height, script, onmouseover
30
31 All other arguments are passed to the ASCIISvg javascript library and
32 rendered as SVG.  See
33 http://www1.chapman.edu/~jipsen/svg/asciisvg.html
34
35 !!! Example
36
37 <verbatim>
38 <?plugin AsciiSVG width="117" height="117"
39   border = 0
40   initPicture(-10,10)
41   axes()
42   stroke = "red"
43   p = []
44   with (Math)
45     for (t = 0; t < 10.01; t += 0.05)
46       p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
47   path(p)
48 ?>
49 </verbatim>
50
51 <?plugin AsciiSVG width="117" height="117"
52   border = 0
53   initPicture(-10,10)
54   axes()
55   stroke = "red"
56   p = []
57   with (Math)
58     for (t = 0; t < 10.01; t += 0.05)
59       p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
60   path(p)
61 ?>
62
63 ! Known Problems
64
65 With multiple ~AsciiSVG plugins on the same page the 2nd and
66 subsequent ones will have the same width and height.
67
68 !!! Author
69 [Reini Urban|PhpWiki:ReiniUrban]
70
71 !!! See Also
72 Help:AsciiMathPlugin
73
74 ----
75 [PhpWikiDocumentation] [WikiPlugin|Help:WikiPlugin]