svgdotjs / svg.js

The lightweight library for manipulating and animating SVG
https://svgjs.dev
Other
11.07k stars 1.08k forks source link

svg.js.d.ts declear error #1266

Closed mfdefs closed 1 year ago

mfdefs commented 2 years ago

https://svgjs.dev/docs/3.1/shape-elements/#svg-foreignobject var foreignObject = draw.foreignObject(width, height) // Pass true as second parameter to SVG() to create an html in the html-namespace foreignObject.add(SVG('', true))

"SVG('', true)" appear warning message: Expected 0-1 arguments, but got 2.ts(2554)

Fuzzyma commented 2 years ago

Good catch. Use the HTML function in the meantime

Fuzzyma commented 1 year ago

I didnt realize there is no HTML function. That was wrong in my mind. I fixed the types now. Sorry for the long wait