Support D3?
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 690
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
描述
Part of the reason I created #1 was I wondered about using this to render d3.
I was reading the https://github.com/Olical/react-faux-dom/ source when I saw your Tweet about this project.
I'm not sure exactly what changes are required. I believe some will be small (like ownerDocument) or namespaceURI while others (like style and querySelector) will require more time and bytes.
FWIW, here's their DOM support and their d3 tests. A key first step would be to get d3.select(document.createElement('div')).append('p').node() to return to newly created <p></p>.
It seems like we can either a) add support for this use case into this document b) create another project which imports undom. Do you have a preference? Does this use case (with limitations) seem like a fit for undom "core" or should it be an separate lib?
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先阅读 react-faux-dom 的 DOM 支持文档和 test/d3.js,然后尝试 d3.select(document.createElement('div')).append('p').node()。范围以及这应属于 undom core 还是一个独立项目,仍需作出决定;除所请求的 D3 兼容性之外,done 尚未定义。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- d3, javascript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100