Giter Site home page Giter Site logo

famous-autolayout's People

Contributors

ijzerenhein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mcanthony trusktr

famous-autolayout's Issues

Why is subview width a negative value?

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:

node.setAbsoluteSize(
(widths && (widths[key] === true)) ? undefined : subView.width,
(heights && (heights[key] === true)) ? undefined : subView.height
);

Any insights as to what can lead subView.width be a negative number?

Porting to infamous

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!

Can't load vflToLayoutv3.js using requirejs

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

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.