Skip to content

Releases: scottpdo/martinjs

0.4.2

14 Jan 22:23
Compare
Choose a tag to compare

New effect: .sharpen(). Now you can blur and sharpen!

0.4.1

11 Jan 19:48
Compare
Choose a tag to compare

Fix layer dimension issues — instantiating from an image, needs to be resized, and relatively positioned elements (with x/y percentage values) reposition on layer resize.

0.4.0

11 Jan 05:47
Compare
Choose a tag to compare

CRITICAL FIX. Initializing Martin from images that are not in the browser's cache now properly sets layer dimensions.

0.3.3

21 Aug 18:46
Compare
Choose a tag to compare

Fix to .loop() method — y param now actually represents the y coordinate. Was incorrectly representing y coordinate previous to this version.

Make sure to test on images/canvases of varying dimensions!

0.3.2

20 Aug 14:11
Compare
Choose a tag to compare

EventCallback now clones the original MouseEvent in order to set x and y coordinates (rather than attempting to modify the original MouseEvent, which was a silly idea).

0.3.1

20 Aug 01:36
Compare
Choose a tag to compare

Event object in callback function for event handlers is normalized: x and y keys corresponding to the mouse's coordinates over the working canvas.

Also include JS sourcemaps in output.

0.3.0

18 Aug 01:18
Compare
Choose a tag to compare

Major internal restructuring === more API flexibility.

Shared methods across Layers, Elements, and Effects, as these all now inherit from the abstract class Martin.Object. Elements can now be called from the working canvas or a Layer. Effects may be called from the working canvas, a Layer, or an Element.

All core Elements and Effects are now called within the library using Martin.registerElement and Martin.registerEffect, respectively.

New core Effect: .invert().

0.2.7

12 Aug 20:11
Compare
Choose a tag to compare

Small but critical fix to Layer.loop().

There must be image data present (i.e. all images loaded) before attempting to draw that image data to the working canvas.

0.2.6

20 Jul 17:49
Compare
Choose a tag to compare

Register new Effects with Martin.registerEffect()

  • remove effects
  • update elements

0.2.5

06 Jul 00:36
Compare
Choose a tag to compare

Now instantiate with (optional) options. So far only autorender: false, to turn off automatic rendering (greatly improves performance when animating multiple elements or effects).