kopia lustrzana https://github.com/backface/turtlestitch
Merge branch 'master' of https://github.com/jmoenig/Snap--Build-Your-Own-Blocks into gh-pages
commit
2e295dfb74
4
gui.js
4
gui.js
|
@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2018-February-05';
|
||||
modules.gui = '2018-February-06';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -3443,7 +3443,7 @@ IDE_Morph.prototype.aboutSnap = function () {
|
|||
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
|
||||
world = this.world();
|
||||
|
||||
aboutTxt = 'Snap! 4.1.1\nBuild Your Own Blocks\n\n'
|
||||
aboutTxt = 'Snap! 4.1.2 - dev -\nBuild Your Own Blocks\n\n'
|
||||
+ 'Copyright \u24B8 2018 Jens M\u00F6nig and '
|
||||
+ 'Brian Harvey\n'
|
||||
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n'
|
||||
|
|
22
history.txt
22
history.txt
|
@ -3810,8 +3810,6 @@ Fixes:
|
|||
|
||||
=== v4.1.0.5 maintenance release ===
|
||||
|
||||
*** in development ***
|
||||
|
||||
171201
|
||||
------
|
||||
* GUI: started development on v 4.1.1
|
||||
|
@ -3891,7 +3889,6 @@ Fixes:
|
|||
* Russian translation update, thanks, temap!
|
||||
* release
|
||||
|
||||
|
||||
=== v4.1.1 minor release ===
|
||||
|
||||
v4.1.1 New Features:
|
||||
|
@ -3922,7 +3919,6 @@ Notable Fixes:
|
|||
* when deleting a temporary clone, detach all its parts and delete the temporary ones
|
||||
* new release protocol to avoid browser caching related version conflicts
|
||||
|
||||
|
||||
Translation Updates:
|
||||
* German
|
||||
* Greek
|
||||
|
@ -3930,3 +3926,21 @@ Translation Updates:
|
|||
* Chinese
|
||||
* Spanish
|
||||
* Russian
|
||||
|
||||
*** in development ***
|
||||
|
||||
180206
|
||||
------
|
||||
* GUI: start developing v4.1.2
|
||||
* Morphic: roll back temporary rectangle filling workaround for a bug in Chrome v57
|
||||
|
||||
|
||||
=== v4.1.2 features ===
|
||||
|
||||
v4.1.2 New Features:
|
||||
|
||||
Notable Changes:
|
||||
|
||||
Notable Fixes:
|
||||
|
||||
Translation Updates:
|
||||
|
|
28
morphic.js
28
morphic.js
|
@ -1163,7 +1163,7 @@
|
|||
|
||||
/*global window, HTMLCanvasElement, FileReader, Audio, FileList*/
|
||||
|
||||
var morphicVersion = '2018-January-25';
|
||||
var morphicVersion = '2018-February-06';
|
||||
var modules = {}; // keep track of additional loaded modules
|
||||
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
|
||||
|
||||
|
@ -3251,31 +3251,7 @@ Morph.prototype.drawNew = function () {
|
|||
this.image = newCanvas(this.extent());
|
||||
var context = this.image.getContext('2d');
|
||||
context.fillStyle = this.color.toString();
|
||||
|
||||
/*
|
||||
Chrome issue:
|
||||
|
||||
when filling a rectangular area, versions of Chrome beginning with
|
||||
57.0.2987.133 start introducing vertical transparent stripes
|
||||
to the right of the rectangle.
|
||||
The following code replaces the original fillRect() call with
|
||||
an explicit almost-rectangular path that miraculously makes
|
||||
sure the whole rectangle gets filled correctly.
|
||||
|
||||
Important: This needs to be monitored in the future so we can
|
||||
revert to sane code once this Chrome issue has been resolved again.
|
||||
*/
|
||||
|
||||
// context.fillRect(0, 0, this.width(), this.height()); // taken out
|
||||
|
||||
context.beginPath();
|
||||
context.moveTo(0, 0);
|
||||
context.lineTo(this.image.width, 0);
|
||||
context.lineTo(this.image.width, this.image.height);
|
||||
context.lineTo(0, this.image.height + 0.0001); // yeah, I luv Chrome!
|
||||
context.closePath();
|
||||
context.fill();
|
||||
|
||||
context.fillRect(0, 0, this.width(), this.height());
|
||||
if (this.cachedTexture) {
|
||||
this.drawCachedTexture();
|
||||
} else if (this.texture) {
|
||||
|
|
Ładowanie…
Reference in New Issue