Releases: scottpdo/martinjs
Releases · scottpdo/martinjs
0.4.2
New effect: .sharpen()
. Now you can blur and sharpen!
0.4.1
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
CRITICAL FIX. Initializing Martin from images that are not in the browser's cache now properly sets layer dimensions.
0.3.3
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
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
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
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
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
Register new Effects
with Martin.registerEffect()
- remove effects
- update elements
0.2.5
Now instantiate with (optional) options. So far only autorender: false
, to turn off automatic rendering (greatly improves performance when animating multiple elements or effects).