Skip to content
Snippets Groups Projects
Commit e690cc3f authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Removes commented code

parent 46479be2
No related branches found
No related tags found
1 merge request!2Implemented editor in the react framework
Pipeline #56892 passed
......@@ -102,24 +102,6 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
return false;
}
// .onNodeDragEnd((node: any, translate: any) =>
// Editor.globalState.onNodeDragEnd(node, translate)
// )
// .linkWidth((link: any) => Editor.globalState.linkWidth(link))
// .linkDirectionalParticles(
// Editor.globalState.linkDirectionalParticles()
// )
// .linkDirectionalParticleWidth((link: any) =>
// Editor.globalState.linkDirectionalParticleWidth(link)
// )
// .onBackgroundClick((event: any) =>
// Editor.globalState.onBackgroundClick(
// event,
// this.extractPositions(event)
// )
// )
// .onLinkClick((link: any) => Editor.globalState.onLinkClick(link));
// Set as new state
console.log(newGraph);
this.setState({
......@@ -338,12 +320,6 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
ctx.lineWidth = lineWidth;
ctx.stroke();
// Only render strokes on last link
// var lastLink = graph.data[Graph.GRAPH_LINKS][graph.data[Graph.GRAPH_LINKS].length - 1];
// if (link === lastLink) {
// ctx.stroke();
// }
return undefined;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment