Wykres commitów

432 Commity (4aa1fac41ef83f1b7ee740d38c5d40bc2665ba6f)

Autor SHA1 Wiadomość Data
brianharvey 1b21d93345 put in latest dev version
Jens has been editing gui.js too, and I'm confused about what's
supposed to be there, so I downloaded the latest dev version and put my
edits there.
2017-01-06 09:16:50 -08:00
brianharvey 3c062b4540 give up on #open:
Works for #run, but #open is too hard (because it can open things other
than projects).
2017-01-06 08:55:57 -08:00
brianharvey f14a7cf3e2 allow &hideControls etc on #run
This is so that EDC can show interactive projects to students as
examples that they will implement themselves.
2017-01-05 22:41:43 -08:00
Michael Ball e88211deb3 Fix typo and center palette loading message 2017-01-04 12:56:24 -08:00
Michael Ball dd914a37bb fix function binding problem that I thought worked... 2017-01-03 15:26:21 -08:00
Michael Ball 40234da3e8 slightly better fixLayout for library import 2017-01-03 12:35:16 -08:00
Michael Ball ecc3182c0e slightly further simplification 2017-01-03 03:41:38 -08:00
Michael Ball ed492f3f6e simplify layout logic for library importing 2017-01-03 03:25:55 -08:00
Michael Ball f327f0d4b1 undo cleverness and show all blocks when importing 2017-01-03 02:00:18 -08:00
Michael Ball d26049680d Merge branch 'master' into michael/lib-preview
* 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
2017-01-03 01:55:49 -08:00
Michael Ball ec2a64963c Dont reserialize blocks when importing 2017-01-03 00:36:41 -08:00
Michael Ball bede779d8a cleanup code, fix scrolling in library import 2017-01-03 00:15:46 -08:00
Michael Ball cb865a864f import tools shows block images 2017-01-01 15:05:06 -08:00
Michael Ball ee6ba75388 tweak libraries loading 2016-12-30 01:21:05 -08:00
Michael Ball 9ca2848f33 loading indicator works, some cleanup 2016-12-30 00:38:21 -08:00
jmoenig d24468522c Hide setting for “prefer smooth animations”
(now - mostly - redundant because we’ve switched to animation frames)
2016-12-29 13:07:32 +01:00
Michael Ball cd828736af Merge branch 'master' of git://github.com/jmoenig/Snap--Build-Your-Own-Blocks into michael/lib-preview
* '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
2016-12-28 22:43:52 -08:00
Michael Ball ed9f2cd9bc Libraries dialog layout WIP 2016-12-28 22:43:45 -08:00
Michael Ball c4dfe6fef6 improve some alignment issues 2016-12-27 21:11:14 -08:00
Michael Ball 7716500d39 An ugly import dialog works, but the layout is broken 2016-12-27 19:21:47 -08:00
Jens Mönig ce876362bb Merge pull request #1483 from cycomachead/typo-fix
Little Bits of Cleanup
2016-12-27 17:02:35 +01:00
jmoenig 1ecb97a972 Disable JS-Functions to protect users from malicious scripts
commented out for now
2016-12-27 16:08:23 +01:00
Michael Ball a8ccc9e73c A very basic an ugly library import dialog works 2016-12-26 22:31:26 -08:00
jmoenig 81a0d30032 update undrop controls when switching sprites and display modes 2016-12-25 12:13:03 +01:00
Michael Ball 3c8eb522bf Merge branch 'master' of git://github.com/jmoenig/Snap--Build-Your-Own-Blocks into typo-fix
* '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
  ...
