Closed mtrnik closed 2 years ago
You either use the wrong version or the wrong code. Please look into the readme and the docs to see what version supports which functions. `findOne
is a function of svg.js v3 but you imported v2
Thank you, that helped.
In svg.js there are these functions which allow developer to reference elements from existing svg. Is it possible to use these functions in svgdom? And how?
https://svgjs.dev/docs/3.0/referencing-creating-elements/#element-findone
I've tried multiple ways but with no success.
Example:
result: TypeError: canvas.findOne is not a function at .../functions/src/generateSvg.js