rgraph-rails 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Gemfile +4 -0
  7. data/README.md +73 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +7 -0
  11. data/lib/rgraph-rails/version.rb +3 -0
  12. data/lib/rgraph-rails.rb +8 -0
  13. data/license.txt +19 -0
  14. data/rgraph-rails.gemspec +26 -0
  15. data/vendor/assets/images/bg.png +0 -0
  16. data/vendor/assets/images/bullet.png +0 -0
  17. data/vendor/assets/images/facebook-large.png +0 -0
  18. data/vendor/assets/images/google-plus-large.png +0 -0
  19. data/vendor/assets/images/logo.png +0 -0
  20. data/vendor/assets/images/meter-image-sd-needle.png +0 -0
  21. data/vendor/assets/images/meter-image-sd.png +0 -0
  22. data/vendor/assets/images/meter-sketch-needle.png +0 -0
  23. data/vendor/assets/images/meter-sketch.png +0 -0
  24. data/vendor/assets/images/odometer-background.png +0 -0
  25. data/vendor/assets/images/rgraph.jpg +0 -0
  26. data/vendor/assets/images/title.png +0 -0
  27. data/vendor/assets/images/twitter-large.png +0 -0
  28. data/vendor/assets/javascripts/RGraph.bar.js +3246 -0
  29. data/vendor/assets/javascripts/RGraph.bipolar.js +2003 -0
  30. data/vendor/assets/javascripts/RGraph.common.annotate.js +399 -0
  31. data/vendor/assets/javascripts/RGraph.common.context.js +600 -0
  32. data/vendor/assets/javascripts/RGraph.common.core.js +4751 -0
  33. data/vendor/assets/javascripts/RGraph.common.csv.js +275 -0
  34. data/vendor/assets/javascripts/RGraph.common.deprecated.js +454 -0
  35. data/vendor/assets/javascripts/RGraph.common.dynamic.js +1194 -0
  36. data/vendor/assets/javascripts/RGraph.common.effects.js +1524 -0
  37. data/vendor/assets/javascripts/RGraph.common.key.js +735 -0
  38. data/vendor/assets/javascripts/RGraph.common.resizing.js +550 -0
  39. data/vendor/assets/javascripts/RGraph.common.tooltips.js +605 -0
  40. data/vendor/assets/javascripts/RGraph.common.zoom.js +223 -0
  41. data/vendor/assets/javascripts/RGraph.drawing.background.js +636 -0
  42. data/vendor/assets/javascripts/RGraph.drawing.circle.js +579 -0
  43. data/vendor/assets/javascripts/RGraph.drawing.image.js +810 -0
  44. data/vendor/assets/javascripts/RGraph.drawing.marker1.js +710 -0
  45. data/vendor/assets/javascripts/RGraph.drawing.marker2.js +672 -0
  46. data/vendor/assets/javascripts/RGraph.drawing.marker3.js +568 -0
  47. data/vendor/assets/javascripts/RGraph.drawing.poly.js +623 -0
  48. data/vendor/assets/javascripts/RGraph.drawing.rect.js +603 -0
  49. data/vendor/assets/javascripts/RGraph.drawing.text.js +648 -0
  50. data/vendor/assets/javascripts/RGraph.drawing.xaxis.js +815 -0
  51. data/vendor/assets/javascripts/RGraph.drawing.yaxis.js +860 -0
  52. data/vendor/assets/javascripts/RGraph.fuel.js +965 -0
  53. data/vendor/assets/javascripts/RGraph.funnel.js +988 -0
  54. data/vendor/assets/javascripts/RGraph.gantt.js +1242 -0
  55. data/vendor/assets/javascripts/RGraph.gauge.js +1391 -0
  56. data/vendor/assets/javascripts/RGraph.hbar.js +1794 -0
  57. data/vendor/assets/javascripts/RGraph.hprogress.js +1307 -0
  58. data/vendor/assets/javascripts/RGraph.line.js +3940 -0
  59. data/vendor/assets/javascripts/RGraph.meter.js +1242 -0
  60. data/vendor/assets/javascripts/RGraph.modaldialog.js +292 -0
  61. data/vendor/assets/javascripts/RGraph.odo.js +1265 -0
  62. data/vendor/assets/javascripts/RGraph.pie.js +1979 -0
  63. data/vendor/assets/javascripts/RGraph.radar.js +1840 -0
  64. data/vendor/assets/javascripts/RGraph.rose.js +1860 -0
  65. data/vendor/assets/javascripts/RGraph.rscatter.js +1332 -0
  66. data/vendor/assets/javascripts/RGraph.scatter.js +3029 -0
  67. data/vendor/assets/javascripts/RGraph.thermometer.js +1131 -0
  68. data/vendor/assets/javascripts/RGraph.vprogress.js +1326 -0
  69. data/vendor/assets/javascripts/RGraph.waterfall.js +1252 -0
  70. data/vendor/assets/javascripts/financial-data.js +1067 -0
  71. data/vendor/assets/stylesheets/ModalDialog.css +90 -0
  72. data/vendor/assets/stylesheets/animations.css +3347 -0
  73. data/vendor/assets/stylesheets/website.css +402 -0
  74. metadata +175 -0