2016-12-22 12:59:24 -08:00
jmoenig 5dc4874352 new url option switch: &noExitWarning
to better support embedding Snaplets into Moocs
2016-12-19 08:14:01 +01:00
jmoenig fad3cb4263 updated version timestamps
and tweaked code formatting to please pedantic linters :-)
2016-12-09 09:08:44 +01:00
Jens Mönig a09b20b4ad Merge pull request #1546 from jguille2/background
Costumes tab name to Costumes/Backgrounds
2016-12-09 08:58:57 +01:00
jmoenig 08f5ceec7d refresh sound icons in media import dialog when the audio has loaded 2016-12-08 13:38:17 +01:00
jmoenig 6293329eb3 use media dialog for browsing and importing sounds 2016-12-08 12:52:43 +01:00
jmoenig 72c0dcfe76 URI-encode SVG data for Firefox-compatibility 2016-12-07 14:14:43 +01:00
Joan Guillén i Pelegay 6079efcacb adapting 'rename costume' message 2016-12-07 00:00:49 +01:00
jmoenig 3d905d139c Support importing unrasterized SVG_Costumes from the “Costumes” and “Backgrounds” dialog 2016-12-06 17:09:09 +01:00
jmoenig b6c0aa8a4e Switch to asynchronous loading of resources
(costumes, sounds, libraries etc.)
2016-12-06 13:47:21 +01:00
Joan Guillén i Pelegay 665f54b9ec Costumes tab name to Costumes/Backgrounds 2016-12-05 23:34:59 +01:00
jmoenig dd51470239 update scrollbars of the project dialog as the project list is filtered 2016-12-01 12:34:48 +01:00
jmoenig c9af72a665 updated version and history
(and tweaked some semicolons to please static code analysis)
2016-12-01 12:23:15 +01:00
Jens Mönig c3992f5ec5 Merge pull request #1517 from bromagosa/project-filter
Project filter
2016-12-01 12:10:40 +01:00
jmoenig 4ad8160884 fixed #1540 2016-12-01 09:13:54 +01:00
jmoenig cd22b94e0b Enable nested auto-wrapping by default 2016-11-28 17:59:04 +01:00
jmoenig 5b1b4a5e36 use new first-class animations framework 2016-11-25 14:42:20 +01:00
jmoenig dae8e7a7bb tweak "undrop / redrop" animation 2016-11-22 14:23:53 +01:00
jmoenig f37977f320 Block editing improvements - in development
* 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
2016-11-22 10:47:47 +01:00
Bernat Romagosa 37f1e1ba2a Polished filter field 2016-11-18 11:56:18 +01:00
Bernat Romagosa 331e572b42 project filter field, searches by name and notes 2016-11-11 18:39:42 +01:00
jmoenig 3d82132d90 minor code tweaks
to please static code analysis :-)
2016-11-10 10:30:20 +01:00
Jens Mönig 2af3eaacbe Merge pull request #1497 from cycomachead/fix-1495
improvements to export summary
2016-11-10 10:23:09 +01:00
jmoenig 50e94a93ad auto-wrapping
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
2016-11-10 10:21:52 +01:00
jmoenig 1a6aff47dd updated version number 2016-11-10 09:36:14 +01:00
Michael Ball 1c8cd7c45c improvements to export summary
* fix #1495 - remove duplicate ,
* use HTML5 charset attribute
* add the current Snap! language to the html tag
2016-11-05 14:06:47 -07:00
jmoenig 3d269f1740 fixed a flat-mode glitch, updated Portuguese translation
thanks, Bernat for reporting the bug and Manuel for the translation
update!
2016-10-31 09:39:59 +01:00
jmoenig da51393424 preparing minor release v4.0.9
to be deployed live later tonight
2016-10-28 18:31:18 +02:00
Michael Ball 932ba35ee5 minor typos 2016-10-28 03:34:15 -07:00
jmoenig 9a726654c7 added notice to get in touch if afraid of agpl license 2016-10-26 09:47:14 +02:00
jmoenig 6606ed2ed8 updated credits tab 2016-10-24 17:44:28 +02:00
jmoenig d2d096deff select all on fresh input slot edit 2016-10-24 12:27:02 +02:00
Jens Mönig 9b6449c8f7 Merge pull request #1429 from thomaswp/xml-parse-error-fix
Fixed #1428, an issue with preview the (empty) project placeholder.
2016-10-16 17:30:06 +02:00
jmoenig ff5f9a7601 Visible Stepping, and more
* 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
2016-10-15 11:15:01 +02:00
thomaswp 06c7ad89a7 Fixed #1428, an issue with preview the (empty) project placeholder.
The code treats this placeholder the same as any other proejct and attempts to open it, leading to a parse error.
2016-09-26 14:27:44 -04:00
Jens Mönig 21abf24cba v4.0.8.7 2016-08-12 12:05:49 +02:00
Jens Mönig d55e309bf1 restore implicit formal parameters for serialized lambdas 2016-08-03 05:42:36 -04:00
Jens Mönig 3f1a507f0a fixed #1348 2016-07-31 08:34:20 +02:00
Jens Mönig 0ada891866 fixed #1333 - paint new costume not working in retina mode in FF and Edge 2016-07-20 10:14:00 +02:00
Jens Mönig 62fe1bb86f prepare minor release 4.0.8.3 2016-07-19 14:49:25 +02:00
Jens Mönig 0974c750ad fixed #1312
fixed collision detection for non-integer devicePixelRatios
2016-07-17 08:00:54 +02:00
Jens Mönig 8d0a7f19b5 activate generic hat blocks inserted via keyboard editing 2016-07-15 13:42:02 +02:00
Jens Mönig cd03fb3028 finalizing v4.0.8 2016-07-14 12:18:23 +02:00
Jens Mönig 480b090132 updated credits for graphic effects 2016-07-11 18:05:41 +02:00
Jens Mönig d352180b01 fixed #1289 2016-07-07 14:59:55 +02:00
Jens Mönig 6e22558cc5 double click on pane resizers to slide them back to normal 2016-07-07 08:24:04 +02:00
Jens Mönig 2692f1d4e5 make palette resizable
there you go, Dan ;-)
2016-07-06 18:41:40 +02:00
Jens Mönig 38dabc7555 don't execute Boolean sliders on empty slots 2016-07-04 09:23:41 +02:00
Jens Mönig 61dec93ede Merge pull request #1250 from bromagosa/live-boolean-inputs
Implements execute on change for boolean toggles
2016-07-04 09:12:17 +02:00
Jens Mönig 86a3ad10fd enable tables and keyboard editing by default 2016-07-04 08:34:04 +02:00
Jens Mönig ee803ad747 fixed #1254 2016-06-19 21:48:59 -04:00
Jens Mönig 364155dc89 clear pen trails when toggling between retina and non-retina mode 2016-06-18 07:17:34 -04:00
Bernat Romagosa 37ba8dd000 Implements execute on change for boolean toggles 2016-06-09 18:02:08 +02:00
Jens Mönig 0c1ecf2b9a fixed localization on startup 2016-06-01 07:57:57 +02:00
Jens Mönig 8a8d55c3e9 localize "Stage" and "Sprite" on startup 2016-05-30 17:36:12 +02:00
Jens Mönig 5e79f4cedc credit YCR's HARC in supporters tab 2016-05-13 09:01:16 +02:00
Jens Mönig 5dbb6ad8a1 Retina display support tweaks - IN PROGRESS -
* 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 :-)
2016-05-11 18:03:49 +02:00
Jens Mönig 179d93f103 support for retina displays, integrates #1063 - IN PROGRESS
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!
2016-05-10 20:33:44 +02:00
Jens Mönig 711b9a431f tweak media import dialog
* 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
2016-05-09 18:34:40 +02:00
Jens Mönig b98e7323f6 Merge pull request #1213 from ubertao/costumes
media import dialog with thumbnails
2016-05-09 14:04:53 +02:00
Jens Mönig 3299878c15 fixed #1212 - Null continuation doesn't escape from calling context 2016-05-09 13:11:09 +02:00
ubertao 39a8a7f36f media import dialog with thumbnails 2016-05-09 16:52:45 +08:00
Jens Mönig 71333021d4 cloning speedup
significantly speed up sprite cloning through partial shallow-copying
of scripts and costumes instead of deep-duplication
2016-05-04 16:37:46 +02:00
Jens Mönig 46ba633bf2 Merge pull request #1185 from brollb/1184-getURL-silent-fail
Retrieved message from error. Fixes #1184
2016-05-02 13:06:05 +02:00
Jens Mönig 01648b3b4e Merge pull request #1193 from cycomachead/fix-blob-images
Fix #1191; Fix #1174 Comment out `Canvas.toBlob()`
2016-05-02 12:58:29 +02:00
Jens Mönig ed3b56a610 first-class sprites 2016-05-02 12:53:08 +02:00
Brian Broll 26ccb415bd Retrieved message from error. Fixes #1184
WIP #1184. Changed .message to .toString()
2016-04-29 10:35:10 -05:00
Michael Ball 4a2583fde7 Fix #1191; Fix #1174 Comment out `Canvas.toBlob()`
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.
2016-04-28 10:03:41 -07:00
Jens Mönig b35bc9907a prepare repo for v4.0.7 2016-04-27 10:39:27 +02:00
Jens Mönig bbb5106879 towards v4.0.6
* fixed #99 (saving linked lists)
* fixed #1163
* added web api / https reporter library
* new “transient variable” feature
* German translation update
2016-03-16 13:00:31 +01:00
Jens Mönig 582feb206b Merge pull request #1146 from cycomachead/url-calls
Support Loading More Resources from the `resourceURL` method
2016-02-24 12:40:01 +01:00
Michael Ball 292fe5a4de Make the resourceURL function more generic
now you just pass in directories as arguments, which is much cleaner--
especially when loading things like `tools.xml` with no parent folder.
2016-02-24 03:03:34 -08:00
Jens Mönig df0269f5cc support for viewing 2D lists as tables 2016-02-24 11:35:18 +01:00
Michael Ball e197471d08 Support loading lang* files from resourceURL path 2016-02-21 17:43:23 -08:00
Michael Ball 80a516ed7e Use ide.resourceURL to load the logo and tools XML
This makes it easier to support using snap when loaded in a variety of websites.
(Theres no outward change for users, just for those embedding Snap!)
2016-02-18 23:41:26 -08:00
Jens Mönig a0307a240f updated version history 2016-01-08 16:23:23 +01:00
Michael Ball 18716f4c0f Fix #1099, bug was introduced in #983 2016-01-06 11:21:32 -08:00
Jens Mönig f50c6fc2d3 updated version history 2015-12-22 08:18:00 +01:00
Michael Ball 2c49bea5d4 open dialog: Dont show cloud projects if user has since switch panes 2015-12-21 16:06:48 -08:00
Michael Ball df54bfb00e Use case insensitive sorting for localstorage and cloud projects. Tag #899 2015-12-21 15:06:36 -08:00
Jens Mönig e27db7d960 updated version history 2015-12-21 16:17:42 +01:00
Michael Ball de42fc0f99 Make logoURL be a property of IDE
This makes it easier to embed Snap! in another site where the JS code
and the html file are in different directories.
2015-12-17 04:20:26 -08:00
Jens Mönig c56f5f6d0d little tweaks 2015-12-15 13:07:47 +01:00
Michael Ball e27a7f245e Resolve merge with 4.0.4 2015-12-15 03:46:27 -08:00
Michael Ball 7e42e8f785 fix a minor spacing issue 2015-12-15 03:41:49 -08:00
Michael Ball ff1aab7d1f Cleanup help text and add exporting in new tab
* Minor: Fix the help text for downloading a project to the downloads
folder to be correct
* Add back the ability to export a project to a new tab by
shift-clicking on the File menu.

