* master:
add pentrails->costume block to penTrails library
Add reporters to setrgb library
Update LEAP library to use menus
Hide setting for “prefer smooth animations”
Disabled hover-help for custom blocks
* 'master' of git://github.com/jmoenig/Snap--Build-Your-Own-Blocks:
Update Libraries from s.b.e
updated locale version data
updated version date
Disable JS-Functions to protect users from malicious scripts
Revert "SNAP! → Snap!"
Adapting Chinese code langs to ISO Standard
Fixing minor typo in catalan translation
Deleting duplicate translation strings
fix merge comments
minor typos
SNAP! → Snap!
blocks.js fix code alignment
camelCase expprtResultPic for consistency
Align comment text
Morphic: cleanup `nop` calls
Fix minor help text
* 'master' of git://github.com/jmoenig/Snap--Build-Your-Own-Blocks: (85 commits)
updated history
simplified reporterize>>blockFromAST
Fixing typo - tab control character hidden
Fixing ColorSlotMorphs behavior in Visible Stepping
added Boolean operators to “reporterize”
fixed a glitch in "reporterize"
fixed an expression parsing glitch
tweaked "reporterize"
reporterize: support '_' as empty slot place holder
reporterize: support for monads etc.
moved reporterizing infix expressions to search-blocks field
[experimental] blockify simple arithmetic expressions inside comments
new url option switch: &noExitWarning
updated history
Adding 26 extra strings
Adding extra strings from lang-pt.js
tweaked elastic easings
added easeOutElastic function
Updated with lang-de.js
added a few in-/out- only easing functions for animations
...
* auto-wrapping for C-shaped slots (around top-level command stacks)
* settings option for auto-wrapping around inner nested stacks
* unlimited “undrop / redrop”, incl. keyboard shortcuts ctrl-z
ctrl-shift-z
* “undrop” also brings back blocks and scripts deleted via context menus
* … or via backspace / delete in keyboard entry mode
* Note: “undrop” is meant to be a temporary solution until
VanderbiltEdu’s synching / undo mechanism is ready for prime time
also: treat JS-function blocks the same as variable getters wrt rings,
i.e. auto-remove the ring in a CALL block when dropping a JS-function
block on it
* Visible Stepping with flashing blocks + slider for stepping speed
* user-controlled visible stepping with “step forward” button
* speed-up: removed unnecessary yields when running custom blocks
* you can now force a single yield with “wait 0” block
* tweaked keyboard entry: if inserted block has inputs go to first one
* only autoscroll panes where it makes sense (not the palette etc.)
* populate messages drop-down with all msgs, including ones from custom
block definition
* fixes the FILL block on retina screens
* fixes turning pentrails into costumes on retina screens
* adds an option to the settings menu letting the user switch between
non-retina and retina resolutions on devices and in browsers that
support it
* Morphic documentation update for retina support
Again, folks, this is IN PROGRESS and not yet ready to be released. But
it’s getting closer to being testable :-)
This has bee designed and written by the amazing Bartosz Leper
(@bl-nero). Since I totally suck at Git and find myself incompetent to
resolve merge conflicts, I’ve decided to manually copy Bartosz’s
changes mostly verbatim over, tweaking them only ever so slightly in
ways that don’t alter their functionality, except for introducing a
tiny test so current Safari still loads Snap, albeit not in retina
mode. THIS IT NOT READY FOR RELEASE YET, IT’S WORK IN PROGRESS. Get it?
Thanks!
* make dialog resizable
* enable double-click on icons
* prevent error if no icon is selected
* prevent error if icon is dragged
* prevent error if icon is right-clicked / ctrl-clicked
* adjust background color
* adjust icon layout
This was removed due to instability on the part of browser vendors.
`Canvas.toBlob()` _should_ be the preferred way of exporting a canvas
as an image. Blob URIs are shorter and don't cause Chrome crashes like
the `data:` URI scheme does. They are also faster to encode images, and
don't clog up browser history.
**However**, there are currently issues in browser support which make
it hard to save images generated by blob URIs. Chrome and Firefox both
have different mechanisms of exporting blob images to disk. (In Chrome
you must right click the image, whereas in Firefox you must use the Save Page As command.)
The current solution is this:
* When a script pic is generated, create a large `data:` URI/
* Check if the browser is Chrome and if the length is a problem
* If so, convert the URI to a blob manually.
* Use the `a[download]` attribute to force the browser to save to disk.
Note that the conversion to a manual blob is _much_ slower than a
native method, but as this is an exporting operation it shouldn't cause
too much of a headache for users since it should be a fairly low
occurrence that users hit that code path.