Updated demo following Slider move to the public API
[platform/core/uifw/dali-demo.git] / resources / scripts / slider.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   "stage": [{
19     "type": "Slider",
20     "parentOrigin": "TOP_CENTER",
21     "position": [0, 144, 0],
22     "size": [480, 72, 1],
23     "lowerBound": 0,
24     "upperBound": 1,
25     "showPopup": true,
26     "showValue": true,
27     "valuePrecision": 2,
28     "value": 0.0
29   }, {
30     "type": "Slider",
31     "parentOrigin": "TOP_CENTER",
32     "position": [0, 224, 0],
33     "size": [300, 72, 1],
34     "lowerBound": 1,
35     "upperBound": 10,
36     "showPopup": false,
37     "showValue": true,
38     "valuePrecision": 0,
39     "value": 5.0
40   }, {
41     "type": "Slider",
42     "parentOrigin": "TOP_CENTER",
43     "position": [0, 304, 0],
44     "size": [300, 72, 1],
45     "lowerBound": 0,
46     "upperBound": 5,
47     "showPopup": false,
48     "showValue": false,
49     "value": 0.0,
50     "markTolerance": 0.1,
51     "marks": [0, 1, 2, 3, 4, 5]
52   }, {
53     "type": "Slider",
54     "parentOrigin": "TOP_CENTER",
55     "position": [0, 384, 0],
56     "size": [480, 72, 1],
57     "lowerBound": 0,
58     "upperBound": 5,
59     "showPopup": false,
60     "showValue": false,
61     "value": 0.0,
62     "markTolerance": 0.1,
63     "snapToMarks": true,
64     "marks": [0, 1, 2, 3, 4, 5]
65   }, {
66     "type": "Slider",
67     "parentOrigin": "TOP_CENTER",
68     "position": [0, 464, 0],
69     "size": [480, 72, 1],
70     "lowerBound": 5,
71     "upperBound": 100,
72     "showPopup": true,
73     "showValue": true,
74     "valuePrecision": 0,
75     "value": 50.0,
76     "trackVisual": {
77       "size": [0, 10]
78     },
79     "handleVisual": {
80       "size": [48, 48]
81     }
82   }, {
83     "type": "Slider",
84     "parentOrigin": "TOP_CENTER",
85     "position": [0, 544, 0],
86     "size": [480, 72, 1],
87     "lowerBound": 10,
88     "upperBound": 100,
89     "showPopup": true,
90     "showValue": true,
91     "valuePrescision": 0,
92     "value": 100.0,
93     "trackVisual": {
94       "url": "{DEMO_IMAGE_DIR}button-up-14.9.png",
95       "size": [0, 30]
96     },
97     "handleVisual": {
98       "url": "{DEMO_IMAGE_DIR}blocks-ball.png",
99       "size": [48, 48]
100     },
101     "progressVisual": {
102       "url": "{DEMO_IMAGE_DIR}button-down.9.png"
103     }
104   }, {
105     "type": "Slider",
106     "parentOrigin": "TOP_CENTER",
107     "position": [0, 624, 0],
108     "size": [480, 72, 1],
109     "lowerBound": 10,
110     "upperBound": 100,
111     "showPopup": true,
112     "showValue": true,
113     "valuePrecision": 0,
114     "value": 50.0,
115     "trackVisual": {
116       "size": [0, 10]
117     },
118     "handleVisual": {
119       "size": [48, 48]
120     }
121   }, {
122     "type": "Slider",
123     "parentOrigin": "TOP_CENTER",
124     "position": [0, 704, 0],
125     "size": [480, 72, 1],
126     "lowerBound": 10,
127     "upperBound": 100,
128     "showPopup": true,
129     "showValue": true,
130     "valuePrecision": 0,
131     "value": 50.0,
132     "trackVisual": {
133       "size": [0, 10]
134     },
135     "handleVisual": {
136       "size": [48, 48]
137     },
138     "disabledColor": [1, 0, 0, 1]
139   }]
140 }