@pie-element/graphing 10.1.2-next.0 → 10.1.2-next.1
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 +46 -46
- package/dist/author/correct-response.js +86 -87
- package/dist/author/graphing-config.js +60 -60
- package/dist/author/index.js +19 -19
- package/dist/author/utils.js +1 -1
- package/dist/browser/author/index.js +1280 -4426
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{container-Bg6U_CJ-.js → container-DaIvr1Vu.js} +13429 -14293
- package/dist/browser/container-DaIvr1Vu.js.map +1 -0
- package/dist/browser/controller/index.js +126 -153
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +26 -26
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/dist-BrN2xZtM.js +547 -0
- package/dist/browser/dist-BrN2xZtM.js.map +1 -0
- package/dist/controller/index.d.ts +1 -1
- package/dist/controller/index.js +56 -58
- package/dist/controller/utils.d.ts +14 -14
- package/dist/controller/utils.js +1 -4
- package/dist/index.iife.js +105 -103
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +14 -10
- package/dist/browser/container-Bg6U_CJ-.js.map +0 -1
- package/dist/browser/dist-eInAO7us.js +0 -1468
- package/dist/browser/dist-eInAO7us.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/_baseIntersection.js +0 -29
- 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/_castArrayLikeObject.js +0 -7
- 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/intersection.js +0 -11
- 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
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import o from "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
import { isEqual as d } from "@pie-element/shared-lodash";
|
|
8
8
|
import { AlertDialog as f } from "@pie-lib/config-ui";
|
|
9
9
|
import { MenuItem as p, OutlinedInput as m, Select as h, Typography as g } from "@mui/material";
|
|
10
10
|
//#region src/author/graphing-config.tsx
|
|
11
|
-
var _ =
|
|
11
|
+
var _ = o("div")(({ theme: e }) => ({
|
|
12
12
|
display: "flex",
|
|
13
13
|
flexWrap: "wrap",
|
|
14
14
|
marginBottom: e.spacing(2.5)
|
|
15
|
-
})), v =
|
|
15
|
+
})), v = o("div")(({ theme: e }) => ({
|
|
16
16
|
display: "flex",
|
|
17
17
|
flexDirection: "column",
|
|
18
18
|
marginRight: e.spacing(3),
|
|
19
19
|
marginBottom: e.spacing(2.5)
|
|
20
|
-
})), y =
|
|
20
|
+
})), y = o("div")({
|
|
21
21
|
display: "flex",
|
|
22
22
|
flexDirection: "column"
|
|
23
|
-
}), b =
|
|
23
|
+
}), b = o(g)(({ theme: e }) => ({
|
|
24
24
|
marginTop: e.spacing(1.5),
|
|
25
25
|
marginBottom: e.spacing(1)
|
|
26
|
-
})), x =
|
|
26
|
+
})), x = o("div")(({ theme: e }) => ({
|
|
27
27
|
display: "flex",
|
|
28
28
|
flexWrap: "wrap",
|
|
29
29
|
alignItems: "center",
|
|
30
30
|
width: "100%",
|
|
31
31
|
marginBottom: e.spacing(2.5)
|
|
32
|
-
})), S =
|
|
32
|
+
})), S = o(g)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), C = o(h)({ flex: "1" }), w = class extends i.Component {
|
|
33
33
|
static propTypes = {
|
|
34
|
-
availableTools:
|
|
35
|
-
authoring:
|
|
36
|
-
dimensionsEnabled:
|
|
37
|
-
graphDimensions:
|
|
38
|
-
gridConfigurations:
|
|
39
|
-
labelsPlaceholders:
|
|
40
|
-
model:
|
|
41
|
-
onChange:
|
|
42
|
-
showLabels:
|
|
43
|
-
showTitle:
|
|
44
|
-
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
|
|
45
45
|
};
|
|
46
46
|
constructor(e) {
|
|
47
47
|
super(e);
|
|
48
|
-
let { domain: t, range:
|
|
49
|
-
domain:
|
|
50
|
-
range:
|
|
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)
|
|
51
51
|
}, s = {
|
|
52
|
-
domain:
|
|
53
|
-
range: i
|
|
52
|
+
domain: r(t.step),
|
|
53
|
+
range: r(i.step)
|
|
54
54
|
};
|
|
55
55
|
this.state = {
|
|
56
56
|
gridValues: o,
|
|
@@ -58,7 +58,7 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
58
58
|
showPixelGuides: !1,
|
|
59
59
|
dialog: { isOpened: !1 },
|
|
60
60
|
domain: { ...t },
|
|
61
|
-
range: { ...
|
|
61
|
+
range: { ...i }
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
changeBackgroundMarks = (e) => {
|
|
@@ -82,34 +82,34 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
82
82
|
title: e
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
|
-
onConfigChange = (
|
|
86
|
-
let { model:
|
|
87
|
-
...
|
|
88
|
-
...
|
|
85
|
+
onConfigChange = (n, r) => {
|
|
86
|
+
let { model: i, onChange: a } = this.props, { defaultGridConfiguration: o = 0 } = i, { gridValues: s, labelValues: c, domain: l, range: u } = this.state, f = {
|
|
87
|
+
...i,
|
|
88
|
+
...n
|
|
89
89
|
}, { answers: p, domain: m, includeAxes: h, graph: g, range: _, standardGrid: v } = f, y = {
|
|
90
90
|
domain: [],
|
|
91
91
|
range: []
|
|
92
92
|
}, b = {
|
|
93
93
|
domain: [],
|
|
94
94
|
range: []
|
|
95
|
-
}, x =
|
|
95
|
+
}, x = r >= 0 ? r : o;
|
|
96
96
|
if (h) {
|
|
97
|
-
let
|
|
98
|
-
y.domain =
|
|
97
|
+
let t = e(m, g.width, s.domain, c.domain);
|
|
98
|
+
y.domain = t.gridValues || [], b.domain = t.labelValues || [];
|
|
99
99
|
}
|
|
100
100
|
if (v) y.range = y.domain, b.range = b.domain, _.step = m.step, _.labelStep = m.labelStep;
|
|
101
101
|
else if (h) {
|
|
102
|
-
let
|
|
103
|
-
y.range =
|
|
102
|
+
let t = e(_, g.height, s.range, c.range);
|
|
103
|
+
y.range = t.gridValues || [], b.range = t.labelValues || [];
|
|
104
104
|
}
|
|
105
|
-
let S =
|
|
106
|
-
if (!
|
|
105
|
+
let S = t(m, _, p);
|
|
106
|
+
if (!d(p, S)) {
|
|
107
107
|
this.setState({ dialog: {
|
|
108
108
|
isOpened: !0,
|
|
109
|
-
onClose: () => this.setState({ dialog: { isOpened: !1 } },
|
|
110
|
-
...
|
|
111
|
-
domain:
|
|
112
|
-
range:
|
|
109
|
+
onClose: () => this.setState({ dialog: { isOpened: !1 } }, a({
|
|
110
|
+
...i,
|
|
111
|
+
domain: l,
|
|
112
|
+
range: u
|
|
113
113
|
})),
|
|
114
114
|
onConfirm: () => {
|
|
115
115
|
this.setState({
|
|
@@ -118,7 +118,7 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
118
118
|
dialog: { isOpened: !1 },
|
|
119
119
|
domain: { ...m },
|
|
120
120
|
range: { ..._ }
|
|
121
|
-
},
|
|
121
|
+
}, a({
|
|
122
122
|
...f,
|
|
123
123
|
answers: S,
|
|
124
124
|
defaultGridConfiguration: x
|
|
@@ -132,7 +132,7 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
132
132
|
labelValues: b,
|
|
133
133
|
domain: { ...m },
|
|
134
134
|
range: { ..._ }
|
|
135
|
-
}),
|
|
135
|
+
}), a({
|
|
136
136
|
...f,
|
|
137
137
|
defaultGridConfiguration: x
|
|
138
138
|
});
|
|
@@ -146,13 +146,13 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
146
146
|
this.onConfigChange(t?.[n] || {}, n);
|
|
147
147
|
};
|
|
148
148
|
render() {
|
|
149
|
-
let { authoring: e = {}, availableTools: t = [], gridConfigurations: n = [], graphDimensions: r = {}, labelsPlaceholders: i, model: a, showLabels: o, dimensionsEnabled:
|
|
149
|
+
let { authoring: e = {}, availableTools: t = [], gridConfigurations: n = [], graphDimensions: r = {}, labelsPlaceholders: i, model: a, showLabels: o, dimensionsEnabled: d, showTitle: h, titlePlaceholder: w, mathMlOptions: T = {}, removeIncompleteTool: E } = this.props, { arrows: D, backgroundMarks: O, coordinatesOnHover: k, defaultGridConfiguration: A, domain: j, includeAxes: M, labels: N, range: P, standardGrid: F, title: I } = a || {}, L = (a || {}).graph || {}, { min: R, max: z, step: B } = r || {}, { dialog: V = {}, gridValues: H, labelValues: U, showPixelGuides: W } = this.state, G = {
|
|
150
150
|
min: Math.max(150, R),
|
|
151
151
|
max: Math.min(800, z),
|
|
152
152
|
step: B >= 1 ? Math.min(200, B) : 20
|
|
153
153
|
}, K = {
|
|
154
154
|
axisLabel: e.axisLabel,
|
|
155
|
-
dimensionsEnabled:
|
|
155
|
+
dimensionsEnabled: d,
|
|
156
156
|
includeAxesEnabled: e.includeAxesEnabled,
|
|
157
157
|
labelStep: e.labelStep,
|
|
158
158
|
min: e.min,
|
|
@@ -160,13 +160,13 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
160
160
|
standardGridEnabled: e.standardGridEnabled,
|
|
161
161
|
step: e.step
|
|
162
162
|
}, q = e.enabled && Object.values(K).some((e) => typeof e == "object" ? e.enabled : e);
|
|
163
|
-
return /* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
163
|
+
return /* @__PURE__ */ u(_, { children: [
|
|
164
|
+
/* @__PURE__ */ u(v, { children: [n && n.length ? /* @__PURE__ */ u(x, { children: [/* @__PURE__ */ l(S, {
|
|
165
165
|
component: "div",
|
|
166
166
|
variant: "h6",
|
|
167
167
|
children: "Grid Configuration"
|
|
168
|
-
}), /* @__PURE__ */
|
|
169
|
-
input: /* @__PURE__ */
|
|
168
|
+
}), /* @__PURE__ */ l(C, {
|
|
169
|
+
input: /* @__PURE__ */ l(m, {}),
|
|
170
170
|
displayEmpty: !0,
|
|
171
171
|
onChange: this.changeGridConfiguration,
|
|
172
172
|
value: A,
|
|
@@ -174,11 +174,11 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
174
174
|
enter: 225,
|
|
175
175
|
exit: 195
|
|
176
176
|
} },
|
|
177
|
-
children: (n || []).map((e, t) => /* @__PURE__ */
|
|
177
|
+
children: (n || []).map((e, t) => /* @__PURE__ */ l(p, {
|
|
178
178
|
value: t,
|
|
179
179
|
children: e.label
|
|
180
180
|
}, t))
|
|
181
|
-
})] }) : null, q && /* @__PURE__ */
|
|
181
|
+
})] }) : null, q && /* @__PURE__ */ l(c, {
|
|
182
182
|
displayedFields: K,
|
|
183
183
|
domain: j,
|
|
184
184
|
gridValues: H,
|
|
@@ -191,18 +191,18 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
191
191
|
onChange: this.onConfigChange,
|
|
192
192
|
onChangeView: this.onChangeView
|
|
193
193
|
})] }),
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ u(y, { children: [
|
|
195
|
+
/* @__PURE__ */ l(g, {
|
|
196
196
|
component: "div",
|
|
197
197
|
variant: "h6",
|
|
198
198
|
children: "Define Graph Attributes"
|
|
199
199
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ l(b, {
|
|
201
201
|
component: "div",
|
|
202
202
|
variant: "body1",
|
|
203
203
|
children: "Use this interface to add/edit a title and/or labels, and to set background shapes"
|
|
204
204
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ l(s, {
|
|
206
206
|
axesSettings: { includeArrows: D },
|
|
207
207
|
backgroundMarks: [],
|
|
208
208
|
coordinatesOnHover: k,
|
|
@@ -230,7 +230,7 @@ var _ = s("div")(({ theme: e }) => ({
|
|
|
230
230
|
removeIncompleteTool: E
|
|
231
231
|
}, "graphing-config")
|
|
232
232
|
] }, "graph"),
|
|
233
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ l(f, {
|
|
234
234
|
open: V.isOpened,
|
|
235
235
|
title: "Warning",
|
|
236
236
|
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.",
|
package/dist/author/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "react";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import o from "
|
|
1
|
+
import e from "./configure.js";
|
|
2
|
+
import t from "./defaults.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { createRoot as r } from "react-dom/client";
|
|
5
|
+
import { renderMath as i } from "@pie-element/shared-math-rendering-mathjax";
|
|
6
|
+
import a from "debug";
|
|
7
|
+
import { cloneDeep as o } from "@pie-element/shared-lodash";
|
|
8
8
|
import { DeleteImageEvent as s, DeleteSoundEvent as c, InsertImageEvent as l, InsertSoundEvent as u, ModelUpdatedEvent as d } from "@pie-element/shared-configure-events";
|
|
9
9
|
//#region src/author/index.ts
|
|
10
|
-
var f =
|
|
10
|
+
var f = a("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), m = class a extends HTMLElement {
|
|
11
11
|
static createDefaultModel = (e = {}) => {
|
|
12
|
-
let
|
|
13
|
-
...
|
|
12
|
+
let n = {
|
|
13
|
+
...t.model,
|
|
14
14
|
...e
|
|
15
|
-
}, { answers: r = {}, domain: i = {}, defaultTool: a, graph: o = {}, range: s = {}, standardGrid: c, toolbarTools: l } =
|
|
15
|
+
}, { answers: r = {}, domain: i = {}, defaultTool: a, graph: o = {}, range: s = {}, standardGrid: c, toolbarTools: l } = n, u = (l || []).filter((e) => e !== "label"), d = a || u.length && u[0] || "";
|
|
16
16
|
return {
|
|
17
|
-
...
|
|
17
|
+
...n,
|
|
18
18
|
answers: r && r.correctAnswer && {
|
|
19
19
|
correctAnswer: r.correctAnswer,
|
|
20
20
|
...p(r)
|
|
@@ -34,10 +34,10 @@ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).so
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
constructor() {
|
|
37
|
-
super(), this._root = null, this._model =
|
|
37
|
+
super(), this._root = null, this._model = a.createDefaultModel(), this._configuration = t.configuration;
|
|
38
38
|
}
|
|
39
|
-
set model(
|
|
40
|
-
this._model =
|
|
39
|
+
set model(e) {
|
|
40
|
+
this._model = a.createDefaultModel(e), this._modelCopy = o(this._model), this._render();
|
|
41
41
|
}
|
|
42
42
|
resetModelAfterConfigurationIsSet = () => {
|
|
43
43
|
let e = document.querySelectorAll("pie-author");
|
|
@@ -45,7 +45,7 @@ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).so
|
|
|
45
45
|
};
|
|
46
46
|
set configuration(e) {
|
|
47
47
|
this._configuration = {
|
|
48
|
-
...
|
|
48
|
+
...t.configuration,
|
|
49
49
|
...e
|
|
50
50
|
}, this.resetModelAfterConfigurationIsSet(), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings ? this._model.language && (this._configuration.language.enabled = !0) : delete this._model.language, this._render();
|
|
51
51
|
}
|
|
@@ -69,7 +69,7 @@ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).so
|
|
|
69
69
|
}
|
|
70
70
|
_render() {
|
|
71
71
|
if (this._model) {
|
|
72
|
-
let
|
|
72
|
+
let t = n.createElement(e, {
|
|
73
73
|
onModelChanged: this.onModelChanged,
|
|
74
74
|
onConfigurationChanged: this.onConfigurationChanged,
|
|
75
75
|
model: this._model,
|
|
@@ -83,8 +83,8 @@ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).so
|
|
|
83
83
|
delete: this.onDeleteSound.bind(this)
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
this._root ||=
|
|
87
|
-
|
|
86
|
+
this._root ||= r(this), this._root.render(t), queueMicrotask(() => {
|
|
87
|
+
i(this);
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
}
|
package/dist/author/utils.js
CHANGED