mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-12 20:54:20 -04:00
Remove trailing white spaces and ensure newlines at the end.
This commit is contained in:
parent
91d0fc1534
commit
f002c633a7
52 changed files with 241 additions and 240 deletions
src/canvas
|
@ -111,7 +111,7 @@ var BlendMode = new function() {
|
|||
},
|
||||
|
||||
// if (Cs <= 0.5) B(Cb, Cs) = Multiply(Cb, 2 x Cs)
|
||||
// else B(Cb, Cs) = Screen(Cb, 2 x Cs -1)
|
||||
// else B(Cb, Cs) = Screen(Cb, 2 x Cs -1)
|
||||
'hard-light': function() {
|
||||
dr = sr < 128 ? 2 * sr * br / 255 : 255 - 2 * (255 - sr) * (255 - br) / 255;
|
||||
dg = sg < 128 ? 2 * sg * bg / 255 : 255 - 2 * (255 - sg) * (255 - bg) / 255;
|
||||
|
@ -249,7 +249,7 @@ var BlendMode = new function() {
|
|||
}
|
||||
} catch (e) {}
|
||||
ctx.restore();
|
||||
nativeModes[mode] = ok;
|
||||
nativeModes[mode] = ok;
|
||||
});
|
||||
CanvasProvider.release(ctx);
|
||||
|
||||
|
@ -266,7 +266,7 @@ var BlendMode = new function() {
|
|||
if (!normal)
|
||||
dstContext.globalCompositeOperation = mode;
|
||||
dstContext.drawImage(srcCanvas, offset.x, offset.y);
|
||||
dstContext.restore();
|
||||
dstContext.restore();
|
||||
} else {
|
||||
var process = modes[mode];
|
||||
if (!process)
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
/**
|
||||
* @name ProxyContext
|
||||
*
|
||||
* @class The ProxyContext is a helper class that helps Canvas debugging
|
||||
* @class The ProxyContext is a helper class that helps Canvas debugging
|
||||
* by logging all interactions with a 2D Canvas context.
|
||||
*
|
||||
*
|
||||
* @private
|
||||
*
|
||||
* @classexample
|
||||
|
@ -68,7 +68,7 @@ var ProxyContext = new function() {
|
|||
this._indents--;
|
||||
console.log(this.getIndentation() + 'ctx.' + name + '('
|
||||
+ Array.prototype.slice.call(arguments, 0)
|
||||
.map(JSON.stringify).join(', ')
|
||||
.map(JSON.stringify).join(', ')
|
||||
+ ');');
|
||||
if (name === 'save')
|
||||
this._indents++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue