5
5
Object . defineProperty ( exports , "__esModule" , {
6
6
value : true
7
7
} ) ;
8
- exports . defaults = exports . Bubble = exports . Polar = exports . Radar = exports . HorizontalBar = exports . Bar = exports . Line = exports . Pie = exports . Doughnut = undefined ;
8
+ exports . Chart = exports . defaults = exports . Bubble = exports . Polar = exports . Radar = exports . HorizontalBar = exports . Bar = exports . Line = exports . Pie = exports . Doughnut = undefined ;
9
9
10
10
var _createClass = function ( ) { function defineProperties ( target , props ) { for ( var i = 0 ; i < props . length ; i ++ ) { var descriptor = props [ i ] ; descriptor . enumerable = descriptor . enumerable || false ; descriptor . configurable = true ; if ( "value" in descriptor ) descriptor . writable = true ; Object . defineProperty ( target , descriptor . key , descriptor ) ; } } return function ( Constructor , protoProps , staticProps ) { if ( protoProps ) defineProperties ( Constructor . prototype , protoProps ) ; if ( staticProps ) defineProperties ( Constructor , staticProps ) ; return Constructor ; } ; } ( ) ;
11
11
@@ -99,9 +99,9 @@ var ChartComponent = _react2.default.createClass({
99
99
this . chart_instance . destroy ( ) ;
100
100
} ,
101
101
updateChart : function updateChart ( ) {
102
- var _props = this . props ;
103
- var data = _props . data ;
104
- var options = _props . options ;
102
+ var _props = this . props ,
103
+ data = _props . data ,
104
+ options = _props . options ;
105
105
106
106
107
107
if ( ! this . chart_instance ) return ;
@@ -115,11 +115,11 @@ var ChartComponent = _react2.default.createClass({
115
115
this . chart_instance . update ( ) ;
116
116
} ,
117
117
renderChart : function renderChart ( ) {
118
- var _props2 = this . props ;
119
- var data = _props2 . data ;
120
- var options = _props2 . options ;
121
- var legend = _props2 . legend ;
122
- var type = _props2 . type ;
118
+ var _props2 = this . props ,
119
+ data = _props2 . data ,
120
+ options = _props2 . options ,
121
+ legend = _props2 . legend ,
122
+ type = _props2 . type ;
123
123
124
124
var node = _reactDom2 . default . findDOMNode ( this ) ;
125
125
@@ -132,11 +132,11 @@ var ChartComponent = _react2.default.createClass({
132
132
handleOnClick : function handleOnClick ( event ) {
133
133
var instance = this . chart_instance ;
134
134
135
- var _props3 = this . props ;
136
- var getDatasetAtEvent = _props3 . getDatasetAtEvent ;
137
- var getElementAtEvent = _props3 . getElementAtEvent ;
138
- var getElementsAtEvent = _props3 . getElementsAtEvent ;
139
- var onElementsClick = _props3 . onElementsClick ;
135
+ var _props3 = this . props ,
136
+ getDatasetAtEvent = _props3 . getDatasetAtEvent ,
137
+ getElementAtEvent = _props3 . getElementAtEvent ,
138
+ getElementsAtEvent = _props3 . getElementsAtEvent ,
139
+ onElementsClick = _props3 . onElementsClick ;
140
140
141
141
142
142
getDatasetAtEvent && getDatasetAtEvent ( instance . getDatasetAtEvent ( event ) ) ;
@@ -145,10 +145,10 @@ var ChartComponent = _react2.default.createClass({
145
145
onElementsClick && onElementsClick ( instance . getElementsAtEvent ( event ) ) ; // Backward compatibility
146
146
} ,
147
147
render : function render ( ) {
148
- var _props4 = this . props ;
149
- var height = _props4 . height ;
150
- var width = _props4 . width ;
151
- var onElementsClick = _props4 . onElementsClick ;
148
+ var _props4 = this . props ,
149
+ height = _props4 . height ,
150
+ width = _props4 . width ,
151
+ onElementsClick = _props4 . onElementsClick ;
152
152
153
153
154
154
return _react2 . default . createElement ( 'canvas' , {
@@ -370,6 +370,7 @@ var Bubble = exports.Bubble = function (_React$Component8) {
370
370
} ( _react2 . default . Component ) ;
371
371
372
372
var defaults = exports . defaults = _chart2 . default . defaults ;
373
+ exports . Chart = _chart2 . default ;
373
374
374
375
} ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
375
376
} , { "./utils/deepEqual" :2 , "chart.js" :undefined , "react-dom" :undefined } ] , 2 :[ function ( require , module , exports ) {
@@ -379,7 +380,7 @@ Object.defineProperty(exports, "__esModule", {
379
380
value : true
380
381
} ) ;
381
382
382
- var _typeof = typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ? function ( obj ) { return typeof obj ; } : function ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol ? "symbol" : typeof obj ; } ;
383
+ var _typeof = typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ? function ( obj ) { return typeof obj ; } : function ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ;
383
384
384
385
var hasOwnProperty = Object . prototype . hasOwnProperty ;
385
386
0 commit comments