@khanacademy/perseus-editor 7.0.2 → 7.0.3
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/dist/components/util.d.ts +2 -1
- package/dist/es/index.js +15 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/widgets/interactive-graph-editor.d.ts +63 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -81,7 +81,7 @@ var Banner__default = /*#__PURE__*/_interopDefaultLegacy(Banner);
|
|
|
81
81
|
|
|
82
82
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
83
83
|
const libName = "@khanacademy/perseus-editor";
|
|
84
|
-
const libVersion = "7.0.
|
|
84
|
+
const libVersion = "7.0.3";
|
|
85
85
|
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
86
86
|
|
|
87
87
|
function _extends() {
|
|
@@ -29765,6 +29765,14 @@ function getDefaultFigureForType(type) {
|
|
|
29765
29765
|
fillStyle: "none",
|
|
29766
29766
|
strokeStyle: "solid"
|
|
29767
29767
|
};
|
|
29768
|
+
case "function":
|
|
29769
|
+
return {
|
|
29770
|
+
type: "function",
|
|
29771
|
+
color: DEFAULT_COLOR,
|
|
29772
|
+
strokeStyle: "solid",
|
|
29773
|
+
equation: "x^2",
|
|
29774
|
+
directionalAxis: "x"
|
|
29775
|
+
};
|
|
29768
29776
|
default:
|
|
29769
29777
|
throw new wonderStuffCore.UnreachableCaseError(type);
|
|
29770
29778
|
}
|
|
@@ -31050,6 +31058,12 @@ const LockedFiguresSection = props => {
|
|
|
31050
31058
|
const buttonLabel = allCollapsed ? "Expand all" : "Collapse all";
|
|
31051
31059
|
const showExpandButton = !!figures?.length;
|
|
31052
31060
|
return /*#__PURE__*/React__namespace.createElement(wonderBlocksCore.View, null, figures?.map((figure, index) => {
|
|
31061
|
+
if (figure.type === "function") {
|
|
31062
|
+
// TODO(LEMS-1947): Add locked function settings.
|
|
31063
|
+
// Remove this block once function locked figure settings are
|
|
31064
|
+
// implemented.
|
|
31065
|
+
return;
|
|
31066
|
+
}
|
|
31053
31067
|
return /*#__PURE__*/React__namespace.createElement(LockedFigureSettings, _extends({
|
|
31054
31068
|
key: `${uniqueId}-locked-${figure}-${index}`,
|
|
31055
31069
|
showM2Features: props.showM2Features,
|