Bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=13277

I've been looking at old Level 2 bugs, and this one sounded interesting. The idea of a getter to get the current "from" point when using moveTo, lineTo, or arcTo. From an implementation standpoint, how difficult would it be to cache the current path's x/y location? 

I could see this several ways: 

//  System current path point
readonly attribute double  context2d.currentPointX;
readonly attribute double  context2d.currentPointY;

// Path2D current point
readonly attribute double  Path2D.currentPointX;
readonly attribute double  Path2D.currentPointY; 

Thoughts? 


Jay Munro  Content Developer 2 Internet Explorer     85/2275    425-703-2242 

Received on Friday, 20 June 2014 22:31:28 UTC