Comments (3)
Sure, that would be src/VisualFormat.js. VisualFormat.parse()
parses VFL or EVFL and returns a list of objects (constraint definitions).
from autolayout.js.
Hi, yes you could do this. When you create an Autolayout.js View, you can add constraints to it. Either by creating them explicitly or by creating them from a VFL string. Unfortunately there is no method to get the constraints from a view (yet), but you could easily keep track of the added constraints yourself.
These constraints have exactly the same properties as NSLayoutConstraint, so you could easily write some code to format them as Objective-C/Swift constraints.
from autolayout.js.
Cool, this is exciting. Can you point me to the code where I can do the conversion maybe? I took a look at the source code, but not sure where is the best start point...
from autolayout.js.
Related Issues (20)
- Do you know slalom?
- Performance issue using View.parse HOT 4
- Top and left coordinates issue HOT 4
- Flow layout HOT 4
- Attributes on the left side in EVFL HOT 9
- Example for nested stack view HOT 3
- [Question] Method for nesting views into others HOT 1
- Objective function is unbounded in optimize HOT 3
- Test are failing on Safari 10.1 HOT 8
- Fatality on iPhone 7 HOT 1
- Any live examples? HOT 2
- Does autolayout.js support child views? HOT 4
- Modifying constraints HOT 1
- How to do something like media queries and size breakpoints? HOT 1
- convert constraint back to VFL HOT 1
- 3D layout
- What are underscored subview names for?
- idea: items outside of the layout.
- idea: CSS units
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autolayout.js.