@@ -3,7 +3,7 @@ jquery-circle-progress - jQuery Plugin to draw animated circular progress bars
3
3
4
4
URL: http://kottenator.github.io/jquery-circle-progress/
5
5
Author: Rostyslav Bryzgunov <kottenator@gmail.com>
6
- Version: 1.1.0
6
+ Version: 1.1.1
7
7
License: MIT
8
8
*/
9
9
( function ( $ ) {
@@ -82,51 +82,56 @@ License: MIT
82
82
*/
83
83
reverse : false ,
84
84
85
- //--------------------------------------- private properties and methods ---------------------------------------
85
+ //-------------------------------------- protected properties and methods --------------------------------------
86
+ /**
87
+ * @protected
88
+ */
89
+ constructor : CircleProgress ,
90
+
86
91
/**
87
92
* Container element. Should be passed into constructor config
88
- * @private
93
+ * @protected
89
94
* @type {jQuery }
90
95
*/
91
96
el : null ,
92
97
93
98
/**
94
99
* Canvas element. Automatically generated and prepended to the {@link CircleProgress.el container}
95
- * @private
100
+ * @protected
96
101
* @type {HTMLCanvasElement }
97
102
*/
98
103
canvas : null ,
99
104
100
105
/**
101
106
* 2D-context of the {@link CircleProgress.canvas canvas}
102
- * @private
107
+ * @protected
103
108
* @type {CanvasRenderingContext2D }
104
109
*/
105
110
ctx : null ,
106
111
107
112
/**
108
113
* Radius of the outer circle. Automatically calculated as {@link CircleProgress.size} / 2
109
- * @private
114
+ * @protected
110
115
* @type {number }
111
116
*/
112
117
radius : 0.0 ,
113
118
114
119
/**
115
120
* Fill of the main arc. Automatically calculated, depending on {@link CircleProgress.fill} option
116
- * @private
121
+ * @protected
117
122
* @type {string|CanvasGradient|CanvasPattern }
118
123
*/
119
124
arcFill : null ,
120
125
121
126
/**
122
127
* Last rendered frame value
123
- * @private
128
+ * @protected
124
129
* @type {number }
125
130
*/
126
131
lastFrameValue : 0.0 ,
127
132
128
133
/**
129
- * @private
134
+ * Init/re-init the widget
130
135
* @param {object } config Config
131
136
*/
132
137
init : function ( config ) {
@@ -138,7 +143,7 @@ License: MIT
138
143
} ,
139
144
140
145
/**
141
- * @private
146
+ * @protected
142
147
*/
143
148
initWidget : function ( ) {
144
149
var canvas = this . canvas = this . canvas || $ ( '<canvas>' ) . prependTo ( this . el ) [ 0 ] ;
@@ -150,7 +155,7 @@ License: MIT
150
155
/**
151
156
* This method sets {@link CircleProgress.arcFill}
152
157
* It could do this async (on image load)
153
- * @private
158
+ * @protected
154
159
*/
155
160
initFill : function ( ) {
156
161
var self = this ,
@@ -210,7 +215,7 @@ License: MIT
210
215
} ,
211
216
212
217
/**
213
- * @private
218
+ * @protected
214
219
* @param {number } v Frame value
215
220
*/
216
221
drawFrame : function ( v ) {
@@ -221,7 +226,7 @@ License: MIT
221
226
} ,
222
227
223
228
/**
224
- * @private
229
+ * @protected
225
230
* @param {number } v Frame value
226
231
*/
227
232
drawArc : function ( v ) {
@@ -246,7 +251,7 @@ License: MIT
246
251
} ,
247
252
248
253
/**
249
- * @private
254
+ * @protected
250
255
* @param {number } v Frame value
251
256
*/
252
257
drawEmptyArc : function ( v ) {
@@ -277,7 +282,7 @@ License: MIT
277
282
} ,
278
283
279
284
/**
280
- * @private
285
+ * @protected
281
286
* @param {number } v Value
282
287
*/
283
288
drawAnimated : function ( v ) {
@@ -356,7 +361,6 @@ License: MIT
356
361
357
362
if ( instance ) {
358
363
instance . init ( cfg ) ;
359
- instance . draw ( ) ;
360
364
} else {
361
365
cfg . el = el ;
362
366
instance = new CircleProgress ( cfg ) ;
0 commit comments