mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-22 00:08:11 +08:00
smaller graph, mouse events on fixed
This commit is contained in:
@@ -203,9 +203,7 @@ class Graph extends React.Component {
|
||||
return (
|
||||
<div
|
||||
id="graphWrapper"
|
||||
style={{
|
||||
height: 1050 /* move this to globals */
|
||||
}}
|
||||
|
||||
>
|
||||
<div style={{ position: "fixed", right: 0, top: 0 }}>
|
||||
<div
|
||||
@@ -292,7 +290,7 @@ class Graph extends React.Component {
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
style={{ position: "fixed", right: 80, bottom: 50, zIndex: -9999 }}
|
||||
style={{marginRight: 50, marginTop: 50, zIndex: -9999 }}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
|
||||
+2
-2
@@ -69,8 +69,8 @@ export const maxControlsWidth = 800;
|
||||
export const graphMargin = { top: 20, right: 10, bottom: 30, left: 40 };
|
||||
// export const graphWidth = 1440 /* window width */ - 410 /* sidebar */ - (15 + 15) /* left right padding */ /* but responsive */;
|
||||
// export const graphHeight = 500;
|
||||
export const graphWidth = 960;
|
||||
export const graphHeight = 960;
|
||||
export const graphWidth = 700;
|
||||
export const graphHeight = 700;
|
||||
|
||||
import { scaleLinear } from "./util/scaleLinear";
|
||||
// d3.scaleLinear().domain([0,1]).range([0 + graphMargin.left, graphWidth - graphMargin.right])
|
||||
|
||||
Reference in New Issue
Block a user