nodal
Fabien Benetou 2 years ago
parent 4e1b7dfdd9
commit 3edd5c6117
  1. 4
      index.html

@ -3271,13 +3271,15 @@ AFRAME.registerComponent('startfunctions', {
let ed1 = addCodeEditor( 'nodalValue*nodalValue', 'javascript', '-.3 1.6 -.5') let ed1 = addCodeEditor( 'nodalValue*nodalValue', 'javascript', '-.3 1.6 -.5')
addConnectorsToCodeEditor( ed1 ) addConnectorsToCodeEditor( ed1 )
let ed2 = addCodeEditor( 'addNewNote("nodalValue: "+nodalValue)', 'javascript', '.2 1.4 -.5') let ed2 = addCodeEditor( 'addNewNote("nodalValue: "+nodalValue)', 'javascript', '.2 1.4 -.5')
// no error but doesn't get triggered
addConnectorsToCodeEditor( ed2, true, false ) addConnectorsToCodeEditor( ed2, true, false )
setTimeout( _ => { setTimeout( _ => {
console.clear() //console.clear()
//console.log( connectionsBetweenEditors( editors[0], editors[2] ) ) //console.log( connectionsBetweenEditors( editors[0], editors[2] ) )
//console.log( numberOfPredecessors( g ), numberOfSuccessors( g ) ) //console.log( numberOfPredecessors( g ), numberOfSuccessors( g ) )
generateGraphThenRun() generateGraphThenRun()
} , 1000 ) } , 1000 )
editors.map( ed => { ed.element.addEventListener('released', e => { console.log('regen'); generateGraphThenRun() } ) } )
// should be done after each codeEditors gets connectors added then on editor moves // should be done after each codeEditors gets connectors added then on editor moves
}, false); }, false);
//startExperience() //startExperience()

Loading…
Cancel
Save