mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prebuilt module for commit 08bf7bfe60
This commit is contained in:
parent
b668653190
commit
6948148bb0
5 changed files with 27 additions and 27 deletions
14
dist/docs/assets/js/paper.js
vendored
14
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri Feb 26 12:58:50 2016 +0100
|
||||
* Date: Fri Feb 26 15:13:49 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -11962,6 +11962,7 @@ new function() {
|
|||
});
|
||||
|
||||
var called = false,
|
||||
prevented = false,
|
||||
fallbacks = {
|
||||
doubleclick: 'click',
|
||||
mousedrag: 'mousemove'
|
||||
|
@ -11969,7 +11970,7 @@ new function() {
|
|||
|
||||
function emitMouseEvent(obj, type, event, point, prevPoint, stopItem) {
|
||||
var target = obj,
|
||||
prevented = false,
|
||||
stopped = false,
|
||||
mouseEvent;
|
||||
|
||||
function emit(obj, type) {
|
||||
|
@ -11983,7 +11984,7 @@ new function() {
|
|||
if (mouseEvent.prevented)
|
||||
prevented = true;
|
||||
if (mouseEvent.stopped)
|
||||
return true;
|
||||
return stopped = true;
|
||||
}
|
||||
} else {
|
||||
var fallback = fallbacks[type];
|
||||
|
@ -11997,12 +11998,12 @@ new function() {
|
|||
break;
|
||||
obj = obj._parent;
|
||||
}
|
||||
return prevented;
|
||||
return stopped;
|
||||
}
|
||||
|
||||
function emitMouseEvents(view, item, type, event, point, prevPoint) {
|
||||
view._project.removeOn(type);
|
||||
called = false;
|
||||
prevented = called = false;
|
||||
return (dragItem && emitMouseEvent(dragItem, type, event, point,
|
||||
prevPoint)
|
||||
|| item && item !== dragItem && !item.isDescendant(dragItem)
|
||||
|
@ -12093,8 +12094,7 @@ new function() {
|
|||
}
|
||||
wasInView = inView;
|
||||
if (mouse.down && inView || mouse.up && downPoint) {
|
||||
var prevented = emitMouseEvents(this, item, type, event, point,
|
||||
downPoint);
|
||||
emitMouseEvents(this, item, type, event, point, downPoint);
|
||||
if (mouse.down) {
|
||||
dblClick = item === clickItem
|
||||
&& (Date.now() - clickTime < 300);
|
||||
|
|
14
dist/paper-core.js
vendored
14
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri Feb 26 12:58:50 2016 +0100
|
||||
* Date: Fri Feb 26 15:13:49 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -11962,6 +11962,7 @@ new function() {
|
|||
});
|
||||
|
||||
var called = false,
|
||||
prevented = false,
|
||||
fallbacks = {
|
||||
doubleclick: 'click',
|
||||
mousedrag: 'mousemove'
|
||||
|
@ -11969,7 +11970,7 @@ new function() {
|
|||
|
||||
function emitMouseEvent(obj, type, event, point, prevPoint, stopItem) {
|
||||
var target = obj,
|
||||
prevented = false,
|
||||
stopped = false,
|
||||
mouseEvent;
|
||||
|
||||
function emit(obj, type) {
|
||||
|
@ -11983,7 +11984,7 @@ new function() {
|
|||
if (mouseEvent.prevented)
|
||||
prevented = true;
|
||||
if (mouseEvent.stopped)
|
||||
return true;
|
||||
return stopped = true;
|
||||
}
|
||||
} else {
|
||||
var fallback = fallbacks[type];
|
||||
|
@ -11997,12 +11998,12 @@ new function() {
|
|||
break;
|
||||
obj = obj._parent;
|
||||
}
|
||||
return prevented;
|
||||
return stopped;
|
||||
}
|
||||
|
||||
function emitMouseEvents(view, item, type, event, point, prevPoint) {
|
||||
view._project.removeOn(type);
|
||||
called = false;
|
||||
prevented = called = false;
|
||||
return (dragItem && emitMouseEvent(dragItem, type, event, point,
|
||||
prevPoint)
|
||||
|| item && item !== dragItem && !item.isDescendant(dragItem)
|
||||
|
@ -12093,8 +12094,7 @@ new function() {
|
|||
}
|
||||
wasInView = inView;
|
||||
if (mouse.down && inView || mouse.up && downPoint) {
|
||||
var prevented = emitMouseEvents(this, item, type, event, point,
|
||||
downPoint);
|
||||
emitMouseEvents(this, item, type, event, point, downPoint);
|
||||
if (mouse.down) {
|
||||
dblClick = item === clickItem
|
||||
&& (Date.now() - clickTime < 300);
|
||||
|
|
6
dist/paper-core.min.js
vendored
6
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
14
dist/paper-full.js
vendored
14
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Fri Feb 26 12:58:50 2016 +0100
|
||||
* Date: Fri Feb 26 15:13:49 2016 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -11962,6 +11962,7 @@ new function() {
|
|||
});
|
||||
|
||||
var called = false,
|
||||
prevented = false,
|
||||
fallbacks = {
|
||||
doubleclick: 'click',
|
||||
mousedrag: 'mousemove'
|
||||
|
@ -11969,7 +11970,7 @@ new function() {
|
|||
|
||||
function emitMouseEvent(obj, type, event, point, prevPoint, stopItem) {
|
||||
var target = obj,
|
||||
prevented = false,
|
||||
stopped = false,
|
||||
mouseEvent;
|
||||
|
||||
function emit(obj, type) {
|
||||
|
@ -11983,7 +11984,7 @@ new function() {
|
|||
if (mouseEvent.prevented)
|
||||
prevented = true;
|
||||
if (mouseEvent.stopped)
|
||||
return true;
|
||||
return stopped = true;
|
||||
}
|
||||
} else {
|
||||
var fallback = fallbacks[type];
|
||||
|
@ -11997,12 +11998,12 @@ new function() {
|
|||
break;
|
||||
obj = obj._parent;
|
||||
}
|
||||
return prevented;
|
||||
return stopped;
|
||||
}
|
||||
|
||||
function emitMouseEvents(view, item, type, event, point, prevPoint) {
|
||||
view._project.removeOn(type);
|
||||
called = false;
|
||||
prevented = called = false;
|
||||
return (dragItem && emitMouseEvent(dragItem, type, event, point,
|
||||
prevPoint)
|
||||
|| item && item !== dragItem && !item.isDescendant(dragItem)
|
||||
|
@ -12093,8 +12094,7 @@ new function() {
|
|||
}
|
||||
wasInView = inView;
|
||||
if (mouse.down && inView || mouse.up && downPoint) {
|
||||
var prevented = emitMouseEvents(this, item, type, event, point,
|
||||
downPoint);
|
||||
emitMouseEvents(this, item, type, event, point, downPoint);
|
||||
if (mouse.down) {
|
||||
dblClick = item === clickItem
|
||||
&& (Date.now() - clickTime < 300);
|
||||
|
|
6
dist/paper-full.min.js
vendored
6
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue