diff --git a/backend/webserver/static/app/bundle.js b/backend/webserver/static/app/bundle.js index 03b9d7c..937db71 100644 --- a/backend/webserver/static/app/bundle.js +++ b/backend/webserver/static/app/bundle.js @@ -40900,9 +40900,6 @@ webpackJsonp([1],[ key: 'render', value: function render() { - console.log('================== DAG Panel *********************************************************************'); - console.log(this.props); - var cardStyle = { height: this.getHeight(), zIndex: '1200', @@ -40967,12 +40964,6 @@ webpackJsonp([1],[ { style: actionStyle }, - _react2.default.createElement(_Toggle2.default, { - label: 'Show Neurons', - labelPosition: 'right', - style: { maxWidth: 180 }, - onToggle: this.handleToggle - }), _react2.default.createElement(_RaisedButton2.default, { icon: this.state.isMax ? _react2.default.createElement(_fullscreenExit2.default, null) : _react2.default.createElement(_fullscreen2.default, null), onClick: this.toggleWindow @@ -40986,12 +40977,6 @@ webpackJsonp([1],[ ) ); } - - // componentDidUpdate(prevProps, prevState) { - // this.setState({filterDag: null}) - // } - - }]); return SubTreePanel; }(_react.Component); @@ -43640,7 +43625,7 @@ webpackJsonp([1],[ do sumValue=nodes[i1++].value;while(!sumValue&&i1maxValue)maxValue=nodeValue;beta=sumValue*sumValue*alpha;newRatio=Math.max(maxValue/beta,beta/minValue);if(newRatio>minRatio){sumValue-=nodeValue;break;}minRatio=newRatio;}// Position and record the row orientation. rows.push(row={value:sumValue,dice:dx1?x:1);};return squarify;}(phi);var index$1=function(){var tile=squarify,round=false,dx=1,dy=1,paddingStack=[0],paddingInner=constantZero,paddingTop=constantZero,paddingRight=constantZero,paddingBottom=constantZero,paddingLeft=constantZero;function treemap(root){root.x0=root.y0=0;root.x1=dx;root.y1=dy;root.eachBefore(positionNode);paddingStack=[0];if(round)root.eachBefore(roundNode);return root;}function positionNode(node){var p=paddingStack[node.depth],x0=node.x0+p,y0=node.y0+p,x1=node.x1-p,y1=node.y1-p;if(x1=j-1){var node=nodes[i];node.x0=x0,node.y0=y0;node.x1=x1,node.y1=y1;return;}var valueOffset=sums[i],valueTarget=value/2+valueOffset,k=i+1,hi=j-1;while(k>>1;if(sums[mid]y1-y0){var xk=(x0*valueRight+x1*valueLeft)/value;partition(i,k,valueLeft,x0,y0,xk,y1);partition(k,j,valueRight,xk,y0,x1,y1);}else{var yk=(y0*valueRight+y1*valueLeft)/value;partition(i,k,valueLeft,x0,y0,x1,yk);partition(k,j,valueRight,x0,yk,x1,y1);}}};var sliceDice=function(parent,x0,y0,x1,y1){(parent.depth&1?treemapSlice:treemapDice)(parent,x0,y0,x1,y1);};var resquarify=function custom(ratio){function resquarify(parent,x0,y0,x1,y1){if((rows=parent._squarify)&&rows.ratio===ratio){var rows,row,nodes,i,j=-1,n,m=rows.length,value=parent.value;while(++j1?x:1);};return resquarify;}(phi);exports.cluster=cluster;exports.hierarchy=hierarchy;exports.pack=index;exports.packSiblings=siblings;exports.packEnclose=enclose;exports.partition=partition;exports.stratify=stratify;exports.tree=tree;exports.treemap=index$1;exports.treemapBinary=binary;exports.treemapDice=treemapDice;exports.treemapSlice=treemapSlice;exports.treemapSliceDice=sliceDice;exports.treemapSquarify=squarify;exports.treemapResquarify=resquarify;Object.defineProperty(exports,'__esModule',{value:true});});/***/},/* 39 *//***/function(module,exports,__webpack_require__){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i=maxCharLength){if(words.length>i){line2=line2+'...';}break;}}return[_react2.default.createElement('text',{key:String(Math.random()),dy:_this.getY(),x:_this.getX(),style:_this.getStyle()},line1),_react2.default.createElement('text',{key:String(Math.random()),dy:_this.getY()+_this.props.labelFontSize*1.2,x:_this.getX(),style:_this.getStyle()},line2)];};_this.getStyle=function(){return{textAnchor:_this.getAnchor(),fill:_this.props.labelColor,fontFamily:"SansSerif",fontSize:_this.props.labelFontSize,fontWeight:700};};_this.getAnchor=function(){// Special case: Root - if(_this.props.isRoot){return'middle';}return _this.props.isLeaf?'end':'start';};_this.state={showTooltip:false,selected:false};return _this;}_createClass(Node,[{key:'render',value:function render(){var textElement=this.getTextElement(this.props.data);var style=Object.assign({},this.props.shapeStyle);if(this.state.selected){style.fill='red';style.stroke="orange";style.strokeWidth="10";}else{style.fill=this.props.shapeStyle.fill;}var shapeName=this.props.shapeName;if(this.state.selected){shapeName='neuron';}return _react2.default.createElement('g',{className:this.props.nodeType,transform:this.getTransform(this.props.position),onClick:this.onClick},_react2.default.createElement(_Shape2.default,{size:this.props.nodeSize,position:this.props.position,style:style,shapeName:shapeName,data:this.props.data}),textElement);}}]);return Node;}(_react.Component);Node.propTypes={id:_react.PropTypes.string.isRequired,data:_react.PropTypes.object,isLeaf:_react.PropTypes.bool,isRoot:_react.PropTypes.bool,labelKey:_react.PropTypes.string,nodeType:_react.PropTypes.string,position:_react.PropTypes.object,nodeSize:_react.PropTypes.number,eventHandlers:_react.PropTypes.object,showLabel:_react.PropTypes.bool,areaWidth:_react.PropTypes.number,areaHeight:_react.PropTypes.number,labelFontSize:_react.PropTypes.number,labelColor:_react.PropTypes.string};Node.defaultProps={nodeType:'node',isLeaf:false,isRoot:false,labelKey:'name',nodeSize:10,position:{x:0,y:0},eventHandlers:DEF_EVENT_HANDLERS,showLabel:true,labelFontSize:11,labelColor:'#333333'};exports.default=Node;/***/},/* 41 *//***/function(module,exports,__webpack_require__){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.NEURON=exports.CIRCLE=undefined;var _createClass=function(){function defineProperties(target,props){for(var i=0;i> Subtree rendering") - console.log(subnet) - return (
diff --git a/frontend/client/components/SubTreePanel/index.jsx b/frontend/client/components/SubTreePanel/index.jsx index 1552514..8bb0094 100644 --- a/frontend/client/components/SubTreePanel/index.jsx +++ b/frontend/client/components/SubTreePanel/index.jsx @@ -57,9 +57,6 @@ class SubTreePanel extends Component { render() { - console.log('================== DAG Panel *********************************************************************') - console.log(this.props) - const cardStyle = { height: this.getHeight(), zIndex: '1200', @@ -122,12 +119,6 @@ class SubTreePanel extends Component { - : } onClick={this.toggleWindow} @@ -159,10 +150,6 @@ class SubTreePanel extends Component { this.props.uiStateActions.showResult(false) } - // componentDidUpdate(prevProps, prevState) { - // this.setState({filterDag: null}) - // } - getMainContents = (result, running) => { diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index 6bdfe26..9be4a5e 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -21,7 +21,7 @@ module.exports = { filename: 'bundle.js', }, devtool: 'inline-source-map', - + module: { loaders: [ {