summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-22 10:00:29 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-22 10:00:29 +0100
commitf6a5169f7f9673d298f3e2016f8a1cd834d79530 (patch)
tree7effbf4877261db00a77be21e48096acc1730407 /blocks.js
parent3d03f9eb5cfe018fa570c95b2a58b3938665c5c6 (diff)
downloadsnap-yow-f6a5169f7f9673d298f3e2016f8a1cd834d79530.tar.gz
snap-yow-f6a5169f7f9673d298f3e2016f8a1cd834d79530.zip
allow drawing lines and shapes; use a different approach to close polygons
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/blocks.js b/blocks.js
index 5cdcc1c..2e686cd 100644
--- a/blocks.js
+++ b/blocks.js
@@ -1264,6 +1264,20 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
);
break;
+ // Snap! YOW
+ case '%drawmode':
+ part = new InputSlotMorph(
+ null, // text
+ false, // numeric?
+ {
+ 'line' : ['line'],
+ 'shape': ['shape']
+ },
+ true // read-only
+ );
+ part.setContents(['line']);
+ break;
+
// symbols:
case '%turtle':