Docs for page svg_utils.inc

## /tag_utils/svg_utils.inc

Description

This file holds helper functions for things related to SVG Tags (Scalable Vector Graphics)

$Id: _2_X_tag_utils_svg_utils_inc.html,v 1.1.2.2 2005/09/02 00:07:37 hemna Exp $

- link: http://phphtmllib.newsblob.com
- author: Walter A. Boring IV <waboring@newsblob.com>

Functions
svg_a (line 25)

This function is used to build an SVG <a> tag

- return: object
- link: http://www.w3.org/TR/SVG/linking.html#AElement

Asvgtag svg_a (string $xlinkhref, mixed 1)

- mixed 1: - any N number of params for content for the tag
- string $xlinkhref: - the 'xlink:href' attribute

svg_animate (line 48)

This function is used to build an SVG <animate> tag

- return: object
- link: http://www.w3.org/TR/SVG/animate.html#AnimateElement

ANIMATEsvgtag svg_animate (string $from, string $to, string $duration, string $attributename, string $attributetype, [string $repeatcount = NULL], [string $fill = NULL])

- string $from: - the 'from' attribute
- string $to: - the 'to' attribute
- string $duration: - the 'duration' attribute
- string $attributename: - the 'attributeName' attribute
- string $attributetype: - the 'attributeType' attribute
- string $repeatcount: - the 'repeatCount' attribute
- string $fill: - the 'fill' attribute

svg_circle (line 81)

This function is used to build an SVG <circle> tag and its common attributes

- return: object
- link: http://www.w3.org/TR/SVG/shapes.html

CIRCLEsvgtag svg_circle (int $cx, int $cy, string $radius, [string $fill = "none"], [string $stroke = NULL], [string $strokewidth = NULL], [string $style = NULL])

- int $cx: - the 'cx' attribute. The x-axis coordinate of the center of the circle
- int $cy: - the 'cy' attribute. The y-axis coordinate of the center of the circle
- string $radius: - the 'r' (radius) attribute
- string $fill: - the 'fill' attribute
- string $stroke: - the 'stroke' attribute
- string $strokewidth: - the 'stroke-width' attribute
- string $style: - the 'style' attribyte

svg_defs (line 108)

This function is used for building an SVG <defs> tag

- return: object

DESCsvgtag svg_defs ([mixed 0 = - any N number of params for content for the tag])

- mixed 0: - any N number of params for content for the tag

svg_desc (line 123)

This function is used for building an SVG <desc> tag

- return: object

DESCsvgtag svg_desc ([mixed 0 = - any N number of params for content for the tag])

- mixed 0: - any N number of params for content for the tag

svg_ellipse (line 150)

This function is used to build an SVG <ellipse> tag and its common attributes

- return: object
- link: http://www.w3.org/TR/SVG/shapes.html

ELLIPSEsvgtag svg_ellipse (int $cx, int $cy, int $rx, int $ry, [string $fill = "none"], [string $stroke = NULL], string $strokewidth, [string $style = NULL])

- int $cx: - the 'cx' attribute. The x-axis coordinate of the center of the circle
- int $cy: - the 'cy' attribute. The y-axis coordinate of the center of the circle
- int $rx: - the 'rx' attribute. The x-axis radius of the ellipse.
- int $ry: - the 'ry' attribute. The y-axis radius of the ellipse.
- string $fill: - the 'fill' attribute
- string $stroke: - the 'stroke' attribute
- string $strokewidth: - the 'stroke-width' attribute
- string $style: - the 'style' attribyte

svg_font (line 176)

this function builds an SVG <font> tag

- return: object

FONTsvgtag svg_font (string $horizadvx)

- string $horizadvx: - the required 'horiz-adv-x' attribute

svg_g (line 194)

This function builds an SVG <g> tag

- return: object

Gsvgtag svg_g ([string $style = NULL], [string $transform = NULL])

- string $style: - the 'style' attribute
- string $transform: - the 'transform' attribute

svg_line (line 222)

This function is used for building an SVG <line> tag

- return: object
- link: http://www.w3.org/TR/SVG/shapes.html

LINEsvgtag svg_line (int $x1, int $y1, int $x2, int $y2, [string $stroke = NULL], string $strokewidth, [string $style = NULL])

- int $x1: - the 'x1' attribute
- int $y1: - the 'y1' attribute
- int $x2: - the 'x2' attribute
- int $y2: - the 'y2' attribute
- string $stroke: - the 'stroke' attribute
- string $strokewidth: - the 'stroke-width' attribute
- string $style: - the 'style' attribute

svg_marker (line 252)

This function is used for building an SVG <marker> tag

- return: object
- link: http://www.w3.org/TR/SVG/painting.html#MarkerElement

