mirror of
https://github.com/konvajs/konva.git
synced 2025-07-15 22:29:19 +08:00
compile
This commit is contained in:
parent
de6548f893
commit
7d53f23f79
24
kinetic.js
24
kinetic.js
@ -4,7 +4,7 @@
|
|||||||
* http://www.kineticjs.com/
|
* http://www.kineticjs.com/
|
||||||
* Copyright 2013, Eric Rowell
|
* Copyright 2013, Eric Rowell
|
||||||
* Licensed under the MIT or GPL Version 2 licenses.
|
* Licensed under the MIT or GPL Version 2 licenses.
|
||||||
* Date: 2014-08-23
|
* Date: 2014-08-24
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 - 2013 by Eric Rowell
|
* Copyright (C) 2011 - 2013 by Eric Rowell
|
||||||
*
|
*
|
||||||
@ -2519,7 +2519,7 @@ var Kinetic = {};
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* bind events to the node. KineticJS supports mouseover, mousemove,
|
* bind events to the node. KineticJS supports mouseover, mousemove,
|
||||||
* mouseout, mouseenter, mouseleave, mousedown, mouseup, click, dblclick, touchstart, touchmove,
|
* mouseout, mouseenter, mouseleave, mousedown, mouseup, mousewheel, click, dblclick, touchstart, touchmove,
|
||||||
* touchend, tap, dbltap, dragstart, dragmove, and dragend events. The Kinetic Stage supports
|
* touchend, tap, dbltap, dragstart, dragmove, and dragend events. The Kinetic Stage supports
|
||||||
* contentMouseover, contentMousemove, contentMouseout, contentMousedown, contentMouseup,
|
* contentMouseover, contentMousemove, contentMouseout, contentMousedown, contentMouseup,
|
||||||
* contentClick, contentDblclick, contentTouchstart, contentTouchmove, contentTouchend, contentTap,
|
* contentClick, contentDblclick, contentTouchstart, contentTouchmove, contentTouchend, contentTap,
|
||||||
@ -9160,6 +9160,9 @@ var Kinetic = {};
|
|||||||
TAP = 'tap',
|
TAP = 'tap',
|
||||||
DBL_TAP = 'dbltap',
|
DBL_TAP = 'dbltap',
|
||||||
TOUCHMOVE = 'touchmove',
|
TOUCHMOVE = 'touchmove',
|
||||||
|
DOMMOUSESCROLL = 'DOMMouseScroll',
|
||||||
|
MOUSEWHEEL = 'mousewheel',
|
||||||
|
WHEEL = 'wheel',
|
||||||
|
|
||||||
CONTENT_MOUSEOUT = 'contentMouseout',
|
CONTENT_MOUSEOUT = 'contentMouseout',
|
||||||
CONTENT_MOUSEOVER = 'contentMouseover',
|
CONTENT_MOUSEOVER = 'contentMouseover',
|
||||||
@ -9181,7 +9184,7 @@ var Kinetic = {};
|
|||||||
UNDERSCORE = '_',
|
UNDERSCORE = '_',
|
||||||
CONTAINER = 'container',
|
CONTAINER = 'container',
|
||||||
EMPTY_STRING = '',
|
EMPTY_STRING = '',
|
||||||
EVENTS = [MOUSEDOWN, MOUSEMOVE, MOUSEUP, MOUSEOUT, TOUCHSTART, TOUCHMOVE, TOUCHEND, MOUSEOVER],
|
EVENTS = [MOUSEDOWN, MOUSEMOVE, MOUSEUP, MOUSEOUT, TOUCHSTART, TOUCHMOVE, TOUCHEND, MOUSEOVER, DOMMOUSESCROLL, MOUSEWHEEL, WHEEL],
|
||||||
|
|
||||||
// cached variables
|
// cached variables
|
||||||
eventsLength = EVENTS.length;
|
eventsLength = EVENTS.length;
|
||||||
@ -9750,6 +9753,20 @@ var Kinetic = {};
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
_DOMMouseScroll: function(evt) {
|
||||||
|
this._mousewheel(evt);
|
||||||
|
},
|
||||||
|
_mousewheel: function(evt) {
|
||||||
|
this._setPointerPosition(evt);
|
||||||
|
var shape = this.getIntersection(this.getPointerPosition());
|
||||||
|
|
||||||
|
if (shape && shape.isListening()) {
|
||||||
|
shape._fireAndBubble(MOUSEWHEEL, {evt: evt});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
_wheel: function(evt) {
|
||||||
|
this._mousewheel(evt);
|
||||||
|
},
|
||||||
_setPointerPosition: function(evt) {
|
_setPointerPosition: function(evt) {
|
||||||
var contentPosition = this._getContentPosition(),
|
var contentPosition = this._getContentPosition(),
|
||||||
offsetX = evt.offsetX,
|
offsetX = evt.offsetX,
|
||||||
@ -10245,6 +10262,7 @@ var Kinetic = {};
|
|||||||
}
|
}
|
||||||
|
|
||||||
Kinetic.Container.prototype.drawHit.call(this, canvas, top);
|
Kinetic.Container.prototype.drawHit.call(this, canvas, top);
|
||||||
|
this.imageData = null; // Clear imageData cache
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
6
kinetic.min.js
vendored
6
kinetic.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user