Skip to content

Eighth Update

Compare
Choose a tag to compare
@clabe45 clabe45 released this 12 Apr 03:47
· 366 commits to master since this release

0.8.0 - 2021-04-11

Added

  • Type declarations.
  • duration option for Movie#record, to only record a subsection of the movie.
  • 'movie.recordended' event. This does not affect the behavior of 'movie.ended'.
  • Grayscale effect.
  • vd.event.unsubscribe to remove event listeners.
  • Image and video layers' destX, destY, destWidth and destHeight.
    • Previously imageX, imageY, imageWidth, imageHeight, ...
    • Allows for rotating these layers without cropping out parts.

Changed

  • All constructor arguments are now supplied through an options object.
  • Now Movie#record also accepts its arguments through an options object.
  • Keyframes are now entered as new vd.KeyFrame([time1, val1, interp], [time2, val2])
  • Rename clip* to source* for image layers.
    • clipX is now sourceX, etc.
  • Rename image to source for image layers.
  • Rename source to audioNode and media to source for audio and video layers.
    • And mediaStartTime to sourceStartTime
  • For image and video layers, width now defaults to destWidth, which defaults to sourceWidth, which defaults to the width of the image or video.
  • The movie.audiodestinationupdate event is now published on the movie instead of each layer.
  • The movie's audioContext option is now actx (to match the property).

Deprecated

  • vd.mapPixels - use vd.effect.Shader instead, because it supports
    hardware-acceleration
  • audioContext option for Movie - use actx instead.

Removed

  • Video files for examples (can now be downloaded with npm run assets).

Fixed

  • Browsers that do not implement AudioContext are now supported.
  • Movie not rendering with no layers.
  • Issues with modifying Movie#layers and Movie#effects.
  • Layers no longer error on 'movie.seek' event.
  • Property filters' this is now set to the owner of the property.
  • Visual layers' width and height property filters now default to the movie's width and height.
  • Visual layers' border property not being processed correctly.
  • Effects' and layers' attach() and detach() methods not being called when replaced by another effect or layer.