kopia lustrzana https://github.com/backface/turtlestitch
Paint editor fixes
rodzic
b250bb2683
commit
4c44efdc1e
|
@ -4519,7 +4519,7 @@ Costume.prototype.bounds = function () {
|
|||
|
||||
Costume.prototype.shrinkWrap = function () {
|
||||
// adjust my contents' bounds to my visible bounding box
|
||||
var bb = this.boundingBox(),
|
||||
var bb = this.boundingBox().expandBy(3), // tolerance for anti-aliasing
|
||||
ext = bb.extent(),
|
||||
pic = newCanvas(ext),
|
||||
ctx = pic.getContext('2d');
|
||||
|
|
4
paint.js
4
paint.js
|
@ -539,8 +539,8 @@ PaintCanvasMorph.prototype.centermerge = function(a, b) {
|
|||
);
|
||||
};
|
||||
|
||||
PaintCanvasMorph.prototype.clearCanvas = function() {
|
||||
this.fixLayout();
|
||||
PaintCanvasMorph.prototype.clearCanvas = function() {
|
||||
this.buildContents();
|
||||
this.drawNew();
|
||||
this.changed();
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue