Open MinimogDev opened 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!
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 }
@IljaDaderko same here . I've switch from yoga-layout to stretch-layout because on yoga-layout(prebuild) i got the same bug ....
:rage: :disappointed:
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?