Skip to content

version 2.5.0

Compare
Choose a tag to compare
@hvianna hvianna released this 07 Oct 19:10
· 434 commits to master since this release

What's new:

Improvements:

  • Behavior of the onCanvasResize callback is now consistent across different browsers. Changes worth of note:
    1. on fullscreen changes, only a 'fschange' reason will be reported to the callback function - no more redundant 'resize' calls;
    2. the callback function is now executed only when canvas dimensions effectively change from the previous state - for example,
      setting loRes or width to the same value they already have won't trigger a callback;
  • Canvas dimensions are now properly updated whenever the container element is resized, not only on window resize;
  • audioSource now returns the first audio source connected via connectAudio() method, if no source was provided during instantiation;
  • Size of scale labels on both axes is now scaled relatively to the canvas height;
  • Added a new demo with only the minimal code required to use audioMotion-analyzer;
  • Demo scripts are now loaded as native ES6 modules and no longer require bundling. See the README file for instructions on running the demos locally.