Skip to content

Commit

Permalink
Recompile
Browse files Browse the repository at this point in the history
  • Loading branch information
theshock committed Jan 29, 2013
1 parent 39e4972 commit 6da8b16
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions libcanvas-full-compiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,7 @@ provides: App.Layer
...
*/


/** @class App.Layer */
declare( 'LibCanvas.App.Layer', {

Expand All @@ -1126,12 +1127,12 @@ declare( 'LibCanvas.App.Layer', {
intersection: 'auto' // auto|manual|all
}).set(settings);

this.intersection = this.settings.get('intersection');
this.redrawAll = this.intersection === 'all' || this.intersection === 'full';
this.intersection = this.settings.get('intersection');
this.redrawAllMode = this.intersection === 'all' || this.intersection === 'full';

this.app = app;
this.elements = [];
this.redraw = this.redrawAll ? this.elements : [];
this.redraw = this.redrawAllMode ? this.elements : [];
this.clear = [];
this.createDom();
},
Expand Down Expand Up @@ -1168,6 +1169,11 @@ declare( 'LibCanvas.App.Layer', {
return this;
},

redrawAll: function () {
this.elements.invoke('redraw');
return this;
},

/** @private */
tick: function (time) {
if (this.stopped) return this;
Expand Down Expand Up @@ -1291,7 +1297,7 @@ declare( 'LibCanvas.App.Layer', {
if (element.layer == this && !element.redrawRequested) {
this.needUpdate = true;
element.redrawRequested = true;
if (!this.redrawAll) {
if (!this.redrawAllMode) {
this.redraw.push( element );
}
}
Expand Down Expand Up @@ -1332,6 +1338,7 @@ declare( 'LibCanvas.App.Layer', {

});


/*
---
Expand Down Expand Up @@ -2897,6 +2904,16 @@ var Context2D = LibCanvas.declare( 'LibCanvas.Context2D', 'Context2D',
get height() { return this.canvas.height; },
set width (width) { this.canvas.width = width; },
set height(height) { this.canvas.height = height;},

get size () {
return new Size(this.width, this.height);
},
set size (size) {
size = Size.from(size);
this.width = size.width;
this.height = size.height;
},


get shadow () {
return [this.shadowOffsetX, this.shadowOffsetY, this.shadowBlur, this.shadowColor].join( ' ' );
Expand Down Expand Up @@ -3252,6 +3269,7 @@ return Context2D;

}();


/*
---
Expand Down

0 comments on commit 6da8b16

Please sign in to comment.