New string to be translated:
'save project data as XML\nto your downloads folder
2015-12-15 03:38:39 -08:00
Jens Mönig 632bdec030 Merge pull request #1046 from cycomachead/autofill
Fix isAutoFill to allow false values
2015-12-15 10:35:53 +01:00
Jens Mönig f24b65f673 towards v4.0.4 - under construction -
* Show result bubble when the user clicks on a command script that uses
REPORT (You can now click on REPORT and it actually does something)
* New generic “When” hat block, enhances red stop button behavior
* New block (instance) variables feature (experimental)
* evaluator performance optimizations
* Morphic grab-threshold fix for scroll frames
* fixed several block rendering glitches
* List category LENGTH reporter now also works on text
* Changed “any” to “random” (in English only)
* new FILL primitive in the Pen category
* switched to animation frame scheduling, please use TURBO for music
* Updated German translation
2015-12-15 10:14:56 +01:00
Michael Ball 8050b5b8cb Merge branch 'master' into blob-api
* master:
  add Brian's help panes for "for each item of list" block
  optimize cloud communication
  fixed linked lists identity loss when showing watchers
  Add LABEL to the tools library; fix #1009
  fixed a zebra-coloring glitch for BooleanSlotMorph
2015-12-08 03:49:08 -08:00
Michael Ball ab2fc67857 Fix isAutoFill to allow false values
currently the expression isAutoFill || true will always evaluate
to true! :O

