kopia lustrzana https://github.com/backface/turtlestitch
refactored symbols.js with new Morphic constants
rodzic
a17df6363f
commit
d99ec31799
|
@ -5,7 +5,7 @@
|
||||||
<title>Snap! Build Your Own Blocks 6.0.0 - beta -</title>
|
<title>Snap! Build Your Own Blocks 6.0.0 - beta -</title>
|
||||||
<link rel="shortcut icon" href="src/favicon.ico">
|
<link rel="shortcut icon" href="src/favicon.ico">
|
||||||
<script src="src/morphic.js?version=2020-07-01"></script>
|
<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/widgets.js?version=2020-05-06"></script>
|
||||||
<script src="src/blocks.js?version=2020-07-01"></script>
|
<script src="src/blocks.js?version=2020-07-01"></script>
|
||||||
<script src="src/threads.js?version=2020-07-01"></script>
|
<script src="src/threads.js?version=2020-07-01"></script>
|
||||||
|
|
|
@ -37,11 +37,11 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*global modules, Morph, Point, radians, Color, ZERO*/
|
/*global modules, Morph, Point, radians, ZERO, BLACK*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.symbols = '2020-June-17';
|
modules.symbols = '2020-July-01';
|
||||||
|
|
||||||
var SymbolMorph;
|
var SymbolMorph;
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ SymbolMorph.prototype.init = function (
|
||||||
this.shadowOffset = shadowOffset || ZERO;
|
this.shadowOffset = shadowOffset || ZERO;
|
||||||
this.shadowColor = shadowColor || null;
|
this.shadowColor = shadowColor || null;
|
||||||
SymbolMorph.uber.init.call(this);
|
SymbolMorph.uber.init.call(this);
|
||||||
this.color = color || new Color(0, 0, 0);
|
this.color = color || BLACK;
|
||||||
this.fixLayout();
|
this.fixLayout();
|
||||||
this.rerender();
|
this.rerender();
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue