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

Update yoga to support flex gap #3

Merged
merged 5 commits into from
Nov 6, 2022
Merged

Update yoga to support flex gap #3

merged 5 commits into from
Nov 6, 2022

Conversation

jeetiss
Copy link
Collaborator

@jeetiss jeetiss commented Oct 26, 2022

I manage to build a fresh version of yoga

- for some reason @flow doesn't work in `yoga/javascript/sources/YGEnums`, so force flag fix that problem
and satori throws next error:
```
TypeError: c[(p + 1)].Eb is not a function
 ❯ yoga-wasm-web/dist/yoga.mjs:67:295
 ❯ _ yoga-wasm-web/dist/yoga.mjs:66:504
 ❯ W.<anonymous> yoga-wasm-web/dist/yoga.mjs:40:52
 ❯ W.<anonymous> yoga-wasm-web/dist/entry.js:1:4518
 ❯ O.E.<computed> [as calculateLayout] yoga-wasm-web/dist/entry.js:1:3108
 ❯ Module.satori src/satori.ts:160:7
```
@jeetiss
Copy link
Collaborator Author

jeetiss commented Oct 29, 2022

Please check #4 first it contains a lot of improvements for emcc

@shuding
Copy link
Owner

shuding commented Nov 1, 2022

Amazing observation about the absolute positioning bug, thank you!

@@ -9,7 +9,6 @@ wasm:
-g0 \
-O2 \
-flto \
--closure 1 \
Copy link
Owner

@shuding shuding Nov 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing this flag? I think it makes the binding smaller I just saw the USE_CLOSURE_COMPILER flag.

@shuding shuding merged commit 3ee6452 into shuding:main Nov 6, 2022
shuding added a commit to vercel/satori that referenced this pull request Jan 9, 2023
hello,

I'm experimenting with
[`yoga-wasm-web`](https://github.com/shuding/yoga-wasm-web) to support
gaps in flexbox and it works 🙌🏻

it looks like WIP because I can't fix types and add mess `@ts-ignore`
everywhere

EDIT: 

I compiled the new version of
shuding/yoga-wasm-web#3
and I was so excited about it that I failed to explain what I actually
did)

Co-authored-by: Shu Ding <g@shud.in>
Onengakushimoto added a commit to Onengakushimoto/minial-vue that referenced this pull request Jan 26, 2024
hello,

I'm experimenting with
[`yoga-wasm-web`](https://github.com/shuding/yoga-wasm-web) to support
gaps in flexbox and it works 🙌🏻

it looks like WIP because I can't fix types and add mess `@ts-ignore`
everywhere

EDIT: 

I compiled the new version of
shuding/yoga-wasm-web#3
and I was so excited about it that I failed to explain what I actually
did)

Co-authored-by: Shu Ding <g@shud.in>
HiraRyoko added a commit to HiraRyoko/minial-vue that referenced this pull request Mar 21, 2024
hello,

I'm experimenting with
[`yoga-wasm-web`](https://github.com/shuding/yoga-wasm-web) to support
gaps in flexbox and it works 🙌🏻

it looks like WIP because I can't fix types and add mess `@ts-ignore`
everywhere

EDIT: 

I compiled the new version of
shuding/yoga-wasm-web#3
and I was so excited about it that I failed to explain what I actually
did)

Co-authored-by: Shu Ding <g@shud.in>
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

Successfully merging this pull request may close these issues.

None yet

2 participants