Permalink
Browse files

Minor performance optimizations.

  • Loading branch information...
1 parent 1e24bf6 commit c8d50bd6e6b4a6dd15f9d7cb36babcee13566dc9 Michael Aufreiter committed Nov 18, 2011
Showing with 8 additions and 10 deletions.
  1. +1 −2 src/scene/actor.js
  2. +1 −1 src/scene/actors/circle.js
  3. +2 −3 unveil.js
  4. +4 −4 unveil.min.js
View
@@ -217,8 +217,7 @@ uv.Actor.prototype.tWorldParent = function() {
};
uv.Actor.prototype.tWorld = function() {
- return uv.Matrix()
- .concat(this.tWorldParent())
+ return this.tWorldParent()
.translate(this.p('x'), this.p('y'))
.rotate(this.p('rotation'))
.scale(this.p('scaleX'), this.p('scaleY'));
@@ -6,7 +6,7 @@ uv.Circle = function(properties) {
uv.Actor.call(this, uv.extend({
radius: 20,
strokeWeight: 2,
- lineWidth: 3,
+ lineWidth: 0,
strokeStyle: '#fff'
}, properties));
};
View
@@ -651,8 +651,7 @@ uv.Actor.prototype.tWorldParent = function() {
};
uv.Actor.prototype.tWorld = function() {
- return uv.Matrix()
- .concat(this.tWorldParent())
+ return this.tWorldParent()
.translate(this.p('x'), this.p('y'))
.rotate(this.p('rotation'))
.scale(this.p('scaleX'), this.p('scaleY'));
@@ -1498,7 +1497,7 @@ uv.Circle = function(properties) {
uv.Actor.call(this, uv.extend({
radius: 20,
strokeWeight: 2,
- lineWidth: 3,
+ lineWidth: 0,
strokeStyle: '#fff'
}, properties));
};
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit c8d50bd

Please sign in to comment.