Comments (1)
Hi!
- I wanted to have multiple manipulators for scale/rotate/etc since there are multiple touch points. I'm not sure if it's possible to express the constraints for that (because the solver probably needs to figure out euclidian distance which is obviously non-linear from touch points).
If you look at the source to createManipulator
then you'll see it's a fairly simple helper function. Currently Manipulator
understands the Hammer.js pan event stream, but it'd be OK to actually pull that out into the createManipulator
helper. Then we could have other variants of createManipulator
for handling some of the multitouch gestures you mention, since I don't think it can be done with linear constraints.
- Yup,
Box
is the current (incredibly minimal) binding between constrained variables and the DOM. You can bind any property in the same way, it's just glue code between Cassowary and DOM (and so it'd be completely replaced for any native port, or for targeting geometry in a webgl app, etc). - It'll be something like telling a
Manipulator
to go to a given value, and then theManipulator
will create an animation using some physics simulation. - Interesting! I haven't used angular before (I've used Vue which does a similar cross-cutting via directives). The piece I'm worried about it how it interacts with existing CSS layout, since Slalom/Cassowary operate in a global coordinate space whereas "position absolute" is a more traditional parent-relative/local setup.
Thanks for writing these questions/ideas up. I think Slalom is going to be pretty fun for a while as these issues get figured out!
from slalom.
Related Issues (13)
- Declarative constraints using ccss HOT 21
- Add pegjs parser as dependency
- Two dimensional gestures HOT 1
- Kill off inactive manipulators
- Allow custom functions for computing overdrag coefficient
- Getting started and basic examples HOT 1
- Publish to npm HOT 2
- Variable c not in scope of MotionContext HOT 3
- Alternative code-based syntax HOT 2
- Hammer.js v2.0.5 incompatibility
- Click manipulator
- simple declarative format for describing all of the constraints
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 slalom.