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