4 ms·
> will this be eventually ported to JavaScript? It has been ported already. https://www.npmjs.com/package/css-layout https://www.npmjs.com/package/css-layout
by DiThi 10y ago
> will this be eventually ported to JavaScript?
It has been ported already.
https://www.npmjs.com/package/css-layout https://www.npmjs.com/package/css-layout
Oddly enough there's no git repository. Only the npm package has the pure JS code. And the last release was from last year. Fortunately it looks it was easy to port, if one needs a more recent version.
- e1g 10y agoIt's actually the exact opposite flow ;) css-layout is the original project, it was written in JS and then automatically translated into Java & co. It had some bugs, and Facebook rewrote the thing directly to a native implementation but decided to drop JS as they were not using that variation internally. This is a shame as I love CSS-layout for calculating tween points in layout animations on the web. FB said at this point they have no plans for an official JS port of the new version aka yoga.
- kentor 10y agoBummer. I was using css-layout to lay out svg elements[0] [0]: https://kentor.me/posts/creating-diagrams-with-react-svg-and-css-layout/ https://kentor.me/posts/creating-diagrams-with-react-svg-and...