Commit Graph
971 Commits
Author SHA1 Message Date
Paul Kaplan cae9d9a683 Merge branch 'develop' into nj/ui-changes 2019-02-12 09:04:31 -05:00
Paul Kaplan 7563eddb2b Merge pull request #4509 from LLK/gif-upload
Gif upload v1: sprites, costumes
2019-02-11 10:12:40 -05:00
Paul Kaplan 1d617214b4 Simplify disposal method handling 2019-02-11 09:28:16 -05:00
Nikhil Jha fb9c3eed74 Merge branch 'develop' into nj/ui-changes 2019-02-08 20:21:32 -08:00
Paul Kaplan b618f2493c Fix backdrop uploading from gif 2019-02-08 13:56:00 -05:00
Paul Kaplan 8dad7d8ec0 Remove extra parens 2019-02-08 13:45:30 -05:00
Paul Kaplan 7c1d720e17 Merge pull request #4485 from towerofnix/sort-of-variables
Sort variable options in "of" block
2019-02-08 13:37:27 -05:00
Paul Kaplan b29862fc96 Merge pull request #4498 from mzgoddard/lazy-text-encoder
require text-encoding only if it is needed
2019-02-08 13:27:19 -05:00
Paul Kaplan 28635d8028 Remove namer from costume and sound upload helpers to reduce spaghetti 2019-02-08 13:18:57 -05:00
Paul Kaplan ba277a5238 Fix namer conventions to be less bizarre 2019-02-08 13:18:57 -05:00
Paul Kaplan 489467e63d Pass function for naming costumes, add integration tests 2019-02-08 13:18:57 -05:00
Paul Kaplan 88651e6e48 Gif upload v1: sprites, costumes 2019-02-08 13:18:57 -05:00
Paul Kaplan da65b41366 Merge pull request #4499 from LLK/multi-upload
Multiple file upload for costumes, sounds, backdrops and sprites
2019-02-08 10:47:15 -05:00
Paul Kaplan 0c261e5597 Use blob download instead of data-uri to enable large downloads
This was already being used for sb3s and sprite3s, but the code was repeated in different places. Make a single helper that downloads blobs, and make all download paths use it.
2019-02-07 11:44:34 -05:00
Nikhil Jha 781c682e60 Merge branch 'develop' into nj/ui-changes 2019-02-06 14:56:46 -08:00
Paul Kaplan 65756fcc50 Load files one at a time to enforce load order 2019-02-06 14:32:17 -05:00
Karishma Chadha aa7d52553a Merge pull request #4486 from kchadha/xml-escape
Escape special characters in toolbox xml
2019-02-06 14:22:19 -05:00
Paul Kaplan 8a46b8f71b Make file uploader call callback for each uploaded file 2019-02-06 12:09:32 -05:00
Florrie 9166cb12d5 Don't refer to scratchBlocksUtils from scratch-gui 2019-02-06 12:24:16 -04:00
Michael "Z" Goddard 66a9607bc7 require text-encoding only if it is needed 2019-02-06 10:32:12 -05:00
Xu Jing 42baacf688 fix(Typo): change 'dserver' to 'server' 2019-02-05 11:53:10 -05:00
Karishma Chadha fcf0f4e31d Merge pull request #4465 from LLK/paulkaplan-patch-2
Make uploaded sprites not draggable
2019-02-05 11:00:27 -05:00
Karishma Chadha c062d0589b Escape special characters in user defined strings that can appear in the toolbox xml. 2019-02-04 21:31:37 -05:00
Florrie c6c5d61039 Sort variable options in "of" block 2019-02-04 16:03:44 -04:00
Nikhil Jha 9232b1c656 Merge branch 'develop' into nj/ui-changes 2019-02-01 15:19:38 -08:00
Paul Kaplan 55461a07a7 Merge pull request #4438 from apple502j/download-assets
Export costumes and sounds!
2019-02-01 14:04:47 -05:00
Paul Kaplan f41c5764ff Use more generic download-url and remove older download-text utility 2019-02-01 13:17:43 -05:00
Paul Kaplan 704b52c944 Make uploaded sprites not draggable 2019-01-31 14:45:40 -05:00
Paul Kaplan 9264f30198 Make the toolbox xml reflect the costume, sound and backdrop name
This invalidates the toolbox XML when switching back to the code tab after e.g. renaming a costume, making the code tab
2019-01-30 09:39:18 -05:00
Nikhil Jha aaa8fd20e4 Fix Lint 2019-01-28 17:07:43 -08:00
Nikhil Jha 9da0937ebb Remove References 2019-01-28 16:52:46 -08:00
apple502j 2a36f49d7c Export costumes and sounds 2019-01-27 19:21:15 +09:00
Paul Kaplan a37ea67512 Use fontInliner instead of entire SVGRenderer for showing costume tiles.
The fontInliner from the scratch-svg-renderer was changed recently to work entirely on strings, so we can use that instead of parsing/loading/possibly drawing/stringifying the entire SVG. 

