refactor(hooks): create used3zoom hook

This commit is contained in:
moklick
2019-08-19 13:50:24 +02:00
parent 0bb555bf17
commit aac214ad5b
10 changed files with 41902 additions and 41893 deletions
-8
View File
@@ -97,13 +97,6 @@ class App extends PureComponent {
});
}
onChange(elements) {
if (!this.graphInstance) {
return false;
}
// console.log('graph changed', elements);
}
onFitView() {
this.graphInstance.fitView();
}
@@ -155,7 +148,6 @@ class App extends PureComponent {
onNodeDragStop={onNodeDragStop}
style={{ width: '100%', height: '100%' }}
onLoad={graphInstance => this.onLoad(graphInstance)}
onChange={(elements) => this.onChange(elements)}
nodeTypes={{
special: SpecialNode,
text: InputNode
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -212,7 +212,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "56024" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "65263" + '/');
ws.onmessage = function (event) {
checkedAssets = {};