From 5cde6b6040759f31f56274437d9824a674e38a4f Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 30 Apr 2019 07:24:49 +0200 Subject: [PATCH] added "id" to image attributes dropdown --- HISTORY.md | 3 +++ snap.html | 4 ++-- src/blocks.js | 3 ++- src/threads.js | 5 +++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 7e88e9f1..9198652b 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -73,6 +73,9 @@ * German * French +### 2019-04-30 +* Blocks, Threads: added "id" to image attributes dropdown + ### 2019-04-29 * optimized animation library * Threads: stop audio frequency instances when "stop all" is executed diff --git a/snap.html b/snap.html index 7d374f49..427e2adc 100755 --- a/snap.html +++ b/snap.html @@ -6,8 +6,8 @@ - - + + diff --git a/src/blocks.js b/src/blocks.js index 3aff5a58..5dad5452 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -148,7 +148,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2019-April-11'; +modules.blocks = '2019-April-30'; var SyntaxElementMorph; var BlockMorph; @@ -1015,6 +1015,7 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { null, // text false, // numeric? { + 'id' : ['id'], 'name' : ['name'], 'width' : ['width'], 'height' : ['height'], diff --git a/src/threads.js b/src/threads.js index d35c9012..2cc45a4e 100644 --- a/src/threads.js +++ b/src/threads.js @@ -62,7 +62,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy, isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, Color, TableFrameMorph, ColorSlotMorph, isSnapObject, Map, newCanvas, Symbol*/ -modules.threads = '2019-April-29'; +modules.threads = '2019-April-30'; var ThreadManager; var Process; @@ -4574,8 +4574,9 @@ Process.prototype.reportGetImageAttribute = function (choice, name) { return cst.height(); case 'pixels': return cst.rasterized().pixels(); + case 'id': default: - return 0; + return cst; } };