Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-svg-graph-bradchristensen

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-svg-graph-bradchristensen - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

6

app.js

@@ -1,4 +0,4 @@

var React = require('react');
var ReactDOM = require('react-dom');
var ReactSVGGraph = require('./index.js');
import React from 'react';
import ReactDOM from 'react-dom';
import ReactSVGGraph from './index.js';

@@ -5,0 +5,0 @@ var renderGraphs = function () {

@@ -1,2 +0,1 @@

!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return o(n?n:e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("./src/graph"),i=r(o);n["default"]=i["default"],t.exports=n["default"]},{"./src/graph":39}],2:[function(e,t,n){"use strict";function r(e){return function(){return e}}function o(){}o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],3:[function(e,t,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(this,e("_process"))},{_process:11}],4:[function(e,t,n){(function(e){"use strict";function n(t,n,r,o,i,a,s,c){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var p;if(void 0===n)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,s,c],l=0;p=new Error(n.replace(/%s/g,function(){return u[l++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}}t.exports=n}).call(this,e("_process"))},{_process:11}],5:[function(e,t,n){(function(n){"use strict";var r=e("./invariant"),o=function(e){var t,o={};e instanceof Object&&!Array.isArray(e)?void 0:"production"!==n.env.NODE_ENV?r(!1,"keyMirror(...): Argument must be an object."):r(!1);for(t in e)e.hasOwnProperty(t)&&(o[t]=t);return o};t.exports=o}).call(this,e("_process"))},{"./invariant":4,_process:11}],6:[function(e,t,n){"use strict";var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],7:[function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var i in e)o.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],8:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;t.exports=o},{}],9:[function(e,t,n){(function(n){"use strict";var r=e("./emptyFunction"),o=r;"production"!==n.env.NODE_ENV&&(o=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return r[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(s){}}}),t.exports=o}).call(this,e("_process"))},{"./emptyFunction":2,_process:11}],10:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(e,t){for(var n,a,s=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var p in n)o.call(n,p)&&(s[p]=n[p]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},{}],11:[function(e,t,n){function r(){u=!1,s.length?p=s.concat(p):l=-1,p.length&&o()}function o(){if(!u){var e=setTimeout(r);u=!0;for(var t=p.length;t;){for(s=p,p=[];++l<t;)s&&s[l].run();l=-1,t=p.length}s=null,u=!1,clearTimeout(e)}}function i(e,t){this.fun=e,this.array=t}function a(){}var s,c=t.exports={},p=[],u=!1,l=-1;c.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new i(e,t)),1!==p.length||u||setTimeout(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=a,c.addListener=a,c.once=a,c.off=a,c.removeListener=a,c.removeAllListeners=a,c.emit=a,c.binding=function(e){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(e){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},{}],12:[function(e,t,n){t.exports=e("react/lib/ReactComponentWithPureRenderMixin")},{"react/lib/ReactComponentWithPureRenderMixin":18}],13:[function(e,t,n){(function(n){"use strict";var r=e("fbjs/lib/invariant"),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},c=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},p=function(e){var t=this;e instanceof t?void 0:"production"!==n.env.NODE_ENV?r(!1,"Trying to release an instance into a pool of a different type."):r(!1),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=10,l=o,d=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=u),n.release=p,n},f={addPoolingTo:d,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s,fiveArgumentPooler:c};t.exports=f}).call(this,e("_process"))},{_process:11,"fbjs/lib/invariant":4}],14:[function(e,t,n){(function(n){"use strict";var r=e("object-assign"),o=e("./ReactChildren"),i=e("./ReactComponent"),a=e("./ReactClass"),s=e("./ReactDOMFactories"),c=e("./ReactElement"),p=e("./ReactElementValidator"),u=e("./ReactPropTypes"),l=e("./ReactVersion"),d=e("./onlyChild"),f=e("fbjs/lib/warning"),h=c.createElement,g=c.createFactory,v=c.cloneElement;"production"!==n.env.NODE_ENV&&(h=p.createElement,g=p.createFactory,v=p.cloneElement);var y=r;if("production"!==n.env.NODE_ENV){var m=!1;y=function(){return"production"!==n.env.NODE_ENV?f(m,"React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."):void 0,m=!0,r.apply(null,arguments)}}var b={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:d},Component:i,createElement:h,cloneElement:v,isValidElement:c.isValidElement,PropTypes:u,createClass:a.createClass,createFactory:g,createMixin:function(e){return e},DOM:s,version:l,__spread:y};t.exports=b}).call(this,e("_process"))},{"./ReactChildren":15,"./ReactClass":16,"./ReactComponent":17,"./ReactDOMFactories":20,"./ReactElement":22,"./ReactElementValidator":23,"./ReactPropTypes":29,"./ReactVersion":30,"./onlyChild":33,_process:11,"fbjs/lib/warning":9,"object-assign":10}],15:[function(e,t,n){"use strict";function r(e){return(""+e).replace(E,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);y(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function c(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,c=a.call(s,t,e.count++);Array.isArray(c)?p(c,o,n,v.thatReturnsArgument):null!=c&&(g.isValidElement(c)&&(c=g.cloneAndReplaceKey(c,i+(!c.key||t&&t.key===c.key?"":r(c.key)+"/")+n)),o.push(c))}function p(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var p=s.getPooled(t,a,o,i);y(e,c,p),s.release(p)}function u(e,t,n){if(null==e)return e;var r=[];return p(e,r,null,t,n),r}function l(e,t,n){return null}function d(e,t){return y(e,l,null)}function f(e){var t=[];return p(e,t,null,v.thatReturnsArgument),t}var h=e("./PooledClass"),g=e("./ReactElement"),v=e("fbjs/lib/emptyFunction"),y=e("./traverseAllChildren"),m=h.twoArgumentPooler,b=h.fourArgumentPooler,E=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,m),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,b);var N={forEach:a,map:u,mapIntoWithKeyPrefixInternal:p,count:d,toArray:f};t.exports=N},{"./PooledClass":13,"./ReactElement":22,"./traverseAllChildren":35,"fbjs/lib/emptyFunction":2}],16:[function(e,t,n){(function(n){"use strict";function r(e,t,r){for(var o in t)t.hasOwnProperty(o)&&("production"!==n.env.NODE_ENV?_("function"==typeof t[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",v[r],o):void 0)}function o(e,t){var r=D.hasOwnProperty(t)?D[t]:null;j.hasOwnProperty(t)&&(r!==x.OVERRIDE_BASE?"production"!==n.env.NODE_ENV?b(!1,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t):b(!1):void 0),e&&(r!==x.DEFINE_MANY&&r!==x.DEFINE_MANY_MERGED?"production"!==n.env.NODE_ENV?b(!1,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t):b(!1):void 0)}function i(e,t){if(t){"function"==typeof t?"production"!==n.env.NODE_ENV?b(!1,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."):b(!1):void 0,h.isValidElement(t)?"production"!==n.env.NODE_ENV?b(!1,"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):b(!1):void 0;var r=e.prototype,i=r.__reactAutoBindPairs;t.hasOwnProperty(P)&&w.mixins(e,t.mixins);for(var a in t)if(t.hasOwnProperty(a)&&a!==P){var s=t[a],u=r.hasOwnProperty(a);if(o(u,a),w.hasOwnProperty(a))w[a](e,s);else{var l=D.hasOwnProperty(a),d="function"==typeof s,f=d&&!l&&!u&&t.autobind!==!1;if(f)i.push(a,s),r[a]=s;else if(u){var g=D[a];!l||g!==x.DEFINE_MANY_MERGED&&g!==x.DEFINE_MANY?"production"!==n.env.NODE_ENV?b(!1,"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,a):b(!1):void 0,g===x.DEFINE_MANY_MERGED?r[a]=c(r[a],s):g===x.DEFINE_MANY&&(r[a]=p(r[a],s))}else r[a]=s,"production"!==n.env.NODE_ENV&&"function"==typeof s&&t.displayName&&(r[a].displayName=t.displayName+"_"+a)}}}}function a(e,t){if(t)for(var r in t){var o=t[r];if(t.hasOwnProperty(r)){var i=r in w;i?"production"!==n.env.NODE_ENV?b(!1,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r):b(!1):void 0;var a=r in e;a?"production"!==n.env.NODE_ENV?b(!1,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r):b(!1):void 0,e[r]=o}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:"production"!==n.env.NODE_ENV?b(!1,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):b(!1);for(var r in t)t.hasOwnProperty(r)&&(void 0!==e[r]?"production"!==n.env.NODE_ENV?b(!1,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r):b(!1):void 0,e[r]=t[r]);return e}function c(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return s(o,n),s(o,r),o}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function u(e,t){var r=t.bind(e);if("production"!==n.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=t,r.__reactBoundArguments=null;var o=e.constructor.displayName,i=r.bind;r.bind=function(a){for(var s=arguments.length,c=Array(s>1?s-1:0),p=1;s>p;p++)c[p-1]=arguments[p];if(a!==e&&null!==a)"production"!==n.env.NODE_ENV?_(!1,"bind(): React component methods may only be bound to the component instance. See %s",o):void 0;else if(!c.length)return"production"!==n.env.NODE_ENV?_(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o):void 0,r;var u=i.apply(r,arguments);return u.__reactBoundContext=e,u.__reactBoundMethod=t,u.__reactBoundArguments=c,u}}return r}function l(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=u(e,o)}}var d=e("object-assign"),f=e("./ReactComponent"),h=e("./ReactElement"),g=e("./ReactPropTypeLocations"),v=e("./ReactPropTypeLocationNames"),y=e("./ReactNoopUpdateQueue"),m=e("fbjs/lib/emptyObject"),b=e("fbjs/lib/invariant"),E=e("fbjs/lib/keyMirror"),N=e("fbjs/lib/keyOf"),_=e("fbjs/lib/warning"),P=N({mixins:null}),x=E({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),O=[],D={mixins:x.DEFINE_MANY,statics:x.DEFINE_MANY,propTypes:x.DEFINE_MANY,contextTypes:x.DEFINE_MANY,childContextTypes:x.DEFINE_MANY,getDefaultProps:x.DEFINE_MANY_MERGED,getInitialState:x.DEFINE_MANY_MERGED,getChildContext:x.DEFINE_MANY_MERGED,render:x.DEFINE_ONCE,componentWillMount:x.DEFINE_MANY,componentDidMount:x.DEFINE_MANY,componentWillReceiveProps:x.DEFINE_MANY,shouldComponentUpdate:x.DEFINE_ONCE,componentWillUpdate:x.DEFINE_MANY,componentDidUpdate:x.DEFINE_MANY,componentWillUnmount:x.DEFINE_MANY,updateComponent:x.OVERRIDE_BASE},w={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){"production"!==n.env.NODE_ENV&&r(e,t,g.childContext),e.childContextTypes=d({},e.childContextTypes,t)},contextTypes:function(e,t){"production"!==n.env.NODE_ENV&&r(e,t,g.context),e.contextTypes=d({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=c(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){"production"!==n.env.NODE_ENV&&r(e,t,g.prop),e.propTypes=d({},e.propTypes,t)},statics:function(e,t){a(e,t)},autobind:function(){}},j={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},R=function(){};d(R.prototype,f.prototype,j);var V={createClass:function(e){var t=function(e,r,o){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?_(this instanceof t,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"):void 0),this.__reactAutoBindPairs.length&&l(this),this.props=e,this.context=r,this.refs=m,this.updater=o||y,this.state=null;var i=this.getInitialState?this.getInitialState():null;"production"!==n.env.NODE_ENV&&void 0===i&&this.getInitialState._isMockFunction&&(i=null),"object"!=typeof i||Array.isArray(i)?"production"!==n.env.NODE_ENV?b(!1,"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"):b(!1):void 0,this.state=i};t.prototype=new R,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],O.forEach(i.bind(null,t)),i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),"production"!==n.env.NODE_ENV&&(t.getDefaultProps&&(t.getDefaultProps.isReactClassApproved={}),t.prototype.getInitialState&&(t.prototype.getInitialState.isReactClassApproved={})),t.prototype.render?void 0:"production"!==n.env.NODE_ENV?b(!1,"createClass(...): Class specification must implement a `render` method."):b(!1),"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?_(!t.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component"):void 0,"production"!==n.env.NODE_ENV?_(!t.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",e.displayName||"A component"):void 0);for(var r in D)t.prototype[r]||(t.prototype[r]=null);return t},injection:{injectMixin:function(e){O.push(e)}}};t.exports=V}).call(this,e("_process"))},{"./ReactComponent":17,"./ReactElement":22,"./ReactNoopUpdateQueue":26,"./ReactPropTypeLocationNames":27,"./ReactPropTypeLocations":28,_process:11,"fbjs/lib/emptyObject":3,"fbjs/lib/invariant":4,"fbjs/lib/keyMirror":5,"fbjs/lib/keyOf":6,"fbjs/lib/warning":9,"object-assign":10}],17:[function(e,t,n){(function(n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||o}var o=e("./ReactNoopUpdateQueue"),i=e("./ReactInstrumentation"),a=e("./canDefineProperty"),s=e("fbjs/lib/emptyObject"),c=e("fbjs/lib/invariant"),p=e("fbjs/lib/warning");if(r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?"production"!==n.env.NODE_ENV?c(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):c(!1):void 0,"production"!==n.env.NODE_ENV&&(i.debugTool.onSetState(),"production"!==n.env.NODE_ENV?p(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):void 0),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")},"production"!==n.env.NODE_ENV){var u={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},l=function(e,t){a&&Object.defineProperty(r.prototype,e,{get:function(){"production"!==n.env.NODE_ENV?p(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1]):void 0}})};for(var d in u)u.hasOwnProperty(d)&&l(d,u[d])}t.exports=r}).call(this,e("_process"))},{"./ReactInstrumentation":24,"./ReactNoopUpdateQueue":26,"./canDefineProperty":31,_process:11,"fbjs/lib/emptyObject":3,"fbjs/lib/invariant":4,"fbjs/lib/warning":9}],18:[function(e,t,n){"use strict";var r=e("./shallowCompare"),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{"./shallowCompare":34}],19:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],20:[function(e,t,n){(function(n){"use strict";function r(e){return"production"!==n.env.NODE_ENV?i.createFactory(e):o.createFactory(e)}var o=e("./ReactElement"),i=e("./ReactElementValidator"),a=e("fbjs/lib/mapObject"),s=a({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);t.exports=s}).call(this,e("_process"))},{"./ReactElement":22,"./ReactElementValidator":23,_process:11,"fbjs/lib/mapObject":7}],21:[function(e,t,n){(function(n){"use strict";function r(e,t,r,o,c,p){"production"!==n.env.NODE_ENV&&a.forEach(function(a){try{a[e]&&a[e](t,r,o,c,p)}catch(u){"production"!==n.env.NODE_ENV?i(!s[e],"exception thrown by devtool while handling %s: %s",e,u.message):void 0,s[e]=!0}})}var o=e("./ReactInvalidSetStateWarningDevTool"),i=e("fbjs/lib/warning"),a=[],s={},c={addDevtool:function(e){a.push(e)},removeDevtool:function(e){for(var t=0;t<a.length;t++)a[t]===e&&(a.splice(t,1),t--)},onBeginProcessingChildContext:function(){r("onBeginProcessingChildContext")},onEndProcessingChildContext:function(){r("onEndProcessingChildContext")},onSetState:function(){r("onSetState")},onMountRootComponent:function(e){r("onMountRootComponent",e)},onMountComponent:function(e){r("onMountComponent",e)},onUpdateComponent:function(e){r("onUpdateComponent",e)},onUnmountComponent:function(e){r("onUnmountComponent",e)}};c.addDevtool(o),t.exports=c}).call(this,e("_process"))},{"./ReactInvalidSetStateWarningDevTool":25,_process:11,"fbjs/lib/warning":9}],22:[function(e,t,n){(function(n){"use strict";var r,o,i=e("object-assign"),a=e("./ReactCurrentOwner"),s=e("fbjs/lib/warning"),c=e("./canDefineProperty"),p="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,u={key:!0,ref:!0,__self:!0,__source:!0},l=function(e,t,r,o,i,a,s){var u={$$typeof:p,type:e,key:t,ref:r,props:s,_owner:a};return"production"!==n.env.NODE_ENV&&(u._store={},c?(Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i})):(u._store.validated=!1,u._self=o,u._source=i),Object.freeze&&(Object.freeze(u.props),Object.freeze(u))),u};l.createElement=function(e,t,i){var c,d={},f=null,h=null,g=null,v=null;if(null!=t){"production"!==n.env.NODE_ENV?(h=!t.hasOwnProperty("ref")||Object.getOwnPropertyDescriptor(t,"ref").get?null:t.ref,f=!t.hasOwnProperty("key")||Object.getOwnPropertyDescriptor(t,"key").get?null:""+t.key):(h=void 0===t.ref?null:t.ref,f=void 0===t.key?null:""+t.key),g=void 0===t.__self?null:t.__self,v=void 0===t.__source?null:t.__source;for(c in t)t.hasOwnProperty(c)&&!u.hasOwnProperty(c)&&(d[c]=t[c])}var y=arguments.length-2;if(1===y)d.children=i;else if(y>1){for(var m=Array(y),b=0;y>b;b++)m[b]=arguments[b+2];d.children=m}if(e&&e.defaultProps){var E=e.defaultProps;for(c in E)void 0===d[c]&&(d[c]=E[c])}return"production"!==n.env.NODE_ENV&&("undefined"!=typeof d.$$typeof&&d.$$typeof===p||(d.hasOwnProperty("key")||Object.defineProperty(d,"key",{get:function(){r||(r=!0,"production"!==n.env.NODE_ENV?s(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)","function"==typeof e&&"displayName"in e?e.displayName:"Element"):void 0)},configurable:!0}),d.hasOwnProperty("ref")||Object.defineProperty(d,"ref",{get:function(){o||(o=!0,"production"!==n.env.NODE_ENV?s(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)","function"==typeof e&&"displayName"in e?e.displayName:"Element"):void 0)},configurable:!0}))),l(e,f,h,g,v,a.current,d)},l.createFactory=function(e){var t=l.createElement.bind(null,e);return t.type=e,t},l.cloneAndReplaceKey=function(e,t){var n=l(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},l.cloneElement=function(e,t,n){var r,o=i({},e.props),s=e.key,c=e.ref,p=e._self,d=e._source,f=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,f=a.current),void 0!==t.key&&(s=""+t.key);var h;e.type&&e.type.defaultProps&&(h=e.type.defaultProps);for(r in t)t.hasOwnProperty(r)&&!u.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==h?o[r]=h[r]:o[r]=t[r])}var g=arguments.length-2;if(1===g)o.children=n;else if(g>1){for(var v=Array(g),y=0;g>y;y++)v[y]=arguments[y+2];o.children=v}return l(e.type,s,c,p,d,f,o)},l.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===p},t.exports=l}).call(this,e("_process"))},{"./ReactCurrentOwner":19,"./canDefineProperty":31,_process:11,"fbjs/lib/warning":9,"object-assign":10}],23:[function(e,t,n){(function(n){"use strict";function r(){if(d.current){var e=d.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=i("uniqueKey",e,t);null!==r&&("production"!==n.env.NODE_ENV?v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s%s',r.parentOrOwner||"",r.childOwner||"",r.url||""):void 0)}}function i(e,t,n){var o=r();if(!o){var i="string"==typeof n?n:n.displayName||n.name;i&&(o=" Check the top-level render call using <"+i+">.")}var a=y[e]||(y[e]={});if(a[o])return null;a[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==d.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];p.isValidElement(r)&&o(r,t)}else if(p.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var i=h(e);if(i&&i!==e.entries)for(var a,s=i.call(e);!(a=s.next()).done;)p.isValidElement(a.value)&&o(a.value,t)}}function s(e,t,o,i){for(var a in t)if(t.hasOwnProperty(a)){var s;try{"function"!=typeof t[a]?"production"!==n.env.NODE_ENV?g(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e||"React class",l[i],a):g(!1):void 0,s=t[a](o,a,e,i)}catch(c){s=c}if("production"!==n.env.NODE_ENV?v(!s||s instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",e||"React class",l[i],a,typeof s):void 0,s instanceof Error&&!(s.message in m)){m[s.message]=!0;var p=r();"production"!==n.env.NODE_ENV?v(!1,"Failed propType: %s%s",s.message,p):void 0}}}function c(e){var t=e.type;if("function"==typeof t){var r=t.displayName||t.name;t.propTypes&&s(r,t.propTypes,e.props,u.prop),"function"==typeof t.getDefaultProps&&("production"!==n.env.NODE_ENV?v(t.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):void 0)}}var p=e("./ReactElement"),u=e("./ReactPropTypeLocations"),l=e("./ReactPropTypeLocationNames"),d=e("./ReactCurrentOwner"),f=e("./canDefineProperty"),h=e("./getIteratorFn"),g=e("fbjs/lib/invariant"),v=e("fbjs/lib/warning"),y={},m={},b={createElement:function(e,t,o){var i="string"==typeof e||"function"==typeof e;"production"!==n.env.NODE_ENV?v(i,"React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).%s",r()):void 0;var s=p.createElement.apply(this,arguments);if(null==s)return s;if(i)for(var u=2;u<arguments.length;u++)a(arguments[u],e);return c(s),s},createFactory:function(e){var t=b.createElement.bind(null,e);return t.type=e,"production"!==n.env.NODE_ENV&&f&&Object.defineProperty(t,"type",{enumerable:!1,get:function(){return"production"!==n.env.NODE_ENV?v(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."):void 0,Object.defineProperty(this,"type",{value:e}),e}}),t},cloneElement:function(e,t,n){for(var r=p.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)a(arguments[o],r.type);return c(r),r}};t.exports=b}).call(this,e("_process"))},{"./ReactCurrentOwner":19,"./ReactElement":22,"./ReactPropTypeLocationNames":27,"./ReactPropTypeLocations":28,"./canDefineProperty":31,"./getIteratorFn":32,_process:11,"fbjs/lib/invariant":4,"fbjs/lib/warning":9}],24:[function(e,t,n){"use strict";var r=e("./ReactDebugTool");t.exports={debugTool:r}},{"./ReactDebugTool":21}],25:[function(e,t,n){(function(n){"use strict";var r=e("fbjs/lib/warning");if("production"!==n.env.NODE_ENV)var o=!1,i=function(){"production"!==n.env.NODE_ENV?r(!o,"setState(...): Cannot call setState() inside getChildContext()"):void 0};var a={onBeginProcessingChildContext:function(){o=!0},onEndProcessingChildContext:function(){o=!1},onSetState:function(){i()}};t.exports=a}).call(this,e("_process"))},{_process:11,"fbjs/lib/warning":9}],26:[function(e,t,n){(function(n){"use strict";function r(e,t){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?o(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",t,t,e.constructor&&e.constructor.displayName||""):void 0)}var o=e("fbjs/lib/warning"),i={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}};t.exports=i}).call(this,e("_process"))},{_process:11,"fbjs/lib/warning":9}],27:[function(e,t,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),t.exports=n}).call(this,e("_process"))},{_process:11}],28:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),o=r({prop:null,context:null,childContext:null});t.exports=o},{"fbjs/lib/keyMirror":5}],29:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function o(e){function t(t,n,r,o,i,a){if(o=o||P,a=a||r,null==n[r]){var s=E[i];return t?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function i(e){function t(t,n,r,o,i){var a=t[n],s=v(a);if(s!==e){var c=E[o],p=y(a);return new Error("Invalid "+c+" `"+i+"` of type "+("`"+p+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return o(t)}function a(){return o(N.thatReturns(null))}function s(e){function t(t,n,r,o,i){if("function"!=typeof e)return new Error("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){var s=E[o],c=v(a);return new Error("Invalid "+s+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var p=0;p<a.length;p++){var u=e(a,p,r,o,i+"["+p+"]");if(u instanceof Error)return u;
}return null}return o(t)}function c(){function e(e,t,n,r,o){if(!b.isValidElement(e[t])){var i=E[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return o(e)}function p(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=E[o],s=e.name||P,c=m(t[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return o(t)}function u(e){function t(t,n,o,i,a){for(var s=t[n],c=0;c<e.length;c++)if(r(s,e[c]))return null;var p=E[i],u=JSON.stringify(e);return new Error("Invalid "+p+" `"+a+"` of value `"+s+"` "+("supplied to `"+o+"`, expected one of "+u+"."))}return o(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function l(e){function t(t,n,r,o,i){if("function"!=typeof e)return new Error("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],s=v(a);if("object"!==s){var c=E[o];return new Error("Invalid "+c+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var p in a)if(a.hasOwnProperty(p)){var u=e(a,p,r,o,i+"."+p);if(u instanceof Error)return u}return null}return o(t)}function d(e){function t(t,n,r,o,i){for(var a=0;a<e.length;a++){var s=e[a];if(null==s(t,n,r,o,i))return null}var c=E[o];return new Error("Invalid "+c+" `"+i+"` supplied to "+("`"+r+"`."))}return o(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function f(){function e(e,t,n,r,o){if(!g(e[t])){var i=E[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return o(e)}function h(e){function t(t,n,r,o,i){var a=t[n],s=v(a);if("object"!==s){var c=E[o];return new Error("Invalid "+c+" `"+i+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var p in e){var u=e[p];if(u){var l=u(a,p,r,o,i+"."+p);if(l)return l}}return null}return o(t)}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||b.isValidElement(e))return!0;var t=_(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function y(e){var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function m(e){return e.constructor&&e.constructor.name?e.constructor.name:P}var b=e("./ReactElement"),E=e("./ReactPropTypeLocationNames"),N=e("fbjs/lib/emptyFunction"),_=e("./getIteratorFn"),P="<<anonymous>>",x={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:a(),arrayOf:s,element:c(),instanceOf:p,node:f(),objectOf:l,oneOf:u,oneOfType:d,shape:h};t.exports=x},{"./ReactElement":22,"./ReactPropTypeLocationNames":27,"./getIteratorFn":32,"fbjs/lib/emptyFunction":2}],30:[function(e,t,n){"use strict";t.exports="15.0.1"},{}],31:[function(e,t,n){(function(e){"use strict";var n=!1;if("production"!==e.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){}}),n=!0}catch(r){}t.exports=n}).call(this,e("_process"))},{_process:11}],32:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);return"function"==typeof t?t:void 0}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],33:[function(e,t,n){(function(n){"use strict";function r(e){return o.isValidElement(e)?void 0:"production"!==n.env.NODE_ENV?i(!1,"onlyChild must be passed a children with exactly one child."):i(!1),e}var o=e("./ReactElement"),i=e("fbjs/lib/invariant");t.exports=r}).call(this,e("_process"))},{"./ReactElement":22,_process:11,"fbjs/lib/invariant":4}],34:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e("fbjs/lib/shallowEqual");t.exports=r},{"fbjs/lib/shallowEqual":8}],35:[function(e,t,n){(function(n){"use strict";function r(e){return v[e]}function o(e,t){return e&&"object"==typeof e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(y,r)}function a(e){return"$"+i(e)}function s(e,t,r,i){var c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||u.isValidElement(e))return r(i,e,""===t?h+o(e,0):t),1;var v,y,b=0,E=""===t?h:t+g;if(Array.isArray(e))for(var N=0;N<e.length;N++)v=e[N],y=E+o(v,N),b+=s(v,y,r,i);else{var _=l(e);if(_){var P,x=_.call(e);if(_!==e.entries)for(var O=0;!(P=x.next()).done;)v=P.value,y=E+o(v,O++),b+=s(v,y,r,i);else for("production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?f(m,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead."):void 0,m=!0);!(P=x.next()).done;){var D=P.value;D&&(v=D[1],y=E+a(D[0])+g+o(v,0),b+=s(v,y,r,i))}}else if("object"===c){var w="";if("production"!==n.env.NODE_ENV&&(w=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",e._isReactElement&&(w=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),p.current)){var j=p.current.getName();j&&(w+=" Check the render method of `"+j+"`.")}var R=String(e);"production"!==n.env.NODE_ENV?d(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===R?"object with keys {"+Object.keys(e).join(", ")+"}":R,w):d(!1)}}return b}function c(e,t,n){return null==e?0:s(e,"",t,n)}var p=e("./ReactCurrentOwner"),u=e("./ReactElement"),l=e("./getIteratorFn"),d=e("fbjs/lib/invariant"),f=e("fbjs/lib/warning"),h=".",g=":",v={"=":"=0",":":"=2"},y=/[=:]/g,m=!1;t.exports=c}).call(this,e("_process"))},{"./ReactCurrentOwner":19,"./ReactElement":22,"./getIteratorFn":32,_process:11,"fbjs/lib/invariant":4,"fbjs/lib/warning":9}],36:[function(e,t,n){"use strict";t.exports=e("./lib/React")},{"./lib/React":14}],37:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),i=r(o),a=e("react-addons-pure-render-mixin"),s=r(a);n["default"]=i["default"].createClass({displayName:"bar-graph",mixins:[s["default"]],getDefaultProps:function(){return{graphWidth:0,graphHeight:0,maxValue:0,oldMaxValue:0,data:[],oldData:[],percentHeight:0}},render:function(){var e=this;return i["default"].createElement("g",null,this.props.data.map(function(t,n){var r=e.props.data[n].value/e.props.maxValue*e.props.graphHeight;isNaN(r)&&(r=0);var o=e.props.oldData[n].value;o=o?o/e.props.oldMaxValue*e.props.graphHeight:0;var a=r>=o?o+(r-o)*e.props.percentHeight:o-(o-r)*e.props.percentHeight;return 0>a&&(a=0),2>a&&t>0&&(a=2),i["default"].createElement("rect",{width:e.props.graphWidth>0?e.props.graphWidth/e.props.data.length-2:0,height:a,fill:"steelblue",x:n*(e.props.graphWidth/e.props.data.length)+1,y:e.props.graphHeight-a,key:"bar-graph-bar-"+n})}))}}),t.exports=n["default"]},{react:36,"react-addons-pure-render-mixin":12}],38:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),i=r(o),a=e("react-addons-pure-render-mixin"),s=r(a);n["default"]=i["default"].createClass({displayName:"GraphAxes",mixins:[s["default"]],getDefaultProps:function(){return{graphType:"bar",maxValue:0,data:[],leftPadding:35,topPadding:5,rightPadding:5,bottomPadding:20,graphWidth:0,graphHeight:0}},render:function(){var e=this,t=this.props.graphWidth/this.props.data.length;return i["default"].createElement("g",null,i["default"].createElement("line",{x1:this.props.leftPadding,y1:this.props.topPadding,x2:this.props.leftPadding,y2:this.props.graphHeight+this.props.topPadding,stroke:"rgb(0,0,0)",strokeWidth:"1"}),i["default"].createElement("line",{x1:this.props.leftPadding-5,y1:this.props.topPadding,x2:this.props.leftPadding,y2:this.props.topPadding,stroke:"rgb(0,0,0)",strokeWidth:"1"}),i["default"].createElement("line",{x1:this.props.leftPadding-5,y1:this.props.graphHeight+this.props.topPadding,x2:this.props.leftPadding,y2:this.props.graphHeight+this.props.topPadding,stroke:"rgb(0,0,0)",strokeWidth:"1"}),i["default"].createElement("text",{x:this.props.leftPadding-5,y:this.props.graphHeight/2+this.props.topPadding,textAnchor:"middle",transform:"rotate(270 "+(this.props.leftPadding-5)+","+(this.props.graphHeight/2+this.props.topPadding)+")",fill:"black",fontSize:"10px"},"Count"),i["default"].createElement("text",{x:this.props.leftPadding-7,y:this.props.topPadding+3,textAnchor:"end",fill:"black",fontSize:"10px"},this.props.maxValue.toString()),i["default"].createElement("text",{x:this.props.leftPadding-7,y:this.props.graphHeight+this.props.topPadding+3,textAnchor:"end",fill:"black",fontSize:"10px"},"0"),i["default"].createElement("rect",{width:this.props.graphWidth>0?this.props.graphWidth:0,height:this.props.bottomPadding,fill:"rgb(255,255,255)",x:this.props.leftPadding,y:this.props.graphHeight+this.props.topPadding}),i["default"].createElement("line",{x1:this.props.leftPadding,y1:this.props.graphHeight+this.props.topPadding,x2:this.props.graphWidth+this.props.leftPadding,y2:this.props.graphHeight+this.props.topPadding,stroke:"rgb(0,0,0)",strokeWidth:"1"}),this.props.data.map(function(n,r){return i["default"].createElement("line",{x1:r*t+e.props.leftPadding,y1:e.props.graphHeight+e.props.topPadding,x2:r*t+e.props.leftPadding,y2:e.props.graphHeight+e.props.topPadding+(""===n?3:5),stroke:"rgb(0,0,0)",strokeWidth:"1",key:"graph-horizontal-tick-"+r})}),this.props.data.map(function(n,r){return i["default"].createElement("text",{x:"bar"===e.props.graphType?r*t+e.props.leftPadding+t/2:r*t+e.props.leftPadding,y:e.props.graphHeight+e.props.topPadding+15,textAnchor:"middle",fill:"black",fontSize:"10px",key:"graph-horizontal-text-"+r},n.id.toString())}))}}),t.exports=n["default"]},{react:36,"react-addons-pure-render-mixin":12}],39:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=e("react"),a=r(i),s=e("./bar-graph"),c=r(s),p=e("./line-graph"),u=r(p),l=e("./graph-axes"),d=r(l),f=e("react-addons-pure-render-mixin"),h=r(f);n["default"]=a["default"].createClass({displayName:"graph",mixins:[h["default"]],getDefaultProps:function(){return{graphType:"bar",data:[],maxValue:null,width:400,height:200,leftPadding:35,topPadding:5,rightPadding:5,bottomPadding:20}},getInitialState:function(){return{maxValue:this.props.maxValue||Math.max.apply(null,this.props.data.map(function(e){return e.value})),oldMaxValue:this.props.maxValue||Math.max.apply(null,this.props.data.map(function(e){return e.value})),percentHeight:0,oldData:this.props.data,graphWidth:this.props.width-this.props.leftPadding-this.props.rightPadding,graphHeight:this.props.height-this.props.topPadding-this.props.bottomPadding}},componentDidMount:function(){this.timer()},componentWillReceiveProps:function(e){this.isMounted()&&this.setState({maxValue:e.maxValue||Math.max.apply(null,e.data.map(function(e){return e.value})),oldMaxValue:this.state.maxValue,percentHeight:0,graphWidth:this.props.width-this.props.leftPadding-this.props.rightPadding,graphHeight:this.props.height-this.props.topPadding-this.props.bottomPadding},this.timer)},timer:function g(){var e=this,g=setInterval(function(){e.isMounted()?e.state.percentHeight<1?e.setState({percentHeight:parseFloat((e.state.percentHeight+.1).toPrecision(2))}):(clearInterval(g),e.setState({oldData:e.props.data,oldMaxValue:e.props.maxValue||Math.max.apply(null,e.props.data.map(function(e){return e.value}))})):clearInterval(g)},50)},render:function(){return a["default"].createElement("svg",{width:this.props.width,height:this.props.height},a["default"].createElement("g",{transform:"translate("+this.props.leftPadding+","+this.props.topPadding+")"},"bar"===this.props.graphType&&a["default"].createElement(c["default"],o({},this.props,this.state)),"line"===this.props.graphType&&a["default"].createElement(u["default"],o({},this.props,this.state))),a["default"].createElement(d["default"],o({},this.props,this.state)))}}),t.exports=n["default"]},{"./bar-graph":37,"./graph-axes":38,"./line-graph":40,react:36,"react-addons-pure-render-mixin":12}],40:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("react"),i=r(o),a=e("react-addons-pure-render-mixin"),s=r(a);n["default"]=i["default"].createClass({displayName:"line-graph",mixins:[s["default"]],getDefaultProps:function(){return{graphWidth:0,graphHeight:0,maxValue:0,oldMaxValue:0,data:[],oldData:[],percentHeight:0}},render:function(){var e=this,t=this.props.data.map(function(t,n){var r=e.props.data[n].value/e.props.maxValue*e.props.graphHeight;isNaN(r)&&(r=0);var o=e.props.oldData[n].value;o=o?o/e.props.oldMaxValue*e.props.graphHeight:0;var i=r>=o?o+(r-o)*e.props.percentHeight:o-(o-r)*e.props.percentHeight;return 0>i&&(i=0),{x:n*(e.props.graphWidth/e.props.data.length),y:e.props.graphHeight-i}}),n="M0,"+this.props.graphHeight+"L";return t.forEach(function(e){n+=e.x+","+e.y+"L"}),n+=this.props.graphWidth+","+this.props.graphHeight+"Z",i["default"].createElement("path",{className:"",d:n,stroke:"rgb(70,130,180)",strokeWidth:"2",fill:"rgb(70,130,180)",fillOpacity:"0.3"})}}),t.exports=n["default"]},{react:36,"react-addons-pure-render-mixin":12}]},{},[1]);
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports["react-svg-graph"]=e(require("react")):t["react-svg-graph"]=e(t.react)}(this,function(t){return function(t){function e(a){if(r[a])return r[a].exports;var p=r[a]={exports:{},id:a,loaded:!1};return t[a].call(p.exports,p,p.exports,e),p.loaded=!0,p.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports=r(1)},function(t,e,r){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var p=r(2),i=a(p);e["default"]=i["default"]},function(t,e,r){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},i=r(3),s=a(i),o=r(4),n=a(o),d=r(9),h=a(d),l=r(10),u=a(l),g=r(5),f=a(g);e["default"]=s["default"].createClass({displayName:"graph",mixins:[f["default"]],getDefaultProps:function(){return{graphType:"bar",data:[],maxValue:null,width:400,height:200,leftPadding:35,topPadding:5,rightPadding:5,bottomPadding:20,animationRenderInterval:50}},getInitialState:function(){return{maxValue:this.props.maxValue||Math.max.apply(null,this.props.data.map(function(t){return t.value})),oldMaxValue:this.props.maxValue||Math.max.apply(null,this.props.data.map(function(t){return t.value})),percentHeight:0,oldData:this.props.data,graphWidth:this.props.width-this.props.leftPadding-this.props.rightPadding,graphHeight:this.props.height-this.props.topPadding-this.props.bottomPadding}},componentDidMount:function(){this.timer()},componentWillReceiveProps:function(t){this.isMounted()&&this.setState({maxValue:t.maxValue||Math.max.apply(null,t.data.map(function(t){return t.value})),oldMaxValue:this.state.maxValue,percentHeight:0,graphWidth:this.props.width-this.props.leftPadding-this.props.rightPadding,graphHeight:this.props.height-this.props.topPadding-this.props.bottomPadding},this.timer)},timer:function c(){var t=this,c=setInterval(function(){t.isMounted()?t.state.percentHeight<1?t.setState({percentHeight:parseFloat((t.state.percentHeight+.1).toPrecision(2))}):(clearInterval(c),t.setState({oldData:t.props.data,oldMaxValue:t.props.maxValue||Math.max.apply(null,t.props.data.map(function(t){return t.value}))})):clearInterval(c)},this.props.animationRenderInterval||50)},render:function(){return s["default"].createElement("svg",{width:this.props.width,height:this.props.height},s["default"].createElement("g",{transform:"translate("+this.props.leftPadding+","+this.props.topPadding+")"},"bar"===this.props.graphType&&s["default"].createElement(n["default"],p({},this.props,this.state)),"line"===this.props.graphType&&s["default"].createElement(h["default"],p({},this.props,this.state))),s["default"].createElement(u["default"],p({},this.props,this.state)))}})},function(e,r){e.exports=t},function(t,e,r){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var p=r(3),i=a(p),s=r(5),o=a(s);e["default"]=i["default"].createClass({displayName:"bar-graph",mixins:[o["default"]],getDefaultProps:function(){return{graphWidth:0,graphHeight:0,maxValue:0,oldMaxValue:0,data:[],oldData:[],percentHeight:0}},render:function(){var t=this;return i["default"].createElement("g",null,this.props.data.map(function(e,r){var a=t.props.data[r].value/t.props.maxValue*t.props.graphHeight;isNaN(a)&&(a=0);var p=t.props.oldData[r].value;p=p?p/t.props.oldMaxValue*t.props.graphHeight:0;var s=a>=p?p+(a-p)*t.props.percentHeight:p-(p-a)*t.props.percentHeight;return 0>s&&(s=0),2>s&&e>0&&(s=2),i["default"].createElement("rect",{width:t.props.graphWidth>0?t.props.graphWidth/t.props.data.length-2:0,height:s,fill:"steelblue",x:r*(t.props.graphWidth/t.props.data.length)+1,y:t.props.graphHeight-s,key:"bar-graph-bar-"+r})}))}})},function(t,e,r){t.exports=r(6)},function(t,e,r){"use strict";var a=r(7),p={shouldComponentUpdate:function(t,e){return a(this,t,e)}};t.exports=p},function(t,e,r){"use strict";function a(t,e,r){return!p(t.props,e)||!p(t.state,r)}var p=r(8);t.exports=a},function(t,e){"use strict";function r(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function a(t,e){if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var a=Object.keys(t),i=Object.keys(e);if(a.length!==i.length)return!1;for(var s=0;s<a.length;s++)if(!p.call(e,a[s])||!r(t[a[s]],e[a[s]]))return!1;return!0}var p=Object.prototype.hasOwnProperty;t.exports=a},function(t,e,r){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var p=r(3),i=a(p),s=r(5),o=a(s);e["default"]=i["default"].createClass({displayName:"line-graph",mixins:[o["default"]],getDefaultProps:function(){return{graphWidth:0,graphHeight:0,maxValue:0,oldMaxValue:0,data:[],oldData:[],percentHeight:0}},render:function(){var t=this,e=this.props.data.map(function(e,r){var a=t.props.data[r].value/t.props.maxValue*t.props.graphHeight;isNaN(a)&&(a=0);var p=t.props.oldData[r].value;p=p?p/t.props.oldMaxValue*t.props.graphHeight:0;var i=a>=p?p+(a-p)*t.props.percentHeight:p-(p-a)*t.props.percentHeight;return 0>i&&(i=0),{x:r*(t.props.graphWidth/t.props.data.length),y:t.props.graphHeight-i}}),r="M0,"+this.props.graphHeight+"L";return e.forEach(function(t){r+=t.x+","+t.y+"L"}),r+=this.props.graphWidth+","+this.props.graphHeight+"Z",i["default"].createElement("path",{className:"",d:r,stroke:"rgb(70,130,180)",strokeWidth:"2",fill:"rgb(70,130,180)",fillOpacity:"0.3"})}})},function(t,e,r){"use strict";function a(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var p=r(3),i=a(p),s=r(5),o=a(s);e["default"]=i["default"].createClass({displayName:"GraphAxes",mixins:[o["default"]],getDefaultProps:function(){return{graphType:"bar",maxValue:0,data:[],leftPadding:35,topPadding:5,rightPadding:5,bottomPadding:20,graphWidth:0,graphHeight:0}},render:function(){var t=this,e=this.props.graphWidth/this.props.data.length;return i["default"].createElement("g",null,i["default"].createElement("line",{x1:this.props.leftPadding,y1:this.props.topPadding,x2:this.props.leftPadding,y2:this.props.graphHeight+this.props.topPadding,stroke:"rgb(0,0,0)",strokeWidth:"1"}),i["default"].createElement("line",{x1:this.props.leftPadding-5,y1:this.props.topPadding,x2:this.props.leftPadding,y2:this.props.topPadding,stroke:"rgb(0,0,0)",strokeWidth:"1"}),i["default"].createElement("line",{x1:this.props.leftPadding-5,y1:this.props.graphHeight+this.props.topPadding,x2:this.props.leftPadding,y2:this.props.graphHeight+this.props.topPadding,stroke:"rgb(0,0,0)",strokeWidth:"1"}),i["default"].createElement("text",{x:this.props.leftPadding-5,y:this.props.graphHeight/2+this.props.topPadding,textAnchor:"middle",transform:"rotate(270 "+(this.props.leftPadding-5)+","+(this.props.graphHeight/2+this.props.topPadding)+")",fill:"black",fontSize:"10px"},"Count"),i["default"].createElement("text",{x:this.props.leftPadding-7,y:this.props.topPadding+3,textAnchor:"end",fill:"black",fontSize:"10px"},this.props.maxValue.toString()),i["default"].createElement("text",{x:this.props.leftPadding-7,y:this.props.graphHeight+this.props.topPadding+3,textAnchor:"end",fill:"black",fontSize:"10px"},"0"),i["default"].createElement("rect",{width:this.props.graphWidth>0?this.props.graphWidth:0,height:this.props.bottomPadding,fill:"rgb(255,255,255)",x:this.props.leftPadding,y:this.props.graphHeight+this.props.topPadding}),i["default"].createElement("line",{x1:this.props.leftPadding,y1:this.props.graphHeight+this.props.topPadding,x2:this.props.graphWidth+this.props.leftPadding,y2:this.props.graphHeight+this.props.topPadding,stroke:"rgb(0,0,0)",strokeWidth:"1"}),this.props.data.map(function(r,a){return i["default"].createElement("line",{x1:a*e+t.props.leftPadding,y1:t.props.graphHeight+t.props.topPadding,x2:a*e+t.props.leftPadding,y2:t.props.graphHeight+t.props.topPadding+(""===r?3:5),stroke:"rgb(0,0,0)",strokeWidth:"1",key:"graph-horizontal-tick-"+a})}),this.props.data.map(function(r,a){return i["default"].createElement("text",{x:"bar"===t.props.graphType?a*e+t.props.leftPadding+e/2:a*e+t.props.leftPadding,y:t.props.graphHeight+t.props.topPadding+15,textAnchor:"middle",fill:"black",fontSize:"10px",key:"graph-horizontal-text-"+a},r.id.toString())}))}})}])});

@@ -1,26 +0,70 @@

var babelify = require('babelify');
var browserify = require('browserify');
var gulp = require('gulp');
var streamify = require('gulp-streamify');
var uglify = require('gulp-uglify');
var source = require('vinyl-source-stream');
var webpack = require('webpack');
var path = require('path');
gulp.task('build', function () {
return browserify('index.js')
.transform(babelify)
.bundle()
.pipe(source('react-svg-graph.js'))
.pipe(streamify(uglify()))
.pipe(gulp.dest('dist'));
gulp.task('build', function (callback) {
webpack({
context: path.resolve(__dirname, './'),
entry: ['./index'],
output: {
path: path.resolve(__dirname, './dist'),
filename: 'react-svg-graph.js',
library: 'react-svg-graph',
libraryTarget: 'umd'
},
module: {
loaders: [
{
loader: 'babel-loader',
include: path.resolve(__dirname, './'),
exclude: path.resolve(__dirname, './node_modules'),
query: { presets: ['react', 'es2015'] }
}
]
},
resolve: {
root: path.resolve(__dirname, './')
},
plugins: [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin()
],
externals: ['react']
}, (err, stats) => {
if (err) {
throw new Error('webpack: ' + (err.message || err));
}
callback();
});
});
gulp.task('example', function () {
return browserify('app.js')
.transform(babelify)
.bundle()
.pipe(source('bundle.js'))
.pipe(streamify(uglify()))
.pipe(gulp.dest('./'));
gulp.task('example', function (callback) {
webpack({
context: path.resolve(__dirname, './'),
entry: ['./app'],
output: {
path: path.resolve(__dirname, './'),
filename: 'bundle.js'
},
module: {
loaders: [
{
loader: 'babel-loader',
include: path.resolve(__dirname, './'),
exclude: path.resolve(__dirname, './node_modules'),
query: { presets: ['react', 'es2015'] }
}
]
},
resolve: {
root: path.resolve(__dirname, './')
}
}, (err, stats) => {
if (err) {
throw new Error('webpack: ' + (err.message || err));
}
callback();
});
});
gulp.task('default', ['build', 'example']);
{
"name": "react-svg-graph-bradchristensen",
"version": "1.1.1",
"version": "1.2.0",
"description": "An SVG-based graph component for React",

@@ -9,12 +9,11 @@ "main": "dist/react-svg-graph.js",

"devDependencies": {
"babelify": "^6.2.0",
"browserify": "^11.0.1",
"browserify-shim": "^3.8.10",
"babel-core": "^6.7.6",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"gulp": "^3.9.0",
"gulp-streamify": "^1.0.0",
"gulp-uglify": "^1.4.0",
"react": "^15.0.1",
"react-addons-pure-render-mixin": "^15.0.1",
"react-dom": "^15.0.1",
"vinyl-source-stream": "^1.1.0"
"webpack": "^1.13.0"
},

@@ -21,0 +20,0 @@ "peerDependencies": {

@@ -19,3 +19,4 @@ import React from 'react';

rightPadding: 5,
bottomPadding: 20
bottomPadding: 20,
animationRenderInterval: 50
};

@@ -63,3 +64,3 @@ },

}
}, 50);
}, this.props.animationRenderInterval || 50);
},

@@ -66,0 +67,0 @@ render () {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc