pxt-common-packages 10.1.11 → 10.1.13

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 (36) hide show
  1. package/built/common-sim.js +3 -0
  2. package/libs/azureiot/built/debug/binary.js +461 -461
  3. package/libs/base/core.cpp +15 -7
  4. package/libs/base/eventcontext.ts +7 -3
  5. package/libs/base/pxtbase.h +8 -0
  6. package/libs/color/built/debug/binary.js +8 -8
  7. package/libs/color-sensor/built/debug/binary.js +8 -8
  8. package/libs/controller/built/debug/binary.js +8055 -8025
  9. package/libs/controller---none/built/debug/binary.js +8034 -8004
  10. package/libs/core---nrf52/platform.cpp +6 -0
  11. package/libs/core---nrf52/platform.h +3 -0
  12. package/libs/datalogger/built/debug/binary.js +63 -63
  13. package/libs/edge-connector/built/debug/binary.js +8 -8
  14. package/libs/esp32/built/debug/binary.js +462 -462
  15. package/libs/game/built/debug/binary.js +7888 -7858
  16. package/libs/lcd/built/debug/binary.js +8 -8
  17. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  18. package/libs/lora/built/debug/binary.js +8 -8
  19. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  20. package/libs/mqtt/built/debug/binary.js +176 -176
  21. package/libs/net/built/debug/binary.js +176 -176
  22. package/libs/net-game/built/debug/binary.js +9754 -9724
  23. package/libs/palette/built/debug/binary.js +7887 -7857
  24. package/libs/pixel/built/debug/binary.js +8 -8
  25. package/libs/power/built/debug/binary.js +8 -8
  26. package/libs/proximity/built/debug/binary.js +8 -8
  27. package/libs/radio/built/debug/binary.js +8 -8
  28. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  29. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  30. package/libs/screen/built/debug/binary.js +50 -50
  31. package/libs/screen/sim/image.ts +3 -0
  32. package/libs/screen---st7735/panic.cpp +5 -1
  33. package/libs/servo/built/debug/binary.js +8 -8
  34. package/libs/sprite-scaling/built/debug/binary.js +7887 -7857
  35. package/libs/storyboard/built/debug/binary.js +7887 -7857
  36. package/package.json +1 -1
@@ -4260,6 +4260,9 @@ var pxsim;
4260
4260
  }
4261
4261
  image.isValidImage = isValidImage;
4262
4262
  function create(w, h) {
4263
+ // truncate decimal sizes
4264
+ w |= 0;
4265
+ h |= 0;
4263
4266
  return new pxsim.RefImage(w, h, pxsim.getScreenState().bpp());
4264
4267
  }
4265
4268
  image.create = create;