Skip to content

Commit

Permalink
tiles library update: new "render" block, German translation update f…
Browse files Browse the repository at this point in the history
…or upvar names
  • Loading branch information
jmoenig committed Aug 16, 2024
1 parent 4d42a0f commit 76e401f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### 2024-08-16
* German translation update for tiles library
* tiles library update: new "render" block, German translation update for upvar names

## 10.0.3:
* **Notable Changes:**
Expand Down
2 changes: 1 addition & 1 deletion libraries/tiles_module.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<blocks app="Snap! 9.0, https://snap.berkeley.edu" version="2"><block-definition s="for each tile sized %&apos;side&apos; %&apos;action&apos;" type="command" category="control"><comment w="144.00000000000023" collapsed="false">Divide the stage into a grid of square regions with the given side length and perform an action at the center of each.</comment><header></header><code></code><translations>de:für jede Kachel der Größe _ _&#xD;</translations><inputs><input type="%n">20</input><input type="%ca"></input></inputs><script><block s="doDeclareVariables"><list><l>ext</l><l>dim</l><l>origin</l></list></block><block s="doSetVar"><l>ext</l><block s="reportAttributeOf"><l><option>extent</option></l><block s="reportGet"><l><option>stage</option></l></block></block></block><block s="doSetVar"><l>dim</l><block s="reportMonadic"><l><option>ceiling</option></l><block s="reportQuotient"><block var="ext"/><block var="side"/></block></block></block><block s="doSetVar"><l>origin</l><block s="reportVariadicSum"><list><block s="reportQuotient"><block var="ext"/><l>-2</l></block><block s="reportQuotient"><block s="reportDifference"><block var="ext"/><block s="reportVariadicProduct"><list><block var="dim"/><block var="side"/></list></block></block><l>2</l></block><block s="reportQuotient"><block var="side"/><l>2</l></block></list></block></block><block s="doWarp"><script><block s="doForEach"><l>coord</l><block s="reportCrossproduct"><block s="reportNumbers"><l>1</l><block var="dim"/></block></block><script><block s="doGotoObject"><block s="reportVariadicSum"><list><block var="origin"/><block s="reportVariadicProduct"><list><block s="reportDifference"><block var="coord"/><l>1</l></block><block var="side"/></list></block></list></block></block><block s="doRun"><block var="action"/><list></list></block></script></block></script></block></script></block-definition><block-definition s="for each %&apos;tile&apos; in %&apos;cols&apos; %&apos;col&apos; by %&apos;rows&apos; %&apos;row&apos; %&apos;action&apos;" type="command" category="control"><comment w="181" collapsed="false">Divide the stage into a grid of same-sized rectangles specified by the number of columns and rows and perform an action at the center of each.</comment><header></header><code></code><translations>de:für jede Zelle _ im Raster _ _ zu _ _ _&#xD;</translations><inputs><input type="%upvar"></input><input type="%n">20</input><input type="%upvar"></input><input type="%n">15</input><input type="%upvar"></input><input type="%ca"></input></inputs><script><block s="doDeclareVariables"><list><l>ext</l><l>dim</l><l>origin</l></list></block><block s="doSetVar"><l>ext</l><block s="reportAttributeOf"><l><option>extent</option></l><block s="reportGet"><l><option>stage</option></l></block></block></block><block s="doSetVar"><l>dim</l><block s="reportNewList"><list><block var="cols"/><block var="rows"/></list></block></block><block s="doSetVar"><l>tile</l><block s="reportQuotient"><block var="ext"/><block var="dim"/></block></block><block s="doSetVar"><l>origin</l><block s="reportVariadicSum"><list><block s="reportQuotient"><block var="ext"/><l>-2</l></block><block s="reportQuotient"><block var="tile"/><l>2</l></block></list></block></block><block s="doWarp"><script><block s="doForEach"><l>coord</l><block s="reportCrossproduct"><block s="reportNumbers"><l>1</l><block var="dim"/></block></block><script><block s="doGotoObject"><block s="reportVariadicSum"><list><block var="origin"/><block s="reportVariadicProduct"><list><block s="reportDifference"><block var="coord"/><l>1</l></block><block var="tile"/></list></block></list></block></block><block s="doSetVar"><l>col</l><block s="reportListItem"><l>1</l><block var="coord"/></block></block><block s="doSetVar"><l>row</l><block s="reportListItem"><l>2</l><block var="coord"/></block></block><block s="doRun"><block var="action"/><list></list></block></script></block></script></block></script></block-definition></blocks>
<blocks app="Snap! 10, https://snap.berkeley.edu" version="2"><block-definition s="for each tile sized %&apos;side&apos; %&apos;action&apos;" type="command" category="control"><comment x="0" y="0" w="144.00000000000023" collapsed="false">Divide the stage into a grid of square regions with the given side length and perform an action at the center of each.</comment><header></header><code></code><translations>de:für jede Kachel der Größe _ _&#xD;</translations><inputs><input type="%n">20</input><input type="%ca"></input></inputs><script><block s="doDeclareVariables"><list><l>ext</l><l>dim</l><l>origin</l></list></block><block s="doSetVar"><l>ext</l><block s="reportAttributeOf"><l><option>extent</option></l><block s="reportGet"><l><option>stage</option></l></block></block></block><block s="doSetVar"><l>dim</l><block s="reportMonadic"><l><option>ceiling</option></l><block s="reportQuotient"><block var="ext"/><block var="side"/></block></block></block><block s="doSetVar"><l>origin</l><block s="reportVariadicSum"><list><block s="reportQuotient"><block var="ext"/><l>-2</l></block><block s="reportQuotient"><block s="reportDifference"><block var="ext"/><block s="reportVariadicProduct"><list><block var="dim"/><block var="side"/></list></block></block><l>2</l></block><block s="reportQuotient"><block var="side"/><l>2</l></block></list></block></block><block s="doWarp"><script><block s="doForEach"><l>coord</l><block s="reportCrossproduct"><block s="reportNumbers"><l>1</l><block var="dim"/></block></block><script><block s="doGotoObject"><block s="reportVariadicSum"><list><block var="origin"/><block s="reportVariadicProduct"><list><block s="reportDifference"><block var="coord"/><l>1</l></block><block var="side"/></list></block></list></block></block><block s="doRun"><block var="action"/><list></list></block></script></block></script></block></script></block-definition><block-definition s="for each %&apos;tile&apos; in %&apos;cols&apos; %&apos;col&apos; by %&apos;rows&apos; %&apos;row&apos; %&apos;action&apos;" type="command" category="control"><comment x="0" y="0" w="181" collapsed="false">Divide the stage into a grid of same-sized rectangles specified by the number of columns and rows and perform an action at the center of each.</comment><header></header><code></code><translations>de:für jede _ im Raster _ _ zu _ _ _&#xD;</translations><inputs><input type="%upvar">$_tile</input><input type="%n">20</input><input type="%upvar">$_column</input><input type="%n">15</input><input type="%upvar">$_row</input><input type="%ca"></input></inputs><script><block s="doDeclareVariables"><list><l>ext</l><l>dim</l><l>origin</l></list></block><block s="doSetVar"><l>ext</l><block s="reportAttributeOf"><l><option>extent</option></l><block s="reportGet"><l><option>stage</option></l></block></block></block><block s="doSetVar"><l>dim</l><block s="reportNewList"><list><block var="cols"/><block var="rows"/></list></block></block><block s="doSetVar"><l>tile</l><block s="reportQuotient"><block var="ext"/><block var="dim"/></block></block><block s="doSetVar"><l>origin</l><block s="reportVariadicSum"><list><block s="reportQuotient"><block var="ext"/><l>-2</l></block><block s="reportQuotient"><block var="tile"/><l>2</l></block></list></block></block><block s="doWarp"><script><block s="doForEach"><l>coord</l><block s="reportCrossproduct"><block s="reportNumbers"><l>1</l><block var="dim"/></block></block><script><block s="doGotoObject"><block s="reportVariadicSum"><list><block var="origin"/><block s="reportVariadicProduct"><list><block s="reportDifference"><block var="coord"/><l>1</l></block><block var="tile"/></list></block></list></block></block><block s="doSetVar"><l>col</l><block s="reportListItem"><l>1</l><block var="coord"/></block></block><block s="doSetVar"><l>row</l><block s="reportListItem"><l>2</l><block var="coord"/></block></block><block s="doRun"><block var="action"/><list></list></block></script></block></script></block></script></block-definition><block-definition s="render each %&apos;cell&apos; in table %&apos;table&apos; %&apos;action&apos;" type="command" category="control"><comment x="0" y="0" w="144.00000000000023" collapsed="false">Divide the stage into a grid of square regions matching the dimensions of the given table and perform an action at the center of each.</comment><header></header><code></code><translations>de:für jede _ in Tabelle _ _&#xD;</translations><inputs><input type="%upvar" initial="1">$_cell</input><input type="%l" initial="1"></input><input type="%cs" initial="1"></input></inputs><script><block s="doSetVar"><l>table</l><block s="reportListAttribute"><l><option>reverse</option></l><block var="table"/></block></block><custom-block s="for each %upvar in %n %upvar by %n %upvar %ca"><l>tile</l><block s="reportListAttribute"><l><option>length</option></l><block s="reportListItem"><l>1</l><block var="table"/></block></block><l>col</l><block s="reportListAttribute"><l><option>length</option></l><block var="table"/></block><l>row</l><script><block s="doSetVar"><l>cell</l><block s="reportListItem"><block var="col"/><block s="reportListItem"><block var="row"/><block var="table"/></block></block></block><block s="doRun"><block var="action"/><list></list></block></script></custom-block></script></block-definition></blocks>

0 comments on commit 76e401f

Please sign in to comment.