(That makes the argument somewhat useless though.) So, this fixes things...
2015-12-05 04:09:39 -08:00
Jens Mönig be32d755b5 optimize cloud communication
support double the number of web slices, support avoiding encoding
projects on the backend side
2015-12-04 15:55:33 +01:00
Michael Ball e241ff6795 Cleanup log statement; minor try/catch refactoring 2015-12-01 03:14:16 -08:00
Michael Ball 7603d4746a Minor refactoring in try/catch blocks 2015-12-01 03:11:40 -08:00
Michael Ball 2ef9a8f720 Fix #966 - declaring this done
Final commit removes Save to Disk for XMLs
2015-12-01 02:54:07 -08:00
Michael Ball d004543a32 Fix some bugs in exporting a variable to a file. 2015-12-01 02:16:34 -08:00
Michael Ball 9490b65270 Cleanup filenames and references to `ide` 2015-12-01 01:45:58 -08:00
Michael Ball 888b0b97eb Uglier code that properly opens BlobURIs in new windows. 2015-11-17 18:05:15 -08:00
Michael Ball 35d0ea5629 Cleanup bad polyfill in saveCanvasAs 2015-11-17 17:43:35 -08:00
Michael Ball 396be20b18 Some code cleanup and variable name fix 2015-11-17 02:42:17 -08:00
Michael Ball fa1a24a4bd Fix syntax error, and accessing IDE bug exporting blocks 2015-11-16 18:41:54 -08:00
Michael Ball 6f03f121ad Fix some file names in exporting content 2015-11-16 18:31:19 -08:00
Michael Ball dafb6146f6 Fix merge conflicts, and cleanup saveFileAs code 2015-11-16 18:12:33 -08:00
Michael Ball fa6f168bc0 Merge in 4.0.3, resolve conflicts with scriptpics 2015-11-16 17:53:17 -08:00
Michael Ball 65fd07e41a Cleanup code and add placeholders for error messages 2015-11-16 16:33:00 -08:00
Jens Mönig 7070e84841 fixed a redraw-glitch in the "zoom-block" dialog
… which I’d introduced earlier trying to bum out redundant redraws
2015-11-16 18:07:58 +01:00
Jens Mönig 9dddc4326f move comments inside the functions they refer two 2015-11-16 12:43:30 +01:00
Jens Mönig 826eab2e48 Lint changes to gui.js 2015-11-16 12:41:26 +01:00
Jens Mönig 2642708780 Merge pull request #971 from cycomachead/resource-loading
Refactor Loading Resources (Sounds, Libraries, etc)
2015-11-16 12:34:51 +01:00
Jens Mönig 6061403a89 Prepare for v4.0.3
* fixed occasional horizontal rendering artifacts in block “holes”
(C-shaped slots and Ring holes)
* improved user editing of input slots and fixed cursor behavior (note:
the text cursor inside input slots also blinks again, as it should have)
* always export comments attached to prototype hat blocks in the block
editor along with script pic
* when first opening a block editor on a custom block definition make
it big enough to show everything (as much as fits on the screen)
* remember block editor position and dimensions for each edited custom
block definition when acknowledging (pressing OK or APPLY) for the
session
* speed up stacking of commands and loading of projects by suppressing
redundant block redraws
* introducing a “grab threshold” preference to suppress accidental
grabbing through micro-movements of the hand. This addresses the
“cannot-click-on-drop-downs-in-Chrome-under-Windows” set of bug
reports, and also the issues that arise out of accidentally dragging
off a copy of a parameter blob when trying to just click on it to
rename it
* new hidden (shift-click) option to adjust the grab threshold in the
settings menu for the current session
* expand list watchers inside result bubbles and speech/thought
balloons to show everything (as much of the list’s first level as fist
into either the scripting area for result bubbles or the stage for
speech balloons - note resizing the stage affects the size of the list
watchers inside speech balloons, i.e. making the stage bigger increases
the number of visible elements even while the balloon is showing)
* fixed a bug that make an occasional gray rectangle appear at the
mouse pointer
* added a way to invoke blocks synchronously in JavaScript - under
construction (possibly to be used for generic “When” hat blocks and
user-customizable drop-downs)
* added methods to cache morphs’ fullImage and fullBounds while dragging
* Reporters (also nested reporters) and sprite icons (in the corral)
are now semi-transparent when being dragged, so you can see possible
drop target halos /through/ them
* in “prefer empty slot drops” mode (default) it is now much harder to
drop reporters onto non-static C-slots inside custom blocks (e.g. in
FOR loops) and onto variadic input arrowheads (to replace the whole
input with an input list)
* ScriptsMorphs are now noticing transparent clicks (addresses #997)
* %interaction slots are now static, fixed #982 (it is no longer
possible to drop reporters into the input slot of a “When I am…” hat
block (never was intended that it should be possible)
* fixed ctrl-f for the block editor in all situations (thanks, Brian,
for the bug report)
2015-11-16 12:18:40 +01:00
Michael Ball 7976c60d1c Refactor saveFileAs to simplify code paths 2015-11-12 22:38:47 -08:00
Michael Ball f9b72c3507 Display new windows using Blob URLs.
This works great, but:
* Safari treats XML as "Unknown.css"
* Chromes disabled Save As recently.... :(
2015-11-12 17:04:15 -08:00
Michael Ball 8495cd36f3 Refactor saveFileAs - hopefully this version is much more clear. 2015-11-12 15:16:35 -08:00
Michael Ball 9064425004 Refactor Save to Disk to have less duplicated code 2015-11-12 14:50:18 -08:00
Michael Ball d73ae50328 Pass 1 refactor saveToDisk function 2015-11-12 05:07:21 -08:00
Michael Ball 995d3da58d Update the export project function to use saveXMLAs 2015-11-12 05:05:13 -08:00
Michael Ball 212aa7bdda implement a save*As function for all remaining data types 2015-11-12 04:31:27 -08:00
Michael Ball db7fcada84 Finish saveAs in blocks.js; fix encoding saving a canvas 2015-11-12 03:29:32 -08:00
Michael Ball e47dcb0ebf Improve saveAs refactoring (WIP across all Snap!)
- added TODO comments to all functions that need updating (byob, blocks)
- separate out the code into 3 new functions for readability:
  - `saveFileAs` is a generic method
  - `saveCanvasAs` and `saveXMLAs` are wrappers which aid in exporting images and all XML files which together cover almost all export cases.
  - In other cases, you can call `saveFileAs` directly with some additional input.
- `saveCanvasAs` in particular uses a new `Canvas.toBlob()` option when it is available (FF and IE currently) that should greatly reduce memory.
(Chrome and Safari both have open bugs and may at somepoint implement this function.)
- I have added in code to detect bugs in chrome, including when a new window is being opened. If a new window cannot be opened, the a (to be written) warning message will appear.
- a few functions (namely those in morphic.js) have not touched. However, these are functions which should only occur in a small subset of cases and are behind hidden features.
2015-11-09 15:14:23 -08:00
Michael Ball b9303422ca Delete baseURL code b/c it is not needed
By making all loads relative to snap.html we eliminated the need for
such a function.
2015-10-27 03:10:30 -07:00
Michael Ball 35c1826be3 Fixed the URI encoding partially and re-ordered the canvas processing 2015-10-27 00:57:30 -07:00
Michael Ball fbd11917b9 Exporting Projects works, encoding URI not needed. 2015-10-27 00:36:55 -07:00
Michael Ball cce37d8172 Use resourceURL() for items in help/ 2015-10-07 23:32:52 -07:00
Michael Ball 5452c2bfa7 DRY out creation of Costumes/Sounds/etc submenus 2015-10-07 23:21:20 -07:00
Michael Ball f9d62c1b7f Refactor loading Example projects to be consistent. 2015-10-07 04:49:05 -07:00
Jens Mönig 72bf4cfb8c New feature: Remove Unused Global Blocks
* BYOB, Objects, GUI: New “Remove Unused Global Blocks” Feature
* GUI, Lists: “Export Project Summary” improvements:
  - show variable values as watcher pics
  - expand list watcher pics to show their complete contents (1. level)
  - url for shared projects
  - table of contents
  - basic support for sprite nesting and inheritance
  - make the summary “browsable” instead of editable
  - outline around sprite / stage snapshots
  - experimental hidden (shift-click) “drop-shadows” option
* GUI: Rearrange project menu, only show global blocks-related ops if
there are any
* GUI: Remove URL location.hash information when loading a new project
* Store: Fix deserialization support for projects using inheritance
* German translation update
2015-10-07 13:38:19 +02:00
Michael Ball c6b43bee12 Fix #867; All media has an index file that is being used to load files 2015-10-07 04:23:30 -07:00