Unfortunately, there is no simple way to actieve that. You have to know the current transformation matrix exactly to calculate mapped positions, but unfortunately, only Google has implemented CanvasRenderingContext2D.currentMatrix.
The only thing you can do is to keep track of the current transformation yourself. You can find some help in this StackOverflow question.
If you use this library, I recommend you to employ the former example:
var t = new Transform();
t.rotate(5);
var m = t.m;
ctx.setTransform(m[0], m[1], m[2], m[3], m[4], m[5]);
What is more, I would event wrap that, so you can use it like:
Transform.prototype.apply = function(ctx) {
var m = this.m;
ctx.setTransform(m[0], m[1], m[2], m[3], m[4], m[5]);
};
var t = new Transform();
t.rotate(5);
t.apply(ctx);
If you kept track of the transformation, you can get your coordinates:
var t = new Transform();
t.m = [1,tan(-0.2),0,1,0,0];
t.apply(ctx);
ctx.beginPath();
ctx.moveTo(10,0); //point a
ctx.lineTo(200,0); //point b
ctx.stroke();
var mapped = t.transformPoint(200, 0);
console.log(mapped[0], mapped[1]);