mockingbot / dom-snapshot

Get `<canvas>` from DOM string through SVG `<foreignObject>`.

Home Page:https://mockingbot.github.io/dom-snapshot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOM Snapshot

i:npm i:ci i:size i:npm-dev

Get <canvas> from DOM string through SVG <foreignObject>.

Online DEMO

  • ๐Ÿ“ source/
    • main source code, in output package will be:
      • dom-snapshot/library: for direct use, use require() / exports.*=, in ES6+
      • dom-snapshot/module: for re-pack, keep import / export and readability
  • ๐Ÿ“ example/
    • some example (unsorted tests)
  • ๐Ÿ“„ SPEC.md
    • list of all directly accessible codes, sort of API lockfile

About

Get `<canvas>` from DOM string through SVG `<foreignObject>`.

https://mockingbot.github.io/dom-snapshot/

License:MIT License


Languages

Language:JavaScript 67.4%Language:HTML 17.6%Language:CSS 15.1%