Liu Eric wrote:
> I found out the problem is in my svg file:
> function startDrag(evt)
> {
>     dragging = true;
>     offX = evt.getClientX/*here need 
> ()*/-evt.getTarget().getAttribute("cx");
> 
>     offY = evt.getClientY/*here need 
> ()*/-evt.getTarget().getAttribute("cy");
> }
> I miss "()" after those method, so offX and offY will always be NaN, not 
> a number can't assign to cx or cy, so it will araise a exception, but 
> the exception didn't tell me what is wrong there, will this called a bug?

   Sure it told you that the cx attribute was invalid.  In the current
versions of Batik it will even tell you what line of script caused the
error.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to