feat(props): add mouse event to onNodeDragStart, onNodeDragStop, onElementClick, and onPaneClick

This commit is contained in:
Nate Amack
2020-08-04 12:05:03 -06:00
parent 0f79c3d978
commit 97ec24fa14
15 changed files with 51 additions and 48 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import Sidebar from './Sidebar';
import './provider.css';
const onElementClick = (element) => console.log('click', element);
const onElementClick = (evt, element) => console.log('click', element);
const initialElements = [
{ id: '1', type: 'input', data: { label: 'Node 1' }, position: { x: 250, y: 5 } },