Skip to content

Commit 3a3323f

Browse files
committed
readded canvas to dev dep
1 parent 8d8ec4c commit 3a3323f

File tree

3 files changed

+20
-218
lines changed

3 files changed

+20
-218
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":5}],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":5}],4:[function(require,module,exports){
163+
},{"./emptyFunction":1}],4:[function(require,module,exports){
168164
(function (global){
169165
/**
170166
* Lodash (Custom Build) <https://lodash.com/>
@@ -2017,193 +2013,6 @@ module.exports = isEqual;
20172013

20182014
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
20192015
},{}],5:[function(require,module,exports){
2020-
// shim for using process in browser
2021-
var process = module.exports = {};
2022-
2023-
// cached from whatever global is present so that test runners that stub it
2024-
// don't break things. But we need to wrap it in a try catch in case it is
2025-
// wrapped in strict mode code which doesn't define any globals. It's inside a
2026-
// function because try/catches deoptimize in certain engines.
2027-
2028-
var cachedSetTimeout;
2029-
var cachedClearTimeout;
2030-
2031-
function defaultSetTimout() {
2032-
throw new Error('setTimeout has not been defined');
2033-
}
2034-
function defaultClearTimeout () {
2035-
throw new Error('clearTimeout has not been defined');
2036-
}
2037-
(function () {
2038-
try {
2039-
if (typeof setTimeout === 'function') {
2040-
cachedSetTimeout = setTimeout;
2041-
} else {
2042-
cachedSetTimeout = defaultSetTimout;
2043-
}
2044-
} catch (e) {
2045-
cachedSetTimeout = defaultSetTimout;
2046-
}
2047-
try {
2048-
if (typeof clearTimeout === 'function') {
2049-
cachedClearTimeout = clearTimeout;
2050-
} else {
2051-
cachedClearTimeout = defaultClearTimeout;
2052-
}
2053-
} catch (e) {
2054-
cachedClearTimeout = defaultClearTimeout;
2055-
}
2056-
} ())
2057-
function runTimeout(fun) {
2058-
if (cachedSetTimeout === setTimeout) {
2059-
//normal enviroments in sane situations
2060-
return setTimeout(fun, 0);
2061-
}
2062-
// if setTimeout wasn't available but was latter defined
2063-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
2064-
cachedSetTimeout = setTimeout;
2065-
return setTimeout(fun, 0);
2066-
}
2067-
try {
2068-
// when when somebody has screwed with setTimeout but no I.E. maddness
2069-
return cachedSetTimeout(fun, 0);
2070-
} catch(e){
2071-
try {
2072-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
2073-
return cachedSetTimeout.call(null, fun, 0);
2074-
} catch(e){
2075-
// 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
2076-
return cachedSetTimeout.call(this, fun, 0);
2077-
}
2078-
}
2079-
2080-
2081-
}
2082-
function runClearTimeout(marker) {
2083-
if (cachedClearTimeout === clearTimeout) {
2084-
//normal enviroments in sane situations
2085-
return clearTimeout(marker);
2086-
}
2087-
// if clearTimeout wasn't available but was latter defined
2088-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
2089-
cachedClearTimeout = clearTimeout;
2090-
return clearTimeout(marker);
2091-
}
2092-
try {
2093-
// when when somebody has screwed with setTimeout but no I.E. maddness
2094-
return cachedClearTimeout(marker);
2095-
} catch (e){
2096-
try {
2097-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
2098-
return cachedClearTimeout.call(null, marker);
2099-
} catch (e){
2100-
// 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.
2101-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
2102-
return cachedClearTimeout.call(this, marker);
2103-
}
2104-
}
2105-
2106-
2107-
2108-
}
2109-
var queue = [];
2110-
var draining = false;
2111-
var currentQueue;
2112-
var queueIndex = -1;
2113-
2114-
function cleanUpNextTick() {
2115-
if (!draining || !currentQueue) {
2116-
return;
2117-
}
2118-
draining = false;
2119-
if (currentQueue.length) {
2120-
queue = currentQueue.concat(queue);
2121-
} else {
2122-
queueIndex = -1;
2123-
}
2124-
if (queue.length) {
2125-
drainQueue();
2126-
}
2127-
}
2128-
2129-
function drainQueue() {
2130-
if (draining) {
2131-
return;
2132-
}
2133-
var timeout = runTimeout(cleanUpNextTick);
2134-
draining = true;
2135-
2136-
var len = queue.length;
2137-
while(len) {
2138-
currentQueue = queue;
2139-
queue = [];
2140-
while (++queueIndex < len) {
2141-
if (currentQueue) {
2142-
currentQueue[queueIndex].run();
2143-
}
2144-
}
2145-
queueIndex = -1;
2146-
len = queue.length;
2147-
}
2148-
currentQueue = null;
2149-
draining = false;
2150-
runClearTimeout(timeout);
2151-
}
2152-
2153-
process.nextTick = function (fun) {
2154-
var args = new Array(arguments.length - 1);
2155-
if (arguments.length > 1) {
2156-
for (var i = 1; i < arguments.length; i++) {
2157-
args[i - 1] = arguments[i];
2158-
}
2159-
}
2160-
queue.push(new Item(fun, args));
2161-
if (queue.length === 1 && !draining) {
2162-
runTimeout(drainQueue);
2163-
}
2164-
};
2165-
2166-
// v8 likes predictible objects
2167-
function Item(fun, array) {
2168-
this.fun = fun;
2169-
this.array = array;
2170-
}
2171-
Item.prototype.run = function () {
2172-
this.fun.apply(null, this.array);
2173-
};
2174-
process.title = 'browser';
2175-
process.browser = true;
2176-
process.env = {};
2177-
process.argv = [];
2178-
process.version = ''; // empty string to avoid regexp issues
2179-
process.versions = {};
2180-
2181-
function noop() {}
2182-
2183-
process.on = noop;
2184-
process.addListener = noop;
2185-
process.once = noop;
2186-
process.off = noop;
2187-
process.removeListener = noop;
2188-
process.removeAllListeners = noop;
2189-
process.emit = noop;
2190-
process.prependListener = noop;
2191-
process.prependOnceListener = noop;
2192-
2193-
process.listeners = function (name) { return [] }
2194-
2195-
process.binding = function (name) {
2196-
throw new Error('process.binding is not supported');
2197-
};
2198-
2199-
process.cwd = function () { return '/' };
2200-
process.chdir = function (dir) {
2201-
throw new Error('process.chdir is not supported');
2202-
};
2203-
process.umask = function() { return 0; };
2204-
2205-
},{}],6:[function(require,module,exports){
2206-
(function (process){
22072016
/**
22082017
* Copyright 2013-present, Facebook, Inc.
22092018
* All rights reserved.
@@ -2215,7 +2024,7 @@ process.umask = function() { return 0; };
22152024

22162025
'use strict';
22172026

2218-
if (process.env.NODE_ENV !== 'production') {
2027+
if ("production" !== 'production') {
22192028
var invariant = require('fbjs/lib/invariant');
22202029
var warning = require('fbjs/lib/warning');
22212030
var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');
@@ -2234,7 +2043,7 @@ if (process.env.NODE_ENV !== 'production') {
22342043
* @private
22352044
*/
22362045
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
2237-
if (process.env.NODE_ENV !== 'production') {
2046+
if ("production" !== 'production') {
22382047
for (var typeSpecName in typeSpecs) {
22392048
if (typeSpecs.hasOwnProperty(typeSpecName)) {
22402049
var error;
@@ -2266,8 +2075,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
22662075

22672076
module.exports = checkPropTypes;
22682077

2269-
}).call(this,require('_process'))
2270-
},{"./lib/ReactPropTypesSecret":10,"_process":5,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],7:[function(require,module,exports){
2078+
},{"./lib/ReactPropTypesSecret":9,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],6:[function(require,module,exports){
22712079
/**
22722080
* Copyright 2013-present, Facebook, Inc.
22732081
* All rights reserved.
@@ -2328,8 +2136,7 @@ module.exports = function() {
23282136
return ReactPropTypes;
23292137
};
23302138

2331-
},{"./lib/ReactPropTypesSecret":10,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2}],8:[function(require,module,exports){
2332-
(function (process){
2139+
},{"./lib/ReactPropTypesSecret":9,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2}],7:[function(require,module,exports){
23332140
/**
23342141
* Copyright 2013-present, Facebook, Inc.
23352142
* All rights reserved.
@@ -2478,7 +2285,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
24782285
PropTypeError.prototype = Error.prototype;
24792286

24802287
function createChainableTypeChecker(validate) {
2481-
if (process.env.NODE_ENV !== 'production') {
2288+
if ("production" !== 'production') {
24822289
var manualPropTypeCallCache = {};
24832290
var manualPropTypeWarningCount = 0;
24842291
}
@@ -2495,7 +2302,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
24952302
'Use `PropTypes.checkPropTypes()` to call them. ' +
24962303
'Read more at http://fb.me/use-check-prop-types'
24972304
);
2498-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
2305+
} else if ("production" !== 'production' && typeof console !== 'undefined') {
24992306
// Old behavior for people using React.PropTypes
25002307
var cacheKey = componentName + ':' + propName;
25012308
if (
@@ -2605,7 +2412,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
26052412

26062413
function createEnumTypeChecker(expectedValues) {
26072414
if (!Array.isArray(expectedValues)) {
2608-
process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
2415+
"production" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
26092416
return emptyFunction.thatReturnsNull;
26102417
}
26112418

@@ -2648,7 +2455,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
26482455

26492456
function createUnionTypeChecker(arrayOfTypeCheckers) {
26502457
if (!Array.isArray(arrayOfTypeCheckers)) {
2651-
process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
2458+
"production" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
26522459
return emptyFunction.thatReturnsNull;
26532460
}
26542461

@@ -2843,9 +2650,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
28432650
return ReactPropTypes;
28442651
};
28452652

2846-
}).call(this,require('_process'))
2847-
},{"./checkPropTypes":6,"./lib/ReactPropTypesSecret":10,"_process":5,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],9:[function(require,module,exports){
2848-
(function (process){
2653+
},{"./checkPropTypes":5,"./lib/ReactPropTypesSecret":9,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],8:[function(require,module,exports){
28492654
/**
28502655
* Copyright 2013-present, Facebook, Inc.
28512656
* All rights reserved.
@@ -2855,7 +2660,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
28552660
* of patent rights can be found in the PATENTS file in the same directory.
28562661
*/
28572662

2858-
if (process.env.NODE_ENV !== 'production') {
2663+
if ("production" !== 'production') {
28592664
var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
28602665
Symbol.for &&
28612666
Symbol.for('react.element')) ||
@@ -2877,8 +2682,7 @@ if (process.env.NODE_ENV !== 'production') {
28772682
module.exports = require('./factoryWithThrowingShims')();
28782683
}
28792684

2880-
}).call(this,require('_process'))
2881-
},{"./factoryWithThrowingShims":7,"./factoryWithTypeCheckers":8,"_process":5}],10:[function(require,module,exports){
2685+
},{"./factoryWithThrowingShims":6,"./factoryWithTypeCheckers":7}],9:[function(require,module,exports){
28822686
/**
28832687
* Copyright 2013-present, Facebook, Inc.
28842688
* All rights reserved.
@@ -2894,7 +2698,7 @@ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
28942698

28952699
module.exports = ReactPropTypesSecret;
28962700

2897-
},{}],11:[function(require,module,exports){
2701+
},{}],10:[function(require,module,exports){
28982702
(function (global){
28992703
'use strict';
29002704

@@ -3461,5 +3265,5 @@ var defaults = exports.defaults = _chart2.default.defaults;
34613265
exports.Chart = _chart2.default;
34623266

34633267
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
3464-
},{"lodash.isequal":4,"prop-types":9}]},{},[11])(11)
3268+
},{"lodash.isequal":4,"prop-types":8}]},{},[10])(10)
34653269
});

0 commit comments

Comments
 (0)