From a0f54b4871708f163131f3642b1d41503ecccdc9 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Wed, 6 Mar 2019 11:56:46 -0500 Subject: [PATCH] Add menu (#631) * add menu * Added library versions to config and tests * add template version number --- client/src/components/graph/graph.js | 67 ++++++++++++++++++++++++++-- server/app/rest_api/rest.py | 5 +++ server/test/test_api.py | 1 + 3 files changed, 69 insertions(+), 4 deletions(-) diff --git a/client/src/components/graph/graph.js b/client/src/components/graph/graph.js index b71e8469..33f5dca7 100644 --- a/client/src/components/graph/graph.js +++ b/client/src/components/graph/graph.js @@ -5,7 +5,15 @@ import * as d3 from "d3"; import { connect } from "react-redux"; import mat4 from "gl-mat4"; import _regl from "regl"; -import { Button, AnchorButton, Tooltip } from "@blueprintjs/core"; +import { + Button, + AnchorButton, + Tooltip, + Popover, + Menu, + MenuItem, + Position +} from "@blueprintjs/core"; import * as globals from "../../globals"; import setupSVGandBrushElements from "./setupSVGandBrush"; @@ -32,7 +40,8 @@ import { World } from "../../util/stateManager"; scatterplotXXaccessor: state.controls.scatterplotXXaccessor, scatterplotYYaccessor: state.controls.scatterplotYYaccessor, celllist1: state.differential.celllist1, - celllist2: state.differential.celllist2 + celllist2: state.differential.celllist2, + library_versions: _.get(state.config, "library_versions", null) })) class Graph extends React.Component { constructor(props) { @@ -415,9 +424,9 @@ class Graph extends React.Component { dispatch, responsive, crossfilter, - resettingInterface + resettingInterface, + library_versions } = this.props; - const { mode } = this.state; return (
@@ -505,6 +514,56 @@ class Graph extends React.Component {
+
+ + + + + + + + + } + position={Position.BOTTOM_RIGHT} + > +