ijzerenhein / famous-autolayout Goto Github PK
View Code? Open in Web Editor NEWApple's Auto Layout and Visual Format language for famo.us
License: MIT License
Apple's Auto Layout and Visual Format language for famo.us
License: MIT License
I've been working on #2. I haven't changed any of your logic, the only difference is that I'm applying the view dimensions to my own nodes instead of famous nodes. But otherwise, all logic is identical.
Any ideas why the width of one subview is coming negative? This throws my size calculations bonkers. I could probably guard my renderables against it by clamping to 0
, but I'm just curious why subView.width
may be a negative value.
Basically here:
famous-autolayout/src/AutoLayoutController.js
Lines 136 to 139 in e4cef73
Any insights as to what can lead subView.width
be a negative number?
Hello. I recently completed most of the "mixed mode" feature for infamous (there's some small things left to do).
Here's a demo of the HTML API:
https://codepen.io/trusktr/pen/rpegZR
There's also a JavaScript API (CSS3D-only example). I've got lots of ideas planned for the JS API like how to make it work in workers with SharedArrayBuffer, how to make it work without any DOM (f.e. in Node.js with OpenGL), and possibly writing the core classes in WebAssembly (or something that compiles to WASM) for performance.
Anyways, I'd like to get AutoLayout ported to Infamous! I think this would be cool!
Hi IjzerenHein,
I'm trying to load vflToLayoutv3.js using requirejs, but can't load it because its not in the correct module format. Missing the wrapping:
define(function(require, exports, module) {
:
}
Should I load the module in another way?
In your example code (in the documentation) for famous 0.3.5 you use LayoutController instead of AutoLayoutController. Is this correct?
AutoLayoutController.js is missing the same module wrapping...
Gr. Serge
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.