Added PathConstraint support to Javascript API 03/37303/2
authorFerran Sole <ferran.sole@samsung.com>
Tue, 24 Mar 2015 09:21:22 +0000 (09:21 +0000)
committerFerran Sole <ferran.sole@samsung.com>
Tue, 24 Mar 2015 09:47:26 +0000 (09:47 +0000)
commit8a45a421cfad72bfb791f1a98950cb1b9f52f650
tree28f6147671fd277c6979998f1d97c19e76031760
parent070dc0823710d9776fb368151f0a9e4d82bdf158
Added PathConstraint support to Javascript API

To create a new PathConstraint:
  var pathConstraint = new dali.PathConstraint( myPath, [1.0,0.0] );

To apply the path constraint to an actor:
  actor.applyPathConstraint( pathConstraint, "position", actor, "color-alpha" );
  actor.applyPathConstraint( pathConstraint, "orientation", actor, "color-alpha", [1.0,0.0,0.0] );
The code above will constraint position and orientation of the actor to the path. The parameter to sample
the path will be the color-alpha of the actor.

Change-Id: I9d3f5c48f0e984d0626a0cf41b0ab2dcdd6d9516
plugins/dali-script-v8/file.list
plugins/dali-script-v8/src/actors/actor-api.cpp
plugins/dali-script-v8/src/actors/actor-api.h
plugins/dali-script-v8/src/actors/actor-wrapper.cpp
plugins/dali-script-v8/src/animation/path-constraint-wrapper.cpp [new file with mode: 0644]
plugins/dali-script-v8/src/animation/path-constraint-wrapper.h [new file with mode: 0644]
plugins/dali-script-v8/src/dali-wrapper.cpp
plugins/dali-script-v8/src/shared/base-wrapped-object.h
plugins/dali-script-v8/src/utils/v8-utils.h