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.
- package/built/pxt.js +16 -10
- package/built/pxtblockly.js +3 -2
- package/built/pxtblocks.js +3 -2
- package/built/pxtcompiler.js +6 -1
- package/built/pxtlib.d.ts +2 -0
- package/built/pxtlib.js +10 -9
- package/built/target.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtblockly.js +1 -1
- package/built/web/pxtblocks.js +1 -1
- package/built/web/pxtcompiler.js +1 -1
- package/built/web/pxtembed.js +2 -2
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/common-docs/faq.md +1 -1
- package/docfiles/{domains.html → domains-template.html} +1 -1
- package/package.json +1 -1
- package/react-common/components/controls/DraggableGraph.tsx +4 -4
package/common-docs/faq.md
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
<title>Reachable MakeCode domains</title>
|
|
34
34
|
|
|
35
|
-
<link rel="stylesheet" href="
|
|
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
|
@@ -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"
|