@@ -34,7 +34,7 @@ export var LN_TEN = Math.log(LOG_SCALE);
34
34
* @param {number } x
35
35
* @return {number }
36
36
*/
37
- export var log10 = function ( x ) {
37
+ export function log10 ( x ) {
38
38
return Math . log ( x ) / LN_TEN ;
39
39
}
40
40
@@ -45,7 +45,7 @@ export var log10 = function(x) {
45
45
* @param {number } pct
46
46
* @return {number }
47
47
*/
48
- export var logRangeFraction = function ( r0 , r1 , pct ) {
48
+ export function logRangeFraction ( r0 , r1 , pct ) {
49
49
// Computing the inverse of toPercentXCoord. The function was arrived at with
50
50
// the following steps:
51
51
//
@@ -93,7 +93,7 @@ export var VERTICAL = 2;
93
93
* @return {!CanvasRenderingContext2D }
94
94
* @private
95
95
*/
96
- export var getContext = function ( canvas ) {
96
+ export function getContext ( canvas ) {
97
97
return /** @type {!CanvasRenderingContext2D }*/ ( canvas . getContext ( "2d" ) ) ;
98
98
}
99
99
@@ -115,7 +115,7 @@ function _eventListenerOptions(type) {
115
115
* on the event. The function takes one parameter: the event object.
116
116
* @private
117
117
*/
118
- export var addEvent = function addEvent ( elem , type , fn ) {
118
+ export function addEvent ( elem , type , fn ) {
119
119
elem . addEventListener ( type , fn , _eventListenerOptions ( type ) ) ;
120
120
}
121
121
0 commit comments