X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resources%2Fscripts%2Fanimation.json;h=b9e1007e14ac972734114e4e781c890ea1590bb3;hb=1a473d5189ca7e7d55aca3a64a8a4ff2dc3b6c67;hp=7a5f8aac7c412428c9e3b710e4aeb334b41faef2;hpb=6ebeb6405d0302f5aba076aa63d650b91c2b8fd9;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/resources/scripts/animation.json b/resources/scripts/animation.json index 7a5f8aa..b9e1007 100644 --- a/resources/scripts/animation.json +++ b/resources/scripts/animation.json @@ -17,11 +17,11 @@ { // library of styles "styles": { - "red-theme": { + "redTheme": { "color": [1, 0, 0, 1] }, - "basic-text": { - "parent-origin": "CENTER" + "basicText": { + "parentOrigin": "CENTER" } }, "paths": @@ -40,8 +40,8 @@ "actor": "greeting", // referenced actors must exist on stage "property": "position", "value": [300, 300, -1000], - "alpha-function": "EASE_IN_OUT", - "time-period": { + "alphaFunction": "EASE_IN_OUT", + "timePeriod": { "delay": 0, "duration": 3 } @@ -49,7 +49,7 @@ "actor": "greeting", // referenced actors must exist on stage "property": "scale", "value": [5, 5, 1], - "time-period": { + "timePeriod": { "delay": 2, "duration": 3 } @@ -61,21 +61,21 @@ "actor": "image", // referenced actors must exist on stage "property": "orientation", "value": [0, 0, -45], - "alpha-function": "EASE_IN_OUT", - "time-period": { + "alphaFunction": "EASE_IN_OUT", + "timePeriod": { "delay": 0, "duration": 3 } }] }, - "path-animation": { + "pathAnimation": { "duration": 3.0, "properties": [{ "actor": "greeting2", // referenced actors must exist on stage "path":"path0", "forward":[1,0,0], - "alpha-function": "EASE_IN_OUT", - "time-period": { + "alphaFunction": "EASE_IN_OUT", + "timePeriod": { "delay": 0, "duration": 3 } @@ -85,9 +85,9 @@ // a tree of actors "stage": [{ "name": "greeting", - "type": "TextView", + "type": "TextLabel", "text": "Touch me", - "styles": ["basic-text"], + "styles": ["basicText"], "position": [0, -120, 0], "size": [200, 200, 1], "orientation": [0, 0, 30], @@ -98,9 +98,9 @@ }] }, { "name":"greeting2", - "type": "TextView", - "parent-origin": "CENTER", - "anchor-point": "CENTER", + "type": "TextLabel", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", "size": [200, 200, 1], "orientation": [0, 0, 39], "position": [-150, -50, 0], @@ -108,21 +108,19 @@ "signals": [{ "name": "touched", "action": "play", - "animation": "path-animation" + "animation": "pathAnimation" }] }, { - "type": "TextView", // styles can be additive - "parent-origin": "CENTER", - "anchor-point": "CENTER", + "type": "TextLabel", // styles can be additive + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", "size": [200, 200, 1], "text": "or the image.." }, { "name": "image", - "type": "ImageActor", - "image": { - "filename": "{DALI_IMAGE_DIR}gallery-large-21.jpg" - }, - "relayout-enabled": false, + "type": "ImageView", + "image": "{DEMO_IMAGE_DIR}gallery-large-21.jpg", + "relayoutEnabled": false, "position": [0, 200, 0], "size": [200, 200, 1], "signals": [{ @@ -130,6 +128,6 @@ "action": "play", "animation": "rotate" }], - "position-inheritance": "DONT_INHERIT_POSITION" + "positionInheritance": "DONT_INHERIT_POSITION" }] }