Comments (4)
Note that the API and notification format should be broadly compatible with the Object.observe() straw-man:
http://wiki.ecmascript.org/doku.php?id=strawman:observe
from cassowary.js.
I've been using Ember's Object Model & Observers, it's not compliant with the Object.observe() straw-man, but good-enough for my needs. Basically I just wrapped constraintVariable.change_value
and constraintVariable.set_value
... I'm addicted to Ember's computed properties.
from cassowary.js.
What is the intersection between this and the new API? Is it still worth making the internal Variable objects observable?
from cassowary.js.
I think that a parser-based API would benefit from this by allowing you to register some sort of event handler to know that values of interest were modified.
from cassowary.js.
Related Issues (20)
- Documentation request: How to check if two constraints are equivalent?
- Code and comments disagree
- Simple Demo Fails HOT 1
- Can't add edit variables with "required" strength
- Publish to bower HOT 1
- canvas renderer example fails
- RequiredFailure Error should show all the constraints unable to satisfy
- Mutable constant, Strength&weight in Constraint. HOT 1
- Move to using Map for c.HashTable
- Move `c.HashSet` to use a faster storage type
- making it easier to debug HOT 1
- Changing a variable coefficient HOT 2
- Build obtained through npm install is not up to date HOT 1
- Documentation HOT 1
- Expression with x^2 HOT 2
- What's the diffrence between c.js and c.min.js?
- How to know when a values changes or solve is done?
- Is this project dead? HOT 14
- Question - addWithArtificialVariable
- Am I missing something?
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 cassowary.js.