developit / developit/undom

Support D3?

Aperta
#3 8 commenti 1 reazione 0 assegnatari Vedi su GitHub
enhancement help wanted
Lingua principale
JavaScript
Stelle
690
Fork
25
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
d3, javascript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.