Permalink
Switch branches/tags
Nothing to show
Commits on Mar 17, 2012
  1. Fix issue #30, wrong touch calculations when scrolled.

    koggdal committed Mar 17, 2012
    When the page is scrolled, wrong coordinates were calculated for
    touch events. Only mouse had been fixed before.
Commits on Feb 21, 2012
  1. Updated year and version number

    koggdal committed Feb 21, 2012
Commits on Feb 20, 2012
  1. Add support for multiple animations at the same time for one object.

    koggdal committed Feb 20, 2012
    Add another parameter to the animate() method, newQueue (boolean)
    to let the engine create a new queue for it and run it
    simultaneously as any other animation on the same object.
Commits on Feb 19, 2012
  1. Fix bug in finish() method in animations.

    koggdal committed Feb 19, 2012
    The finish() method was not working as expected.
  2. Fix typo in getKeysDown().

    koggdal committed Feb 19, 2012
  3. Fix cancel methods for pointer events.

    koggdal committed Feb 19, 2012
    The cancel methods for mouse and touch were not updated for the
    new event system and didn't have any effect at all.
  4. Fix bug regarding pointer position.

    koggdal committed Feb 19, 2012
    When the pointer is moved outside the canvas, the position was set
    to new coordinates. This was really noticable when the canvas was
    in an iframe, and the pointer was moved out of the canvas and the
    iframe at the same time. The position is no longer set when the
    pointer is moved out of the canvas.
  5. Fix bug in text initialization.

    koggdal committed Feb 19, 2012
    When the font is being initialized (for web fonts), a dummy span
    element is added to the DOM. This was done too much, which caused
    the DOM to be spammed with elements in some cases.
Commits on Feb 17, 2012
  1. Updated version to 2.0.0, following the rules of semantic versioning.

    koggdal committed Feb 17, 2012
    Since the new event system changes how events work and will break
    apps written for the old system, a new major version is needed
    according to the semantic versioning: http://semver.org/
Commits on Feb 15, 2012
  1. Add property pointerEvents for display objects. Fix issue #28.

    koggdal committed Feb 15, 2012
    This property works a bit like the CSS property pointer-events. If
    set to false, no events will be triggered for the object, and all
    events will be passed through to the next object in the stack for
    the current pointer position.
Commits on Feb 13, 2012
  1. Changed domReady method.

    koggdal committed Feb 13, 2012
    Updated the domReady method to be better.
    This also fixes issue #26.
Commits on Feb 10, 2012
  1. Another rewrite of the event system.

    koggdal committed Feb 7, 2012
    I realized the event system was still not behaving as one
    would like, so I updated it to be even better. A flowchart
    was created to set the flow right and the code now follows
    that. This will make event propagation work, as well
    as the stopPropagation method to stop the events from
    bubbling up further up the parent chain.
Commits on Jan 26, 2012
  1. Fix wrong method name that was left from the old event system.

    koggdal committed Jan 26, 2012
    The internal trigger method was earlier called just trigger, but
    with the new event system introduced in 265f58e the method was
    renamed to triggerHandlers. I just forgot to change the name in
    the trigger method in core.js.
Commits on Jan 22, 2012
  1. Major rewrite of the event system.

    koggdal committed Jan 22, 2012
    A bug regarding missing leave/enter events made me rethink how the
    event model worked and led to a major rewrite of the whole event
    system. It should now be easier to follow and be more stable.
    
    Double tapping was also added to the touch module, with the event
    name dbltap. The tap interval has a default of 500 ms, but can be
    changed at runtime.
Commits on Jan 13, 2012
  1. Fix bug in mouse events for lines.

    koggdal committed Jan 13, 2012
    The fix in commit 3e07f4f made
    it work for lines angled in a specific way, but broke when angled
    the opposite way.
Commits on Jan 12, 2012
  1. Remove layerX/layerY in event objects

    koggdal committed Jan 12, 2012
    The properties layerX and layerY in event objects are removed
    since they are deprecated and will generate warnings in some browsers.
  2. Fix pointer calculations for lines and arcs.

    koggdal committed Jan 12, 2012
    The calculations for lines in isPointerInside /
    transformPointerPosition were not correct when the object
    didn't have default origin. The change was in
    transformPointerPosition, which affected calculations for arcs in
    isPointerInside, which is why that was fixed as well.
Commits on Jan 11, 2012
  1. Fix issue #22, drag'n'drop for child objects with rotation.

    koggdal committed Jan 11, 2012
    When dragging an object that has a parent that is rotated,
    the object was not following the mouse. It was moving in its
    own rotated context. The coordinates are now rotated and correct
    positions are calculated.
  2. Fix issue #25, incorrect calculation in isPointerInside().

    koggdal committed Jan 11, 2012
    After changing how text align worked in 272286c, the method
    isPointerInside() was never updated to reflect the changes in
    pointer events.
Commits on Jan 10, 2012
  1. Fix bug that came from issue #20, regarding leave events.

    koggdal committed Jan 10, 2012
    After the fix for issue #20, mouseleave/touchleave events were
    not triggered.
Commits on Jan 9, 2012
  1. Fix issue #23, about text alignment.

    koggdal committed Jan 9, 2012
    Setting the align property of text objects used to not only center-align
    the text, but also reposition the object. This turned out to disrupt
    the origin of the object. The align property now only sets the alignment,
    and does not change the position of the object. Use the origin property
    for that. This means the align property will only have an effect on
    multi-line texts.
    
    The baseline property can still be used, and will still reposition the object.
  2. Fix line height offsets for baselines other than top.

    koggdal committed Jan 9, 2012
    The previous commit about the line height didn't respect what
    baseline that was used, so setting "alphabetic" for example
    wouldn't place the text correctly.
  3. Fixed problem with line height.

    koggdal committed Jan 9, 2012
    If the line height was more than 1, the text was drawn in the top of
    that line's bounding box, instead of in the middle. Every line is now
    pushed down the right amount.
Commits on Jan 8, 2012
  1. Fix issue #20, drag and drop events had priority.

    koggdal committed Jan 8, 2012
    The triggerPointerHandlers() method didn't calculate which the front
    object was in a correct way.
  2. Fix issue #17, name conflict on Sprite objects.

    koggdal committed Jan 8, 2012
    The stop() method on Sprite objects overrides the regular animation method.
    Changed name for the sprite methods (startAnimation() and stopAnimation()),
    but keep the start() method as an alias for startAnimation() for some
    backwards compatibility.
  3. Fix issue #16, about support for double click.

    koggdal committed Jan 8, 2012
    There was no support for adding event handlers
    for double clicks before, so this adds an event
    type "dblclick".
Commits on Jan 7, 2012
  1. Fix issue #15, about multi-line text.

    koggdal committed Jan 7, 2012
    Events were not triggered properly for multi-line
    text objects, because dimensions were not
    calculated correctly.
Commits on Oct 17, 2011
  1. Fixed bug in event binding.

    koggdal committed Oct 17, 2011
    Indexes were mixed up with the global event storage and the object
    specific storage, so unbinding of events weren't working as expected.
Commits on Oct 8, 2011
Commits on Oct 3, 2011
Commits on Sep 29, 2011
  1. Resetting the background when the canvas has been resized fixes gradi…

    koggdal committed Sep 29, 2011
    …ents that were not recalculated.