dist/pixi-graph.umd.js
/**
       * Handles keypress events and set the keyIsPressed boolean accordingly
       * @param {array} codes - key codes that can be used to trigger drag event
       */
Handles keypress events and set the keyIsPressed boolean accordingly
@param {array} codes - key codes that can be used to trigger drag event
Handles keypress events and set the keyIsPressed boolean accordingly @param { array } codes - key codes that can be used to trigger drag event
handleKeyPresses(codes) {
          window.addEventListener('keydown', e => {
              if (codes.includes(e.code))
                  this.keyIsPressed = true;
          });
          window.addEventListener('keyup', e => {
              if (codes.includes(e.code))
                  this.keyIsPressed = false;
          });
      }
handleKeyPresses ( codes ) { window . addEventListener ( 'keydown' , e => { if ( codes . includes ( e . code ) ) this . keyIsPressed = true ; } ) ; window . addEventListener ( 'keyup' , e => { if ( codes . includes ( e . code ) ) this . keyIsPressed = false ; } ) ; }
Handles keypress events and set the keyIsPressed boolean accordingly
 @param {array} codes - key codes that can be used to trigger drag event
Handles keypress events and set the keyIsPressed boolean accordingly @param { array } codes - key codes that can be used to trigger drag event