index.vwf.html 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script type="text/javascript">
  5. vwf_view.satProperty = function (nodeID, propertyName, propertyValue) {
  6. if (propertyValue === undefined || propertyValue == null) {
  7. return;
  8. }
  9. let props = ["angle", "iteration", "stepLength", "rule", "axiomF", "axiomG"]
  10. let readyForDraw = vwf.getProperty(nodeID, 'readyForDraw');
  11. if (props.includes(propertyName)) {
  12. if (readyForDraw) {
  13. vwf_view.kernel.callMethod(nodeID, "makeLSys");
  14. }
  15. //console.log(propertyName +' - '+ propertyValue);
  16. }
  17. // switch ( propertyName ) {
  18. // case "iteration":
  19. // vwf_view.kernel.callMethod(nodeID, "makeLSys");
  20. // console.log("here!!")
  21. // break;
  22. // default:
  23. // break;
  24. // }
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. </body>
  30. </html>