Evelyn Eastmond
fb36731ce4
Add catches for task queue Promise rejections, and some debug console logs.
2019-03-06 12:47:44 -05:00
Evelyn Eastmond
eecd508464
Fix usage of task queue with an opcode that has its own promise/time delay resolution (i.e. displayText in microbit).
2019-03-06 12:46:56 -05:00
Evelyn Eastmond
dbb884ddef
Removing task queue constructor hacks.
2019-03-06 12:46:08 -05:00
Evelyn Eastmond
6688106852
Continuing to test the newest TaskQueue with microbit.
2019-03-06 12:44:22 -05:00
Eric Rosenbaum
59586291d7
Comments
2019-03-06 12:03:54 -05:00
Eric Rosenbaum
ee0d395b9c
Cleanup check supported and get extension locale
2019-03-06 12:03:46 -05:00
Michael "Z" Goddard
882a83db9a
do not evaluate text-encoding until it is needed
...
text-encoding has about ~700KB of data that is great to skip decoding
for systems that have a browser provided TextDecoder.
2019-03-06 11:11:44 -05:00
Michael "Z" Goddard
bc5605cf80
lazy evaluate project loading related code
2019-03-06 11:11:44 -05:00
Michael "Z" Goddard
a5009b4c59
delay extension evaluation until that extension is installed
...
Reduce the amount of code that needs to evaluated before we can
starting the target project if there is one. It is key to note that the
music extension includes ~2MB of base64 encoded sound samples. This
skips evaluating those samples and decoding base64 into binary typed
arrays.
2019-03-06 11:11:44 -05:00
Michael "Z" Goddard
d05a414439
turn getCanvas into a class CanvasPool
2019-03-06 10:53:15 -05:00
Eric Rosenbaum
8fc3111b21
use id for default language
2019-03-06 10:51:08 -05:00
Michael "Z" Goddard
c01175613b
load-costume: idiomatic promise and createImageBitmap
2019-03-06 10:49:27 -05:00
Michael "Z" Goddard
9bd1bc5915
load-costume: use one canvas pool
2019-03-06 10:49:27 -05:00
Eric Rosenbaum
65d0a3aa11
cleanup
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
d059f8baa6
Check and set language, handling many-to-one mapping
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
ab633d3448
WIP updating to use new language info data
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
bc9e215ee8
Fill in language info data
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
04c6bc189a
Add language ids
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
da212bcf06
wip switching from using locales to language IDs internally
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
920096d061
Add romanian and fix ordering
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
3996cc0c6b
Add Welsh, Swedish and Turkish
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
f33e07132e
Add hindi, korean, norwegian, and adjust rates
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
5b5c0d80eb
Set tenor playback rate for single gender languages
2019-03-06 10:37:36 -05:00
Eric Rosenbaum
0d12cead31
key language info by locale id, and add chinese
2019-03-06 10:37:36 -05:00
Evelyn Eastmond
cd85e8ddfa
Merge pull request #2014 from evhan55/extensions/microbit-timeout
...
Fix micro:bit auto-disconnect from setInterval to setTimeout
2019-03-04 15:29:38 -05:00
Michael "Z" Goddard
33f4482127
Merge pull request #1972 from mzgoddard/sound-bank-over-sprite
...
Sound bank over sprite
2019-03-04 12:51:10 -05:00
Michael "Z" Goddard
9350c2a9c2
Merge pull request #1947 from mzgoddard/sb2-load-assets-first
...
Deserialize sb2 assets before other sprite data and blocks
2019-03-04 12:50:09 -05:00
Evelyn Eastmond
59ab3b717d
Fixing clearInterval > clearTimeout.
2019-03-01 10:04:56 -05:00
Evelyn Eastmond
7a1367d81a
Change from setInterval to setTimeout for auto disconnect feature.
2019-03-01 10:02:30 -05:00
Chris Willis-Ford
bb42c0019c
Merge pull request #1998 from cwillisf/task-queue-enhancements
...
Task queue enhancements
2019-02-25 21:28:05 -05:00
Katie Broida
cff1c2c0a4
Merge pull request #1959 from ktbee/declare-const-once
...
Declare const once to be reused in for loop
2019-02-25 15:57:52 -05:00
Karishma Chadha
475eaf3dfa
Merge pull request #1969 from mzgoddard/benchmark-more-data
...
Benchmark more data
2019-02-25 11:38:09 -05:00
Michael "Z" Goddard
0e9357b062
benchmark load now
...
This is a slight ergonomics improvement for faster benchmark loading.
We should be able to apply this to gui as well if it already does do
the same thing.
2019-02-22 16:01:09 -05:00
Michael "Z" Goddard
991acbb36a
benchmark more loading stats
...
- Display time to load just the (json) data
- Display progress and time for content
- Display progress and time hydrating the downloaded assets
2019-02-22 16:01:08 -05:00
Eric Rosenbaum
c0e80edfcc
Update block and menu icons
2019-02-20 11:13:00 -05:00
Eric Rosenbaum
931d7e9a62
More re-ordering
2019-02-20 11:00:21 -05:00
Eric Rosenbaum
9e650279a6
Re-order blocks
2019-02-20 10:59:07 -05:00
Eric Rosenbaum
7da54dd067
Add tilted any option
2019-02-20 10:49:03 -05:00
Eric Rosenbaum
a19585af75
Add tilt blocks
2019-02-19 16:09:58 -05:00
Eric Rosenbaum
ba548701e2
Set update rate to 80ms
2019-02-19 15:14:37 -05:00
Eric Rosenbaum
f4662f833f
rename “tilt angle” and “spin speed” reporters
2019-02-19 15:06:03 -05:00
Eric Rosenbaum
ec2ca32ffa
Remove “moved” gesture
2019-02-19 13:55:24 -05:00
Christopher Willis-Ford
e6dd3f1175
Fix TaskQueue constructor when no options passed
2019-02-15 15:20:38 -08:00
Michael "Z" Goddard
146e93e4ec
start loading sb2 sounds before handling sb2 data
2019-02-15 17:43:55 -05:00
Michael "Z" Goddard
d4320f1c26
start loading sb2 assets before handling sb2 data
2019-02-15 17:34:14 -05:00
Karishma Chadha
a86dc5bb58
Merge pull request #1944 from mzgoddard/benchmark-load-time
...
Benchmark load time
2019-02-15 13:52:48 -05:00
unknown
ac571ece5a
Fixing comment.
2019-02-13 14:14:05 -05:00
Evelyn Eastmond
8bbdc4e691
Resolves #1988 : Vernier gdxfor tilt values should be 0 when disconnected.
2019-02-13 14:14:05 -05:00
Chris Willis-Ford
7ab41d2bd9
Merge pull request #1881 from apple502j/pen-legacy
...
Fix legacy `set pen color` block's transparency behavior
2019-02-13 10:51:47 -08:00
Chris Willis-Ford
a02fb3877b
Merge pull request #1871 from Affonso-Gui/fix_dynamic_menu_string
...
Fix dynamic menus for string arrays
2019-02-13 10:41:36 -08:00
Paul Kaplan
3b203a2a9b
Merge pull request #1995 from paulkaplan/is-discrete
...
Support isDiscrete flag on monitors
2019-02-13 11:19:51 -05:00
Christopher Willis-Ford
be040f4c9b
TaskQueue: Add option for max total cost
2019-02-12 18:57:58 -08:00
Christopher Willis-Ford
2a9a3b11b9
TaskQueue: support canceling a single task
2019-02-12 18:11:13 -08:00
chrisgarrity
77fd88302f
Merge pull request #1993 from chrisgarrity/handle-nested-sb2
...
handle sb2 files zipped in a folder
2019-02-12 16:41:27 +01:00
Karishma Chadha
59f58b0284
Merge pull request #1933 from ErikMejerHansen/feature/field_type_support
...
Feature/field type support
2019-02-12 09:59:22 -05:00
Christopher Willis-Ford
d27dc5d54a
TaskQueue: reduce number of async steps before task runs
2019-02-11 12:46:48 -08:00
Christopher Willis-Ford
5a17bb1451
Add clearTimeout
to Timer and MockTimer
2019-02-11 12:14:44 -08:00
Paul Kaplan
6754fa9334
Add isDiscrete to monitor record, update sb2,3 and conversion tests
2019-02-11 11:09:01 -05:00
chrisgarrity
a4b0550013
handle sb2 files zipped in a folder
...
If the asset can’t be found by name, look for the same asset in a folder within the zipfile.
2019-02-08 15:03:27 +01:00
Chris Willis-Ford
51252531af
Update src/extensions/scratch3_pen/index.js
...
Co-Authored-By: apple502j <33279053+apple502j@users.noreply.github.com>
2019-02-08 20:03:54 +09:00
Chris Willis-Ford
2d575a9208
Update src/extensions/scratch3_pen/index.js
...
Co-Authored-By: apple502j <33279053+apple502j@users.noreply.github.com>
2019-02-08 20:03:48 +09:00
Christopher Willis-Ford
46a1ae83a0
Use MockTimer for TaskQueue tests
2019-02-07 16:35:33 -08:00
Christopher Willis-Ford
7f80fe17b3
Build a mock Timer class and add tests for it
2019-02-07 16:35:32 -08:00
Evelyn Eastmond
b5eb54fc44
Resolves 1975: Vernier gdxfor extension should disconnect on sensor timeout.
2019-02-07 16:18:56 -05:00
Evelyn Eastmond
16ebcb82b2
Merge pull request #1986 from evhan55/bug/gdxfor-falling
...
Vernier gdxfor "falling?" report false when not connected
2019-02-07 15:54:46 -05:00
Evelyn Eastmond
7e7326f474
Merge pull request #1984 from evhan55/extensions/gdxfor-update-rate
...
Vernier gdxfor input rate change
2019-02-07 15:24:11 -05:00
Evelyn Eastmond
a68886cee9
Resolves #1977 : Vernier gdxfor extension falling? reports true while hardware disconnected.
2019-02-07 14:51:59 -05:00
picklesrus
b03d6ee7a5
Merge pull request #1985 from kchadha/fix-type-handling-xml-escape
...
Fix issue where non-strings were getting passed in to escape functions
2019-02-07 13:35:50 -05:00
Eric Rosenbaum
9dd8e9398a
Merge pull request #1982 from VernierST/extensions/gdx-for-freefall-and-tilt
...
GDX-FOR better freefall algorithm and different tilt options
2019-02-07 11:59:50 -05:00
Karishma Chadha
c761a9c82e
Fix issue where non-strings were getting passed in to escape functions for handling special characters that can appear in xml. Add tests.
2019-02-07 11:58:10 -05:00
Evelyn Eastmond
104e997b59
Changing the input rate, resolves 1976.
2019-02-07 10:48:48 -05:00
Paul Kaplan
765f2b2549
Merge pull request #1983 from picklesrus/broadcast-msg-chars
...
Broadcast msg chars
2019-02-07 08:32:55 -05:00
Paul Kaplan
6deab79903
Merge pull request #1979 from paulkaplan/share-blocks-new-ids
...
Add a utility for giving blocks new IDs, use it for sharing blocks.
2019-02-07 08:31:25 -05:00
picklesrus
b904f19c1d
Fix loading broadcast messages with special characters for projects that were converted from 2.0.
2019-02-06 16:58:46 -05:00
picklesrus
ecbfcd78bd
Fix sb2 loading of broadcast messages with special characters.
2019-02-06 16:48:39 -05:00
Ian Honohan
7b3996a173
Add localization to the front/back/left/right menu items
2019-02-06 12:51:32 -08:00
Ian Honohan
7cbf4e2a60
Changes the tilt options from x/y to front/back and left/right. Also limits the tilt range to +/-90, just like micro::bit
2019-02-06 10:52:18 -08:00
Eric Rosenbaum
7f6fa5f272
Merge pull request #1978 from ericrosenbaum/feature/vernier-spacers-and-rename
...
Vernier gdxfor extension: add spacers and rename "spin"
2019-02-06 11:55:10 -05:00
Eric Rosenbaum
3ae6c93394
Change l10n id so translations will update
2019-02-06 10:40:06 -05:00
Paul Kaplan
31fbcfa4d7
Add a utility for giving blocks new IDs, use it for sharing blocks.
2019-02-06 10:16:22 -05:00
Eric Rosenbaum
48e01fe1a3
Rename “spin speed” to “spin”
2019-02-05 17:22:17 -05:00
Eric Rosenbaum
78c72f4185
Add spacers
2019-02-05 17:22:06 -05:00
Karishma Chadha
4e924bf4b5
Merge pull request #1973 from kchadha/fix-variable-characters
...
Fix variable characters
2019-02-05 17:01:43 -05:00
Karishma Chadha
c796a8b1cc
Merge pull request #1962 from LLK/project-dirty-state-fixes
...
Project dirty state fixes
2019-02-05 16:38:30 -05:00
Ian Honohan
5a2eb3b296
Accounts for any rotation in the GDX-FOR while trying to detect freefall
2019-02-05 12:12:17 -08:00
Karishma Chadha
af0bebb773
Fix typo in comment
2019-02-04 23:33:18 -05:00
Evelyn Eastmond
39f69bd8c1
Separate out _spinSpeedFromGyro function.
2019-02-04 21:56:20 -05:00
Evelyn Eastmond
8da82cfe01
Adding JSDoc and removing extension manager gdx uncommenting.
2019-02-04 21:45:23 -05:00
Evelyn Eastmond
da3fc930b1
Factoring out a _onSensorValueChanged function.
2019-02-04 21:41:57 -05:00
Evelyn Eastmond
e87dd01629
Add clearing of values on disconnect.
2019-02-04 19:43:50 -05:00
Evelyn Eastmond
93aecc88be
Filling in some comments.
2019-02-04 19:41:07 -05:00
Evelyn Eastmond
9390cd0f8a
Fixing 'gyro' labels to 'spin speed'.
2019-02-04 19:41:07 -05:00
Evelyn Eastmond
d84dd72a8c
Removing canReadSensors and sensorsEnabled, first pass.
2019-02-04 19:41:07 -05:00
Evelyn Eastmond
eb4f6235d9
Testing new sensor array to store sensor data on/offline.
2019-02-04 19:41:07 -05:00
Karishma Chadha
d91c19434f
Rename util function to be more descriptive. Refactor parameters to remove unused code.
2019-02-04 19:05:28 -05:00
Karishma Chadha
7faddb6c8f
Replace xml-unsafe chars in sb3 variables.
2019-02-04 15:32:01 -05:00
Karishma Chadha
57f112cbfd
Remove unsafe chars from variable ids when importing from 2.0.
2019-02-04 10:29:24 -05:00
Karishma Chadha
166bc37f6f
Merge pull request #1945 from yokobond/fix-message-variable-name-destruction
...
Escape variable name in XML
2019-02-04 10:10:13 -05:00
Eric Rosenbaum
12283daaa4
Merge pull request #1958 from ericrosenbaum/feature/vernier-updates
...
Update, re-order and clean up Vernier Force & Accel extension blocks
2019-01-30 16:49:46 -05:00
Karishma Chadha
13e69bad7b
Code cleanup -- move out duplicate .then
statements after the next .then
(at the higher level)
2019-01-30 16:45:38 -05:00