GithubHelp home page GithubHelp logo

Add yoga layout support about proton-native HOT 7 CLOSED

kusti8 avatar kusti8 commented on May 21, 2024 12
Add yoga layout support

from proton-native.

Comments (7)

kusti8 avatar kusti8 commented on May 21, 2024 10

I'm almost done with a version that works on Linux, I just need a few more days to work out the bugs. Once the proton-native side is ready, then there shouldn't be any more changes needed since everything else should be implemented in libui.

For libui, the notable changes that I've made (on my fork) is add a fixed component using GtkFixed and add a way to get and set the size of any component.

I need to find a way to implement that in Windows and Mac, but I assume they have easy support for fixed positioning and setting/getting the size.

As for libui-node, I've added all of those bindings. Yoga isn't being built together with libui-node, but added with proton-native. I've had to change the compile options for libui-node because it and yoga were conflicting.

The component is implemented as View and supports all of the options that View has on React Native. I need to see if I can implement setting the background color so that it's easier to see nested views.

from proton-native.

roman01la avatar roman01la commented on May 21, 2024 1

@kusti8 Is it still in development? I also have a question about running Yoga on JS side, it's interesting to see how it can impact perf 🤔

from proton-native.

parro-it avatar parro-it commented on May 21, 2024

. I've had to change the compile options for libui-node because it and yoga were conflicting.

Can you details where they conflict? And which options you need to. Change?

from proton-native.

kusti8 avatar kusti8 commented on May 21, 2024

I couldn't find exactly what conflicted, but I found this in nbind's issues and it worked. kusti8/libui-node@57a957c

from proton-native.

kusti8 avatar kusti8 commented on May 21, 2024

I've added a PR to track my changes. All I need to do is add fixed positioning for Windows and Mac for libui and merge that.

from proton-native.

mischnic avatar mischnic commented on May 21, 2024

@roman01la This PR needs to be merged first: andlabs/libui#332.

from proton-native.

kusti8 avatar kusti8 commented on May 21, 2024

Proton Native V2 is now released! If the issue still occurs in the new update, please open a new issue.

from proton-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.