Skip to content

Commit 03d7709

Browse files
committed
added scatter to ts
1 parent 1351743 commit 03d7709

File tree

4 files changed

+21
-216
lines changed

4 files changed

+21
-216
lines changed

dist/react-chartjs-2.js

Lines changed: 17 additions & 213 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ emptyFunction.thatReturnsArgument = function (arg) {
3838

3939
module.exports = emptyFunction;
4040
},{}],2:[function(require,module,exports){
41-
(function (process){
4241
/**
4342
* Copyright (c) 2013-present, Facebook, Inc.
4443
* All rights reserved.
@@ -64,7 +63,7 @@ module.exports = emptyFunction;
6463

6564
var validateFormat = function validateFormat(format) {};
6665

67-
if (process.env.NODE_ENV !== 'production') {
66+
if ("production" !== 'production') {
6867
validateFormat = function validateFormat(format) {
6968
if (format === undefined) {
7069
throw new Error('invariant requires an error message argument');
@@ -94,9 +93,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
9493
}
9594

9695
module.exports = invariant;
97-
}).call(this,require('_process'))
98-
},{"_process":6}],3:[function(require,module,exports){
99-
(function (process){
96+
},{}],3:[function(require,module,exports){
10097
/**
10198
* Copyright 2014-2015, Facebook, Inc.
10299
* All rights reserved.
@@ -120,7 +117,7 @@ var emptyFunction = require('./emptyFunction');
120117

121118
var warning = emptyFunction;
122119

123-
if (process.env.NODE_ENV !== 'production') {
120+
if ("production" !== 'production') {
124121
(function () {
125122
var printWarning = function printWarning(format) {
126123
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -163,8 +160,7 @@ if (process.env.NODE_ENV !== 'production') {
163160
}
164161

165162
module.exports = warning;
166-
}).call(this,require('_process'))
167-
},{"./emptyFunction":1,"_process":6}],4:[function(require,module,exports){
163+
},{"./emptyFunction":1}],4:[function(require,module,exports){
168164
(function (global){
169165
/**
170166
* lodash (Custom Build) <https://lodash.com/>
@@ -4474,193 +4470,6 @@ module.exports = isEqual;
44744470

44754471
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
44764472
},{}],6:[function(require,module,exports){
4477-
// shim for using process in browser
4478-
var process = module.exports = {};
4479-
4480-
// cached from whatever global is present so that test runners that stub it
4481-
// don't break things. But we need to wrap it in a try catch in case it is
4482-
// wrapped in strict mode code which doesn't define any globals. It's inside a
4483-
// function because try/catches deoptimize in certain engines.
4484-
4485-
var cachedSetTimeout;
4486-
var cachedClearTimeout;
4487-
4488-
function defaultSetTimout() {
4489-
throw new Error('setTimeout has not been defined');
4490-
}
4491-
function defaultClearTimeout () {
4492-
throw new Error('clearTimeout has not been defined');
4493-
}
4494-
(function () {
4495-
try {
4496-
if (typeof setTimeout === 'function') {
4497-
cachedSetTimeout = setTimeout;
4498-
} else {
4499-
cachedSetTimeout = defaultSetTimout;
4500-
}
4501-
} catch (e) {
4502-
cachedSetTimeout = defaultSetTimout;
4503-
}
4504-
try {
4505-
if (typeof clearTimeout === 'function') {
4506-
cachedClearTimeout = clearTimeout;
4507-
} else {
4508-
cachedClearTimeout = defaultClearTimeout;
4509-
}
4510-
} catch (e) {
4511-
cachedClearTimeout = defaultClearTimeout;
4512-
}
4513-
} ())
4514-
function runTimeout(fun) {
4515-
if (cachedSetTimeout === setTimeout) {
4516-
//normal enviroments in sane situations
4517-
return setTimeout(fun, 0);
4518-
}
4519-
// if setTimeout wasn't available but was latter defined
4520-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
4521-
cachedSetTimeout = setTimeout;
4522-
return setTimeout(fun, 0);
4523-
}
4524-
try {
4525-
// when when somebody has screwed with setTimeout but no I.E. maddness
4526-
return cachedSetTimeout(fun, 0);
4527-
} catch(e){
4528-
try {
4529-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
4530-
return cachedSetTimeout.call(null, fun, 0);
4531-
} catch(e){
4532-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
4533-
return cachedSetTimeout.call(this, fun, 0);
4534-
}
4535-
}
4536-
4537-
4538-
}
4539-
function runClearTimeout(marker) {
4540-
if (cachedClearTimeout === clearTimeout) {
4541-
//normal enviroments in sane situations
4542-
return clearTimeout(marker);
4543-
}
4544-
// if clearTimeout wasn't available but was latter defined
4545-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
4546-
cachedClearTimeout = clearTimeout;
4547-
return clearTimeout(marker);
4548-
}
4549-
try {
4550-
// when when somebody has screwed with setTimeout but no I.E. maddness
4551-
return cachedClearTimeout(marker);
4552-
} catch (e){
4553-
try {
4554-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
4555-
return cachedClearTimeout.call(null, marker);
4556-
} catch (e){
4557-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
4558-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
4559-
return cachedClearTimeout.call(this, marker);
4560-
}
4561-
}
4562-
4563-
4564-
4565-
}
4566-
var queue = [];
4567-
var draining = false;
4568-
var currentQueue;
4569-
var queueIndex = -1;
4570-
4571-
function cleanUpNextTick() {
4572-
if (!draining || !currentQueue) {
4573-
return;
4574-
}
4575-
draining = false;
4576-
if (currentQueue.length) {
4577-
queue = currentQueue.concat(queue);
4578-
} else {
4579-
queueIndex = -1;
4580-
}
4581-
if (queue.length) {
4582-
drainQueue();
4583-
}
4584-
}
4585-
4586-
function drainQueue() {
4587-
if (draining) {
4588-
return;
4589-
}
4590-
var timeout = runTimeout(cleanUpNextTick);
4591-
draining = true;
4592-
4593-
var len = queue.length;
4594-
while(len) {
4595-
currentQueue = queue;
4596-
queue = [];
4597-
while (++queueIndex < len) {
4598-
if (currentQueue) {
4599-
currentQueue[queueIndex].run();
4600-
}
4601-
}
4602-
queueIndex = -1;
4603-
len = queue.length;
4604-
}
4605-
currentQueue = null;
4606-
draining = false;
4607-
runClearTimeout(timeout);
4608-
}
4609-
4610-
process.nextTick = function (fun) {
4611-
var args = new Array(arguments.length - 1);
4612-
if (arguments.length > 1) {
4613-
for (var i = 1; i < arguments.length; i++) {
4614-
args[i - 1] = arguments[i];
4615-
}
4616-
}
4617-
queue.push(new Item(fun, args));
4618-
if (queue.length === 1 && !draining) {
4619-
runTimeout(drainQueue);
4620-
}
4621-
};
4622-
4623-
// v8 likes predictible objects
4624-
function Item(fun, array) {
4625-
this.fun = fun;
4626-
this.array = array;
4627-
}
4628-
Item.prototype.run = function () {
4629-
this.fun.apply(null, this.array);
4630-
};
4631-
process.title = 'browser';
4632-
process.browser = true;
4633-
process.env = {};
4634-
process.argv = [];
4635-
process.version = ''; // empty string to avoid regexp issues
4636-
process.versions = {};
4637-
4638-
function noop() {}
4639-
4640-
process.on = noop;
4641-
process.addListener = noop;
4642-
process.once = noop;
4643-
process.off = noop;
4644-
process.removeListener = noop;
4645-
process.removeAllListeners = noop;
4646-
process.emit = noop;
4647-
process.prependListener = noop;
4648-
process.prependOnceListener = noop;
4649-
4650-
process.listeners = function (name) { return [] }
4651-
4652-
process.binding = function (name) {
4653-
throw new Error('process.binding is not supported');
4654-
};
4655-
4656-
process.cwd = function () { return '/' };
4657-
process.chdir = function (dir) {
4658-
throw new Error('process.chdir is not supported');
4659-
};
4660-
process.umask = function() { return 0; };
4661-
4662-
},{}],7:[function(require,module,exports){
4663-
(function (process){
46644473
/**
46654474
* Copyright 2013-present, Facebook, Inc.
46664475
* All rights reserved.
@@ -4672,7 +4481,7 @@ process.umask = function() { return 0; };
46724481

46734482
'use strict';
46744483

4675-
if (process.env.NODE_ENV !== 'production') {
4484+
if ("production" !== 'production') {
46764485
var invariant = require('fbjs/lib/invariant');
46774486
var warning = require('fbjs/lib/warning');
46784487
var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
@@ -4691,7 +4500,7 @@ if (process.env.NODE_ENV !== 'production') {
46914500
* @private
46924501
*/
46934502
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
4694-
if (process.env.NODE_ENV !== 'production') {
4503+
if ("production" !== 'production') {
46954504
for (var typeSpecName in typeSpecs) {
46964505
if (typeSpecs.hasOwnProperty(typeSpecName)) {
46974506
var error;
@@ -4723,8 +4532,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
47234532

47244533
module.exports = checkPropTypes;
47254534

4726-
}).call(this,require('_process'))
4727-
},{"./lib/ReactPropTypesSecret":11,"_process":6,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],8:[function(require,module,exports){
4535+
},{"./lib/ReactPropTypesSecret":10,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],7:[function(require,module,exports){
47284536
/**
47294537
* Copyright 2013-present, Facebook, Inc.
47304538
* All rights reserved.
@@ -4785,8 +4593,7 @@ module.exports = function() {
47854593
return ReactPropTypes;
47864594
};
47874595

4788-
},{"./lib/ReactPropTypesSecret":11,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2}],9:[function(require,module,exports){
4789-
(function (process){
4596+
},{"./lib/ReactPropTypesSecret":10,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2}],8:[function(require,module,exports){
47904597
/**
47914598
* Copyright 2013-present, Facebook, Inc.
47924599
* All rights reserved.
@@ -4935,7 +4742,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
49354742
PropTypeError.prototype = Error.prototype;
49364743

49374744
function createChainableTypeChecker(validate) {
4938-
if (process.env.NODE_ENV !== 'production') {
4745+
if ("production" !== 'production') {
49394746
var manualPropTypeCallCache = {};
49404747
var manualPropTypeWarningCount = 0;
49414748
}
@@ -4952,7 +4759,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
49524759
'Use `PropTypes.checkPropTypes()` to call them. ' +
49534760
'Read more at http://fb.me/use-check-prop-types'
49544761
);
4955-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
4762+
} else if ("production" !== 'production' && typeof console !== 'undefined') {
49564763
// Old behavior for people using React.PropTypes
49574764
var cacheKey = componentName + ':' + propName;
49584765
if (
@@ -5062,7 +4869,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
50624869

50634870
function createEnumTypeChecker(expectedValues) {
50644871
if (!Array.isArray(expectedValues)) {
5065-
process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
4872+
"production" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
50664873
return emptyFunction.thatReturnsNull;
50674874
}
50684875

@@ -5105,7 +4912,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
51054912

51064913
function createUnionTypeChecker(arrayOfTypeCheckers) {
51074914
if (!Array.isArray(arrayOfTypeCheckers)) {
5108-
process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
4915+
"production" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
51094916
return emptyFunction.thatReturnsNull;
51104917
}
51114918

@@ -5300,9 +5107,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
53005107
return ReactPropTypes;
53015108
};
53025109

5303-
}).call(this,require('_process'))
5304-
},{"./checkPropTypes":7,"./lib/ReactPropTypesSecret":11,"_process":6,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],10:[function(require,module,exports){
5305-
(function (process){
5110+
},{"./checkPropTypes":6,"./lib/ReactPropTypesSecret":10,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],9:[function(require,module,exports){
53065111
/**
53075112
* Copyright 2013-present, Facebook, Inc.
53085113
* All rights reserved.
@@ -5312,7 +5117,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
53125117
* of patent rights can be found in the PATENTS file in the same directory.
53135118
*/
53145119

5315-
if (process.env.NODE_ENV !== 'production') {
5120+
if ("production" !== 'production') {
53165121
var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
53175122
Symbol.for &&
53185123
Symbol.for('react.element')) ||
@@ -5334,8 +5139,7 @@ if (process.env.NODE_ENV !== 'production') {
53345139
module.exports = require('./factoryWithThrowingShims')();
53355140
}
53365141

5337-
}).call(this,require('_process'))
5338-
},{"./factoryWithThrowingShims":8,"./factoryWithTypeCheckers":9,"_process":6}],11:[function(require,module,exports){
5142+
},{"./factoryWithThrowingShims":7,"./factoryWithTypeCheckers":8}],10:[function(require,module,exports){
53395143
/**
53405144
* Copyright 2013-present, Facebook, Inc.
53415145
* All rights reserved.
@@ -5351,7 +5155,7 @@ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
53515155

53525156
module.exports = ReactPropTypesSecret;
53535157

5354-
},{}],12:[function(require,module,exports){
5158+
},{}],11:[function(require,module,exports){
53555159
(function (global){
53565160
'use strict';
53575161

@@ -5920,5 +5724,5 @@ var defaults = exports.defaults = _chart2.default.defaults;
59205724
exports.Chart = _chart2.default;
59215725

59225726
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5923-
},{"lodash.find":4,"lodash.isequal":5,"prop-types":10}]},{},[12])(12)
5727+
},{"lodash.find":4,"lodash.isequal":5,"prop-types":9}]},{},[11])(11)
59245728
});

dist/react-chartjs-2.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ export class Bar extends React.Component<ChartComponentProps, any>{}
1919
export class HorizontalBar extends React.Component<ChartComponentProps, any>{}
2020
export class Radar extends React.Component<ChartComponentProps, any>{}
2121
export class Polar extends React.Component<ChartComponentProps, any>{}
22+
export class Scatter extends React.Component<ChartComponentProps, any>{}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-chartjs-2",
3-
"version": "2.5.4",
3+
"version": "2.5.5",
44
"description": "react-chartjs-2",
55
"main": "lib/index.js",
66
"author": "Goran Udosic",

0 commit comments

Comments
 (0)