dom-to-svg:用于将给定HTML DOM节点转换为可访问的SVG“屏幕截图”的库-源码

上传者: 42168830 | 上传时间: 2021-09-15 23:13:20 | 文件大小: 6.32MB | 文件类型: ZIP
DOM到SVG 用于将给定HTML DOM节点转换为可访问的SVG“屏幕截图”的库。 演示版 :camera_with_flash: 试用,该使用此库可让您获取任何网页的SVG屏幕截图。 您可以在找到源代码。 用法 import { documentToSVG , elementToSVG , inlineResources , formatXML } from 'dom-to-svg' // Capture the whole document const svgDocument = documentToSVG ( document ) // Capture specific element const svgDocument = elementToSVG ( document . querySelector ( '#my-element' ) ) // Inline external resources (fonts

文件下载

资源详情

[{"title":"( 44 个子文件 6.32MB ) dom-to-svg:用于将给定HTML DOM节点转换为可访问的SVG“屏幕截图”的库-源码","children":[{"title":"dom-to-svg-main","children":[{"title":"renovate.json <span style='color:#111;'> 245B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":".eslintrc.json <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"test.yml <span style='color:#111;'> 840B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".prettierignore <span style='color:#111;'> 84B </span>","children":null,"spread":false},{"title":"prettier.config.js <span style='color:#111;'> 52B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 617.19KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"text.ts <span style='color:#111;'> 4.57KB </span>","children":null,"spread":false},{"title":"traversal.ts <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"injected-script.ts <span style='color:#111;'> 844B </span>","children":null,"spread":false},{"title":"test.ts <span style='color:#111;'> 9.05KB </span>","children":null,"spread":false},{"title":"snapshots","children":[{"title":"https%3A%2F%2Fgithub.com%2Ffelixfbecker%2Fdom-to-svg%2Fblob%2Ffee7e1e7b63c888bc1c5205126b05c63073ebdd3%2F.vscode%2Fsettings.json.a11y.json <span style='color:#111;'> 12.49KB </span>","children":null,"spread":false},{"title":"https%3A%2F%2Fnews.ycombinator.com%2F.a11y.json <span style='color:#111;'> 26.04KB </span>","children":null,"spread":false},{"title":"https%3A%2F%2Fsourcegraph.com%2Fextensions.a11y.json <span style='color:#111;'> 13.51KB </span>","children":null,"spread":false},{"title":"https%3A%2F%2Fsourcegraph.com%2Fsearch.a11y.json <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"https%3A%2F%2Fwww.google.com%2F%3Fhl%3Den.a11y.json <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false}],"spread":false},{"title":"PuppeteerAdapter.ts <span style='color:#111;'> 25.67KB </span>","children":null,"spread":false},{"title":"recordings","children":[{"title":"https-_2961427464","children":[{"title":"_2166136261","children":[{"title":"www-google-com_211838746","children":[{"title":"-hl-en_4217965546","children":[{"title":"recording.har <span style='color:#111;'> 1.45MB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"sourcegraph-com_2915255159","children":[{"title":"extensions_370250955","children":[{"title":"recording.har <span style='color:#111;'> 8.34MB </span>","children":null,"spread":false}],"spread":false},{"title":"search_2150836393","children":[{"title":"recording.har <span style='color:#111;'> 7.20MB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"github-com_1228281881","children":[{"title":"felixfbecker_581563825","children":[{"title":"dom-to-svg_1518967916","children":[{"title":"blob_1673310378","children":[{"title":"fee7e1e7b63c888bc1c5205126b05c63073ebdd3_1275420045","children":[{"title":"-vscode_2531069167","children":[{"title":"settings-json_3995660748","children":[{"title":"recording.har <span style='color:#111;'> 2.09MB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"news-ycombinator-com_2307374702","children":[{"title":"_2166136261","children":[{"title":"recording.har <span style='color:#111;'> 63.87KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"util.ts <span style='color:#111;'> 944B </span>","children":null,"spread":false}],"spread":true},{"title":"inline.ts <span style='color:#111;'> 5.15KB </span>","children":null,"spread":false},{"title":"gradients.ts <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"stacking.ts <span style='color:#111;'> 6.63KB </span>","children":null,"spread":false},{"title":"dom.ts <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"svg.ts <span style='color:#111;'> 8.52KB </span>","children":null,"spread":false},{"title":"css.ts <span style='color:#111;'> 4.70KB </span>","children":null,"spread":false},{"title":"types","children":[{"title":"gradient-parser","children":[{"title":"index.d.ts <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"element.ts <span style='color:#111;'> 20.24KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"util.ts <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"accessibility.ts <span style='color:#111;'> 4.98KB </span>","children":null,"spread":false}],"spread":false},{"title":".npmignore <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 480B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 93B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":".vscode","children":[{"title":"launch.json <span style='color:#111;'> 414B </span>","children":null,"spread":false},{"title":"settings.json <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"tasks.json <span style='color:#111;'> 281B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明