@pie-element/graphing-solution-set 6.1.2-next.0 → 6.1.2-next.10
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/author/configure.js +3 -3
- package/dist/author/correct-response.js +68 -68
- package/dist/author/graphing-config.js +68 -69
- package/dist/author/index.d.ts +1 -0
- package/dist/author/index.js +5 -2
- package/dist/author/utils.js +2 -2
- package/dist/browser/{dist-SjeWPldT.js → alert-dialog-BXwLDAJc.js} +45612 -49471
- package/dist/browser/alert-dialog-BXwLDAJc.js.map +1 -0
- package/dist/browser/author/index.js +2233 -347
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/browser-BQg8KPEc.js +352 -0
- package/dist/browser/browser-BQg8KPEc.js.map +1 -0
- package/dist/browser/controller/index.js +52 -79
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +39 -40
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/controller/index.d.ts +1 -1
- package/dist/controller/index.js +40 -42
- package/dist/controller/utils.d.ts +2 -2
- package/dist/controller/utils.js +2 -5
- package/dist/delivery/index.js +2 -2
- package/dist/delivery/main.js +1 -1
- package/dist/index.iife.js +119 -113
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +20 -17
- package/dist/browser/browser-DpedO01u.js +0 -1218
- package/dist/browser/browser-DpedO01u.js.map +0 -1
- package/dist/browser/dist-SjeWPldT.js.map +0 -1
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +0 -23
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +0 -27
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +0 -7
package/dist/author/configure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "./graphing-config.js";
|
|
2
|
-
import t from "./correct-response.js";
|
|
1
|
+
import { GraphingConfig as e } from "./graphing-config.js";
|
|
2
|
+
import { CorrectResponse as t } from "./correct-response.js";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import r from "prop-types";
|
|
5
5
|
import { styled as i } from "@mui/material/styles";
|
|
@@ -187,4 +187,4 @@ var y = i(s)(({ theme: e }) => ({
|
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
//#endregion
|
|
190
|
-
export { x as default };
|
|
190
|
+
export { x as Configure, x as default };
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import a from "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { checkIfLinesAreAdded as e, findSectionsInSolutionSet as t, pointInsidePolygon as n } from "./utils.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import i from "prop-types";
|
|
4
|
+
import { styled as a } from "@mui/material/styles";
|
|
5
|
+
import { GraphContainer as o } from "@pie-lib/graphing-solution-set";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import { AlertDialog as l } from "@pie-lib/config-ui";
|
|
8
|
+
import { set as u } from "@pie-element/shared-lodash";
|
|
9
9
|
import { RadioGroup as d, Typography as f } from "@mui/material";
|
|
10
10
|
import p from "@mui/material/Radio";
|
|
11
11
|
import m from "@mui/material/FormControlLabel";
|
|
12
12
|
//#region src/author/correct-response.tsx
|
|
13
|
-
var h =
|
|
13
|
+
var h = a(f)(({ theme: e }) => ({
|
|
14
14
|
marginTop: e.spacing(1.5),
|
|
15
15
|
marginBottom: e.spacing(1)
|
|
16
|
-
})), g =
|
|
16
|
+
})), g = a(m)({
|
|
17
17
|
height: "20px",
|
|
18
18
|
width: "fit-content",
|
|
19
19
|
padding: ".5rem 0"
|
|
20
|
-
}), _ =
|
|
20
|
+
}), _ = a(p)({ color: "#000000 !important" }), v = a("div")(({ theme: e }) => ({
|
|
21
21
|
fontSize: e.typography.fontSize - 2,
|
|
22
22
|
color: e.palette.error.main,
|
|
23
23
|
paddingTop: e.spacing(1)
|
|
24
|
-
})), y = class extends
|
|
24
|
+
})), y = class extends r.Component {
|
|
25
25
|
static propTypes = {
|
|
26
|
-
errors:
|
|
27
|
-
model:
|
|
28
|
-
onChange:
|
|
26
|
+
errors: i.object,
|
|
27
|
+
model: i.object.isRequired,
|
|
28
|
+
onChange: i.func.isRequired
|
|
29
29
|
};
|
|
30
30
|
state = { dialog: { open: !1 } };
|
|
31
31
|
handleAlertDialog = (e, t) => this.setState({ dialog: { open: e } }, t);
|
|
32
|
-
changeMarks = (
|
|
33
|
-
let { model:
|
|
34
|
-
|
|
32
|
+
changeMarks = (e) => {
|
|
33
|
+
let { model: t, onChange: n } = this.props, { gssLineData: r } = t;
|
|
34
|
+
r.selectedTool === "lineA" && e.length > 0 && (e[0].fill = r.lineA.lineType), r.selectedTool === "lineB" && e.length > 1 && (e[1].fill = r.lineB.lineType), e.length === 0 && (r.selectedTool = "lineA", u(t, "gssLineData", r)), u(t, "answers.correctAnswer.marks", e), n(t);
|
|
35
35
|
};
|
|
36
36
|
onResetClick = () => {
|
|
37
|
-
let { model:
|
|
37
|
+
let { model: e, onChange: t } = this.props, { gssLineData: n, answers: r } = e;
|
|
38
38
|
this.setState({ dialog: {
|
|
39
39
|
open: !0,
|
|
40
40
|
title: "Warning",
|
|
41
41
|
text: "This will remove all the elements added on the graph and reset graph to original state. Are you sure you want to continue?",
|
|
42
42
|
onConfirm: () => {
|
|
43
|
-
|
|
43
|
+
r.correctAnswer.marks = [], n.selectedTool = "lineA", n.lineA.lineType = "Solid", n.lineB && (n.lineB.lineType = "Solid"), u(e, "answers", r), u(e, "gssLineData", n), t(e), this.handleAlertDialog(!1);
|
|
44
44
|
},
|
|
45
45
|
onClose: () => this.handleAlertDialog(!1)
|
|
46
46
|
} });
|
|
@@ -57,69 +57,69 @@ var h = o(f)(({ theme: e }) => ({
|
|
|
57
57
|
onClose: () => this.handleAlertDialog(!1)
|
|
58
58
|
} }) : this.changeLine(e, t);
|
|
59
59
|
};
|
|
60
|
-
changeLine = (
|
|
61
|
-
let { model:
|
|
62
|
-
|
|
60
|
+
changeLine = (e, t) => {
|
|
61
|
+
let { model: n, onChange: r } = this.props, { answers: i } = n, a = n.gssLineData;
|
|
62
|
+
i.correctAnswer.marks = i.correctAnswer.marks.filter((e) => e.type !== "polygon"), Number.parseInt(t) === 1 ? (delete a.lineB, i.correctAnswer.marks.length > 1 && i.correctAnswer.marks.pop(), a.numberOfLines = 1, a.selectedTool = "lineA") : (a.numberOfLines = 2, i.correctAnswer.marks.length > 0 && (a.selectedTool = "lineB"), a.lineB = { lineType: "Solid" }), u(n, "answers", i), u(n, "gssLineData", a), r(n);
|
|
63
63
|
};
|
|
64
|
-
onSolutionSetSelected = (
|
|
65
|
-
let { model:
|
|
66
|
-
for (let
|
|
67
|
-
let
|
|
68
|
-
points:
|
|
64
|
+
onSolutionSetSelected = (e) => {
|
|
65
|
+
let { model: t, onChange: r } = this.props, { answers: i, gssLineData: a } = t;
|
|
66
|
+
for (let t of a.sections) if (n(e, t)) {
|
|
67
|
+
let e = {
|
|
68
|
+
points: t,
|
|
69
69
|
building: !1,
|
|
70
70
|
type: "polygon",
|
|
71
71
|
closed: !0,
|
|
72
72
|
isSolution: !0
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
i.correctAnswer.marks = i.correctAnswer.marks.filter((e) => e.type !== "polygon"), i.correctAnswer.marks.push(e);
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
u(t, "answers", i), r(t);
|
|
78
78
|
};
|
|
79
|
-
onChangeGssLineData = (
|
|
79
|
+
onChangeGssLineData = (n, r) => {
|
|
80
80
|
let { model: i } = this.props, { answers: a, domain: o, range: s } = i;
|
|
81
|
-
if (
|
|
81
|
+
if (n.selectedTool === "solutionSet") {
|
|
82
82
|
let i = a.correctAnswer.marks.filter((e) => e.type !== "polygon");
|
|
83
|
-
if (!
|
|
83
|
+
if (!e(n, i)) n.selectedTool = r, this.setState({ dialog: {
|
|
84
84
|
open: !0,
|
|
85
85
|
title: "Warning",
|
|
86
86
|
text: "Please define the line(s) and then select a solution set for the item.",
|
|
87
87
|
onConfirm: () => this.handleAlertDialog(!1)
|
|
88
88
|
} });
|
|
89
89
|
else {
|
|
90
|
-
let
|
|
91
|
-
|
|
90
|
+
let e = a.correctAnswer.marks.filter((e) => e.type !== "polygon");
|
|
91
|
+
n = t(n, e, o, s);
|
|
92
92
|
}
|
|
93
|
-
this.handleGssLineDataChange(
|
|
93
|
+
this.handleGssLineDataChange(n, a);
|
|
94
94
|
} else {
|
|
95
|
-
let
|
|
96
|
-
r === "solutionSet" &&
|
|
95
|
+
let e = a.correctAnswer.marks.filter((e) => e.type === "polygon");
|
|
96
|
+
r === "solutionSet" && e.length > 0 ? this.setState({ dialog: {
|
|
97
97
|
open: !0,
|
|
98
98
|
title: "Warning",
|
|
99
99
|
text: "Changing a line after adding a solution set will clear your selected solution set. Click 'Clear Solution Set' to change the line. Otherwise, click 'Cancel'.",
|
|
100
100
|
onConfirm: () => {
|
|
101
|
-
a.correctAnswer.marks = a.correctAnswer.marks.filter((e) => e.type !== "polygon"), this.handleGssLineDataChange(
|
|
101
|
+
a.correctAnswer.marks = a.correctAnswer.marks.filter((e) => e.type !== "polygon"), this.handleGssLineDataChange(n, a), this.handleAlertDialog(!1);
|
|
102
102
|
},
|
|
103
103
|
onConfirmText: "CLEAR SOLUTION SET",
|
|
104
104
|
onClose: () => {
|
|
105
|
-
|
|
105
|
+
n.selectedTool = r, this.handleGssLineDataChange(n, a), this.handleAlertDialog(!1);
|
|
106
106
|
}
|
|
107
|
-
} }) : this.handleGssLineDataChange(
|
|
107
|
+
} }) : this.handleGssLineDataChange(n, a);
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
handleGssLineDataChange = (
|
|
111
|
-
let { model:
|
|
112
|
-
|
|
110
|
+
handleGssLineDataChange = (e, t) => {
|
|
111
|
+
let { model: n, onChange: r } = this.props;
|
|
112
|
+
t.correctAnswer.marks.length > 0 && t.correctAnswer.marks[0] && e.lineA && (t.correctAnswer.marks[0].fill = e.lineA.lineType), t.correctAnswer.marks.length > 1 && t.correctAnswer.marks[1] && e.lineB && (t.correctAnswer.marks[1].fill = e.lineB.lineType), (e.selectedTool === "lineB" && t.correctAnswer.marks.length === 0 || e.selectedTool === "lineB" && t.correctAnswer.marks[0].building) && (this.setState({ dialog: {
|
|
113
113
|
open: !0,
|
|
114
114
|
title: "Warning",
|
|
115
115
|
text: "Please add Line A to the graph before adding Line B",
|
|
116
116
|
onConfirm: () => this.handleAlertDialog(!1)
|
|
117
|
-
} }),
|
|
117
|
+
} }), e.selectedTool = "lineA"), e.selectedTool === "lineA" && t.correctAnswer.marks.length > 1 && t.correctAnswer.marks[1].building && (this.setState({ dialog: {
|
|
118
118
|
open: !0,
|
|
119
119
|
title: "Warning",
|
|
120
120
|
text: "Please add Line B to the graph before switching to Line A",
|
|
121
121
|
onConfirm: () => this.handleAlertDialog(!1)
|
|
122
|
-
} }),
|
|
122
|
+
} }), e.selectedTool = "lineB"), u(n, "gssLineData", e), u(n, "answers", t), r(n);
|
|
123
123
|
};
|
|
124
124
|
updateModel = (e) => {
|
|
125
125
|
let { model: t, onChange: n } = this.props;
|
|
@@ -129,44 +129,44 @@ var h = o(f)(({ theme: e }) => ({
|
|
|
129
129
|
});
|
|
130
130
|
};
|
|
131
131
|
render() {
|
|
132
|
-
let { errors: e, model: t, mathMlOptions: n = {} } = this.props, { dialog:
|
|
132
|
+
let { errors: e, model: t, mathMlOptions: n = {} } = this.props, { dialog: i } = this.state, { gssLineData: a = {
|
|
133
133
|
numberOfLines: 1,
|
|
134
134
|
selectedTool: "lineA",
|
|
135
135
|
lineA: { lineType: "Solid" }
|
|
136
|
-
}, arrows:
|
|
137
|
-
return /* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
136
|
+
}, arrows: u, coordinatesOnHover: p, domain: m, graph: y = {}, labels: b, labelsEnabled: x, range: S, title: C, titleEnabled: w, answers: T } = t || {}, { correctAnswerErrors: E = "" } = e || {};
|
|
137
|
+
return /* @__PURE__ */ c("div", { children: [
|
|
138
|
+
/* @__PURE__ */ s(f, {
|
|
139
139
|
component: "div",
|
|
140
140
|
variant: "h6",
|
|
141
141
|
children: "Define Line Type(s) and Correct Response"
|
|
142
142
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ s(h, {
|
|
144
144
|
component: "div",
|
|
145
145
|
variant: "body1",
|
|
146
146
|
children: "Use this interface to choose how many lines students will be able to draw, and to define the correct answer."
|
|
147
147
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ s(h, {
|
|
149
149
|
component: "div",
|
|
150
150
|
variant: "body1",
|
|
151
151
|
children: "Choose Number of Lines"
|
|
152
152
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ c(d, {
|
|
154
154
|
name: "numberOfLines",
|
|
155
155
|
value: a.numberOfLines,
|
|
156
156
|
onChange: this.changeNumberOfLines,
|
|
157
|
-
children: [/* @__PURE__ */
|
|
157
|
+
children: [/* @__PURE__ */ s(g, {
|
|
158
158
|
value: "1",
|
|
159
|
-
control: /* @__PURE__ */
|
|
159
|
+
control: /* @__PURE__ */ s(_, { checked: a.numberOfLines === 1 }),
|
|
160
160
|
label: "One"
|
|
161
|
-
}), /* @__PURE__ */
|
|
161
|
+
}), /* @__PURE__ */ s(g, {
|
|
162
162
|
value: "2",
|
|
163
|
-
control: /* @__PURE__ */
|
|
163
|
+
control: /* @__PURE__ */ s(_, { checked: a.numberOfLines === 2 }),
|
|
164
164
|
label: "Two"
|
|
165
165
|
})]
|
|
166
166
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ c(r.Fragment, { children: [/* @__PURE__ */ s(o, {
|
|
168
168
|
style: E.correctAnswer && { border: "2px solid red" },
|
|
169
|
-
axesSettings: { includeArrows:
|
|
169
|
+
axesSettings: { includeArrows: u },
|
|
170
170
|
backgroundMarks: [],
|
|
171
171
|
coordinatesOnHover: p,
|
|
172
172
|
disabledLabels: !0,
|
|
@@ -190,17 +190,17 @@ var h = o(f)(({ theme: e }) => ({
|
|
|
190
190
|
onSolutionSetSelected: this.onSolutionSetSelected,
|
|
191
191
|
toolbarTools: ["line", "polygon"],
|
|
192
192
|
mathMlOptions: n
|
|
193
|
-
}), E.correctAnswer && /* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
open:
|
|
196
|
-
title:
|
|
197
|
-
text:
|
|
198
|
-
onClose:
|
|
199
|
-
onConfirm:
|
|
200
|
-
onConfirmText:
|
|
193
|
+
}), E.correctAnswer && /* @__PURE__ */ s(v, { children: E.correctAnswer })] }),
|
|
194
|
+
/* @__PURE__ */ s(l, {
|
|
195
|
+
open: i.open,
|
|
196
|
+
title: i.title,
|
|
197
|
+
text: i.text,
|
|
198
|
+
onClose: i.onClose,
|
|
199
|
+
onConfirm: i.onConfirm,
|
|
200
|
+
onConfirmText: i.onConfirmText ? i.onConfirmText : "OK"
|
|
201
201
|
})
|
|
202
202
|
] });
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
//#endregion
|
|
206
|
-
export { y as default };
|
|
206
|
+
export { y as CorrectResponse, y as default };
|
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import s from "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { AlertDialog as p } from "@pie-lib/config-ui";
|
|
1
|
+
import { applyConstraints as e, filterPlotableMarks as t, getGridValues as n, getLabelValues as r } from "./utils.js";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import a from "prop-types";
|
|
4
|
+
import { styled as o } from "@mui/material/styles";
|
|
5
|
+
import { GraphContainer as s, GridSetup as c } from "@pie-lib/graphing-solution-set";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
import { AlertDialog as d } from "@pie-lib/config-ui";
|
|
8
|
+
import { cloneDeep as f, isEqual as p } from "@pie-element/shared-lodash";
|
|
10
9
|
import { MenuItem as m, OutlinedInput as h, Select as g, Typography as _ } from "@mui/material";
|
|
11
10
|
//#region src/author/graphing-config.tsx
|
|
12
|
-
var v =
|
|
11
|
+
var v = o("div")(({ theme: e }) => ({
|
|
13
12
|
display: "flex",
|
|
14
13
|
flexWrap: "wrap",
|
|
15
14
|
marginBottom: e.spacing(2.5)
|
|
16
|
-
})), y =
|
|
15
|
+
})), y = o("div")(({ theme: e }) => ({
|
|
17
16
|
display: "flex",
|
|
18
17
|
flexDirection: "column",
|
|
19
18
|
marginRight: e.spacing(3),
|
|
20
19
|
marginBottom: e.spacing(2.5)
|
|
21
|
-
})), b =
|
|
20
|
+
})), b = o("div")({
|
|
22
21
|
display: "flex",
|
|
23
22
|
flexDirection: "column"
|
|
24
|
-
}), x =
|
|
23
|
+
}), x = o(_)(({ theme: e }) => ({
|
|
25
24
|
marginTop: e.spacing(1.5),
|
|
26
25
|
marginBottom: e.spacing(1)
|
|
27
|
-
})), S =
|
|
26
|
+
})), S = o("div")(({ theme: e }) => ({
|
|
28
27
|
display: "flex",
|
|
29
28
|
flexWrap: "wrap",
|
|
30
29
|
alignItems: "center",
|
|
31
30
|
width: "100%",
|
|
32
31
|
marginBottom: e.spacing(2.5)
|
|
33
|
-
})), C =
|
|
32
|
+
})), C = o(_)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), w = o(g)({ flex: "1" }), T = class extends i.Component {
|
|
34
33
|
static propTypes = {
|
|
35
|
-
availableTools:
|
|
36
|
-
authoring:
|
|
37
|
-
dimensionsEnabled:
|
|
38
|
-
graphDimensions:
|
|
39
|
-
gridConfigurations:
|
|
40
|
-
labelsPlaceholders:
|
|
41
|
-
model:
|
|
42
|
-
onChange:
|
|
43
|
-
showLabels:
|
|
44
|
-
showTitle:
|
|
45
|
-
titlePlaceholder:
|
|
34
|
+
availableTools: a.array,
|
|
35
|
+
authoring: a.object,
|
|
36
|
+
dimensionsEnabled: a.bool,
|
|
37
|
+
graphDimensions: a.object,
|
|
38
|
+
gridConfigurations: a.array,
|
|
39
|
+
labelsPlaceholders: a.object,
|
|
40
|
+
model: a.object.isRequired,
|
|
41
|
+
onChange: a.func.isRequired,
|
|
42
|
+
showLabels: a.bool,
|
|
43
|
+
showTitle: a.bool,
|
|
44
|
+
titlePlaceholder: a.string
|
|
46
45
|
};
|
|
47
46
|
constructor(e) {
|
|
48
47
|
super(e);
|
|
49
|
-
let { domain: t, range:
|
|
50
|
-
domain:
|
|
51
|
-
range: i
|
|
48
|
+
let { domain: t, range: i, graph: a } = e.model || {}, o = {
|
|
49
|
+
domain: n(t, a.width, !0),
|
|
50
|
+
range: n(i, a.height, !0)
|
|
52
51
|
}, s = {
|
|
53
|
-
domain:
|
|
54
|
-
range:
|
|
52
|
+
domain: r(t.step),
|
|
53
|
+
range: r(i.step)
|
|
55
54
|
};
|
|
56
55
|
this.state = {
|
|
57
56
|
gridValues: o,
|
|
@@ -59,7 +58,7 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
59
58
|
showPixelGuides: !1,
|
|
60
59
|
dialog: { isOpened: !1 },
|
|
61
60
|
domain: { ...t },
|
|
62
|
-
range: { ...
|
|
61
|
+
range: { ...i }
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
64
|
changeLabels = (e) => {
|
|
@@ -76,46 +75,46 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
76
75
|
title: e
|
|
77
76
|
});
|
|
78
77
|
};
|
|
79
|
-
onConfigChange = (
|
|
80
|
-
let { model:
|
|
81
|
-
...
|
|
82
|
-
...
|
|
83
|
-
}, { answers: m, domain: h, includeAxes: g = !0, graph: _, range: v, standardGrid: y } =
|
|
78
|
+
onConfigChange = (n, r) => {
|
|
79
|
+
let { model: i, onChange: a } = this.props, { defaultGridConfiguration: o = 0 } = i, { gridValues: s, labelValues: c, domain: l, range: u } = this.state, d = {
|
|
80
|
+
...i,
|
|
81
|
+
...n
|
|
82
|
+
}, { answers: m, domain: h, includeAxes: g = !0, graph: _, range: v, standardGrid: y } = d, b = {
|
|
84
83
|
domain: [],
|
|
85
84
|
range: []
|
|
86
85
|
}, x = {
|
|
87
86
|
domain: [],
|
|
88
87
|
range: []
|
|
89
|
-
}, S =
|
|
88
|
+
}, S = r >= 0 ? r : o;
|
|
90
89
|
if (g) {
|
|
91
|
-
let
|
|
92
|
-
b.domain =
|
|
90
|
+
let t = e(h, _.width, s.domain, c.domain);
|
|
91
|
+
b.domain = t.gridValues || [], x.domain = t.labelValues || [];
|
|
93
92
|
}
|
|
94
93
|
if (y) b.range = b.domain, x.range = x.domain, v.step = h.step, v.labelStep = h.labelStep;
|
|
95
94
|
else if (g) {
|
|
96
|
-
let
|
|
97
|
-
b.range =
|
|
95
|
+
let t = e(v, _.height, s.range, c.range);
|
|
96
|
+
b.range = t.gridValues || [], x.range = t.labelValues || [];
|
|
98
97
|
}
|
|
99
|
-
let C =
|
|
98
|
+
let C = f(m);
|
|
100
99
|
C.correctAnswer.marks = m.correctAnswer.marks.filter((e) => e.type !== "polygon");
|
|
101
|
-
let w =
|
|
102
|
-
if (!
|
|
100
|
+
let w = t(h, v, C);
|
|
101
|
+
if (!p(C, w)) {
|
|
103
102
|
this.setState({ dialog: {
|
|
104
103
|
isOpened: !0,
|
|
105
|
-
onClose: () => this.setState({ dialog: { isOpened: !1 } },
|
|
106
|
-
...
|
|
107
|
-
domain:
|
|
108
|
-
range:
|
|
104
|
+
onClose: () => this.setState({ dialog: { isOpened: !1 } }, a({
|
|
105
|
+
...i,
|
|
106
|
+
domain: l,
|
|
107
|
+
range: u
|
|
109
108
|
})),
|
|
110
109
|
onConfirm: () => {
|
|
111
|
-
|
|
110
|
+
d.gssLineData.sections = [], d.gssLineData.selectedTool = "lineA", this.setState({
|
|
112
111
|
gridValues: b,
|
|
113
112
|
labelValues: x,
|
|
114
113
|
dialog: { isOpened: !1 },
|
|
115
114
|
domain: { ...h },
|
|
116
115
|
range: { ...v }
|
|
117
|
-
},
|
|
118
|
-
...
|
|
116
|
+
}, a({
|
|
117
|
+
...d,
|
|
119
118
|
answers: w,
|
|
120
119
|
defaultGridConfiguration: S
|
|
121
120
|
}));
|
|
@@ -128,8 +127,8 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
128
127
|
labelValues: x,
|
|
129
128
|
domain: { ...h },
|
|
130
129
|
range: { ...v }
|
|
131
|
-
}),
|
|
132
|
-
...
|
|
130
|
+
}), a({
|
|
131
|
+
...d,
|
|
133
132
|
defaultGridConfiguration: S
|
|
134
133
|
});
|
|
135
134
|
};
|
|
@@ -142,7 +141,7 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
142
141
|
this.onConfigChange(t?.[n] || {}, n);
|
|
143
142
|
};
|
|
144
143
|
render() {
|
|
145
|
-
let { authoring: e = {}, gridConfigurations: t = [], graphDimensions: n = {}, labelsPlaceholders: r, model: i, showLabels: a, dimensionsEnabled: o, showTitle:
|
|
144
|
+
let { authoring: e = {}, gridConfigurations: t = [], graphDimensions: n = {}, labelsPlaceholders: r, model: i, showLabels: a, dimensionsEnabled: o, showTitle: f, titlePlaceholder: p, mathMlOptions: g = {} } = this.props, { arrows: T, coordinatesOnHover: E, defaultGridConfiguration: D, domain: O, labels: k, range: A, standardGrid: j, title: M } = i || {}, N = (i || {}).graph || {}, { min: P, max: F, step: I } = n || {}, { dialog: L = {}, gridValues: R, labelValues: z, showPixelGuides: B } = this.state, V = {
|
|
146
145
|
min: Math.max(150, P),
|
|
147
146
|
max: Math.min(800, F),
|
|
148
147
|
step: I >= 1 ? Math.min(200, I) : 20
|
|
@@ -156,13 +155,13 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
156
155
|
standardGridEnabled: e.standardGridEnabled,
|
|
157
156
|
step: e.step
|
|
158
157
|
}, U = e.enabled && Object.values(H).some((e) => typeof e == "object" ? e.enabled : e);
|
|
159
|
-
return /* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ u(v, { children: [
|
|
159
|
+
/* @__PURE__ */ u(y, { children: [t && t.length ? /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ l(C, {
|
|
161
160
|
component: "div",
|
|
162
161
|
variant: "h6",
|
|
163
162
|
children: "Grid Configuration"
|
|
164
|
-
}), /* @__PURE__ */
|
|
165
|
-
input: /* @__PURE__ */
|
|
163
|
+
}), /* @__PURE__ */ l(w, {
|
|
164
|
+
input: /* @__PURE__ */ l(h, { labelWidth: 10 }),
|
|
166
165
|
displayEmpty: !0,
|
|
167
166
|
onChange: this.changeGridConfiguration,
|
|
168
167
|
value: D,
|
|
@@ -170,11 +169,11 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
170
169
|
enter: 225,
|
|
171
170
|
exit: 195
|
|
172
171
|
} },
|
|
173
|
-
children: (t || []).map((e, t) => /* @__PURE__ */
|
|
172
|
+
children: (t || []).map((e, t) => /* @__PURE__ */ l(m, {
|
|
174
173
|
value: t,
|
|
175
174
|
children: e.label
|
|
176
175
|
}, t))
|
|
177
|
-
})] }) : null, U && /* @__PURE__ */
|
|
176
|
+
})] }) : null, U && /* @__PURE__ */ l(c, {
|
|
178
177
|
displayedFields: H,
|
|
179
178
|
domain: O,
|
|
180
179
|
gridValues: R,
|
|
@@ -187,18 +186,18 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
187
186
|
onChange: this.onConfigChange,
|
|
188
187
|
onChangeView: this.onChangeView
|
|
189
188
|
})] }),
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ u(b, { children: [
|
|
190
|
+
/* @__PURE__ */ l(_, {
|
|
192
191
|
component: "div",
|
|
193
192
|
variant: "h6",
|
|
194
193
|
children: "Define Graph Attributes"
|
|
195
194
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ l(x, {
|
|
197
196
|
component: "div",
|
|
198
197
|
variant: "body1",
|
|
199
198
|
children: "Use this interface to add/edit a title and/or labels"
|
|
200
199
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ l(s, {
|
|
202
201
|
axesSettings: { includeArrows: T },
|
|
203
202
|
backgroundMarks: [],
|
|
204
203
|
coordinatesOnHover: E,
|
|
@@ -213,18 +212,18 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
213
212
|
range: A,
|
|
214
213
|
showLabels: a,
|
|
215
214
|
showPixelGuides: B,
|
|
216
|
-
showTitle:
|
|
215
|
+
showTitle: f,
|
|
217
216
|
size: {
|
|
218
217
|
width: N.width,
|
|
219
218
|
height: N.height
|
|
220
219
|
},
|
|
221
220
|
title: M,
|
|
222
|
-
titlePlaceholder:
|
|
221
|
+
titlePlaceholder: p,
|
|
223
222
|
disableToolbar: !0,
|
|
224
223
|
mathMlOptions: g
|
|
225
224
|
}, "graphing-config")
|
|
226
225
|
] }, "graph"),
|
|
227
|
-
/* @__PURE__ */ d
|
|
226
|
+
/* @__PURE__ */ l(d, {
|
|
228
227
|
open: L.isOpened,
|
|
229
228
|
title: "Warning",
|
|
230
229
|
text: "This change would make it impossible for students to plot one or more graph objects in the current correct answers. If you proceed, all such graph objects will be removed from the correct answers.",
|
|
@@ -235,4 +234,4 @@ var v = c("div")(({ theme: e }) => ({
|
|
|
235
234
|
}
|
|
236
235
|
};
|
|
237
236
|
//#endregion
|
|
238
|
-
export { T as default };
|
|
237
|
+
export { T as GraphingConfig, T as default };
|
package/dist/author/index.d.ts
CHANGED
package/dist/author/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "./configure.js";
|
|
1
|
+
import { Configure as e } from "./configure.js";
|
|
2
2
|
import t from "./defaults.js";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import { createRoot as r } from "react-dom/client";
|
|
@@ -79,8 +79,11 @@ var d = a("pie-elements:graphing-solution-set:configure"), f = (e) => Object.key
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
connectedCallback() {
|
|
83
|
+
this._render();
|
|
84
|
+
}
|
|
82
85
|
disconnectedCallback() {
|
|
83
|
-
this._root
|
|
86
|
+
this._root &&= (this._root.unmount(), null);
|
|
84
87
|
}
|
|
85
88
|
};
|
|
86
89
|
//#endregion
|
package/dist/author/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "
|
|
1
|
+
import { isEqual as e } from "@pie-element/shared-lodash";
|
|
2
2
|
//#region src/author/utils.ts
|
|
3
3
|
var t = [
|
|
4
4
|
.01,
|
|
@@ -471,4 +471,4 @@ var t = [
|
|
|
471
471
|
else return !t[1].building;
|
|
472
472
|
};
|
|
473
473
|
//#endregion
|
|
474
|
-
export { o as applyConstraints, E as checkIfLinesAreAdded, c as filterPlotableMarks, w as findSectionsInSolutionSet, i as getGridValues, a as getLabelValues, T as pointInsidePolygon };
|
|
474
|
+
export { r as VALID_LABEL_VALUES, o as applyConstraints, E as checkIfLinesAreAdded, c as filterPlotableMarks, w as findSectionsInSolutionSet, i as getGridValues, a as getLabelValues, T as pointInsidePolygon };
|