Fix Path#getTangentAt example.

This commit is contained in:
Jonathan Puckey 2013-03-04 12:37:55 +01:00
parent 2d103dd792
commit 2666e60f28

View file

@ -1331,10 +1331,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
* // Make the tangent vector 60pt long:
* tangent.length = 60;
*
* var line = new Path({
* segments: [point, point + tangent],
* strokeColor: 'red'
* })
* var line = new Path({
* segments: [point, point + tangent],
* strokeColor: 'red'
* })
* }
*/
getTangentAt: function(offset, isParameter) {
var loc = this.getLocationAt(offset, isParameter);