pxt-core 7.5.8 → 7.5.11

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 (47) hide show
  1. package/built/pxt.js +1004 -4
  2. package/built/pxtblockly.js +439 -49
  3. package/built/pxtblocks.d.ts +34 -0
  4. package/built/pxtblocks.js +439 -49
  5. package/built/pxtlib.d.ts +20 -2
  6. package/built/pxtlib.js +127 -3
  7. package/built/pxtsim.d.ts +222 -0
  8. package/built/pxtsim.js +877 -1
  9. package/built/target.js +1 -1
  10. package/built/web/icons.css +49 -10
  11. package/built/web/main.js +1 -1
  12. package/built/web/pxtapp.js +1 -1
  13. package/built/web/pxtasseteditor.js +1 -1
  14. package/built/web/pxtblockly.js +1 -1
  15. package/built/web/pxtblocks.js +1 -1
  16. package/built/web/pxtembed.js +2 -2
  17. package/built/web/pxtlib.js +1 -1
  18. package/built/web/pxtsim.js +1 -1
  19. package/built/web/pxtworker.js +1 -1
  20. package/built/web/react-common-authcode.css +130 -1
  21. package/built/web/react-common-skillmap.css +1 -1
  22. package/built/web/rtlreact-common-skillmap.css +1 -1
  23. package/built/web/rtlsemantic.css +2 -2
  24. package/built/web/semantic.css +2 -2
  25. package/built/web/skillmap/js/main.e30f6be4.chunk.js +1 -0
  26. package/docfiles/footer.html +1 -1
  27. package/docfiles/script.html +1 -1
  28. package/docfiles/thin-footer.html +1 -1
  29. package/localtypings/pxtarget.d.ts +1 -0
  30. package/package.json +1 -1
  31. package/react-common/components/controls/Button.tsx +10 -4
  32. package/react-common/components/controls/DraggableGraph.tsx +242 -0
  33. package/react-common/components/controls/Dropdown.tsx +121 -0
  34. package/react-common/components/controls/FocusList.tsx +17 -8
  35. package/react-common/components/controls/Input.tsx +13 -3
  36. package/react-common/components/controls/RadioButtonGroup.tsx +66 -0
  37. package/react-common/components/util.tsx +23 -0
  38. package/react-common/styles/controls/Button.less +21 -0
  39. package/react-common/styles/controls/DraggableGraph.less +13 -0
  40. package/react-common/styles/controls/Dropdown.less +68 -0
  41. package/react-common/styles/controls/RadioButtonGroup.less +36 -0
  42. package/react-common/styles/react-common-variables.less +38 -0
  43. package/react-common/styles/react-common.less +3 -0
  44. package/theme/pxt.less +1 -0
  45. package/theme/soundeffecteditor.less +239 -0
  46. package/webapp/public/skillmap.html +1 -1
  47. package/built/web/skillmap/js/main.2485091f.chunk.js +0 -1
@@ -400,9 +400,12 @@ declare namespace pxtblockly {
400
400
  doValueUpdate_(newValue: string): void;
401
401
  getDisplayText_(): string;
402
402
  onLoadedIntoWorkspace(): void;
403
+ protected getAnchorDimensions(): any;
403
404
  protected isInitialized(): boolean;
404
405
  protected getBlockData(): string;
405
406
  protected setBlockData(value: string): void;
407
+ protected getSiblingBlock(inputName: string, useGrandparent?: boolean): Blockly.Block;
408
+ protected getSiblingField(fieldName: string, useGrandparent?: boolean): Blockly.Field;
406
409
  }
407
410
  }
408
411
  declare namespace pxtblockly {
@@ -1128,6 +1131,36 @@ declare namespace pxtblockly {
1128
1131
  private updateAngle;
1129
1132
  }
1130
1133
  }
1134
+ declare namespace pxtblockly {
1135
+ interface FieldSoundEffectParams extends Blockly.FieldCustomOptions {
1136
+ durationInputName: string;
1137
+ startFrequencyInputName: string;
1138
+ endFrequencyInputName: string;
1139
+ startVolumeInputName: string;
1140
+ endVolumeInputName: string;
1141
+ waveFieldName: string;
1142
+ interpolationFieldName: string;
1143
+ effectFieldName: string;
1144
+ }
1145
+ class FieldSoundEffect extends FieldBase<FieldSoundEffectParams> {
1146
+ protected mostRecentValue: pxt.assets.Sound;
1147
+ protected onInit(): void;
1148
+ protected onDispose(): void;
1149
+ protected onValueChanged(newValue: string): string;
1150
+ redrawPreview(): void;
1151
+ showEditor_(): void;
1152
+ render_(): void;
1153
+ protected updateSiblingBlocks(sound: pxt.assets.Sound): void;
1154
+ protected setNumberInputValue(name: string, value: number): void;
1155
+ protected getNumberInputValue(name: string, defaultValue: number): number;
1156
+ protected fireNumberInputUpdate(name: string, oldValue: number): void;
1157
+ protected setFieldDropdownValue(name: string, value: string): void;
1158
+ protected getFieldDropdownValue(name: string): string;
1159
+ protected fireFieldDropdownUpdate(name: string, oldValue: string): void;
1160
+ protected readCurrentSound(): pxt.assets.Sound;
1161
+ protected readBlockDataSound(): pxt.assets.Sound;
1162
+ }
1163
+ }
1131
1164
  declare namespace pxtblockly {
1132
1165
  interface FieldSpeedOptions extends Blockly.FieldCustomOptions {
1133
1166
  min?: string;
@@ -1434,4 +1467,5 @@ declare namespace pxtblockly {
1434
1467
  function upgradeTilemapsInWorkspace(ws: Blockly.Workspace, proj: pxt.TilemapProject): void;
1435
1468
  function getAllReferencedTiles(workspace: Blockly.Workspace, excludeBlockID?: string): pxt.Tile[];
1436
1469
  function getTemporaryAssets(workspace: Blockly.Workspace, type: pxt.AssetType): pxt.Asset[];
1470
+ function workspaceToScreenCoordinates(ws: Blockly.WorkspaceSvg, wsCoordinates: Blockly.utils.Coordinate): Blockly.utils.Coordinate;
1437
1471
  }