Skip to content
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

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

Open
MinimogDev opened this issue Jul 7, 2020 · 3 comments

Comments

@MinimogDev
Copy link

MinimogDev commented Jul 7, 2020

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
Copy link

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
Copy link

xzilja commented Jul 11, 2020

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
Copy link

eviltik commented May 24, 2022

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

😡 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants