Diff: Help/AsciiSVGPlugin

Differences between current version and predecessor to the previous major change of Help/AsciiSVGPlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 6 Last edited on 17 January 2022 3:00 by harold
Older page: version 5 Last edited on 9 September 2007 0:16 by harold Revert
@@ -1,66 +1,88 @@
-Interface to http://www1.chapman.edu/~jipsen/svg/asciisvg.html 
+The **~AsciiSVGPlugin** [[Help:WikiPlugin|plugin]] is an interface to  
+[[ http://www1.chapman.edu/~jipsen/svg/asciisvg.html]]  
  
 Requires ENABLE_XHTML_XML = true 
  
-Syntax: http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html 
+Syntax: [[ http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html]]  
  
-If you are using Internet Explorer 6 + Adobe SVGviewer (often included  
-by default with Windows XP ) or SVG enabled Mozilla/Firefox (and have  
-Adobe SVGviewer installed as well!) then you should see the examples. 
+The browser must support SVG in order graphs to be displayed.  
+ If you are using a recent browser (Firefox, Opera, Chrome, Safari )  
+then you should see the examples. 
  
-! Usage  
-<verbatim>  
- <?plugin AsciiSVG width= height= onmousemove="" script=""  
- code...  
- ? >  
-</verbatim>  
+== Usage ==  
+{{{  
+<< AsciiSVG width= height= onmousemove="" script=""  
+ code...  
+> >  
+}}}  
  
-! Arguments 
+== Arguments ==  
  
-width, height, script, onmouseover  
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| **height**  
+| graph width  
+| 200  
+|-  
+| ** height**  
+| graph height  
+| 200  
+|-  
+| **script**  
+| One line script.  
+| false  
+|-  
+| **onmousemove**  
+|  
+| false  
+|}  
  
-All other arguments are passed to the ASCIISvg javascript library and  
- rendered as SVG. See  
-http://www1.chapman.edu/~jipsen/svg/asciisvg.html  
+All other arguments are passed to the ASCIISvg javascript library and rendered as SVG. 
  
-! Example  
+See [[http://www1.chapman.edu/~jipsen/svg/asciisvg.html]]  
  
-<verbatim>  
-<?plugin AsciiSVG width="117" height="117"  
- border = 0  
+== Example ==  
+  
+{{{  
+< <AsciiSVG width="117" height="117" 
  initPicture(-10,10) 
  axes() 
  stroke = "red" 
  p = [] 
  with (Math) 
  for (t = 0; t < 10.01; t += 0.05) 
  p[p.length] = [t*cos(PI*t), t*sin(PI*t)] 
  path(p) 
-? >  
-</verbatim
+>>  
+}}}  
  
-<?plugin AsciiSVG width="117" height="117"  
- border = 0  
+<< AsciiSVG width="117" height="117" 
  initPicture(-10,10) 
  axes() 
  stroke = "red" 
  p = [] 
  with (Math) 
  for (t = 0; t < 10.01; t += 0.05) 
  p[p.length] = [t*cos(PI*t), t*sin(PI*t)] 
  path(p) 
-?
+>
  
-! Known Problems 
+== Known Problems ==  
  
-With multiple ~AsciiSVG plugins on the same page the 2nd and  
- subsequent ones will have the same width and height. 
+With multiple ~AsciiSVG plugins on the same page the second and subsequent ones will have the same width and height. 
  
-! Author  
-PhpWiki :ReiniUrban  
+== Author ==  
+* [[Help :Reini Urban|Reini Urban]]  
  
-! See Also  
-Help:AsciiMathPlugin 
+== See Also ==  
+* [[ Help:AsciiMathPlugin]]  
+* [[Help:ChartPlugin]]  
  
+<noinclude>  
 ---- 
-PhpWikiDocumentation Help:WikiPlugin  
+[[ PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
+</noinclude>  

current version

The AsciiSVGPlugin plugin is an interface to http://www1.chapman.edu/~jipsen/svg/asciisvg.html

Requires ENABLE_XHTML_XML = true

Syntax: http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html

The browser must support SVG in order graphs to be displayed. If you are using a recent browser (Firefox, Opera, Chrome, Safari) then you should see the examples.

Usage

<<AsciiSVG width= height= onmousemove="" script=""
         code...
>>

Arguments

Argument

Description

Default value

height

graph width

200

height

graph height

200

script

One line script.

false

onmousemove

false

All other arguments are passed to the ASCIISvg javascript library and rendered as SVG.

See http://www1.chapman.edu/~jipsen/svg/asciisvg.html

Example

<<AsciiSVG width="117" height="117"
  initPicture(-10,10)
  axes()
  stroke = "red"
  p = []
  with (Math)
    for (t = 0; t < 10.01; t += 0.05)
      p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
  path(p)
>>

Known Problems

With multiple AsciiSVG plugins on the same page the second and subsequent ones will have the same width and height.

Author

See Also