Closed mfdefs closed 1 year 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)
Good catch. Use the HTML function in the meantime
I didnt realize there is no HTML function. That was wrong in my mind. I fixed the types now. Sorry for the long wait
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)