Class Index | File Index

Classes


Class CAAT.PathUtil.SVGPath


Defined in: SVGPath.js.

Class Summary
Constructor Attributes Constructor Name and Description
 

This class is a SVG Path parser.

Field Summary
Field Attributes Field Name and Description
<private>  
<private>  
c
Method Summary
Method Attributes Method Name and Description
<private>  
____getNumbers(pathInfo, c, v, n, error)
<private>  
__findNumber(pathInfo, c)
<private>  
__getNumber(pathInfo, c, v, error)
<private>  
<private>  
<private>  
__maybeNumber(pathInfo, c)
<private>  
__parseClosePath(pathInfo, c, path, error)
<private>  
__parseCubic(pathInfo, c, absolute, path, error)
<private>  
__parseCubicS(pathInfo, c, absolute, path, error)
<private>  
__parseLine(pathInfo, c, absolute, path, error)
<private>  
__parseLineH(pathInfo, c, absolute, path, error)
<private>  
__parseLineV(pathInfo, c, absolute, path, error)
<private>  
__parseMoveTo(pathInfo, c, absolute, path, error)
<private>  
__parseQuadric(pathInfo, c, absolute, path, error)
<private>  
__parseQuadricS(pathInfo, c, absolute, path, error)
<private>  
__skipBlank(pathInfo, c)
 
parsePath(pathInfo)
This method will create a CAAT.PathUtil.Path object with as many contours as needed.
Class Detail
CAAT.PathUtil.SVGPath()

This class is a SVG Path parser. By calling the method parsePath( svgpath ) an instance of CAAT.PathUtil.Path will be built by parsing its contents.

See demo32

Field Detail
<private> bezierInfo

<private> c
Method Detail
<private> ____getNumbers(pathInfo, c, v, n, error)
Parameters:
pathInfo
c
v
n
error

<private> __findNumber(pathInfo, c)
Parameters:
pathInfo
c

<private> __getNumber(pathInfo, c, v, error)
Parameters:
pathInfo
c
v
error

<private> __init()

<private> __isDigit(c)
Parameters:
c

<private> __maybeNumber(pathInfo, c)
Parameters:
pathInfo
c

<private> __parseClosePath(pathInfo, c, path, error)
Parameters:
pathInfo
c
path
error

<private> __parseCubic(pathInfo, c, absolute, path, error)
Parameters:
pathInfo
c
absolute
path
error

<private> __parseCubicS(pathInfo, c, absolute, path, error)
Parameters:
pathInfo
c
absolute
path
error

<private> __parseLine(pathInfo, c, absolute, path, error)
Parameters:
pathInfo
c
absolute
path
error

<private> __parseLineH(pathInfo, c, absolute, path, error)
Parameters:
pathInfo
c
absolute
path
error

<private> __parseLineV(pathInfo, c, absolute, path, error)
Parameters:
pathInfo
c
absolute
path
error

<private> __parseMoveTo(pathInfo, c, absolute, path, error)
Parameters:
pathInfo
c
absolute
path
error

<private> __parseQuadric(pathInfo, c, absolute, path, error)
Parameters:
pathInfo
c
absolute
path
error

<private> __parseQuadricS(pathInfo, c, absolute, path, error)
Parameters:
pathInfo
c
absolute
path
error

<private> __skipBlank(pathInfo, c)
Parameters:
pathInfo
c

parsePath(pathInfo)
This method will create a CAAT.PathUtil.Path object with as many contours as needed.
Parameters:
pathInfo
{string} a SVG path
Returns:
Array.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:20 GMT-0700 (PDT)