equal
deleted
inserted
replaced
59 * Est appelé dans le fichier : |
59 * Est appelé dans le fichier : |
60 * mosaic > fonction loadParameters. |
60 * mosaic > fonction loadParameters. |
61 */ |
61 */ |
62 Mosaic.prototype.getDictionary = function() |
62 Mosaic.prototype.getDictionary = function() |
63 { |
63 { |
64 var path = this.config.curveDictionary; |
64 var path = (this.config.mouseInteractions ? this.config.curveDictionaryMI : this.config.curveDictionaryKI); |
65 var dico = []; |
65 var dico = []; |
66 |
66 |
67 var _this = this; |
67 var _this = this; |
68 |
68 |
69 $.getJSON(path, function(data) |
69 $.getJSON(path, function(data) |
93 _this.notificationStrings = data.notificationStrings; |
93 _this.notificationStrings = data.notificationStrings; |
94 _this.helpText = data.helpText; |
94 _this.helpText = data.helpText; |
95 }); |
95 }); |
96 } |
96 } |
97 |
97 |
98 /*Mosaic.prototype.listenToPointers = function() |
98 /* |
|
99 * Ecoute la position des pointeurs si les deux sont détectés afin de tracer des courbes de recherche. |
|
100 */ |
|
101 Mosaic.prototype.listenToPointers = function() |
99 { |
102 { |
100 if(this.searchCanvas) |
103 if(this.searchCanvas) |
101 { |
104 { |
102 |
105 |
103 } |
106 } |
104 }*/ |
107 } |
105 |
108 |
106 /* |
109 /* |
107 * Quitte une recherche par courbes. |
110 * Quitte une recherche par courbes. |
108 * Est appelé dans les fichiers : |
111 * Est appelé dans les fichiers : |
109 * mosaic > fonction onMouseUp. |
112 * mosaic > fonction onMouseUp. |
261 * pointers > fonction pointersTimelineSelection. |
264 * pointers > fonction pointersTimelineSelection. |
262 * search > fonction searchFilter. |
265 * search > fonction searchFilter. |
263 */ |
266 */ |
264 Mosaic.prototype.scaleIntervals = function(A, B, C, D, val) |
267 Mosaic.prototype.scaleIntervals = function(A, B, C, D, val) |
265 { |
268 { |
266 return (D - C + A) * val + (C - A); |
269 // return (D - C + A) * val + (C - A); |
|
270 if(A == B) |
|
271 { |
|
272 return (D - C) / 2; |
|
273 } |
|
274 else |
|
275 { |
|
276 return (D - C) * (val - A) / (B - A) + C; |
|
277 } |
267 } |
278 } |
268 |
279 |
269 /* |
280 /* |
270 * Retourne l'index d'un snapshot en fonction de ses metadonnées. |
281 * Retourne l'index d'un snapshot en fonction de ses metadonnées. |
271 */ |
282 */ |