This does not address the size-1 cache issue where the cache is invalidated any time there is more than 1 sprite. But that can be handled later.

Using the 4x CPU slowdown in chrome dev tools, on a simple costume that just has a single text element the getCostumeUrl time goes from 10ms to 1ms, very important for updating in a timely way.
2019-01-24 08:49:17 -05:00
Paul Kaplan 655a179cb8 Merge pull request #4417 from paulkaplan/throttle-costume-updates
Throttle costume and watermark updates
2019-01-23 16:24:01 -05:00
Paul Kaplan d9c5ad6aa4 Use curried style for HOC configuration 2019-01-23 15:56:23 -05:00
Paul Kaplan 0bc6de1362 Throttle updates to assets on sprite selector item via HOC
Adds unit tests for this HOC.
2019-01-23 14:30:41 -05:00
Paul Kaplan 6713c7ad0f Fix issue where dragPayload was being invalidated for sprites
Use PureComponent instead since it is a simple shouldComponentUpdate check now.
2019-01-23 13:58:42 -05:00
Paul Kaplan 8e22161a7d Merge pull request #4407 from paulkaplan/no-updates-while-recording
Disable target updates while sound recording
2019-01-23 12:12:33 -05:00
Paul Kaplan d3511f6020 Disable target updates while sound recording 2019-01-22 14:26:16 -05:00
Eric Rosenbaum da2f290d7f Update WeDo 2.0 extension name 2019-01-22 11:38:20 -05:00
Eric Rosenbaum ff473e8fb0 Merge pull request #3922 from evhan55/extensions/disconnect-errors
Peripheral disconnect status using new runtime/vm event
2019-01-18 16:59:22 -05:00
Paul Kaplan 1146689f42 Fix sound reorder bug.
We were emitting drops when getMouseOverIndex was null, which could happen either when the drop is outside the container, or there were zero boxes to check for ordering. Treat these two cases separately, and continue to not emit drops when outside the container.
2019-01-18 15:14:06 -05:00
Paul Kaplan 5e2055fc84 Revert "Merge pull request #4354 from paulkaplan/fix-backpack-sprite"
This reverts commit 97f8eb63b4, reversing
changes made to 2e017f060f.
2019-01-18 15:09:12 -05:00
Evelyn Eastmond c1ad2b51b6 Changes to event names to clarify them. 2019-01-16 20:48:49 -05:00
Karishma Chadha 97f8eb63b4 Merge pull request #4354 from paulkaplan/fix-backpack-sprite
Fix issue where you couldn't add sprites from backpack when there are no sprites
2019-01-16 15:39:13 -05:00
Paul Kaplan 16994e35f8 Allow drop event in sortableHOC even when there are no items to sort.
This is used because the sortable drop is also used for general dropping as well as sorting drop, so you need to be able to drop into a sortable list that does not contain any items.

Make the corresponding reorder code be more careful to check if there is a newIndex.
2019-01-15 12:42:34 -05:00
Paul Kaplan 4d136c727b Merge pull request #4339 from paulkaplan/prevent-large-sounds
Prevent creating sounds that are too big in the sound editor
2019-01-15 12:25:00 -05:00
Paul Kaplan 50a9541999 Merge pull request #4338 from paulkaplan/fix-sound-recorder-issues
Fix sound recorder issues
2019-01-15 12:24:47 -05:00
Paul Kaplan 2e30f1d426 Limit the size of sounds coming from effects. 2019-01-14 13:10:55 -05:00
Paul Kaplan f3c15c402f Prevent auto-trim from producing invalid start and stop points 2019-01-14 12:17:52 -05:00