| Package | com.kapit.diagram.library |
| Class | public class SVGAsset |
| Inheritance | SVGAsset com.kapit.svg.container.SVGSVGElement |
| Method | Defined by | ||
|---|---|---|---|
|
SVGAsset(p:Sprite)
Creates a new SVGAsset instance.
| SVGAsset | ||
|
acceptAction(id:String):Boolean
Determines if the SVGAsset can accept a determined action.
| SVGAsset | ||
|
acceptActionBounds(id:String, target:DisplayObject):Array
Get the rectangles where the action can occur.
| SVGAsset | ||
|
appendToSVGDocument(doc:SVGSVGElement):void
Adds this SVGAsset object in SVG format to an SVGSVGElement object.
| SVGAsset | ||
|
hasActionTrigger(id:String):Boolean
Indicates whether the SVGAsset object has a trigger for an indicated action.
| SVGAsset | ||
| SVGAsset | () | constructor |
public function SVGAsset(p:Sprite)Creates a new SVGAsset instance.
Parametersp:Sprite |
| acceptAction | () | method |
public function acceptAction(id:String):BooleanDetermines if the SVGAsset can accept a determined action.
Parametersid:String — Id of the action to be tested.
|
Boolean — A boolean value equal to true if the SVGAsset object can accept the indicated action and false otherwise.
|
| acceptActionBounds | () | method |
public function acceptActionBounds(id:String, target:DisplayObject):ArrayGet the rectangles where the action can occur.
Parametersid:String — Id of the action to be tested.
|
|
target:DisplayObject |
Array — A rectangle where the action can occure or null.
|
| appendToSVGDocument | () | method |
public function appendToSVGDocument(doc:SVGSVGElement):voidAdds this SVGAsset object in SVG format to an SVGSVGElement object.
Parametersdoc:SVGSVGElement — SVGSVGElement to be updated by adding this SVGAsset object.
|
| hasActionTrigger | () | method |
public function hasActionTrigger(id:String):BooleanIndicates whether the SVGAsset object has a trigger for an indicated action.
Parametersid:String — Id of the action.
|
Boolean — A boolean value equal to true if the SVGAsset object has a trigger for the indicated action and false otherwise.
|