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

Implement calc() in the low-level API #773

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Conversation

nicoburns
Copy link
Collaborator

Objective

calc() is super-useful for creating advanced layouts. This PR implements calc() in the low-level API. Notably this excludes the actual evaluation of calc() expressions. Blitz and Servo can both use Stylo for this.

A built-in implementation of calc() expressions in Taffy is considered desirable, but is left as a follow-up.

Context

Notes

The performance impact discussed in #769 also applies to this PR, but there appears to be no additional performance impact compared with #769.

Feedback wanted

  • General code review

@nicoburns nicoburns changed the title Calc Implement calc() in the low-level API Jan 3, 2025
@nicoburns nicoburns added the enhancement New feature or request label Jan 6, 2025
@nicoburns nicoburns force-pushed the calc branch 3 times, most recently from ba182ce to 9e556c8 Compare January 6, 2025 10:49
@nicoburns nicoburns marked this pull request as ready for review January 6, 2025 10:50
@nicoburns nicoburns merged commit 0386dc9 into DioxusLabs:main Jan 6, 2025
22 checks passed
nicoburns added a commit to nicoburns/taffy that referenced this pull request Jan 10, 2025
Regression from DioxusLabs#773 (implement calc in low-level API)
nicoburns added a commit that referenced this pull request Jan 10, 2025
Regression from #773 (implement calc in low-level API)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant