Hi Rick,
Thanks a lot for response.
We have div/panel called canvas. So, this canvas will hold the svg
root element which we add during initial creation of canvas. We are
creating svg element based on drag/drop of a another component where
we call following functionality.
eventCoordinates: function(event) {
var canvas = this.getCanvas(); //
var svgPoint=canvas.node.createSVGPoint(); //Working where node is
element of svg type.
svgPoint.x = event.clientX;
svgPoint.y = event.clientY;
var matrix=canvas.node.getCTM(); //Error: 'this._handler' is null or
not an object.
//var matrix = canvas.node.getScreenCTM();
return svgPoint.matrixTransform(matrix.inverse());
}
// getCTM(), getScreenCTM() is defined in svg.js file.
getScreenCTM: function() { //method of svg.js file
var msg = this._handler.sendToFlash('jsGetScreenCTM',
[ this._guid ]); //Erorr: this._handler is undefined.
msg = this._handler._stringToMsg(msg);
return new _SVGMatrix(new Number(msg.a), new Number(msg.b), new
Number(msg.c),
new Number(msg.d), new Number(msg.e), new
Number(msg.f),
this._handler);
}
Regards,
SND
On Dec 16, 6:50 am, "R. Masters" <
gric...@gmail.com> wrote:
> I think you are going to need to post your full example.
> I suspect you are trying to do SVG operations before the SVGLoad event
> has fired.
>
> Rick
>