2 * Contains area definitions for applications radial menu and apps definitions.
3 * @class predefAppModel
4 * @module HomescreenApplication
7 * Define center point of radial menu
8 * @property centerPoint
10 * @default {x: 360, y: 675}
13 var centerPoint = {x: 360, y: 675};
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
23 * Name of an application
28 * Id of an application
33 * Action after click to defined area.
38 * Sector id in context to homescreen pie sectors
48 * Define shape of clicking area
53 * Small circle - define distance from center, where pie sector starts (influence only if shape is pieWithoutCenter)
58 * Large circle - define distance from center, where pie sector ends
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).
68 * End angle - define ending angle of pie sector (influence only if shape is pieWithoutCenter).
72 var areasDefinitions = [ {
77 $("#homeScrAppGridView").fadeIn();
84 id: 'xwalk.epacfkhfnnlaamkbaiedmohaeogbedkf',
85 iconPath: '../navigation/icon.png',
91 shape: 'pieWithoutCenter'
93 name: "airconditioning",
94 id: 'xwalk.fmpbbfhmnlghfghbblcobiiedfbjgegp',
95 iconPath: '../dashboard/icon.png',
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'
103 name: 'MultimediaPlayer',
104 id: 'xwalk.ilflnmejfmcdcdnjjgejnfbhhbfaaefb',
105 iconPath: '../musicplayer/icon.png',
111 shape: 'pieWithoutCenter'
113 name: 'SmartDeviceLink',
114 id: 'xwalk.kiefmdieeelkgmnjldgklhlemjdkgpbm',
115 iconPath: '../smartdevicelink/icon.png',
121 shape: 'pieWithoutCenter'
124 id: 'xwalk.nejoidhifdhhbogkaoimdcalkmllicab',
125 iconPath: '../phone/icon.png',
131 shape: 'pieWithoutCenter'
134 id: 'xwalk.ofalfnmcoplngiipflmdhdegilbfepoh',
135 iconPath: '../store/icon.png',
141 shape: 'pieWithoutCenter'
144 id: 'xwalk.knojblgeighiodojgihegbmkbbadfpnk',
145 iconPath: '../dashboard/icon.png',
151 shape: 'pieWithoutCenter'