3 ms·
Hey HN, I'm the author of this library, happy to answer any questions! We just fixed a bug that was breaking this on mobile, everything should be working now.
by bijection 10y ago
Hey HN, I'm the author of this library, happy to answer any questions!
We just fixed a bug that was breaking this on mobile, everything should be working now.
- roblabla 10y agoOn firefox, the graph isn't "real time", it only updates when you stop dragging. Other examples seem to work real time in the gallery though, so I suppose it's just a problem with that page ? In any case, this is really cool.
- azdavis 10y agoLooks like graphics.isManipulating is a gotten variable, not a function. That breaks the kevin clock example and the commented-out part of the piston example.
- bijection 10y agoThanks! Fixed.
- crazy2be 10y agoHow does the differentiation part of this work? Is it just gradient descent, or something more clever than that? It seems like it ought to need to trace the data flows, but there doesn't seem to be the machinery to do so in the code. Thanks! This is awesome to play with :).
- bijection 10y agoIn https://github.com/bijection/g9/blob/master/src/Data2Renderables.js https://github.com/bijection/g9/blob/master/src/Data2Rendera... each shape gets a unique id. Dragging a shape calls the 'desire' function in https://github.com/bijection/g9/blob/master/src/index.js https://github.com/bijection/g9/blob/master/src/index.js , which runs gradient descent with something like the shape's distance from the mouse as the cost.
- anderspitman 10y agoThe Carbide demos show the original source data values updating in response to manipulating the output. I'm assuming that's still possible with g9 just not hooked up to the editor component?