refactored symbols.js with new Morphic constants

pull/95/head
jmoenig 2020-07-01 19:12:38 +02:00
rodzic a17df6363f
commit d99ec31799
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -5,7 +5,7 @@
<title>Snap! Build Your Own Blocks 6.0.0 - beta -</title>
<link rel="shortcut icon" href="src/favicon.ico">
<script src="src/morphic.js?version=2020-07-01"></script>
<script src="src/symbols.js?version=2020-06-17"></script>
<script src="src/symbols.js?version=2020-07-01"></script>
<script src="src/widgets.js?version=2020-05-06"></script>
<script src="src/blocks.js?version=2020-07-01"></script>
<script src="src/threads.js?version=2020-07-01"></script>

Wyświetl plik

@ -37,11 +37,11 @@
*/
/*global modules, Morph, Point, radians, Color, ZERO*/
/*global modules, Morph, Point, radians, ZERO, BLACK*/
// Global stuff ////////////////////////////////////////////////////////
modules.symbols = '2020-June-17';
modules.symbols = '2020-July-01';
var SymbolMorph;
@ -161,7 +161,7 @@ SymbolMorph.prototype.init = function (
this.shadowOffset = shadowOffset || ZERO;
this.shadowColor = shadowColor || null;
SymbolMorph.uber.init.call(this);
this.color = color || new Color(0, 0, 0);
this.color = color || BLACK;
this.fixLayout();
this.rerender();
};