|
1 | 1 | /* View the README.md for detailed documentation. */ |
2 | | -/* Version 1.0.1 | Last Updated 22 Dec. 2014 */ |
| 2 | +/* Version 2.0.0 | Last Updated 19 Oct. 2016 */ |
3 | 3 |
|
4 | 4 | (function ( $ ) { |
5 | 5 |
|
|
11 | 11 | $.fn.zingchart = function (options) { |
12 | 12 | var id = this[0].id; |
13 | 13 | var defaults = { |
14 | | - id: id |
| 14 | + id: id, |
| 15 | + height: '100%', |
| 16 | + width: '100%' |
15 | 17 | }; |
16 | 18 | $.extend(defaults, options); |
17 | 19 | zingchart.render(defaults); |
|
703 | 705 | return this; |
704 | 706 | }; |
705 | 707 |
|
706 | | - $.fn.toggleLens = function () { |
707 | | - zingchart.exec(this[0].id, "togglelens"); |
708 | | - return this; |
709 | | - }; |
710 | | - |
711 | 708 | $.fn.toggleSource = function () { |
712 | 709 | zingchart.exec(this[0].id, "togglesource"); |
713 | 710 | return this; |
|
756 | 753 | // ANIMATION EVENTS ==================================================== |
757 | 754 | $.fn.animationEnd = function (callback) { |
758 | 755 | var jq = this; |
759 | | - zingchart.bind(this[0].id, "animationEnd", function(p){ |
| 756 | + zingchart.bind(this[0].id, "animation_end", function(p){ |
760 | 757 | $.extend(jq,{event:p}); |
761 | 758 | callback.call(jq) |
762 | 759 | }); |
|
1321 | 1318 | return this; |
1322 | 1319 | }; |
1323 | 1320 |
|
1324 | | - $.fn.lensShow = function (callback) { |
1325 | | - var jq = this; |
1326 | | - zingchart.bind(this[0].id, "lens_show", function(p){ |
1327 | | - $.extend(jq,{event:p}); |
1328 | | - callback.call(jq) |
1329 | | - }); |
1330 | | - return this; |
1331 | | - }; |
1332 | | - |
1333 | | - $.fn.lensHide = function (callback) { |
1334 | | - var jq = this; |
1335 | | - zingchart.bind(this[0].id, "lens_hide", function(p){ |
1336 | | - $.extend(jq,{event:p}); |
1337 | | - callback.call(jq) |
1338 | | - }); |
1339 | | - return this; |
1340 | | - }; |
1341 | | - |
1342 | 1321 | $.fn.sourceShow = function (callback) { |
1343 | 1322 | var jq = this; |
1344 | 1323 | zingchart.bind(this[0].id, "source_show", function(p){ |
|
0 commit comments