All Projects → PongoEngine → jasper

PongoEngine / jasper

Licence: MIT license
Haxe port of Kiwi's implementation of the cassowary algorithm.

Programming Languages

haxe
709 projects

Projects that are alternatives of or similar to jasper

dynamic-motion
Provide additional functionality to Android MotionLayout.
Stars: ✭ 34 (+54.55%)
Mutual labels:  constraint
Tinyconstraints
Nothing but sugar.
Stars: ✭ 3,721 (+16813.64%)
Mutual labels:  constraint
EZAnchor
An easier and faster way to code Autolayout
Stars: ✭ 25 (+13.64%)
Mutual labels:  constraint
kiwi
Kiwi turns your Pimoroni Keybow into a fully customizable poor-man's Elgato Stream Deck!
Stars: ✭ 40 (+81.82%)
Mutual labels:  kiwi
razcal
Build cross platform desktop app with Lua, MoonScript, and Layout Language
Stars: ✭ 15 (-31.82%)
Mutual labels:  cassowary
cassowary.lua
A Lua port of the cassowary constraint solver engine
Stars: ✭ 34 (+54.55%)
Mutual labels:  cassowary
Cassowary
High performance swift implement of constraint solving algorithm cassowary
Stars: ✭ 45 (+104.55%)
Mutual labels:  cassowary
casso
A Go implementation of the Cassowary constraint solving algorithm.
Stars: ✭ 75 (+240.91%)
Mutual labels:  cassowary

Jasper

Build Status Join the chat at https://gitter.im/pongo-jasper/community

Jasper is a port of Kiwi for developing GUIs in haxe.

Example Usage

var x = new Variable("x");
var y = new Variable("y");
var solver = new Solver();

solver.addConstraint(x <= y);
solver.addConstraint(y == x + 3.0);
solver.addConstraint((x == 10.0) | Strength.WEAK);
solver.addConstraint((y == 10.0) | Strength.WEAK);

solver.updateVariables();

trace("x = " + x.m_value); // x = 10
trace("y = " + y.m_value); // y = 13

Motivation

The motivation to develop Jasper was to port a cassowary implementation to haxe. There were already two projects but one was not completely typed and the other did not use operator overloading for easy constraint creation. Jasper's goal is to be completely typed and also use the same operators for constraint development as the c++ implementation.

Acknowledgments

https://github.com/nucleic/kiwi

https://github.com/alexbirkett/kiwi-java

https://github.com/Tw1ddle/haxe-kiwi

https://github.com/underscorediscovery/cassowary-hx

License

Jasper is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].