Skip to content

Commit

Permalink
Scenery patches for maintenance releases primarily for #515, with add…
Browse files Browse the repository at this point in the history
…itional patches.

Includes:
47143cd
838086b
92e341f
8a58e6f
  • Loading branch information
jonathanolson committed Feb 23, 2016
1 parent 98ea2ee commit ad95698
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/display/CanvasBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ define( function( require ) {
this.canvas.style.width = size.width + 'px';
this.canvas.style.height = size.height + 'px';
this.wrapper.resetStyles();
this.canvasDrawOffset.setXY( 0, 0 );
Util.unsetTransform( this.canvas );
},

setSizeFitBounds: function() {
Expand Down
2 changes: 2 additions & 0 deletions js/display/DOMSelfDrawable.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ define( function( require ) {

this.domElement.style.visibility = this.visible ? '' : 'hidden';
}

this.cleanPaintableState && this.cleanPaintableState();
}
},

Expand Down
2 changes: 2 additions & 0 deletions js/display/SVGSelfDrawable.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ define( function( require ) {
if ( this.dirtyFill || this.dirtyStroke || strokeDetailDirty ) {
element.setAttribute( 'style', this.paintState.baseStyle + this.paintState.strokeDetailStyle );
}

this.cleanPaintableState();
},

updateSVGBlock: function( svgBlock ) {
Expand Down
2 changes: 2 additions & 0 deletions js/nodes/Circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ define( function( require ) {
setToClean: function() {
this.setToCleanState();

this.cleanPaintableState();

this.transformDirty = false;
},

Expand Down
1 change: 0 additions & 1 deletion js/nodes/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ define( function( require ) {
context.beginPath();
context.moveTo( node._x1, node._y1 );
context.lineTo( node._x2, node._y2 );
context.closePath();

if ( node._stroke ) {
node.beforeCanvasStroke( wrapper ); // defined in Paintable
Expand Down
2 changes: 2 additions & 0 deletions js/nodes/Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,8 @@ define( function( require ) {
setToClean: function() {
this.setToCleanState();

this.cleanPaintableState();

this.transformDirty = false;
},

Expand Down
2 changes: 2 additions & 0 deletions js/nodes/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,8 @@ define( function( require ) {
setToClean: function() {
this.setToCleanState();

this.cleanPaintableState();

this.transformDirty = false;
},

Expand Down

0 comments on commit ad95698

Please sign in to comment.