/dom-snapshot

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

Primary LanguageJavaScriptMIT LicenseMIT

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