pxt-core 10.2.5 → 10.2.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.
@@ -0,0 +1,33 @@
1
+ # remove At (no return value)
2
+
3
+ Remove an element from an array at some position.
4
+
5
+ ```sig
6
+ [""]._removeAtStatement(0)
7
+ ```
8
+
9
+ The size of the array shrinks by one. The element is removed from the array at the position you want. All the other elements after it are moved (shifted) to down to the next lower position. So, an array that has the numbers
10
+ `4, 5, 9, 3, 2` will be `4, 5, 3, 2` if `9` is removed from the array at index `2`. It looks like this in blocks:
11
+
12
+ ```block
13
+ let myNumbers = [4, 5, 9, 3, 2]
14
+ myNumbers.removeAt(2)
15
+ ```
16
+
17
+ ## Parameters
18
+
19
+ * **index**: the position in the array to get the element from.
20
+
21
+ ## Example
22
+
23
+ Remove the largest animal from the list of primates.
24
+
25
+ ```block
26
+ let primates = ["chimpanzee", "baboon", "gorilla", "macaque"]
27
+ let largest = primates.indexOf("gorilla")
28
+ primates.removeAt(largest)
29
+ ```
30
+
31
+ ## See also
32
+
33
+ [remove at](/reference/arrays/remove-at), [insert at](/reference/arrays/insert-at)
@@ -1,6 +1,6 @@
1
1
  # remove At
2
2
 
3
- Remove an element from an array at some position.
3
+ Remove and return an element from an array at some position.
4
4
 
5
5
  ```sig
6
6
  [""].removeAt(0)
@@ -10,8 +10,8 @@ The size of the array shrinks by one. The element is removed from the array at t
10
10
  `4, 5, 9, 3, 2` will be `4, 5, 3, 2` if `9` is removed from the array at index `2`. It looks like this in blocks:
11
11
 
12
12
  ```block
13
- let myNumbers = [4, 5, 9, 3, 2];
14
- let item = myNumbers.removeAt(2);
13
+ let myNumbers = [4, 5, 9, 3, 2]
14
+ let item = myNumbers.removeAt(2)
15
15
  ```
16
16
 
17
17
  ## Parameters
@@ -27,11 +27,12 @@ let item = myNumbers.removeAt(2);
27
27
  Remove the most dangerous level of radiation from the list.
28
28
 
29
29
  ```block
30
- let radLevels = ["alpha", "beta", "gamma"];
31
- let level = radLevels.indexOf("gamma");
32
- let unzapped = radLevels.removeAt(level);
30
+ let radLevels = ["alpha", "beta", "gamma"]
31
+ let level = radLevels.indexOf("gamma")
32
+ let unzapped = radLevels.removeAt(level)
33
33
  ```
34
34
 
35
35
  ## See also
36
36
 
37
+ [remove at (no return value)](/reference/arrays/remove-at-statement),
37
38
  [insert at](/reference/arrays/insert-at)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "10.2.5",
3
+ "version": "10.2.7",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -771,7 +771,7 @@
771
771
  margin-left: 0;
772
772
  }
773
773
  }
774
-
774
+
775
775
  .counter-previous-button .icon {
776
776
  margin: 0;
777
777
  }
@@ -993,7 +993,7 @@
993
993
  /* Desktop Only */
994
994
  @media only screen and (min-width: @largestTabletScreen) {
995
995
  #root.tabTutorial:not(.fullscreensim, .greenscreen) {
996
- #simulator .editor-sidebar:not(.topInstructions) {
996
+ #simulator .editor-sidebar:not(.topInstructions) .editor-sidebar:not(.tutorial-sim) {
997
997
  bottom: 0;
998
998
  }
999
999
 
@@ -1018,7 +1018,7 @@
1018
1018
  padding-top: 1rem;
1019
1019
  }
1020
1020
  }
1021
-
1021
+
1022
1022
  /* Short Desktop Only */
1023
1023
  @media (max-height: @tallEditorBreakpoint) {
1024
1024
  #root.tabTutorial:not(.fullscreensim) {
@@ -1045,7 +1045,7 @@
1045
1045
 
1046
1046
  .topInstructionsWrapper {
1047
1047
  .topInstructionsSettings();
1048
-
1048
+
1049
1049
  .tutorial-callout {
1050
1050
  right: unset;
1051
1051
  top: unset;