我想arrowTo
用CanvasRenderingContext2D.prototype
. 为此,我需要获取最后一点的坐标,例如
//...
var ctx = someCanvas.getContext('2d');
ctx.moveTo(10,40);
//the coordinates of the last point are now (10,40)
ctx.lineTo(50,50);
//and now it's (50,50)
//...
我怎样才能找回它们?