DALi Version 1.4.27
[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       "image": {
56         "filename": "{DEMO_IMAGE_DIR}background-4.jpg"
57       }
58     },
59
60     // Button to blur/clear
61     {
62       "type": "PushButton",
63       "name": "toggleButton",
64       "parentOrigin": "BOTTOM_CENTER",
65       "anchorPoint": "BOTTOM_CENTER",
66       "position": [0, 0, 0],
67       "size": [200, 100, 0],
68       "labelText": "Blur",
69       "siblingOrder": 1,
70       "signals": [{
71         "name": "pressed",
72         "action": "play",
73         "animation": "blur"
74       }, {
75         "name": "released",
76         "action": "play",
77         "animation": "clear"
78       }]
79     }
80   ]
81 }