Prebuilt module for commit d18fa8bb03

This commit is contained in:
Paper.js Bot 2017-01-24 23:18:01 +00:00
parent 4a5b2554a8
commit bd7da3972b
5 changed files with 32 additions and 23 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Tue Jan 24 08:22:03 2017 -0500
* Date: Tue Jan 24 18:14:56 2017 -0500
*
***
*
@ -11409,8 +11409,10 @@ var Color = Base.extend(new function() {
destination.x, destination.y);
}
for (var i = 0, l = stops.length; i < l; i++) {
var stop = stops[i];
canvasGradient.addColorStop(stop._offset || i / (l - 1),
var stop = stops[i],
offset = stop._offset;
canvasGradient.addColorStop(
offset == null ? i / (l - 1) : offset,
stop._color.toCanvasStyle());
}
return this._canvasStyle = canvasGradient;
@ -13894,9 +13896,10 @@ new function() {
for (var i = 0, l = stops.length; i < l; i++) {
var stop = stops[i],
stopColor = stop._color,
alpha = stopColor.getAlpha();
alpha = stopColor.getAlpha(),
offset = stop._offset;
attrs = {
offset: stop._offset || i / (l - 1)
offset: offset == null ? i / (l - 1) : offset
};
if (stopColor)
attrs['stop-color'] = stopColor.toCSS(true);

13
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Tue Jan 24 08:22:03 2017 -0500
* Date: Tue Jan 24 18:14:56 2017 -0500
*
***
*
@ -11409,8 +11409,10 @@ var Color = Base.extend(new function() {
destination.x, destination.y);
}
for (var i = 0, l = stops.length; i < l; i++) {
var stop = stops[i];
canvasGradient.addColorStop(stop._offset || i / (l - 1),
var stop = stops[i],
offset = stop._offset;
canvasGradient.addColorStop(
offset == null ? i / (l - 1) : offset,
stop._color.toCanvasStyle());
}
return this._canvasStyle = canvasGradient;
@ -13894,9 +13896,10 @@ new function() {
for (var i = 0, l = stops.length; i < l; i++) {
var stop = stops[i],
stopColor = stop._color,
alpha = stopColor.getAlpha();
alpha = stopColor.getAlpha(),
offset = stop._offset;
attrs = {
offset: stop._offset || i / (l - 1)
offset: offset == null ? i / (l - 1) : offset
};
if (stopColor)
attrs['stop-color'] = stopColor.toCSS(true);

File diff suppressed because one or more lines are too long

13
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Tue Jan 24 08:22:03 2017 -0500
* Date: Tue Jan 24 18:14:56 2017 -0500
*
***
*
@ -11409,8 +11409,10 @@ var Color = Base.extend(new function() {
destination.x, destination.y);
}
for (var i = 0, l = stops.length; i < l; i++) {
var stop = stops[i];
canvasGradient.addColorStop(stop._offset || i / (l - 1),
var stop = stops[i],
offset = stop._offset;
canvasGradient.addColorStop(
offset == null ? i / (l - 1) : offset,
stop._color.toCanvasStyle());
}
return this._canvasStyle = canvasGradient;
@ -13894,9 +13896,10 @@ new function() {
for (var i = 0, l = stops.length; i < l; i++) {
var stop = stops[i],
stopColor = stop._color,
alpha = stopColor.getAlpha();
alpha = stopColor.getAlpha(),
offset = stop._offset;
attrs = {
offset: stop._offset || i / (l - 1)
offset: offset == null ? i / (l - 1) : offset
};
if (stopColor)
attrs['stop-color'] = stopColor.toCSS(true);

File diff suppressed because one or more lines are too long