pxt-common-packages 9.4.3 → 9.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/built/common-sim.d.ts +10 -2
  2. package/built/common-sim.js +86 -1
  3. package/libs/azureiot/built/debug/binary.js +461 -461
  4. package/libs/color/built/debug/binary.js +8 -8
  5. package/libs/color/colors.ts +11 -0
  6. package/libs/color-sensor/built/debug/binary.js +8 -8
  7. package/libs/controller/built/debug/binary.js +9043 -7832
  8. package/libs/controller---none/built/debug/binary.js +9022 -7811
  9. package/libs/datalogger/built/debug/binary.js +63 -63
  10. package/libs/edge-connector/built/debug/binary.js +8 -8
  11. package/libs/esp32/built/debug/binary.js +462 -462
  12. package/libs/game/_locales/game-strings.json +21 -0
  13. package/libs/game/built/debug/binary.js +8935 -7724
  14. package/libs/game/docs/reference/scene/set-tile-at.md +2 -2
  15. package/libs/game/docs/reference/scene/tile-at-location-equals.md +1 -1
  16. package/libs/game/docs/reference/sprites/sprite/ax.md +34 -3
  17. package/libs/game/docs/reference/sprites/sprite/ay.md +34 -3
  18. package/libs/game/docs/reference/sprites/sprite/fx.md +123 -0
  19. package/libs/game/docs/reference/sprites/sprite/fy.md +123 -0
  20. package/libs/game/docs/reference/sprites.md +2 -0
  21. package/libs/game/hitbox.ts +40 -22
  22. package/libs/game/renderText.ts +74 -11
  23. package/libs/game/sprite.ts +244 -16
  24. package/libs/game/spritesay.ts +206 -53
  25. package/libs/lcd/built/debug/binary.js +8 -8
  26. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  27. package/libs/lora/built/debug/binary.js +8 -8
  28. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  29. package/libs/mqtt/built/debug/binary.js +176 -176
  30. package/libs/net/built/debug/binary.js +176 -176
  31. package/libs/net-game/built/debug/binary.js +10832 -9617
  32. package/libs/palette/built/debug/binary.js +8934 -7723
  33. package/libs/pixel/built/debug/binary.js +8 -8
  34. package/libs/power/built/debug/binary.js +8 -8
  35. package/libs/proximity/built/debug/binary.js +9 -9
  36. package/libs/radio/built/debug/binary.js +8 -8
  37. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  38. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  39. package/libs/screen/built/debug/binary.js +50 -50
  40. package/libs/screen/image.cpp +14 -4
  41. package/libs/screen/image.ts +5 -4
  42. package/libs/screen/sim/image.ts +15 -3
  43. package/libs/servo/built/debug/binary.js +8 -8
  44. package/libs/sprite-scaling/README.md +3 -0
  45. package/libs/sprite-scaling/_locales/sprite-scaling-jsdoc-strings.json +1 -0
  46. package/libs/sprite-scaling/_locales/sprite-scaling-strings.json +9 -0
  47. package/libs/sprite-scaling/built/debug/binary.js +40047 -0
  48. package/libs/sprite-scaling/pxt.json +16 -0
  49. package/libs/sprite-scaling/scaling.ts +111 -0
  50. package/libs/sprite-scaling/targetoverrides.ts +1 -0
  51. package/libs/sprite-scaling/test.ts +0 -0
  52. package/libs/storyboard/built/debug/binary.js +8934 -7723
  53. package/libs/text-to-speech/pxt.json +14 -0
  54. package/libs/text-to-speech/shims.d.ts +47 -0
  55. package/libs/text-to-speech/sim/tts.ts +72 -0
  56. package/libs/text-to-speech/tts.ts +70 -0
  57. package/package.json +1 -1
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P48418(s) {
59
+ function _main___P48754(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___48659 = (undefined);
70
- globals._pollEventQueue___48672 = (undefined);
69
+ globals._intervals___48995 = (undefined);
70
+ globals._pollEventQueue___49008 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P48418.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"characterlcd.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P48418.continuations = [ ]
75
+ _main___P48754.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"characterlcd.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P48754.continuations = [ ]
77
77
 
78
- function _main___P48418_mk(s) {
78
+ function _main___P48754_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P48418, depth: s.depth + 1,
81
+ parent: s, fn: _main___P48754, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P48418_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P48418
91
+ return _main___P48754
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P95928(s) {
59
+ function _main___P96936(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___96169 = (undefined);
70
- globals._pollEventQueue___96182 = (undefined);
69
+ globals._intervals___97177 = (undefined);
70
+ globals._pollEventQueue___97190 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P95928.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tsl2591.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P95928.continuations = [ ]
75
+ _main___P96936.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tsl2591.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P96936.continuations = [ ]
77
77
 
78
- function _main___P95928_mk(s) {
78
+ function _main___P96936_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P95928, depth: s.depth + 1,
81
+ parent: s, fn: _main___P96936, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P95928_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P95928
91
+ return _main___P96936
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P59708(s) {
59
+ function _main___P60044(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___59949 = (undefined);
70
- globals._pollEventQueue___59962 = (undefined);
69
+ globals._intervals___60285 = (undefined);
70
+ globals._pollEventQueue___60298 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P59708.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"lora.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P59708.continuations = [ ]
75
+ _main___P60044.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"lora.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P60044.continuations = [ ]
77
77
 
78
- function _main___P59708_mk(s) {
78
+ function _main___P60044_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P59708, depth: s.depth + 1,
81
+ parent: s, fn: _main___P60044, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P59708_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P59708
91
+ return _main___P60044
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P185323(s) {
59
+ function _main___P187675(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___185564 = (undefined);
70
- globals._pollEventQueue___185577 = (undefined);
69
+ globals._intervals___187916 = (undefined);
70
+ globals._pollEventQueue___187929 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P185323.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"keypad.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P185323.continuations = [ ]
75
+ _main___P187675.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"keypad.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P187675.continuations = [ ]
77
77
 
78
- function _main___P185323_mk(s) {
78
+ function _main___P187675_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P185323, depth: s.depth + 1,
81
+ parent: s, fn: _main___P187675, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P185323_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P185323
91
+ return _main___P187675
92
92
  })