Fixes for IVI-3190 - To get things to render normally
[profile/ivi/Modello_Homescreen.git] / js / predefAppModel.js
1 /**
2  * Contains area definitions for applications radial menu and apps definitions.
3  * @class predefAppModel
4  * @module HomescreenApplication
5  **/
6 /**
7  * Define center point of radial menu
8  * @property centerPoint
9  * @type Object
10  * @default {x: 360, y: 675}
11  * @static
12  **/
13 var centerPoint = {x: 360, y: 675};
14
15 /**
16  * Definitions of radial pie.
17  * Possible properties in contained Objects:
18  * name, id, action, sectorID, iconPath, shape, sc, lc, sa, la
19  * @property areasDefinitions
20  * @type Array
21  **/
22 /**
23  * Name of an application
24  * @property name
25  * @type string
26  **/
27 /**
28  * Id of an application
29  * @property id
30  * @type string
31  **/
32 /**
33  * Action after click to defined area.
34  * @property action
35  * @type function
36  **/
37 /**
38  * Sector id in context to homescreen pie sectors
39  * @property sectorID
40  * @type int
41  **/
42 /**
43  * Path to app icon
44  * @property iconPath
45  * @type string
46  **/
47 /**
48  * Define shape of clicking area
49  * @property shape
50  * @type string
51  **/
52 /**
53  * Small circle - define distance from center, where pie sector starts (influence only if shape is pieWithoutCenter)
54  * @property sc
55  * @type int
56  **/
57 /**
58  * Large circle - define distance from center, where pie sector ends
59  * @property lc
60  * @type int
61  **/
62 /**
63  * Start angle - define starting ange of pie sector. Angle is based on zero angle(zero angle has a line, which is horizontal and starts in the center point) (influence only if shape is pieWithoutCenter).
64  * @property sa
65  * @type int
66  **/
67 /**
68  * End angle - define ending angle of pie sector (influence only if shape is pieWithoutCenter).
69  * @property la
70  * @type int
71  **/
72 var areasDefinitions = [ {
73         name: 'center',
74         id: null,
75         action: function () {
76                 "use strict";
77                 $("#homeScrAppGridView").fadeIn();
78         },
79         sectorId: 0,
80         lc: 70,
81         shape: 'cenerCircle'
82 }, {
83         name: 'navigation',
84         id: 'xwalk.epacfkhfnnlaamkbaiedmohaeogbedkf',
85         iconPath: '../navigation/icon.png',
86         sectorId: 1,
87         sc: 104,
88         lc: 497,
89         sa:     61,
90         la:     117,
91         shape: 'pieWithoutCenter'
92 }, {
93         name: "airconditioning",
94         id: 'xwalk.fmpbbfhmnlghfghbblcobiiedfbjgegp',
95         iconPath: '../dashboard/icon.png',
96         sectorId: 2,
97         sc: 94,         //small circle border
98         lc: 437,        //large circle border
99         sa:     11,             //smaller angle based on horizontal line which starts in center and continue right (right border)
100         la:     55,             //larger angle (left border)
101         shape: 'pieWithoutCenter'
102 }, {
103         name: 'MultimediaPlayer',
104         id: 'xwalk.ilflnmejfmcdcdnjjgejnfbhhbfaaefb',
105         iconPath: '../musicplayer/icon.png',
106         sectorId: 3,
107         sc: 80,
108         lc: 392,
109         sa:     321,
110         la:     359.9,
111         shape: 'pieWithoutCenter'
112 }, {
113         name: 'SmartDeviceLink',
114         id: 'xwalk.kiefmdieeelkgmnjldgklhlemjdkgpbm',
115         iconPath: '../smartdevicelink/icon.png',
116         sectorId: 4,
117         sc: 80,
118         lc: 384,
119         sa:     268,
120         la:     306,
121         shape: 'pieWithoutCenter'
122 }, {
123         name: 'phone',
124         id: 'xwalk.nejoidhifdhhbogkaoimdcalkmllicab',
125         iconPath: '../phone/icon.png',
126         sectorId: 5,
127         sc: 82,
128         lc: 364,
129         sa:     217,
130         la:     264,
131         shape: 'pieWithoutCenter'
132 }, {
133         name: 'store',
134         id: 'xwalk.ofalfnmcoplngiipflmdhdegilbfepoh',
135         iconPath: '../store/icon.png',
136         sectorId: 6,
137         sc: 82,
138         lc: 364,
139         sa:     170,
140         la:     212,
141         shape: 'pieWithoutCenter'
142 }, {
143         name: 'dashboard',
144         id: 'xwalk.knojblgeighiodojgihegbmkbbadfpnk',
145         iconPath: '../dashboard/icon.png',
146         sectorId: 7,
147         sc: 105,
148         lc: 433,
149         sa:     126,
150         la:     160,
151         shape: 'pieWithoutCenter'
152 } ];