joewashear007 / jscapturecanvas

Automatically exported from code.google.com/p/jscapturecanvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors while trying to load SVG file - quandraticCurveTo function doesn't exist on the 2d context

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. load attached file in your tester (http://mtcc.com/site/jscanvastest.html)
2. I've used exactly that code on my local machine and in Chrome I get an 
exception, 'Uncaught TypeError: Cannot call method 'apply' of undefined' 
jscanvas.js line 277 - it tries to call 'quandraticCurveTo' function on the 
this.canvas.real2dContext and apparetly it doesn't exist!

What is the expected output? What do you see instead?
Should proceed with the file - I can draw the button correctly by using canvg 
alone.

What version of the product are you using? On what operating system?
canvg 1.3 and jscanvas 1.0.5.

Please provide any additional information below.
When instead of my file I try to load yours (phzavatar.svg) I get the following 
error:
Uncaught Error: TypeMismatchError: DOM Exception 17 svg-on-canvas.html:90
toDraw.setter svg-on-canvas.html:90
window.svgButton.render
(anonymous function) svg-on-canvas.html:103
opts.renderCallback jscanvas.js:87
draw canvg.js:2726
svg.loadXmlDoc canvg.js:2733
svg.loadXml canvg.js:2646
canvg canvg.js:62
jsCanvas.compile

Original issue reported on code.google.com by pgorn...@gmail.com on 27 Jun 2013 at 1:27

Attachments:

misspelling change quandratic to quadratic

Original comment by dspringe...@gmail.com on 8 Jul 2013 at 2:14

I'm getting the same issue.  Looking for work around.  Did you find anything?

Original comment by DanielCo...@gmail.com on 7 May 2014 at 8:52

derp.  spelling fixed and now it works like above said

Original comment by DanielCo...@gmail.com on 8 May 2014 at 2:01