Skip to content

Commit

Permalink
variable scoping issue, leading to clipped objects
Browse files Browse the repository at this point in the history
  • Loading branch information
adabru committed Aug 23, 2018
1 parent c7b6035 commit acb4dba
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ module.exports = function (grunt) {

// Load all the tasks we need
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-uglify-es');
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-copy');
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-uglify": "~0.6.0",
"grunt-contrib-uglify-es": "^3.3.0",
"grunt-contrib-yuidoc": "~0.5.2",
"grunt-contrib-compress": "~0.12.0",
"grunt-contrib-copy": "~0.7.0",
Expand Down
10 changes: 5 additions & 5 deletions lib/easeljs-NEXT.js
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ this.createjs = this.createjs||{};
/**
* Applies a clockwise rotation transformation to the matrix.
* @method rotate
* @param {Number} angle The angle to rotate by, in degrees. To use a value in radians, multiply it by `180/Math.PI`.
* @param {Number} angle The angle to rotate by, in degrees. To use a value in radians, multiply it by `Math.PI/180`.
* @return {Matrix2D} This matrix. Useful for chaining method calls.
**/
p.rotate = function(angle) {
Expand All @@ -2045,7 +2045,7 @@ this.createjs = this.createjs||{};
/**
* Applies a skew transformation to the matrix.
* @method skew
* @param {Number} skewX The amount to skew horizontally in degrees. To use a value in radians, multiply it by `180/Math.PI`.
* @param {Number} skewX The amount to skew horizontally in degrees. To use a value in radians, multiply it by `Math.PI/180`.
* @param {Number} skewY The amount to skew vertically in degrees.
* @return {Matrix2D} This matrix. Useful for chaining method calls.
*/
Expand Down Expand Up @@ -5868,7 +5868,7 @@ this.createjs = this.createjs||{};
this.radiusTL = radiusTL; this.radiusTR = radiusTR;
this.radiusBR = radiusBR; this.radiusBL = radiusBL;
}).prototype.exec = function(ctx) {
var max = (w<h?w:h)/2;
var max = (this.w<this.h?this.w:this.h)/2;
var mTL=0, mTR=0, mBR=0, mBL=0;
var x = this.x, y = this.y, w = this.w, h = this.h;
var rTL = this.radiusTL, rTR = this.radiusTR, rBR = this.radiusBR, rBL = this.radiusBL;
Expand Down Expand Up @@ -11462,7 +11462,7 @@ this.createjs = this.createjs||{};
}

if(!this._directDraw && (!ignoreCache && item.cacheCanvas === null && item.filters !== null && item.filters.length)) {
var bounds;
let bounds;
if (item.bitmapCache === null) {
bounds = item.getBounds();
item.bitmapCache = new createjs.BitmapCache();
Expand Down Expand Up @@ -17621,6 +17621,6 @@ this.createjs = this.createjs || {};
* @type String
* @static
**/
s.buildDate = /*=date*/"Thu, 14 Jun 2018 21:18:20 GMT"; // injected by build process
s.buildDate = /*=date*/"Thu, 23 Aug 2018 11:33:29 GMT"; // injected by build process

})();
7 changes: 2 additions & 5 deletions lib/easeljs-NEXT.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/easeljs/display/StageGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,7 @@ this.createjs = this.createjs||{};
}

if(!this._directDraw && (!ignoreCache && item.cacheCanvas === null && item.filters !== null && item.filters.length)) {
var bounds;
let bounds;
if (item.bitmapCache === null) {
bounds = item.getBounds();
item.bitmapCache = new createjs.BitmapCache();
Expand Down

0 comments on commit acb4dba

Please sign in to comment.