@pie-element/graphing 0.1.0
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.d.ts +27 -0
- package/dist/author/configure.d.ts.map +1 -0
- package/dist/author/configure.js +208 -0
- package/dist/author/correct-response.d.ts +55 -0
- package/dist/author/correct-response.d.ts.map +1 -0
- package/dist/author/correct-response.js +304 -0
- package/dist/author/defaults.d.ts +295 -0
- package/dist/author/defaults.d.ts.map +1 -0
- package/dist/author/defaults.js +415 -0
- package/dist/author/graphing-config.d.ts +35 -0
- package/dist/author/graphing-config.d.ts.map +1 -0
- package/dist/author/graphing-config.js +244 -0
- package/dist/author/index.d.ts +60 -0
- package/dist/author/index.d.ts.map +1 -0
- package/dist/author/index.js +96 -0
- package/dist/author/utils.d.ts +44 -0
- package/dist/author/utils.d.ts.map +1 -0
- package/dist/author/utils.js +260 -0
- package/dist/controller/defaults.d.ts +60 -0
- package/dist/controller/defaults.d.ts.map +1 -0
- package/dist/controller/defaults.js +61 -0
- package/dist/controller/index.d.ts +34 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +177 -0
- package/dist/controller/utils.d.ts +37 -0
- package/dist/controller/utils.d.ts.map +1 -0
- package/dist/controller/utils.js +111 -0
- package/dist/delivery/index.d.ts +22 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +43 -0
- package/dist/delivery/main.d.ts +24 -0
- package/dist/delivery/main.d.ts.map +1 -0
- package/dist/delivery/main.js +107 -0
- package/dist/delivery/utils.d.ts +23 -0
- package/dist/delivery/utils.d.ts.map +1 -0
- package/dist/graphing.css +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.iife.d.ts +9 -0
- package/dist/index.iife.d.ts.map +1 -0
- package/dist/index.iife.js +374 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseDifference.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFindIndex.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIndexOf.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIntersection.js +29 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNaN.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSet.js +22 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUniq.js +27 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castArrayLikeObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_strictIndexOf.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/differenceWith.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/intersection.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/last.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/noop.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/set.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniq.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniqWith.js +7 -0
- package/package.json +72 -0
- package/src/author/configure.tsx +299 -0
- package/src/author/correct-response.tsx +490 -0
- package/src/author/defaults.tsx +434 -0
- package/src/author/graphing-config.tsx +333 -0
- package/src/author/index.ts +204 -0
- package/src/author/utils.ts +144 -0
- package/src/controller/defaults.ts +74 -0
- package/src/controller/index.ts +458 -0
- package/src/controller/utils.ts +361 -0
- package/src/delivery/index.ts +79 -0
- package/src/delivery/main.tsx +180 -0
- package/src/delivery/utils.ts +34 -0
- package/src/index.iife.ts +16 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./isArrayLike.js";
|
|
2
|
+
import t from "./_arrayLikeKeys.js";
|
|
3
|
+
import n from "./_baseKeysIn.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
return e(r) ? t(r, !0) : n(r);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "./_MapCache.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js
|
|
3
|
+
var t = "Expected a function";
|
|
4
|
+
function n(r, i) {
|
|
5
|
+
if (typeof r != "function" || i != null && typeof i != "function") throw TypeError(t);
|
|
6
|
+
var a = function() {
|
|
7
|
+
var e = arguments, t = i ? i.apply(this, e) : e[0], n = a.cache;
|
|
8
|
+
if (n.has(t)) return n.get(t);
|
|
9
|
+
var o = r.apply(this, e);
|
|
10
|
+
return a.cache = n.set(t, o) || n, o;
|
|
11
|
+
};
|
|
12
|
+
return a.cache = new (n.Cache || e)(), a;
|
|
13
|
+
}
|
|
14
|
+
n.Cache = e;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./_baseUniq.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniqWith.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
return n = typeof n == "function" ? n : void 0, t && t.length ? e(t, void 0, n) : [];
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pie-element/graphing",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@emotion/react": "^11.14.0",
|
|
7
|
+
"@emotion/style": "^0.8.0",
|
|
8
|
+
"@mui/icons-material": "^7.3.4",
|
|
9
|
+
"@mui/material": "^7.3.4",
|
|
10
|
+
"@pie-lib/correct-answer-toggle": "0.1.0",
|
|
11
|
+
"@pie-lib/graphing": "0.1.0",
|
|
12
|
+
"@pie-lib/render-ui": "0.1.0",
|
|
13
|
+
"classnames": "^2.2.5",
|
|
14
|
+
"debug": "^4.1.1",
|
|
15
|
+
"@pie-lib/config-ui": "0.1.0",
|
|
16
|
+
"@pie-lib/editable-html-tip-tap": "0.1.0",
|
|
17
|
+
"@pie-element/shared-math-rendering-mathjax": "0.1.0",
|
|
18
|
+
"@pie-element/shared-configure-events": "0.1.0",
|
|
19
|
+
"@pie-element/shared-controller-utils": "0.1.0",
|
|
20
|
+
"@pie-lib/graphing-utils": "0.1.0",
|
|
21
|
+
"@pie-element/shared-player-events": "0.1.0",
|
|
22
|
+
"lodash-es": "^4.17.21",
|
|
23
|
+
"prop-types": "^15.6.1"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^18.0.0",
|
|
27
|
+
"react-dom": "^18.0.0"
|
|
28
|
+
},
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"development": "./src/index.ts",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./delivery": {
|
|
36
|
+
"development": "./src/delivery/index.ts",
|
|
37
|
+
"types": "./dist/delivery/index.d.ts",
|
|
38
|
+
"default": "./dist/delivery/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./author": {
|
|
41
|
+
"development": "./src/author/index.ts",
|
|
42
|
+
"types": "./dist/author/index.d.ts",
|
|
43
|
+
"default": "./dist/author/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./controller": {
|
|
46
|
+
"development": "./src/controller/index.ts",
|
|
47
|
+
"types": "./dist/controller/index.d.ts",
|
|
48
|
+
"default": "./dist/controller/index.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"type": "module",
|
|
52
|
+
"main": "./dist/index.js",
|
|
53
|
+
"types": "./dist/index.d.ts",
|
|
54
|
+
"files": [
|
|
55
|
+
"dist",
|
|
56
|
+
"src"
|
|
57
|
+
],
|
|
58
|
+
"sideEffects": false,
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"vite": "^8.0.1",
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
63
|
+
"@types/react": "^18.2.0",
|
|
64
|
+
"@types/react-dom": "^18.2.0"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "bun x vite build && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
|
|
68
|
+
"dev": "bun x vite",
|
|
69
|
+
"demo": "bun x vite --mode demo",
|
|
70
|
+
"test": "bun x vitest run"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/graphing/configure/src/configure.jsx
|
|
4
|
+
* @auto-generated
|
|
5
|
+
*
|
|
6
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
7
|
+
* Manual edits will be overwritten on next sync.
|
|
8
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
import debug from 'debug';
|
|
14
|
+
import { intersection } from 'lodash-es';
|
|
15
|
+
import { styled } from '@mui/material/styles';
|
|
16
|
+
import Typography from '@mui/material/Typography';
|
|
17
|
+
|
|
18
|
+
import { settings, layout, InputContainer } from '@pie-lib/config-ui';
|
|
19
|
+
import EditableHtml from '@pie-lib/editable-html-tip-tap';
|
|
20
|
+
|
|
21
|
+
import GraphingConfig from './graphing-config.js';
|
|
22
|
+
import CorrectResponse from './correct-response.js';
|
|
23
|
+
|
|
24
|
+
const { Panel, toggle, radio, checkboxes, textField, dropdown } = settings;
|
|
25
|
+
const log = debug('@pie-element:graphing:configure');
|
|
26
|
+
|
|
27
|
+
const StyledInputContainer: any = styled(InputContainer)(({ theme }) => ({
|
|
28
|
+
width: '100%',
|
|
29
|
+
paddingTop: theme.spacing(2),
|
|
30
|
+
marginBottom: theme.spacing(2),
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
const Description: any = styled(Typography)(({ theme }) => ({
|
|
34
|
+
marginBottom: theme.spacing(2.5),
|
|
35
|
+
}));
|
|
36
|
+
|
|
37
|
+
const ErrorText: any = styled('div')(({ theme }) => ({
|
|
38
|
+
fontSize: theme.typography.fontSize - 2,
|
|
39
|
+
color: theme.palette.error.main,
|
|
40
|
+
paddingTop: theme.spacing(1),
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
export class Configure extends React.Component {
|
|
44
|
+
static propTypes = {
|
|
45
|
+
onModelChanged: PropTypes.func,
|
|
46
|
+
onConfigurationChanged: PropTypes.func,
|
|
47
|
+
imageSupport: PropTypes.object,
|
|
48
|
+
uploadSoundSupport: PropTypes.object,
|
|
49
|
+
model: PropTypes.object.isRequired,
|
|
50
|
+
configuration: PropTypes.object.isRequired,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
componentDidMount() {
|
|
54
|
+
const { configuration, onModelChanged, model } = this.props;
|
|
55
|
+
const { availableTools, title, graphDimensions } = configuration || {};
|
|
56
|
+
let { arrows, titleEnabled: showTitle, dimensionsEnabled: showDimensions } = model || {};
|
|
57
|
+
|
|
58
|
+
// This is used for offering support for old models which have the property arrows: boolean
|
|
59
|
+
// Same thing is set in the controller: packages/graphing/controller/src/index.js - model
|
|
60
|
+
if (typeof arrows === 'boolean') {
|
|
61
|
+
if (arrows) {
|
|
62
|
+
arrows = { left: true, right: true, up: true, down: true };
|
|
63
|
+
} else {
|
|
64
|
+
arrows = { left: false, right: false, up: false, down: false };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const toolbarTools = intersection(availableTools || [], model.toolbarTools || []);
|
|
69
|
+
const titleEnabled = showTitle === undefined || showTitle === null ? title.enabled : showTitle;
|
|
70
|
+
const dimensionsEnabled =
|
|
71
|
+
showDimensions === undefined || showDimensions === null ? graphDimensions.enabled : showDimensions;
|
|
72
|
+
|
|
73
|
+
onModelChanged && onModelChanged({ ...model, arrows, toolbarTools, titleEnabled, dimensionsEnabled });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
onRationaleChange: any = (rationale) => {
|
|
77
|
+
const { onModelChanged, model } = this.props;
|
|
78
|
+
|
|
79
|
+
onModelChanged({ ...model, rationale });
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
onPromptChange: any = (prompt) => {
|
|
83
|
+
const { onModelChanged, model } = this.props;
|
|
84
|
+
|
|
85
|
+
onModelChanged({ ...model, prompt });
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
onTeacherInstructionsChange: any = (teacherInstructions) => {
|
|
89
|
+
const { onModelChanged, model } = this.props;
|
|
90
|
+
|
|
91
|
+
onModelChanged({ ...model, teacherInstructions });
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
render() {
|
|
95
|
+
const { model, configuration, onConfigurationChanged, onModelChanged, imageSupport, uploadSoundSupport } =
|
|
96
|
+
this.props;
|
|
97
|
+
const {
|
|
98
|
+
arrows = {},
|
|
99
|
+
authoring = {},
|
|
100
|
+
availableTools = [],
|
|
101
|
+
baseInputConfiguration = {},
|
|
102
|
+
coordinatesOnHover = {},
|
|
103
|
+
contentDimensions = {},
|
|
104
|
+
gridConfigurations = [],
|
|
105
|
+
graphDimensions = {},
|
|
106
|
+
instruction = {},
|
|
107
|
+
labels = {},
|
|
108
|
+
padding = {},
|
|
109
|
+
prompt = {},
|
|
110
|
+
rationale = {},
|
|
111
|
+
scoringType = {},
|
|
112
|
+
settingsPanelDisabled,
|
|
113
|
+
spellCheck = {},
|
|
114
|
+
studentInstructions = {},
|
|
115
|
+
teacherInstructions = {},
|
|
116
|
+
title = {},
|
|
117
|
+
maxImageWidth = {},
|
|
118
|
+
maxImageHeight = {},
|
|
119
|
+
withRubric = {},
|
|
120
|
+
language = {},
|
|
121
|
+
languageChoices = {},
|
|
122
|
+
mathMlOptions = {},
|
|
123
|
+
removeIncompleteTool = false,
|
|
124
|
+
} = configuration || {};
|
|
125
|
+
const {
|
|
126
|
+
errors = {},
|
|
127
|
+
extraCSSRules,
|
|
128
|
+
labelsEnabled,
|
|
129
|
+
dimensionsEnabled,
|
|
130
|
+
promptEnabled,
|
|
131
|
+
rationaleEnabled,
|
|
132
|
+
spellCheckEnabled,
|
|
133
|
+
teacherInstructionsEnabled,
|
|
134
|
+
titleEnabled,
|
|
135
|
+
} = model || {};
|
|
136
|
+
const {
|
|
137
|
+
prompt: promptError,
|
|
138
|
+
rationale: rationaleError,
|
|
139
|
+
teacherInstructions: teacherInstructionsError,
|
|
140
|
+
} = errors || {};
|
|
141
|
+
|
|
142
|
+
log('[render] model', model);
|
|
143
|
+
|
|
144
|
+
const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;
|
|
145
|
+
const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;
|
|
146
|
+
const labelsPlaceholders = {
|
|
147
|
+
top: labels.top,
|
|
148
|
+
right: labels.right,
|
|
149
|
+
bottom: labels.bottom,
|
|
150
|
+
left: labels.left,
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
const panelItemType = {
|
|
154
|
+
arrows:
|
|
155
|
+
arrows.settings &&
|
|
156
|
+
checkboxes(arrows.label, {
|
|
157
|
+
left: arrows.left,
|
|
158
|
+
right: arrows.right,
|
|
159
|
+
up: arrows.up,
|
|
160
|
+
down: arrows.down,
|
|
161
|
+
}),
|
|
162
|
+
titleEnabled: title.settings && toggle(title.label),
|
|
163
|
+
padding: padding.settings && toggle(padding.label),
|
|
164
|
+
labelsEnabled: labels.settings && toggle(labels.label),
|
|
165
|
+
'language.enabled': language.settings && toggle(language.label, true),
|
|
166
|
+
language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),
|
|
167
|
+
dimensionsEnabled: graphDimensions.settings && toggle(graphDimensions.label),
|
|
168
|
+
coordinatesOnHover: coordinatesOnHover.settings && toggle(coordinatesOnHover.label),
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
const panelProperties = {
|
|
172
|
+
'authoring.enabled': authoring.settings && toggle(authoring.label, true),
|
|
173
|
+
teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
|
|
174
|
+
studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
|
|
175
|
+
promptEnabled: prompt.settings && toggle(prompt.label),
|
|
176
|
+
rationaleEnabled: rationale.settings && toggle(rationale.label),
|
|
177
|
+
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
178
|
+
scoringType: scoringType.settings && radio(scoringType.label, ['dichotomous', 'partial scoring']),
|
|
179
|
+
rubricEnabled: withRubric?.settings && toggle(withRubric?.label),
|
|
180
|
+
instruction: instruction.settings && textField(instruction.label),
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
const getPluginProps = (props = {}) => ({
|
|
184
|
+
...baseInputConfiguration,
|
|
185
|
+
...props,
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
return (
|
|
189
|
+
<layout.ConfigLayout
|
|
190
|
+
extraCSSRules={extraCSSRules}
|
|
191
|
+
dimensions={contentDimensions}
|
|
192
|
+
hideSettings={settingsPanelDisabled}
|
|
193
|
+
settings={
|
|
194
|
+
<Panel
|
|
195
|
+
model={model}
|
|
196
|
+
configuration={configuration}
|
|
197
|
+
onChangeModel={onModelChanged}
|
|
198
|
+
onChangeConfiguration={onConfigurationChanged}
|
|
199
|
+
groups={{
|
|
200
|
+
Settings: panelItemType,
|
|
201
|
+
Properties: panelProperties,
|
|
202
|
+
}}
|
|
203
|
+
/>
|
|
204
|
+
}
|
|
205
|
+
>
|
|
206
|
+
<Description component="div" variant="body1">
|
|
207
|
+
{instruction?.label || ''}
|
|
208
|
+
</Description>
|
|
209
|
+
|
|
210
|
+
{teacherInstructionsEnabled && (
|
|
211
|
+
<StyledInputContainer label={teacherInstructions.label}>
|
|
212
|
+
<EditableHtml
|
|
213
|
+
markup={model.teacherInstructions || ''}
|
|
214
|
+
onChange={this.onTeacherInstructionsChange}
|
|
215
|
+
imageSupport={imageSupport}
|
|
216
|
+
error={teacherInstructionsError}
|
|
217
|
+
nonEmpty={false}
|
|
218
|
+
pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}
|
|
219
|
+
spellCheck={spellCheckEnabled}
|
|
220
|
+
maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}
|
|
221
|
+
maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}
|
|
222
|
+
uploadSoundSupport={uploadSoundSupport}
|
|
223
|
+
languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
|
|
224
|
+
mathMlOptions={mathMlOptions}
|
|
225
|
+
/>
|
|
226
|
+
{teacherInstructionsError && <ErrorText>{teacherInstructionsError}</ErrorText>}
|
|
227
|
+
</StyledInputContainer>
|
|
228
|
+
)}
|
|
229
|
+
|
|
230
|
+
{promptEnabled && (
|
|
231
|
+
<StyledInputContainer label={prompt.label}>
|
|
232
|
+
<EditableHtml
|
|
233
|
+
markup={model.prompt}
|
|
234
|
+
onChange={this.onPromptChange}
|
|
235
|
+
imageSupport={imageSupport}
|
|
236
|
+
error={promptError}
|
|
237
|
+
nonEmpty={false}
|
|
238
|
+
spellCheck={spellCheckEnabled}
|
|
239
|
+
pluginProps={getPluginProps(prompt?.inputConfiguration)}
|
|
240
|
+
disableUnderline
|
|
241
|
+
maxImageWidth={defaultImageMaxWidth}
|
|
242
|
+
maxImageHeight={defaultImageMaxHeight}
|
|
243
|
+
uploadSoundSupport={uploadSoundSupport}
|
|
244
|
+
languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
|
|
245
|
+
mathMlOptions={mathMlOptions}
|
|
246
|
+
/>
|
|
247
|
+
{promptError && <ErrorText>{promptError}</ErrorText>}
|
|
248
|
+
</StyledInputContainer>
|
|
249
|
+
)}
|
|
250
|
+
|
|
251
|
+
<GraphingConfig
|
|
252
|
+
authoring={authoring}
|
|
253
|
+
availableTools={availableTools}
|
|
254
|
+
gridConfigurations={gridConfigurations}
|
|
255
|
+
graphDimensions={graphDimensions}
|
|
256
|
+
labelsPlaceholders={labelsPlaceholders}
|
|
257
|
+
model={model}
|
|
258
|
+
showLabels={labelsEnabled}
|
|
259
|
+
dimensionsEnabled={dimensionsEnabled}
|
|
260
|
+
showTitle={titleEnabled}
|
|
261
|
+
titlePlaceholder={title.placeholder}
|
|
262
|
+
onChange={this.props.onModelChanged}
|
|
263
|
+
mathMlOptions={mathMlOptions}
|
|
264
|
+
removeIncompleteTool={removeIncompleteTool}
|
|
265
|
+
/>
|
|
266
|
+
|
|
267
|
+
<CorrectResponse
|
|
268
|
+
availableTools={availableTools}
|
|
269
|
+
errors={errors}
|
|
270
|
+
model={model}
|
|
271
|
+
onChange={this.props.onModelChanged}
|
|
272
|
+
mathMlOptions={mathMlOptions}
|
|
273
|
+
removeIncompleteTool={removeIncompleteTool}
|
|
274
|
+
/>
|
|
275
|
+
|
|
276
|
+
{rationaleEnabled && (
|
|
277
|
+
<StyledInputContainer label={rationale.label || 'Rationale'}>
|
|
278
|
+
<EditableHtml
|
|
279
|
+
markup={model.rationale || ''}
|
|
280
|
+
onChange={this.onRationaleChange}
|
|
281
|
+
imageSupport={imageSupport}
|
|
282
|
+
error={rationaleError}
|
|
283
|
+
spellCheck={spellCheckEnabled}
|
|
284
|
+
pluginProps={getPluginProps(rationale?.inputConfiguration)}
|
|
285
|
+
maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}
|
|
286
|
+
maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}
|
|
287
|
+
uploadSoundSupport={uploadSoundSupport}
|
|
288
|
+
languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
|
|
289
|
+
mathMlOptions={mathMlOptions}
|
|
290
|
+
/>
|
|
291
|
+
{rationaleError && <ErrorText>{rationaleError}</ErrorText>}
|
|
292
|
+
</StyledInputContainer>
|
|
293
|
+
)}
|
|
294
|
+
</layout.ConfigLayout>
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export default Configure;
|