developit / developit/undom

Support D3?

Đang mở
#3 8 bình luận 1 reaction 0 người được giao Xem trên GitHub
enhancement help wanted
Ngôn ngữ chính
JavaScript
Star
690
Fork
25
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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](https://github.com/Olical/react-faux-dom/blob/master/DOCUMENTATION.md#dom-support) and [their d3 tests](https://github.com/Olical/react-faux-dom/blob/master/test/d3.js). A key first step would be to get `d3.select(document.createElement('div')).append('p').node()` to return to newly created `

`.

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](https://github.com/Olical/react-faux-dom/pull/30)) seem like a fit for undom "core" or should it be an separate lib?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by reading react-faux-dom's DOM support documentation and test/d3.js, then try d3.select(document.createElement('div')).append('p').node(). The scope and whether this belongs in undom core or a separate project still need a decision; done is not defined beyond the requested D3 compatibility.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
d3, javascript
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.