@@ -0,0 +1,603 @@
1
+ // version: 2015-11-02
2
+ /**
3
+ * o--------------------------------------------------------------------------------o
4
+ * | This file is part of the RGraph package - you can learn more at: |
5
+ * | |
6
+ * | http://www.rgraph.net |
7
+ * | |
8
+ * | RGraph is dual licensed under the Open Source GPL (General Public License) |
9
+ * | v2.0 license and a commercial license which means that you're not bound by |
10
+ * | the terms of the GPL. The commercial license is just �99 (GBP) and you can |
11
+ * | read about it here: |
12
+ * | http://www.rgraph.net/license |
13
+ * o--------------------------------------------------------------------------------o
14
+ */
15
+
16
+ /**
17
+ * Having this here means that the RGraph libraries can be included in any order, instead of you having
18
+ * to include the common core library first.
19
+ */
20
+
21
+ // Define the RGraph global variable
22
+ RGraph = window.RGraph || {isRGraph: true};
23
+ RGraph.Drawing = RGraph.Drawing || {};
24
+
25
+ /**
26
+ * The constructor. This function sets up the object. It takes the ID (the HTML attribute) of the canvas as the
27
+ * first argument and the data as the second. If you need to change this, you can.
28
+ *
29
+ * @param string id The canvas tag ID
30
+ * @param number x The X position of the rectangle
31
+ * @param number y The Y position of the rectangle
32
+ * @param number w The width of the rectangle
33
+ * @param number h The height of the rectangle
34
+ */
35
+ RGraph.Drawing.Rect = function (conf)
36
+ {
37
+ /**
38
+ * Allow for object config style
39
+ */
40
+ if ( typeof conf === 'object'
41
+ && typeof conf.x === 'number'
42
+ && typeof conf.y === 'number'
43
+ && typeof conf.width === 'number'
44
+ && typeof conf.height === 'number'
45
+ && typeof conf.id === 'string') {
46
+
47
+ var id = conf.id
48
+ var x = conf.x;
49
+ var y = conf.y;
50
+ var width = conf.width;
51
+ var height = conf.height;
52
+
53
+ var parseConfObjectForOptions = true; // Set this so the config is parsed (at the end of the constructor)
54
+
55
+ } else {
56
+
57
+ var id = conf;
58
+ var x = arguments[1];
59
+ var y = arguments[2];
60
+ var width = arguments[3];
61
+ var height = arguments[4];
62
+ }
63
+
64
+
65
+
66
+
67
+ // id, x, y, w, h
68
+ this.id = id;
69
+ this.canvas = document.getElementById(this.id);
70
+ this.context = this.canvas.getContext('2d');
71
+ this.colorsParsed = false;
72
+ this.canvas.__object__ = this;
73
+ this.original_colors = [];
74
+ this.coordsText = [];
75
+ this.firstDraw = true; // After the first draw this will be false
76
+
77
+ /**
78
+ * This defines the type of this shape
79
+ */
80
+ this.type = 'drawing.rect';
81
+
82
+
83
+ /**
84
+ * This facilitates easy object identification, and should always be true
85
+ */
86
+ this.isRGraph = true;
87
+
88
+
89
+ /**
90
+ * This adds a uid to the object that you can use for identification purposes
91
+ */
92
+ this.uid = RGraph.CreateUID();
93
+
94
+
95
+ /**
96
+ * This adds a UID to the canvas for identification purposes
97
+ */
98
+ this.canvas.uid = this.canvas.uid ? this.canvas.uid : RGraph.CreateUID();
99
+
100
+
101
+
102
+
103
+ /**
104
+ * Some example background properties
105
+ */
106
+ this.properties =
107
+ {
108
+ 'chart.strokestyle': 'rgba(0,0,0,0)',
109
+ 'chart.fillstyle': 'red',
110
+ 'chart.events.click': null,
111
+ 'chart.events.mousemove': null,
112
+ 'chart.shadow': false,
113
+ 'chart.shadow.color': 'gray',
114
+ 'chart.shadow.offsetx': 3,
115
+ 'chart.shadow.offsety': 3,
116
+ 'chart.shadow.blur': 5,
117
+ 'chart.highlight.stroke': 'black',
118
+ 'chart.highlight.fill': 'rgba(255,255,255,0.7)',
119
+ 'chart.tooltips': null,
120
+ 'chart.tooltips.effect': 'fade',
121
+ 'chart.tooltips.css.class':'RGraph_tooltip',
122
+ 'chart.tooltips.event': 'onclick',
123
+ 'chart.tooltips.highlight':true,
124
+ 'chart.tooltips.coords.page': false,
125
+ 'chart.tooltips.valign': 'top'
126
+ }
127
+
128
+ /**
129
+ * A simple check that the browser has canvas support
130
+ */
131
+ if (!this.canvas) {
132
+ alert('[DRAWING.RECT] No canvas support');
133
+ return;
134
+ }
135
+
136
+ /**
137
+ * This can be used to store the coordinates of shapes on the graph
138
+ */
139
+ this.coords = [[Math.round(x), Math.round(y), width, height]];
140
+
141
+ /**
142
+ * Create the dollar object so that functions can be added to them
143
+ */
144
+ this.$0 = {};
145
+
146
+
147
+ /**
148
+ * Translate half a pixel for antialiasing purposes - but only if it hasn't beeen
149
+ * done already
150
+ */
151
+ if (!this.canvas.__rgraph_aa_translated__) {
152
+ this.context.translate(0.5,0.5);
153
+
154
+ this.canvas.__rgraph_aa_translated__ = true;
155
+ }
156
+
157
+
158
+
159
+ // Short variable names
160
+ var RG = RGraph,
161
+ ca = this.canvas,
162
+ co = ca.getContext('2d'),
163
+ prop = this.properties,
164
+ pa = RG.Path,
165
+ pa2 = RG.path2,
166
+ win = window,
167
+ doc = document,
168
+ ma = Math
169
+
170
+
171
+
172
+ /**
173
+ * "Decorate" the object with the generic effects if the effects library has been included
174
+ */
175
+ if (RG.Effects && typeof RG.Effects.decorate === 'function') {
176
+ RG.Effects.decorate(this);
177
+ }
178
+
179
+
180
+
181
+
182
+ /**
183
+ * A setter method for setting graph properties. It can be used like this: obj.Set('chart.strokestyle', '#666');
184
+ *
185
+ * @param name string The name of the property to set
186
+ * @param value mixed The value of the property
187
+ */
188
+ this.set =
189
+ this.Set = function (name)
190
+ {
191
+ var value = typeof arguments[1] === 'undefined' ? null : arguments[1];
192
+
193
+ /**
194
+ * the number of arguments is only one and it's an
195
+ * object - parse it for configuration data and return.
196
+ */
197
+ if (arguments.length === 1 && typeof name === 'object') {
198
+ RG.parseObjectStyleConfig(this, name);
199
+ return this;
200
+ }
201
+
202
+
203
+
204
+
205
+
206
+ /**
207
+ * This should be done first - prepend the propertyy name with "chart." if necessary
208
+ */
209
+ if (name.substr(0,6) != 'chart.') {
210
+ name = 'chart.' + name;
211
+ }
212
+
213
+
214
+
215
+
216
+ // Convert uppercase letters to dot+lower case letter
217
+ name = name.replace(/([A-Z])/g, function (str)
218
+ {
219
+ return '.' + String(RegExp.$1).toLowerCase();
220
+ });
221
+
222
+
223
+
224
+
225
+
226
+
227
+ prop[name] = value;
228
+
229
+ return this;
230
+ };
231
+
232
+
233
+
234
+
235
+ /**
236
+ * A getter method for retrieving graph properties. It can be used like this: obj.Get('chart.strokestyle');
237
+ *
238
+ * @param name string The name of the property to get
239
+ */
240
+ this.get =
241
+ this.Get = function (name)
242
+ {
243
+ /**
244
+ * This should be done first - prepend the property name with "chart." if necessary
245
+ */
246
+ if (name.substr(0,6) != 'chart.') {
247
+ name = 'chart.' + name;
248
+ }
249
+
250
+ // Convert uppercase letters to dot+lower case letter
251
+ name = name.replace(/([A-Z])/g, function (str)
252
+ {
253
+ return '.' + String(RegExp.$1).toLowerCase()
254
+ });
255
+
256
+ return prop[name.toLowerCase()];
257
+ };
258
+
259
+
260
+
261
+
262
+ /**
263
+ * Draws the rectangle
264
+ */
265
+ this.draw =
266
+ this.Draw = function ()
267
+ {
268
+ /**
269
+ * Fire the onbeforedraw event
270
+ */
271
+ RG.FireCustomEvent(this, 'onbeforedraw');
272
+
273
+
274
+
275
+
276
+ /**
277
+ * Stop this growing uncntrollably
278
+ */
279
+ this.coordsText = [];
280
+
281
+
282
+
283
+
284
+ /**
285
+ * Parse the colors. This allows for simple gradient syntax
286
+ */
287
+ if (!this.colorsParsed) {
288
+
289
+ this.parseColors();
290
+
291
+ // Don't want to do this again
292
+ this.colorsParsed = true;
293
+ }
294
+
295
+
296
+ /**
297
+ * Draw the rect here
298
+ */
299
+ pa(this, ['b']);
300
+
301
+ if (prop['chart.shadow']) {
302
+ pa(this, ['sc',prop['chart.shadow.color'],'sx',prop['chart.shadow.offsetx'],'sy',prop['chart.shadow.offsety'],'sb',prop['chart.shadow.blur']]);
303
+ }
304
+
305
+ pa(this, ['r',this.coords[0][0], this.coords[0][1], this.coords[0][2], this.coords[0][3],'f',prop['chart.fillstyle']]);
306
+
307
+
308
+ // No shaadow to stroke the rectangle
309
+ RG.NoShadow(this);
310
+
311
+ pa(this, ['s',prop['chart.strokestyle']]);
312
+
313
+
314
+ /**
315
+ * This installs the event listeners
316
+ */
317
+ RG.InstallEventListeners(this);
318
+
319
+
320
+ /**
321
+ * Fire the onfirstdraw event
322
+ */
323
+ if (this.firstDraw) {
324
+ RG.fireCustomEvent(this, 'onfirstdraw');
325
+ this.firstDraw = false;
326
+ this.firstDrawFunc();
327
+ }
328
+
329
+
330
+
331
+
332
+ /**
333
+ * Fire the ondraw event
334
+ */
335
+ RG.FireCustomEvent(this, 'ondraw');
336
+
337
+ return this;
338
+ };
339
+
340
+
341
+
342
+ /**
343
+ * Used in chaining. Runs a function there and then - not waiting for
344
+ * the events to fire (eg the onbeforedraw event)
345
+ *
346
+ * @param function func The function to execute
347
+ */
348
+ this.exec = function (func)
349
+ {
350
+ func(this);
351
+
352
+ return this;
353
+ };
354
+
355
+
356
+
357
+
358
+ /**
359
+ * The getObjectByXY() worker method
360
+ */
361
+ this.getObjectByXY = function (e)
362
+ {
363
+ if (this.getShape(e)) {
364
+ return this;
365
+ }
366
+ };
367
+
368
+
369
+
370
+
371
+ /**
372
+ * Not used by the class during creating the graph, but is used by event handlers
373
+ * to get the coordinates (if any) of the selected bar
374
+ *
375
+ * @param object e The event object
376
+ * @param object OPTIONAL You can pass in the bar object instead of the
377
+ * function using "this"
378
+ */
379
+ this.getShape = function (e)
380
+ {
381
+ var mouseXY = RGraph.getMouseXY(e);
382
+ var mouseX = mouseXY[0];
383
+ var mouseY = mouseXY[1];
384
+
385
+ for (var i=0,len=this.coords.length; i<len; i++) {
386
+
387
+ var coords = this.coords[i];
388
+
389
+ var left = coords[0];
390
+ var top = coords[1];
391
+ var width = coords[2];
392
+ var height = coords[3];
393
+
394
+ if (mouseX >= left && mouseX <= (left + width) && mouseY >= top && mouseY <= (top + height)) {
395
+
396
+ return {
397
+ 0: this, 1: left, 2: top, 3: width, 4: height, 5: 0,
398
+ 'object': this, 'x': left, 'y': top, 'width': width, 'height': height, 'index': 0, 'tooltip': prop['chart.tooltips'] ? prop['chart.tooltips'][0] : null
399
+ };
400
+ }
401
+ }
402
+
403
+ return null;
404
+ };
405
+
406
+
407
+
408
+
409
+ /**
410
+ * This function positions a tooltip when it is displayed
411
+ *
412
+ * @param obj object The chart object
413
+ * @param int x The X coordinate specified for the tooltip
414
+ * @param int y The Y coordinate specified for the tooltip
415
+ * @param objec tooltip The tooltips DIV element
416
+ */
417
+ this.positionTooltip = function (obj, x, y, tooltip, idx)
418
+ {
419
+ var coordX = obj.coords[0][0];
420
+ var coordY = obj.coords[0][1];
421
+ var coordW = obj.coords[0][2];
422
+ var coordH = obj.coords[0][3];
423
+ var canvasXY = RG.getCanvasXY(obj.canvas);
424
+ var width = tooltip.offsetWidth;
425
+ var height = tooltip.offsetHeight;
426
+
427
+ // Set the top position
428
+ tooltip.style.left = 0;
429
+
430
+ if (prop['chart.tooltips.valign'] == 'center') {
431
+ tooltip.style.top = canvasXY[1] + coordY + (coordH / 2) -height + 'px';
432
+ } else {
433
+ tooltip.style.top = canvasXY[1] + coordY - height - 7 + 'px';
434
+ }
435
+
436
+ // By default any overflow is hidden
437
+ tooltip.style.overflow = '';
438
+
439
+ // The arrow
440
+ var img = new Image();
441
+ img.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAFCAYAAACjKgd3AAAARUlEQVQYV2NkQAN79+797+RkhC4M5+/bd47B2dmZEVkBCgcmgcsgbAaA9GA1BCSBbhAuA/AagmwQPgMIGgIzCD0M0AMMAEFVIAa6UQgcAAAAAElFTkSuQmCC';
442
+ img.style.position = 'absolute';
443
+ img.id = '__rgraph_tooltip_pointer__';
444
+ img.style.top = (tooltip.offsetHeight - 2) + 'px';
445
+ tooltip.appendChild(img);
446
+
447
+ // Reposition the tooltip if at the edges:
448
+
449
+ // LEFT edge
450
+ if ((canvasXY[0] + coordX + (coordW / 2) - (width / 2)) < 10) {
451
+ tooltip.style.left = (canvasXY[0] + coordX - (width * 0.1)) + (coordW / 2) + 'px';
452
+ img.style.left = ((width * 0.1) - 8.5) + 'px';
453
+
454
+ // RIGHT edge
455
+ } else if ((canvasXY[0] + coordX + (width / 2)) > doc.body.offsetWidth) {
456
+ tooltip.style.left = canvasXY[0] + coordX - (width * 0.9) + (coordW / 2) + 'px';
457
+ img.style.left = ((width * 0.9) - 8.5) + 'px';
458
+
459
+ // Default positioning - CENTERED
460
+ } else {
461
+ tooltip.style.left = (canvasXY[0] + coordX + (coordW / 2) - (width * 0.5)) + 'px';
462
+ img.style.left = ((width * 0.5) - 8.5) + 'px';
463
+ }
464
+ };
465
+
466
+
467
+
468
+
469
+ /**
470
+ * Each object type has its own Highlight() function which highlights the appropriate shape
471
+ *
472
+ * @param object shape The shape to highlight
473
+ */
474
+ this.highlight =
475
+ this.Highlight = function (shape)
476
+ {
477
+ // Add the new highlight
478
+ RG.Highlight.Rect(this, shape);
479
+ };
480
+
481
+
482
+
483
+
484
+ /**
485
+ * This allows for easy specification of gradients
486
+ */
487
+ this.parseColors = function ()
488
+ {
489
+ // Save the original colors so that they can be restored when the canvas is reset
490
+ if (this.original_colors.length === 0) {
491
+ this.original_colors['chart.fillstyle'] = RG.array_clone(prop['chart.fillstyle']);
492
+ this.original_colors['chart.strokestyle'] = RG.array_clone(prop['chart.strokestyle']);
493
+ this.original_colors['chart.highlight.stroke'] = RG.array_clone(prop['chart.highlight.stroke']);
494
+ this.original_colors['chart.highlight.fill'] = RG.array_clone(prop['chart.highlight.fill']);
495
+ }
496
+
497
+
498
+
499
+
500
+ /**
501
+ * Parse various properties for colors
502
+ */
503
+ prop['chart.fillstyle'] = this.parseSingleColorForGradient(prop['chart.fillstyle']);
504
+ prop['chart.strokestyle'] = this.parseSingleColorForGradient(prop['chart.strokestyle']);
505
+ prop['chart.highlight.stroke'] = this.parseSingleColorForGradient(prop['chart.highlight.stroke']);
506
+ prop['chart.highlight.fill'] = this.parseSingleColorForGradient(prop['chart.highlight.fill']);
507
+ };
508
+
509
+
510
+
511
+
512
+ /**
513
+ * Use this function to reset the object to the post-constructor state. Eg reset colors if
514
+ * need be etc
515
+ */
516
+ this.reset = function ()
517
+ {
518
+ };
519
+
520
+
521
+
522
+
523
+ /**
524
+ * This parses a single color value
525
+ */
526
+ this.parseSingleColorForGradient = function (color)
527
+ {
528
+ if (!color) {
529
+ return color;
530
+ }
531
+
532
+ if (typeof color === 'string' && color.match(/^gradient\((.*)\)$/i)) {
533
+
534
+ var parts = RegExp.$1.split(':');
535
+
536
+ // Create the gradient
537
+ var grad = co.createLinearGradient(0,0,ca.width,0);
538
+
539
+ var diff = 1 / (parts.length - 1);
540
+
541
+ grad.addColorStop(0, RG.trim(parts[0]));
542
+
543
+ for (var j=1,len=parts.length; j<len; ++j) {
544
+ grad.addColorStop(j * diff, RG.trim(parts[j]));
545
+ }
546
+ }
547
+
548
+ return grad ? grad : color;
549
+ };
550
+
551
+
552
+
553
+
554
+ /**
555
+ * Using a function to add events makes it easier to facilitate method chaining
556
+ *
557
+ * @param string type The type of even to add
558
+ * @param function func
559
+ */
560
+ this.on = function (type, func)
561
+ {
562
+ if (type.substr(0,2) !== 'on') {
563
+ type = 'on' + type;
564
+ }
565
+
566
+ this[type] = func;
567
+
568
+ return this;
569
+ };
570
+
571
+
572
+
573
+
574
+ /**
575
+ * This function runs once only
576
+ * (put at the end of the file (before any effects))
577
+ */
578
+ this.firstDrawFunc = function ()
579
+ {
580
+ };
581
+
582
+
583
+
584
+
585
+ RG.att(ca);
586
+
587
+
588
+ /**
589
+ * Objects are now always registered so that the chart is redrawn if need be.
590
+ */
591
+ RG.Register(this);
592
+
593
+
594
+
595
+
596
+ /**
597
+ * This is the 'end' of the constructor so if the first argument
598
+ * contains configuration data - handle that.
599
+ */
600
+ if (parseConfObjectForOptions) {
601
+ RG.parseObjectStyleConfig(this, conf.options);
602
+ }
603
+ };