* fix(ts): use strict mode strictNullChecks etc

* chore: Use extended React.HTMLAttributes<> (#41)

* refactor(code-format): add prettier closes #42

* feat(renderer): add snap to grid option closes #20

* chore(dependabot): use develop as target branch
This commit is contained in:
Moritz
2019-10-21 20:58:28 +02:00
committed by GitHub
parent ce210eb5dc
commit a793f8c2ff
80 changed files with 2634 additions and 1247 deletions
+6 -4
View File
@@ -14,7 +14,7 @@ class App extends PureComponent {
const onChange = (option, d) => {
this.setState(prevState => (
{elements: prevState.elements.map(e => {
if (isEdge(e) || e.id !== '6') {
if (isEdge(e) || e.id !== '6') {
return e;
}
@@ -32,7 +32,7 @@ class App extends PureComponent {
const onChangeInput = (input, d) => {
this.setState(prevState => (
{elements: prevState.elements.map(e => {
if (isEdge(e) || e.id !== '8') {
if (isEdge(e) || e.id !== '8') {
return e;
}
@@ -41,7 +41,7 @@ class App extends PureComponent {
...e,
data: {
...e.data,
input: input || 'write something'
input: input || 'write something'
}
};
} else {
@@ -145,6 +145,8 @@ class App extends PureComponent {
connectionLineType="bezier"
backgroundColor="#888"
backgroundGap={16}
snapToGrid={true}
snapGrid={[16, 16]}
>
<MiniMap
style={{ position: 'absolute', right: 10, bottom: 10 }}
@@ -169,4 +171,4 @@ class App extends PureComponent {
}
}
export default App;
export default App;