Skip to content

Commit

Permalink
[editor] Bring in (now generic) tools from chip-editor
Browse files Browse the repository at this point in the history
Addresses #2
  • Loading branch information
Izhaki committed Jan 21, 2020
1 parent 030887f commit fc0c729
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/editor/chip-editor/chip-editor.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React from 'react';
import { graph } from '@regraph/graph';
import { editor, connectGraph } from '@regraph/editor';
import { editor, connectGraph, multiTool } from '@regraph/editor';
import { Line } from '@regraph/connections';
import Chip from '@regraph/nodes/html/Chip';
import multiTool from './tools/multiTool';
import { fader, lfo, filter } from './chips';
import { targetifyNode, targetifyConnection } from './targetify';
import Actions from './components/actions/Actions';
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as editor } from './editor';
export { default as connectGraph } from './connects/graph';
export { default as connectDeleteAction } from './connects/deleteAction';
export * from './tools';
File renamed without changes.
3 changes: 3 additions & 0 deletions packages/editor/src/tools/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export {default as multiTool} from './multiTool'
export {default as connectionTool} from './connectionTool'
export {default as selectionTool} from './selectionTool'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { select, deselect } from '@regraph/editor/actions';
import { select, deselect } from '../actions';

const isEmpty = collection => collection.length === 0;

Expand Down

0 comments on commit fc0c729

Please sign in to comment.