Paul Kaplan
eccbfe71a5
Throttle updates to stage images also
2019-01-23 14:49:35 -05:00
Paul Kaplan
cc7a087e80
Throttle the watermark updates using the same HOC
2019-01-23 14:37:57 -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
0910b2ece1
Remove dead code
2019-01-23 13:58:52 -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
9a4ef280f8
Merge pull request #4396 from paulkaplan/improve-sound-editor-perf
...
Improve sound editor performance with longer sounds
2019-01-23 09:07:13 -05:00
Paul Kaplan
743f7d5e7c
Merge pull request #4393 from paulkaplan/fix-black-drag-transition
...
Remove transition on sprite tiles to make placeholder not flash black.
2019-01-23 08:47:43 -05:00
Paul Kaplan
22f6774e30
Merge pull request #4383 from paulkaplan/fix-transition-perf
...
Remove scale transition from green flag, stop and sound editor buttons
2019-01-23 08:45:23 -05:00
Eric Rosenbaum
da2f290d7f
Update WeDo 2.0 extension name
2019-01-22 11:38:20 -05:00
Paul Kaplan
6b6662f569
Improve paint/composite time for sound editor while sound is playing.
...
Forcing the playhead onto its own painting layer removes an expensive composite with the waveform. Animate using transforms instead of left prevents layouts of the rest of the page while playing a sound.
2019-01-22 09:15:51 -05:00
Paul Kaplan
bcb287cda5
Optimize Waveform component to reduce renders and cap max nodes in svg.
...
The waveform component was being re-rendered while the playhead changed, which is a costly operation because it has to calculate the full svg path data string.
2019-01-19 09:57:31 -05:00
Paul Kaplan
f4ad5b05d7
Remove transition on sprite tiles to make placholder not flash black.
...
Also use white as the background since it gives the same impact and will not look bad if the filter isn't applied or takes a while to be applied
2019-01-19 09:02:22 -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
Benjamin Wheeler
4498ba3724
Merge pull request #4385 from LLK/revert-4374-revert-4359-delete-select
...
Add BorderedMenuItem and use it for delete menu, with updated style
2019-01-18 16:57:12 -05:00
Ben Wheeler
7fb57a03d8
use error-primary color rather than error-light
2019-01-18 16:47:51 -05:00
Paul Kaplan
eb8746382c
Merge pull request #4389 from paulkaplan/fix-sound-reord
...
Fix sound reorder crash
2019-01-18 15:20:48 -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
Ben Wheeler
3bbfe94d19
reduced size, color intensity of sprite context menu separator
2019-01-18 14:12:13 -05:00
Benjamin Wheeler
1d28f52161
Revert "Revert "Adds BorderedMenuItem and use it for delete menu""
2019-01-18 13:39:06 -05:00
Paul Kaplan
7485aabb68
Remove scale transition from green flag, stop and sound editor buttons
...
See #4382 for more info about why, and what we need to follow up on it
2019-01-18 12:58:11 -05:00
Paul Kaplan
8be41dda09
Fix backpack squishing
2019-01-17 15:31:08 -05:00
Paul Kaplan
dfc13e2e54
Fix ordering to allow close button to be clicked.
...
The previous change that made the images laid out using absolute meant that the close button was layered below the sprite image, making it now clickable
2019-01-17 09:14:47 -05:00
Paul Kaplan
980a6acd53
Revert "Adds BorderedMenuItem and use it for delete menu"
2019-01-17 09:03:17 -05:00
Evelyn Eastmond
c1ad2b51b6
Changes to event names to clarify them.
2019-01-16 20:48:49 -05:00
Evelyn Eastmond
d72d2c5de2
Adding a new runtime event for peripheral disconnects that are intentional.
2019-01-16 20:48:49 -05:00
Karishma Chadha
d2f834d702
Merge pull request #4362 from paulkaplan/layout-perf
...
Improve layout/paint performance in editor while running a project
2019-01-16 15:45:23 -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
Benjamin Wheeler
2e017f060f
Merge pull request #4359 from apple502j/delete-select
...
Adds BorderedMenuItem and use it for delete menu
2019-01-16 15:23:49 -05:00
Ben Wheeler
6f543ae36c
Refactored the css for sprite context menu items a bit to separate classes
2019-01-16 15:22:28 -05:00
Paul Kaplan
7b217c6fce
Make sprite selector item absolutely position images to prevent layouts
...
On some projects, the sprite image changes frequently, which can cause global layouts and paints if we arent careful. Use the same absolute positioning strategy from the sprite library animations to contain layouts to the sprite image itself
2019-01-16 11:09:39 -05:00
apple502j
97f2241635
Adds BorderedMenuItem and use it for delete menu
2019-01-16 12:26:42 +09:00
Paul Kaplan
a2cc320d1f
Clear trim handles if trim cannot be completed.
...
There was a useability issue discovered in testing where trying to trim a sound to be of zero length would fail, but just leave the trimmers active. Clear them out, since the trim is invalid
2019-01-15 15:25:26 -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
395b3d9d8f
Prevent 0 sample sounds while trimming #715
2019-01-14 12:54:34 -05:00
Paul Kaplan
329a6b5fd6
Fix typo in alert message
2019-01-14 12:20:30 -05:00
Paul Kaplan
3f51775f07
Only stop recording if we have collected some samples.
...
On slow machines it was possible to double click record before the chunk of samples had been processed, causing zero-length audio buffers
2019-01-14 12:20:20 -05:00
Paul Kaplan
f3c15c402f
Prevent auto-trim from producing invalid start and stop points
2019-01-14 12:17:52 -05:00
Karishma Chadha
214393f060
Merge pull request #4315 from kchadha/fix-backpack-mp3
...
Allow putting mp3 sounds in the backpack.
2019-01-14 12:05:51 -05:00
Paul Kaplan
db946df68b
Merge pull request #4322 from paulkaplan/show-loading-fullscreen
...
Show loading screen in fullscreen mode
2019-01-11 13:32:22 -05:00
chrisgarrity
c89d452fb3
Merge pull request #4314 from chrisgarrity/clickable-flag-overlay
...
Make whole stage clickable for green flag overlay
2019-01-11 13:18:53 -05:00
Paul Kaplan
ae8ba47441
Cover the fullscreen player mode stage with a loading screen
2019-01-11 11:02:09 -05:00
Paul Kaplan
15c9c1fbeb
Pass isRTL to the stage wrapper in both player and editor modes.
...
Discovered this while trying to pass other props to the stage wrapper, we were not passing isRTL to the stage wrapper, causing ask/answer bubble to not display the right direction.
2019-01-11 10:58:19 -05:00
Ben Wheeler
95b11a7b7d
resolve function name conflict by renaming onProjectLoaded in project-fetcher-hoc
...
https://github.com/LLK/scratch-gui/pull/4312 had a function name conflict with the existing code. This change fixes that by renaming the conflicting function, and removes redundant code.
2019-01-10 17:28:40 -05:00
Karishma Chadha
40de587b0d
Allow putting mp3 sounds in the backpack.
2019-01-10 14:55:33 -05:00
chrisgarrity
07eb519b09
Make whole stage clickable for green flag overlay
...
Move the onClick handler to the overlay wrapper so that the whole stage is clickable to start the project instead of just the green flag button
2019-01-10 14:21:09 -05:00
chrisgarrity
86a51bdbf8
Merge pull request #4312 from chrisgarrity/feature/support-onprojectloaded
...
add support for onProjectLoaded
2019-01-10 13:59:39 -05:00