mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-10 23:03:10 +00:00
Build distribution
This commit is contained in:
parent
c0c222f672
commit
f927cd9e9e
4 changed files with 55 additions and 47 deletions
46
dist/all.js
vendored
46
dist/all.js
vendored
|
|
@ -1,4 +1,4 @@
|
|||
/* build: `node build.js modules=ALL exclude=gestures minifier=uglifyjs` */
|
||||
/* build: `node build.js modules=ALL exclude=gestures,itext minifier=uglifyjs` */
|
||||
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "1.3.7" };
|
||||
|
|
@ -8992,29 +8992,33 @@ fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @lends fab
|
|||
activeGroup.set('active', true);
|
||||
}
|
||||
else {
|
||||
// group does not exist
|
||||
if (this._activeObject) {
|
||||
// only if there's an active object
|
||||
if (target !== this._activeObject) {
|
||||
// and that object is not the actual target
|
||||
var objects = this.getObjects();
|
||||
var isActiveLower = objects.indexOf(this._activeObject) < objects.indexOf(target);
|
||||
var group = new fabric.Group(
|
||||
isActiveLower ? [ target, this._activeObject ] : [ this._activeObject, target ]);
|
||||
this._createActiveGroup(target, e);
|
||||
}
|
||||
|
||||
this.setActiveGroup(group);
|
||||
this._activeObject = null;
|
||||
activeGroup = this.getActiveGroup();
|
||||
this.fire('selection:created', { target: activeGroup, e: e });
|
||||
}
|
||||
if (this._activeGroup) {
|
||||
this._activeGroup.saveCoords();
|
||||
}
|
||||
},
|
||||
|
||||
_createActiveGroup: function(target, e) {
|
||||
// group does not exist
|
||||
if (this._activeObject) {
|
||||
// only if there's an active object
|
||||
if (target !== this._activeObject) {
|
||||
// and that object is not the actual target
|
||||
var objects = this.getObjects();
|
||||
var isActiveLower = objects.indexOf(this._activeObject) < objects.indexOf(target);
|
||||
var group = new fabric.Group(
|
||||
isActiveLower ? [ target, this._activeObject ] : [ this._activeObject, target ]);
|
||||
|
||||
this.setActiveGroup(group);
|
||||
this._activeObject = null;
|
||||
var activeGroup = this.getActiveGroup();
|
||||
this.fire('selection:created', { target: activeGroup, e: e });
|
||||
}
|
||||
// activate target object in any case
|
||||
target.set('active', true);
|
||||
}
|
||||
|
||||
if (activeGroup) {
|
||||
activeGroup.saveCoords();
|
||||
}
|
||||
// activate target object in any case
|
||||
target.set('active', true);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
10
dist/all.min.js
vendored
10
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
46
dist/all.require.js
vendored
46
dist/all.require.js
vendored
|
|
@ -1,4 +1,4 @@
|
|||
/* build: `node build.js modules=ALL exclude=gestures minifier=uglifyjs` */
|
||||
/* build: `node build.js modules=ALL exclude=gestures,itext minifier=uglifyjs` */
|
||||
/*! Fabric.js Copyright 2008-2013, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "1.3.7" };
|
||||
|
|
@ -8992,29 +8992,33 @@ fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @lends fab
|
|||
activeGroup.set('active', true);
|
||||
}
|
||||
else {
|
||||
// group does not exist
|
||||
if (this._activeObject) {
|
||||
// only if there's an active object
|
||||
if (target !== this._activeObject) {
|
||||
// and that object is not the actual target
|
||||
var objects = this.getObjects();
|
||||
var isActiveLower = objects.indexOf(this._activeObject) < objects.indexOf(target);
|
||||
var group = new fabric.Group(
|
||||
isActiveLower ? [ target, this._activeObject ] : [ this._activeObject, target ]);
|
||||
this._createActiveGroup(target, e);
|
||||
}
|
||||
|
||||
this.setActiveGroup(group);
|
||||
this._activeObject = null;
|
||||
activeGroup = this.getActiveGroup();
|
||||
this.fire('selection:created', { target: activeGroup, e: e });
|
||||
}
|
||||
if (this._activeGroup) {
|
||||
this._activeGroup.saveCoords();
|
||||
}
|
||||
},
|
||||
|
||||
_createActiveGroup: function(target, e) {
|
||||
// group does not exist
|
||||
if (this._activeObject) {
|
||||
// only if there's an active object
|
||||
if (target !== this._activeObject) {
|
||||
// and that object is not the actual target
|
||||
var objects = this.getObjects();
|
||||
var isActiveLower = objects.indexOf(this._activeObject) < objects.indexOf(target);
|
||||
var group = new fabric.Group(
|
||||
isActiveLower ? [ target, this._activeObject ] : [ this._activeObject, target ]);
|
||||
|
||||
this.setActiveGroup(group);
|
||||
this._activeObject = null;
|
||||
var activeGroup = this.getActiveGroup();
|
||||
this.fire('selection:created', { target: activeGroup, e: e });
|
||||
}
|
||||
// activate target object in any case
|
||||
target.set('active', true);
|
||||
}
|
||||
|
||||
if (activeGroup) {
|
||||
activeGroup.saveCoords();
|
||||
}
|
||||
// activate target object in any case
|
||||
target.set('active', true);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue