pxt-core 7.5.23 → 7.5.26

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.
@@ -18,7 +18,7 @@ To enable some additional features for extension developers, the following domai
18
18
  * https://github.com
19
19
  * https://raw.githubusercontent.com/
20
20
 
21
- ## ~button /domains.html
21
+ ## ~button /domains
22
22
 
23
23
  Test Domains
24
24
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  <title>Reachable MakeCode domains</title>
34
34
 
35
- <link rel="stylesheet" href="https://pxt.azureedge.net/blob/2163189fd5e35c0981ed55318415582a7c9aeb12/doccdn/semantic.css" type="text/css">
35
+ <link rel="stylesheet" href="doccdn/semantic.css" type="text/css">
36
36
  <style>
37
37
  /* styles are inlined here as we don't want depednency on another file for checking the domains */
38
38
  /* Global --------------------------------------------------------------------------- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "7.5.23",
3
+ "version": "7.5.26",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -6,6 +6,7 @@ export interface DraggableGraphProps extends ControlProps {
6
6
  min: number;
7
7
  max: number;
8
8
  squiggly?: boolean;
9
+ valueUnits?: string;
9
10
 
10
11
  aspectRatio: number; // width / height
11
12
  onPointChange: (index: number, newValue: number) => void;
@@ -30,7 +31,8 @@ export const DraggableGraph = (props: DraggableGraphProps) => {
30
31
  ariaDescribedBy,
31
32
  role,
32
33
  aspectRatio,
33
- squiggly
34
+ squiggly,
35
+ valueUnits
34
36
  } = props;
35
37
 
36
38
  const width = 1000;
@@ -152,8 +154,6 @@ export const DraggableGraph = (props: DraggableGraphProps) => {
152
154
  const shouldFlipLabel = (
153
155
  isNotLast && getValue(index + 1) > getValue(index) ||
154
156
  !isNotLast && getValue(index - 1) > getValue(index)
155
- ) && (
156
- interpolation === "logarithmic" || squiggly
157
157
  );
158
158
 
159
159
  return <g key={index} className="draggable-graph-column">
@@ -188,7 +188,7 @@ export const DraggableGraph = (props: DraggableGraphProps) => {
188
188
  y={shouldFlipLabel ? y + unit * 2 : Math.max(y - unit, unit)}
189
189
  textAnchor={isNotLast ? "start" : "end"}
190
190
  fontSize={unit}>
191
- {Math.round(getValue(index))}
191
+ {Math.round(getValue(index)) + (valueUnits || "")}
192
192
  </text>
193
193
  <rect
194
194
  className="draggable-graph-surface"