From cc465329a2261b7db11c12665cab62affb266592 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 10 Jul 2020 21:29:14 +0200 Subject: start with the mouseenter, and the export ;) --- frontend/views/graph/components/graph.editor.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'frontend/views/graph/components/graph.editor.js') diff --git a/frontend/views/graph/components/graph.editor.js b/frontend/views/graph/components/graph.editor.js index 99c5665..a5c7c45 100644 --- a/frontend/views/graph/components/graph.editor.js +++ b/frontend/views/graph/components/graph.editor.js @@ -38,6 +38,8 @@ class GraphEditor extends Component { this.handleMouseMove = this.handleMouseMove.bind(this) this.handleMouseUp = this.handleMouseUp.bind(this) this.handleWindowResize = this.handleWindowResize.bind(this) + this.handleMouseEnter = this.handleMouseEnter.bind(this) + this.handleMouseLeave = this.handleMouseLeave.bind(this) this.graphRef = React.createRef() this.measurements = {} } @@ -158,6 +160,11 @@ class GraphEditor extends Component { actions.page.update(updatedPage) } + handleMouseEnter(e, page) { + } + handleMouseLeave(e, page) { + } + render(){ // console.log(this.props.graph.show.res) const { page: currentPage, box, measurements } = this.state @@ -180,6 +187,8 @@ class GraphEditor extends Component { bounds={this.state.bounds} box={currentPage && page.id === currentPage.id && box} onMouseDown={e => this.handleMouseDown(e, page)} + onMouseEnter={e => this.handleMouseEnter(e, page)} + onMouseLeave={e => this.handleMouseLeave(e, page)} onMeasure={measurement => this.addMeasurement(measurement)} /> ))} -- cgit v1.2.3-70-g09d2