Class createjs.Graphics.DecodePath
Defined in: graphics.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.Graphics.DecodePath(encoded)
An inner class used by the createjs.Graphics class to draw a compact-encoded
path.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
createjs.Graphics.DecodePath.get(encoded, box)
Creates a createjs.Graphics.DrawPath object.
|
getText()
|
|
paint(renderer)
|
Class Detail
createjs.Graphics.DecodePath(encoded)
An inner class used by the createjs.Graphics class to draw a compact-encoded
path. This object uses an object spool to decode one compact-encoded path
only once. (A createjs.Shape object generated by Flash calls the drawPath()
method in its constructor, i.e. it decodes one compact-encoded path every
time when a game creates the instance of the createjs.Shape object. This
object uses an object spool to avoid it.)
- Parameters:
- {string} encoded
Method Detail
<static>
{createjs.Graphics.DecodePath}
createjs.Graphics.DecodePath.get(encoded, box)
Creates a createjs.Graphics.DrawPath object. This method decodes a
compact-encoded path only when its object spool have not decoded it.
- Parameters:
- {string} encoded
- {createjs.BoundingBox} box
- Returns:
- {createjs.Graphics.DecodePath}
getText()
paint(renderer)
- Parameters:
- renderer