stretch icon indicating copy to clipboard operation
stretch copied to clipboard

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

Open MinimogDev opened this issue 4 years ago • 3 comments

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 [email protected] 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?

MinimogDev avatar Jul 07 '20 08:07 MinimogDev

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!

diegomura avatar Jul 11 '20 01:07 diegomura

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 }

xzilja avatar Jul 11 '20 09:07 xzilja

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

:rage: :disappointed:

eviltik avatar May 24 '22 09:05 eviltik