kopia lustrzana https://github.com/backface/turtlestitch
new "map" and "for each" primitives in list category
rodzic
fd7f8f803d
commit
9156ce2ddb
|
@ -25,6 +25,7 @@
|
|||
* new "get graphic effect" reporter
|
||||
* new "get pen attribute" reporter
|
||||
* new "write" command in pen category (used to be "label" in tools)
|
||||
* new "map" and "for each" primitives in list category
|
||||
* added "neg", "lg" (log2) and "2^" selectors to monadic function reporter in Operators
|
||||
* added "^" reporter (power of) in the Operators category
|
||||
* added "width" and "height" as attribute selectors of the OF primitive for the stage
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script type="text/javascript" src="src/widgets.js?version=2019-04-05"></script>
|
||||
<script type="text/javascript" src="src/blocks.js?version=2019-04-11"></script>
|
||||
<script type="text/javascript" src="src/threads.js?version=2019-04-23"></script>
|
||||
<script type="text/javascript" src="src/objects.js?version=2019-04-12"></script>
|
||||
<script type="text/javascript" src="src/objects.js?version=2019-04-23"></script>
|
||||
<script type="text/javascript" src="src/gui.js?version=2019-04-10"></script>
|
||||
<script type="text/javascript" src="src/paint.js?version=2019-02-22"></script>
|
||||
<script type="text/javascript" src="src/lists.js?version=2019-02-07"></script>
|
||||
|
|
|
@ -84,7 +84,7 @@ BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, localize,
|
|||
TableMorph, TableFrameMorph, normalizeCanvas, BooleanSlotMorph, HandleMorph,
|
||||
AlignmentMorph, Process, XML_Element, VectorPaintEditorMorph*/
|
||||
|
||||
modules.objects = '2019-April-12';
|
||||
modules.objects = '2019-April-23';
|
||||
|
||||
var SpriteMorph;
|
||||
var StageMorph;
|
||||
|
@ -2401,7 +2401,6 @@ SpriteMorph.prototype.blockTemplates = function (category) {
|
|||
blocks.push('=');
|
||||
|
||||
blocks.push(block('reportNewList'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('reportCONS'));
|
||||
blocks.push(block('reportListItem'));
|
||||
blocks.push(block('reportCDR'));
|
||||
|
@ -2409,6 +2408,9 @@ SpriteMorph.prototype.blockTemplates = function (category) {
|
|||
blocks.push(block('reportListLength'));
|
||||
blocks.push(block('reportListContainsItem'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('doForEach'));
|
||||
blocks.push(block('reportMap'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('doAddToList'));
|
||||
blocks.push(block('doDeleteFromList'));
|
||||
blocks.push(block('doInsertInList'));
|
||||
|
@ -2425,9 +2427,6 @@ SpriteMorph.prototype.blockTemplates = function (category) {
|
|||
txt.setColor(this.paletteTextColor);
|
||||
blocks.push(txt);
|
||||
blocks.push('-');
|
||||
blocks.push(block('doForEach'));
|
||||
blocks.push(block('reportMap'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('doShowTable'));
|
||||
}
|
||||
|
||||
|
@ -2590,8 +2589,8 @@ SpriteMorph.prototype.freshPalette = function (category) {
|
|||
'reportCDR',
|
||||
'reportListLength',
|
||||
'reportListContainsItem',
|
||||
// 'doForEach',
|
||||
// 'reportMap',
|
||||
'doForEach',
|
||||
'reportMap',
|
||||
'doAddToList',
|
||||
'doDeleteFromList',
|
||||
'doInsertInList',
|
||||
|
@ -7948,7 +7947,6 @@ StageMorph.prototype.blockTemplates = function (category) {
|
|||
blocks.push(block('doDeclareVariables'));
|
||||
blocks.push('=');
|
||||
blocks.push(block('reportNewList'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('reportCONS'));
|
||||
blocks.push(block('reportListItem'));
|
||||
blocks.push(block('reportCDR'));
|
||||
|
@ -7956,6 +7954,9 @@ StageMorph.prototype.blockTemplates = function (category) {
|
|||
blocks.push(block('reportListLength'));
|
||||
blocks.push(block('reportListContainsItem'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('doForEach'));
|
||||
blocks.push(block('reportMap'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('doAddToList'));
|
||||
blocks.push(block('doDeleteFromList'));
|
||||
blocks.push(block('doInsertInList'));
|
||||
|
@ -7972,9 +7973,6 @@ StageMorph.prototype.blockTemplates = function (category) {
|
|||
txt.setColor(this.paletteTextColor);
|
||||
blocks.push(txt);
|
||||
blocks.push('-');
|
||||
blocks.push(block('doForEach'));
|
||||
blocks.push(block('reportMap'));
|
||||
blocks.push('-');
|
||||
blocks.push(block('doShowTable'));
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue