Svg.js: The 'svg.foreignObject.js' plugin is out of date

Created on 2 Apr 2019  路  3Comments  路  Source: svgdotjs/svg.js

I have created a pull request to update the plugin, but it seems the author is no longer maintaining this repo, and he doesn't reply me till now.

Could my changes be set here directly? What more should I do? Thanks very much!

Most helpful comment

Not yet, but there is no magic in using it. Just call foreignObject(width, height) and add elements to it with add or put like for any other element

canvas.foreignObject(100, 100).add(someNode).add('<input type="text">')...

All 3 comments

Foreign object is already in the core of 3.x so no need to include it :)

Is there some documentation on how to use the foreignObject now that it is part of the core svg.js

Not yet, but there is no magic in using it. Just call foreignObject(width, height) and add elements to it with add or put like for any other element

canvas.foreignObject(100, 100).add(someNode).add('<input type="text">')...
Was this page helpful?
0 / 5 - 0 ratings