mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Simplify code a bit, by chainging variable declarations.
This commit is contained in:
parent
5d680b1987
commit
ab9d07501e
1 changed files with 6 additions and 6 deletions
|
@ -157,11 +157,11 @@ Raster = Item.extend({
|
||||||
// Now rotate the corner points of the image rectangle do find the
|
// Now rotate the corner points of the image rectangle do find the
|
||||||
// extremas that define our raster's bounds, and update them straight
|
// extremas that define our raster's bounds, and update them straight
|
||||||
// away
|
// away
|
||||||
var width = this._size.width;
|
var width = this._size.width,
|
||||||
var height = this._size.height;
|
height = this._size.height,
|
||||||
var x = -width / 2;
|
x = -width / 2,
|
||||||
var y = -height / 2;
|
y = -height / 2,
|
||||||
var coords = [
|
coords = [
|
||||||
x, y,
|
x, y,
|
||||||
x + width, y,
|
x + width, y,
|
||||||
x + width, y + height,
|
x + width, y + height,
|
||||||
|
|
Loading…
Reference in a new issue