Telogis.GeoBase.Canvas.Shapes.Path |
Path inherits from Canvas.Shapes.AbstractShape.
Represents an arbitrary figure described by a sequence of commands, as displayed in a Canvas renderer. This should not be constructed explicitly, but rather generated as the result of a call to Canvas.path.
Name | Description |
---|---|
Path(canvas) | Arguments
|
Name | Type | Description |
---|---|---|
commands | Array | The list of instructions describing the path. Each entry in this array should itself be an array whose first element is a Canvas instruction code (currently one of Canvas.COMMAND_MOVE, Canvas.COMMAND_LINE or Canvas.COMMAND_BEZIER) and whose successive entries are Point parameters associated with this command. In the case of Canvas.COMMAND_MOVE and Canvas.COMMAND_LINE, there should be one parameter: the destination of the action. If the command is Canvas.COMMAND_BEZIER, the arguments should consist of start and end control points, followed by the destination point. |