Karishma Chadha
6f9367a8e2
Merge pull request #1468 from gnarf/serialization-util
...
export deserializeBlocks method
2018-08-20 19:58:19 -04:00
Corey Frang
ae219e361a
Add comments for deserialization and add tests
2018-08-20 13:25:24 -04:00
Karishma Chadha
e0a1f464ce
Add and update unit tests for sound deletion.
2018-08-20 12:49:30 -04:00
Evelyn Eastmond
2121a3be80
Some small EV3 fixes ( #1494 )
...
* Fixing #1353 : Stop button should stop EV3 beep sound.
* Fixing #1358 : EV3 and Microbit: shouldn't send requests if not connected?.
* Fixing #1373 : EV3 motor does not brake at the end of a motor command.
2018-08-20 11:00:48 -04:00
Ray Schamp
4f18cdd4ee
Merge pull request #1497 from amazinigmech2418/revert-1453-round-setxy
...
Revert "round x and y like Scratch 2 does"
2018-08-20 10:36:46 -04:00
Evelyn Eastmond
5395f9c321
WeDo2 changes for upcoming smoke test ( #1493 )
...
* Starting on #1491 : use 'startNotifications' instead of 'read'. Still need to make backwards compatible.
* Fixing #1489 : WeDo2 set light color block should wrap values to 0-100.
* Fixing #1488 : WeDo2 should not clear LED light on stop button.
* Fixing to support negative LED light color inputs.
* Removing a binding.
* Using wrapClamp for inputHue for LED color block.
2018-08-19 22:09:57 -04:00
amazinigmech2418
f0d47923b0
Revert "round x and y like Scratch 2 does"
2018-08-17 20:35:42 -04:00
Karishma Chadha
24b098257b
Return restore sound function when deleting a sound.
2018-08-17 14:01:24 -04:00
Ray Schamp
a1249bd3f8
Merge pull request #1453 from mzgoddard/round-setxy
...
round x and y like Scratch 2 does
2018-08-17 10:26:15 -04:00
Karishma Chadha
84f4c8c0a6
Merge pull request #1486 from kchadha/fix-delete-sprite-local-vars
...
Fix issue with deleting sprite with local variables
2018-08-16 17:28:43 -04:00
Eric Rosenbaum
83b3eabf1d
Regulate micro:bit send timing ( #1471 )
...
* display blocks yield for 50ms
* WIP on microbit command send timing
* WIP on microbit command send timing
* Cleanup and JSDOC
* Send “withResponse” param to Link
* Remove caching, add busy timeout
2018-08-16 15:38:03 -04:00
Eric Rosenbaum
825035f503
Fix importing WeDo 2.0 blocks from SB2 ( #1487 )
...
* Fix wedo2 import from sb2
* Hide wedo play note block
2018-08-16 14:24:19 -04:00
Corey Frang
896e62d2c4
Also export serializeBlocks for round-tripping
2018-08-15 17:06:30 -04:00
Corey Frang
df9dbd112a
Make importing with deserialized stuff okay
2018-08-15 17:04:49 -04:00
Karishma Chadha
b95350da6e
Fix issue where deleting a sprite with a monitored local variable creates that local variable on all other sprites after switching sprites twice or more.
2018-08-15 14:31:40 -04:00
Evelyn Eastmond
0df334fd38
Fixes #1423 : WeDo commands should be able to be translated. ( #1482 )
2018-08-15 14:21:42 -04:00
Evelyn Eastmond
280be8379b
Merge pull request #1481 from evhan55/feature/wedo2-fixes
...
Various WeDo2 fixes and enhancements
2018-08-15 14:11:04 -04:00
Evelyn Eastmond
35a2411f92
Fixing motor direction block to also work when the motor is on indefinitely.
2018-08-15 14:01:08 -04:00
Evelyn Eastmond
c21d5eba1c
Merge pull request #1469 from ericrosenbaum/feature/wedo-icon
...
Add WeDo 2.0 block icon
2018-08-15 12:01:48 -04:00
Evelyn Eastmond
82df80a04c
Fixing lint error.
2018-08-15 11:44:49 -04:00
Evelyn Eastmond
9fb522b3ff
Moving a function.
2018-08-15 11:39:26 -04:00
Evelyn Eastmond
13edf16caa
Fixing #1457 : extension should parse incoming messages using port table.
2018-08-15 11:39:26 -04:00
Evelyn Eastmond
d61f6e3d6f
Fixing #1460 : 'set motor direction' block should work while a motor is running.
2018-08-15 11:39:26 -04:00
Evelyn Eastmond
3023b7a9c2
Fixing #1455 : set LED to blue on connecting.
2018-08-15 11:39:26 -04:00
Evelyn Eastmond
9f25872c1f
Fixing #1454 : extension should cast and clamp input values.
2018-08-15 11:39:26 -04:00
Evelyn Eastmond
d89020cfb1
Fixing #1461 : distance sensor should report 0-100 in steps of 10.
2018-08-15 11:39:26 -04:00
Florrie
5af79a086b
Use round() instead of floor() in repeat, add unit test
2018-08-14 20:27:18 -03:00
Connor Hudson
f9814a5f88
Allow localizing EV3 blocks ( #1437 )
...
* Add formatMessage calls to block text in EV3 extension
* Make some EV3 l10n descriptions more descriptive
2018-08-14 14:36:19 -04:00
Eric Rosenbaum
3af8a4eca5
Add WeDo 2.0 block icon
2018-08-14 13:51:17 -04:00
Connor Hudson
8d88058ae5
Allow localizing micro:bit blocks ( #1431 )
...
* Replace micro:bit block text with formatMessage calls
* Add l10n support to micro:bit block menus
* Remove A, B button translation, update some l10n descriptions
* Fix mismatched l10n description
2018-08-14 12:19:26 -04:00
Corey Frang
fe46a81cc9
export deserializeBlocks method
2018-08-14 11:17:47 -04:00
Karishma Chadha
e6a7188613
Merge pull request #1463 from kchadha/update-parser
...
Bump scratch-parser version, pulling in validation error fixes.
2018-08-13 18:25:16 -04:00
Karishma Chadha
f663b1eb78
Update package-lock file.
2018-08-13 18:19:55 -04:00
Karishma Chadha
a0fd288420
Bump scratch-parser version, pulling in validation error fixes.
2018-08-13 18:09:14 -04:00
Karishma Chadha
1685216db9
Merge pull request #1449 from LLK/greenkeeper/scratch-parser-4.3.1
...
Update scratch-parser to the latest version 🚀
2018-08-13 17:56:25 -04:00
Evelyn Eastmond
f01733f019
WeDo2 Extension: First Pass ( #1441 )
...
* Adding WeDo2 connection/disconnection over Scratch Link BLE.
* Testing motor and LED output.
* Reading sensor attachment and registering for sensor notifications.
* Motor indexing.
* Some refactoring notes. Moving some functions around.
* Refactoring and enums.
* Removing some comments
* Fixing linting error.
* Fixing tilt reporter values and added stopAll bound to stop button to stop piezo, LED and motors.
2018-08-13 17:10:55 -04:00
Michael "Z" Goddard
f1fce036f0
round x and y like Scratch 2 does
...
https://github.com/LLK/scratch-flash/blob/develop/src/scratch/ScratchSprite.as#L180-L186
Scratch 2 rounds the X and Y to the nearest whole number.
2018-08-13 14:53:00 -04:00
greenkeeperio-bot
34b0d4150d
chore(package): update lockfile
...
https://npm.im/greenkeeper-lockfile
2018-08-13 15:45:46 +00:00
greenkeeper[bot]
d909ac5391
fix(package): update scratch-parser to version 4.3.1
2018-08-13 15:43:26 +00:00
Mx Corey Frang
30892dfd43
Update npm packages to get new renderer and update benchmark for Bob Ross 🌲 ( #1443 )
2018-08-13 10:47:41 -04:00
kchadha
ec41b4a113
Merge pull request #1438 from kchadha/return-add-sprite-function-when-deleting
...
Export the sprite and return an add function when deleting the sprite.
2018-08-09 15:25:45 -04:00
Karishma Chadha
a1f03f58e1
Add integration test for deleting and restoring a sprite, and restoreFunciton should return a promise.
2018-08-09 11:53:37 -04:00
Mx Corey Frang
c092fe9f83
Use proposed drawableTouching interface from render ( #1419 )
...
* use new drawableTouching interface from render
* Fix mock renderer for new API call
* with lint fix
2018-08-09 10:10:23 -04:00
Karishma Chadha
5ef246a2b0
Export the sprite and return an add function when deleting the sprite.
2018-08-08 18:29:54 -04:00
Ray Schamp
4b5cf6505a
Merge pull request #1398 from paulkaplan/publish-docs
...
Publish jsdoc to gh-pages
2018-08-08 16:46:48 -04:00
kchadha
6b26e6e68c
Merge pull request #1434 from kchadha/fix-variable-xml
...
Fix variable xml
2018-08-08 15:32:09 -04:00
Michael "Z" Goddard
a15a9a1b7b
Fix benchmark suite ( #1397 )
...
* add scratch-svg-renderer adaptors to benchmark vm
* disable benchmark with monitor error
* fixup! add scratch-svg-renderer adaptors to benchmark vm
* fixup! disable benchmark with monitor error
2018-08-08 14:36:38 -04:00
Karishma Chadha
5d25a5afcf
Add unit tests for new duplicate variable functions on target.
2018-08-07 18:21:01 -04:00
Karishma Chadha
d91788406c
Don't generate new IDs for variables when making a sprite clone.
2018-08-07 16:24:02 -04:00
Karishma Chadha
337c1f464d
Fix duplication of variables and re-write variable ids in referencing fields.
2018-08-07 00:30:03 -04:00