-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Play balls with tyxml #1
Comments
I contemplated implementing an For |
This was exactly the example I had in mind, yes. Just use
Simply, instead of using a query selector as a string, take a |
After having done the few function to communicate with the instance of tyxml in It's visible here : https://github.com/Drup/ocaml-d3/tree/more_tyxml Basically, it's an implementation of the tyxml combinators on top of the At the end, what you get is something of type It could be made much more powerful if I could figure out a way to have a function of type |
Actually, I think It would be enough to have a function |
I gave another approach a go here. The first version was based on the idea that you could made the value of attribute depends on data, but not the html/svg elements themselves. The second approach is based on the idea that the user write some function of type ...ish. (this version works with stable tyxml). |
The previous interface for the run operation was too restrictive, as it required D3 operations to run on trees that were attached to the document. With this interface, it is now possible to run D3 operations on trees that are not attached, for example those that have been generated using tyxml. Related to #1, #2.
Some specific functions could benefit from being tyxml-aware. Do you think it could be done ?
I don't think we can fully type all the interaction (
attr
in particular ...) but some of it could work quite painlessly, I'm thinking of thehtml
andselect
combinators and therun
function.The text was updated successfully, but these errors were encountered: