Code Monkey home page Code Monkey logo

famous-cassowary's Introduction

famous-cassowary [OBSOLETE]

This project is obsolete and no longer maintained! Hopefully in the future a full, working integration between Famo.us and Cassowary can be developed. This project never got very far along, but there might be a useful idea or two for those who are interested. For posterity, the original README follows.

If you're looking to venture into these waters yourself, you may want to have a look at my cassowary-system project, a wrapper over the Cassowary.js API. Although it is in de facto stasis for the moment, it may be useful. (That library is a dependency of this one.)

Have fun!


Auto-layouts with Famo.us, via the Cassowary constraint solver.

A.k.a., an attempt to integrate cassowary.js and Famo.us.

Warning: This repo is currently in the proof-of-concept phase. YMMV.

Usage

Documentation to come later. For now, please see the demos folder for the most up-to-date examples of what is possible.

Demos

  • CassowarySurface: A stunning demonstration in which you move a colored square around the screen! (Code)

Development

You'll need Node to install Bower. After you clone the repo:

npm install -g bower

And then from the project directory, run:

bower install

This will install the client libraries, namely cassowary.js, famous, famous-polyfills, and requirejs for module loading.

Loading dependencies

For this to work in the browser, you need to ensure all dependencies are loaded first. Your HTML file will need to have the correct <meta> properties set for Famo.us. You'll need to load the Famo.us core stylesheet and polyfills into that HTML file as well. And you'll need to declare a RequireJS config object before loading RequireJS so that it knows where to locate each of the libraries.

A complete example of this can be found in demos/cassowary-surface.

You may also notice that Gulp is included in the Node modules. This is included for some future possibilities, but not currently used.

Tests

None currently. Again, this is a proof of concept more than anything. Tests to come when things begin to stabilize.

Contributing

Please fork and submit pull requests. I'm also happy to grant commit rights to anyone who has made a couple of substantial contributions.

Author

Matthew Trost

License

The MIT License (MIT)

Copyright (c) 2014 Matthew Trost

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

famous-cassowary's People

Contributors

matthewtoast avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.