MARKERsvgtag svg_marker (string $refx, string $refY, [string $markerunits = NULL], [string $markerwidth = NULL], [string $markerheight = NULL], [string $orient = NULL])

- string $refx: - the 'refX' attribute
- string $refY: - the 'refY' attribute
- string $markerunits: - the 'markerUnits' attribute
- string $markerwidth: - the 'markerWidth' attribute
- string $markerheight: - the 'markerHeight' attribute
- string $orient: - the 'orient' attribute

svg_polygon (line 286)

This function is used for building an SVG <polygon> tag

- return: object
- link: http://www.w3.org/TR/SVG/shapes.html

POLYGONsvgtag svg_polygon (int $points, [string $fill = "none"], [string $stroke = NULL], string $strokewidth, [string $style = NULL])

- int $points: - the 'points' attribute
- string $fill: - the 'fill' attribute
- string $stroke: - the 'stroke' attribute
- string $strokewidth: - the 'stroke-width' attribute
- string $style: - the 'style' attribute

svg_polyline (line 322)

This function is used for building an SVG <polyline> tag

- return: object
- link: http://www.w3.org/TR/SVG/shapes.html

POLYLINEsvgtag svg_polyline (int $points, [string $fill = "none"], [string $stroke = NULL], string $strokewidth, [string $style = NULL])

- int $points: - the 'points' attribute
- string $fill: - the 'fill' attribute
- string $stroke: - the 'stroke' attribute
- string $strokewidth: - the 'stroke-width' attribute
- string $style: - the 'style' attribute

svg_rect (line 404)

This function is used to build an SVG <rect> tag and its common attributes

- return: object
- link: http://www.w3.org/TR/SVG/shapes.html

RECTsvgtag svg_rect (int $x, int $y, string $width, string $height, [string $fill = NULL], [string $stroke = NULL], [string $strokewidth = NULL], [string $style = NULL])

- int $x: - the 'x' attribute
- int $y: - the 'y' attribute
- string $width: - the 'width' attribute
- string $height: - the 'height' attribute
- string $fill: - the 'fill' attribute
- string $stroke: - the 'stroke' attribute
- string $strokewidth: - the 'stroke-width' attribyte
- string $style: - the 'style' attribyte

svg_script (line 358)

This function creates a <script> tag and wraps the javascript in the appropriate <![CDATA[ JAVASCRIPT ]]> that is required for svg.

- return: object

SCRIPTsvgtag svg_script ([string $type = "text/javascript"], mixed 1)

- mixed 1: - any N number of params for content for the tag
- string $type: the 'type' attribute

svg_style (line 378)

This function creates a <script> tag and wraps the javascript in the appropriate <![CDATA[ JAVASCRIPT ]]> that is required for svg.

- return: object

SCRIPTsvgtag svg_style ([string $type = "text/css"], mixed 1)

- mixed 1: - any N number of params for content for the tag
- string $type: the 'type' attribute

svg_text (line 438)

This function is used to build an SVG <text> tag

- return: object.
- link: http://www.w3.org/TR/SVG/text.html

TEXTsvgtag svg_text (int $x, int $y, [string $rotate = NULL], [style $class = NULL], mixed 4)

- mixed 4: - any N number of params for content for the tag
- int $x: - the 'x' attribute
- int $y: - the 'y' attribute
- string $rotate: - the 'rotate' attribute
- style $class: - the 'class' attribute

svg_textpath (line 464)

This function is used to build an SVG <textpath> tag.

- return: object.
- link: http://www.w3.org/TR/SVG/text.html#TextPathElement

TEXTPATHsvgtag svg_textpath (string $xlinkhref, [string $class = NULL], mixed 2)

- mixed 2: - any N number of params for content for the tag
- string $xlinkhref: - the 'xlink:href' attribute
- string $class: - the 'class' attribute

svg_tref (line 487)

This function is used to build an SVG <tref> tag

- return: object.
- link: http://www.w3.org/TR/SVG/text.html

TREFsvgtag svg_tref (string $xlinkhref, [string $class = NULL], mixed 2)

- mixed 2: - any N number of params for content for the tag
- string $xlinkhref: - the 'xlink:href' required attribute
- string $class: - the 'class' attribute

svg_tspan (line 509)

This function is used to build an SVG <tref> tag.

- return: object.
- link: http://www.w3.org/TR/SVG/text.html

TSPANsvgtag svg_tspan (string $x, string $y, [string $class = NULL])

- string $x: - the 'x' attribute
- string $y: - the 'y' attribute
- string $class: - the 'class' attribute

Documentation generated on Thu, 1 Sep 2005 17:06:33 -0700 by phpDocumentor 1.3.0RC3