vislyhq / stretch

High performance flexbox implementation written in rust
https://vislyhq.github.io/stretch/
MIT License
1.99k stars 107 forks source link

[Question] Why wasn't javascript package updated for such a long time? #72

Open MinimogDev opened 4 years ago

MinimogDev commented 4 years ago

Hey guys!

Stumbled upon this library while looking for wasm port's of yoga. I think this implementation has nicer api and it's good to know it is backed by real product needs. I saw few issues here related to javascript that seem to have merged solutions, however latest release stretch-layout@0.3.2 that was tagged on July 5, 2019 does not include them.

I see there is activity in the repo, so wanted to ask if / why there was no update to js package? Is it still considered a well supported target and would you say it's a good idea to start using it for a personal project (layout engine for canvas)?

EDIT: Just noticed that all packages are at the same version, so I assume there wasn't an update to all of them in a while?

diegomura commented 4 years ago

I wonder the same thing. I've been wanting to replace yoga on react-pdf for awhile and stretch seems promising! However I also see it's not being maintained in a while and was not able yet to run the current js package on my end. Thanks for the work!

xzilja commented 4 years ago

I was able to get it going in js env, but I'm either doing something wrong, or it might not be working i.e.

const allocator = new Allocator();
const root = new Node(allocator, { width: "100%", height: "100%", marginTop: 20 })

console.log(root.computeLayout({ width: 780, height: 1200 }))

I expected output to be { width: 780, height: 1200, y: 20, x:o } but instead saw { width: 100, height: 100, y:0, x:0 }

eviltik commented 2 years ago

@IljaDaderko same here . I've switch from yoga-layout to stretch-layout because on yoga-layout(prebuild) i got the same bug ....

:rage: :disappointed: