Merge "(ArcVisual) Add code to update properties" into devel/master
[platform/core/uifw/dali-demo.git] / resources / scripts / super-blur-view.json
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 {
18   "constants": {
19     "TEXT_VIEW_SIZE": [200, 150, 1]
20   },
21   "animations": {
22     "blur": {
23       "duration": 1,
24       "properties": [{
25         "actor": "superBlur",
26         "property": "blurStrength",
27         "value": 1,
28         "timePeriod": {
29           "delay": 0,
30           "duration": 1
31         }
32       }]
33     },
34     "clear": {
35       "duration": 1,
36       "properties": [{
37         "actor": "superBlur",
38         "property": "blurStrength",
39         "value": 0,
40         "timePeriod": {
41           "delay": 0,
42           "duration": 1
43         }
44       }]
45     }
46   },
47   "stage": [
48     // SuperBlurView
49     {
50       "type": "SuperBlurView",
51       "name": "superBlur",
52       "parentOrigin": "TOP_CENTER",
53       "anchorPoint": "TOP_CENTER",
54       "size": [800, 1280, 0],
55       "imageUrl": "{DEMO_IMAGE_DIR}background-4.jpg"
56     },
57
58     // Button to blur/clear
59     {
60       "type": "PushButton",
61       "name": "toggleButton",
62       "parentOrigin": "BOTTOM_CENTER",
63       "anchorPoint": "BOTTOM_CENTER",
64       "position": [0, 0, 0],
65       "size": [200, 100, 0],
66       "label": "Blur",
67       "siblingOrder": 1,
68       "signals": [{
69         "name": "pressed",
70         "action": "play",
71         "animation": "blur"
72       }, {
73         "name": "released",
74         "action": "play",
75         "animation": "clear"
76       }]
77     }
78   ]
79 }