@pie-element/number-line 13.1.2-next.0 → 13.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/index.js +19 -19
- package/dist/author/main.js +152 -152
- package/dist/browser/author/index.js +7079 -7256
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +165 -419
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{delivery-Dh8QdqpO.js → delivery-Ci_kZyOM.js} +2178 -2225
- package/dist/browser/delivery-Ci_kZyOM.js.map +1 -0
- package/dist/browser/dist-D5T-OaLo.js +19038 -0
- package/dist/browser/dist-D5T-OaLo.js.map +1 -0
- package/dist/browser/impureFunctionsAny.generated-Bqfato71.js +10162 -0
- package/dist/browser/impureFunctionsAny.generated-Bqfato71.js.map +1 -0
- package/dist/controller/index.d.ts +15 -1
- package/dist/controller/index.js +60 -65
- package/dist/controller/tickUtils.d.ts +3 -2
- package/dist/controller/tickUtils.js +64 -66
- package/dist/delivery/index.js +9 -9
- package/dist/delivery/number-line/graph/elements/line.js +56 -57
- package/dist/delivery/number-line/graph/elements/ray.js +54 -54
- package/dist/delivery/number-line/graph/index.d.ts +2 -2
- package/dist/delivery/number-line/graph/tick-utils.d.ts +16 -9
- package/dist/delivery/number-line/graph/tick-utils.js +73 -75
- package/dist/delivery/number-line/index.d.ts +1 -1
- package/dist/delivery/number-line/index.js +55 -58
- package/dist/index.iife.js +59 -63
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +14 -10
- package/dist/browser/_baseSet-ycZx94p7.js +0 -8672
- package/dist/browser/_baseSet-ycZx94p7.js.map +0 -1
- package/dist/browser/delivery-Dh8QdqpO.js.map +0 -1
- package/dist/browser/uniqWith-CKN50xMI.js +0 -17886
- package/dist/browser/uniqWith-CKN50xMI.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/_assignMergeValue.js +0 -8
- 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/_baseFindIndex.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +0 -10
- 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/_baseHasIn.js +0 -6
- 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/_baseIsMatch.js +0 -26
- 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/_baseIteratee.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/_baseMatches.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +0 -19
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +0 -31
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- 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/_baseTrim.js +0 -8
- 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/_createAssigner.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +0 -19
- 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/_getMatchData.js +0 -16
- 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/_hasPath.js +0 -18
- 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/_isIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
- 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/_isStrictComparable.js +0 -7
- 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/_matchesStrictComparable.js +0 -8
- 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/_safeGet.js +0 -6
- 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/_trimmedEndIndex.js +0 -8
- 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/eq.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +0 -8
- 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/isEqualWith.js +0 -9
- 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/isNumber.js +0 -9
- 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/isPlainObject.js +0 -14
- 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/memoize.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/negate.js +0 -17
- 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/omitBy.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pickBy.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +0 -10
- 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/toFinite.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +0 -19
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +0 -8
- 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/uniqWith.js +0 -7
|
@@ -28,6 +28,20 @@ export declare const getCorrectness: (corrected: any) => "unknown" | "unanswered
|
|
|
28
28
|
*/
|
|
29
29
|
export declare function normalize(question: any): any;
|
|
30
30
|
export declare function createDefaultModel(model?: {}): Promise<unknown>;
|
|
31
|
-
export declare function model(question: any, session: any, env: any): Promise<
|
|
31
|
+
export declare function model(question: any, session: any, env: any): Promise<Partial<{
|
|
32
|
+
prompt: any;
|
|
33
|
+
teacherInstructions: any;
|
|
34
|
+
graph: any;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
corrected: any;
|
|
37
|
+
correctResponse: any;
|
|
38
|
+
feedback: "" | {
|
|
39
|
+
type: string | false;
|
|
40
|
+
message: string;
|
|
41
|
+
} | undefined;
|
|
42
|
+
colorContrast: any;
|
|
43
|
+
language: any;
|
|
44
|
+
extraCSSRules: any;
|
|
45
|
+
}>>;
|
|
32
46
|
export declare const createCorrectResponseSession: (question: any, env: any) => Promise<unknown>;
|
|
33
47
|
export declare const validate: (model?: {}, config?: {}) => {};
|
package/dist/controller/index.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js";
|
|
6
|
-
import a from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/omitBy.js";
|
|
7
|
-
import o from "./defaults.js";
|
|
8
|
-
import { reloadTicksData as s } from "./utils.js";
|
|
9
|
-
import * as c from "mathjs";
|
|
1
|
+
import e from "./defaults.js";
|
|
2
|
+
import { reloadTicksData as t } from "./utils.js";
|
|
3
|
+
import * as n from "mathjs";
|
|
4
|
+
import { cloneDeep as r, find as i, isEmpty as a, isEqualWith as o, merge as s, omitBy as c } from "@pie-element/shared-lodash";
|
|
10
5
|
import { getFeedbackForCorrectness as l } from "@pie-element/shared-feedback";
|
|
11
6
|
import { partialScoring as u } from "@pie-element/shared-controller-utils";
|
|
12
7
|
//#region src/controller/index.ts
|
|
13
8
|
var d = (e) => ({ score: { scaled: e } }), f = (e, t) => {
|
|
14
9
|
let { correct: n } = e, r = t.find((e) => e.numberOfCorrect === n.length);
|
|
15
10
|
return r ? 1 * (r.scorePercentage / 100) : 0;
|
|
16
|
-
}, p = (e) => (t, n) => t + +!!e.some((e) => y(e)(n)), m = (t, n
|
|
17
|
-
let i = [], a =
|
|
11
|
+
}, p = (e) => (t, n) => t + +!!e.some((e) => y(e)(n)), m = (e, t, n) => {
|
|
12
|
+
let i = [], a = t?.answer || [], o = e?.correctResponse || [];
|
|
18
13
|
if (!a.length) return ["Student did not interact with the number line."];
|
|
19
|
-
let { correct: s, incorrect: c, notInAnswer: l, noCorrectResponse: d } = b(a,
|
|
14
|
+
let { correct: s, incorrect: c, notInAnswer: l, noCorrectResponse: d } = b(a, r(o));
|
|
20
15
|
if (d) return ["No correct response is defined for this item."];
|
|
21
16
|
let f = s.length, p = c.length, m = l.length;
|
|
22
17
|
f > 0 && i.push(`${f} object(s) correctly placed.`), p > 0 && i.push(`${p} incorrect object(s) placed.`), m > 0 && i.push(`${m} expected object(s) were not placed.`);
|
|
@@ -31,43 +26,43 @@ var d = (e) => ({ score: { scaled: e } }), f = (e, t) => {
|
|
|
31
26
|
let t = e?.type || "object";
|
|
32
27
|
i.push(`Expected ${t} at position ${e.domainPosition} was not placed by the student.`);
|
|
33
28
|
});
|
|
34
|
-
let g = u.enabled(
|
|
29
|
+
let g = u.enabled(e, n);
|
|
35
30
|
g ? (i.push("Score calculated using partial scoring."), i.push("Partial scoring is based on the number of correct objects, with deductions for extras.")) : i.push("Score calculated using all-or-nothing scoring.");
|
|
36
31
|
let _ = o.length || 1, v = a.length > _ ? a.length - _ : 0;
|
|
37
32
|
v > 0 && i.push(`${v} extra object(s) beyond the required amount were placed and deducted.`);
|
|
38
33
|
let y = Math.max(0, (f - v) / _), x = g ? y : +(y === 1);
|
|
39
34
|
return i.push(`Final score: ${x}.`), i;
|
|
40
35
|
};
|
|
41
|
-
function h(e, t,
|
|
42
|
-
return new Promise((
|
|
43
|
-
if (!t ||
|
|
36
|
+
function h(e, t, n) {
|
|
37
|
+
return new Promise((r) => {
|
|
38
|
+
if (!t || a(t)) r({
|
|
44
39
|
score: 0,
|
|
45
40
|
empty: !0,
|
|
46
41
|
logTrace: ["Student did not interact with the number line."]
|
|
47
42
|
});
|
|
48
43
|
else {
|
|
49
|
-
let
|
|
44
|
+
let i = u.enabled(e, n), a = (t.answer || []).reduce(p(e.correctResponse), 0), o = e.correctResponse.length, s = 0;
|
|
50
45
|
(t.answer || []).length > o && (s = (t.answer || []).length - o), o === 0 && (o = 1);
|
|
51
46
|
let c = a < 0 ? 0 : (a - s) / o;
|
|
52
|
-
c < 0 && (c = 0),
|
|
53
|
-
score:
|
|
54
|
-
logTrace: m(e, t,
|
|
47
|
+
c < 0 && (c = 0), r({
|
|
48
|
+
score: i ? c : +(c === 1),
|
|
49
|
+
logTrace: m(e, t, n)
|
|
55
50
|
});
|
|
56
51
|
}
|
|
57
52
|
});
|
|
58
53
|
}
|
|
59
|
-
function g(
|
|
60
|
-
return new Promise((
|
|
61
|
-
if (!
|
|
54
|
+
function g(e, t) {
|
|
55
|
+
return new Promise((n) => {
|
|
56
|
+
if (!t || a(t)) n({ score: { scaled: 0 } });
|
|
62
57
|
else {
|
|
63
|
-
|
|
64
|
-
let
|
|
65
|
-
if (o === "correct")
|
|
66
|
-
else if (o === "incorrect")
|
|
58
|
+
t.answer = t.answer || [];
|
|
59
|
+
let i = b(t.answer, r(e.correctResponse)), o = x(i);
|
|
60
|
+
if (o === "correct") n(d(1));
|
|
61
|
+
else if (o === "incorrect") n(d(0));
|
|
67
62
|
else if (o === "partial") {
|
|
68
|
-
let { allowPartialScoring:
|
|
69
|
-
|
|
70
|
-
} else
|
|
63
|
+
let { allowPartialScoring: t, partialScoring: r } = e, o = (r || []).filter((e) => !a(e));
|
|
64
|
+
t && o.length > 0 ? n(d(f(i, o))) : n(d(0));
|
|
65
|
+
} else n({ score: { scaled: -1 } });
|
|
71
66
|
}
|
|
72
67
|
});
|
|
73
68
|
}
|
|
@@ -75,78 +70,78 @@ var _ = 3, v = (e, t, n) => {
|
|
|
75
70
|
n ||= 5;
|
|
76
71
|
let r = 10 ** -n / 2;
|
|
77
72
|
return Math.abs(e - t) <= r;
|
|
78
|
-
}, y = (e) => (t) =>
|
|
73
|
+
}, y = (e) => (t) => o(e, t, (e, t) => {
|
|
79
74
|
if (typeof e == "number" && typeof t == "number") return v(e, t, 3);
|
|
80
|
-
}), b = (e,
|
|
75
|
+
}), b = (e, t) => a(t) && e.length > 0 ? {
|
|
81
76
|
correct: [],
|
|
82
77
|
incorrect: [],
|
|
83
78
|
notInAnswer: [],
|
|
84
79
|
noCorrectResponse: !0
|
|
85
|
-
} : e.reduce((e,
|
|
86
|
-
let { correct:
|
|
87
|
-
return s ? (
|
|
88
|
-
correct:
|
|
80
|
+
} : e.reduce((e, t, n) => {
|
|
81
|
+
let { correct: r, incorrect: a, notInAnswer: o } = e, s = i(o, y(t));
|
|
82
|
+
return s ? (r.push(n), o.splice(o.indexOf(s), 1)) : a.push(n), {
|
|
83
|
+
correct: r,
|
|
89
84
|
incorrect: a,
|
|
90
85
|
notInAnswer: o
|
|
91
86
|
};
|
|
92
87
|
}, {
|
|
93
88
|
correct: [],
|
|
94
89
|
incorrect: [],
|
|
95
|
-
notInAnswer:
|
|
90
|
+
notInAnswer: t
|
|
96
91
|
}), x = (e) => {
|
|
97
92
|
let { incorrect: t, correct: n, notInAnswer: r, noCorrectResponse: i } = e;
|
|
98
93
|
return i ? "unknown" : t.length === 0 && n.length === 0 ? "unanswered" : t.length === 0 && r.length === 0 ? "correct" : t.length > 0 || r.length > 0 ? n.length > 0 ? "partial" : "incorrect" : "unknown";
|
|
99
94
|
};
|
|
100
|
-
function S(
|
|
101
|
-
let
|
|
95
|
+
function S(t) {
|
|
96
|
+
let n = s(e.feedback, t.feedback);
|
|
102
97
|
return {
|
|
103
|
-
...o,
|
|
104
98
|
...e,
|
|
105
|
-
|
|
99
|
+
...t,
|
|
100
|
+
feedback: n
|
|
106
101
|
};
|
|
107
102
|
}
|
|
108
|
-
function C(
|
|
109
|
-
return new Promise((
|
|
110
|
-
|
|
111
|
-
...
|
|
103
|
+
function C(t = {}) {
|
|
104
|
+
return new Promise((n) => {
|
|
105
|
+
n(c({
|
|
106
|
+
...t,
|
|
112
107
|
graph: {
|
|
113
|
-
...
|
|
114
|
-
...
|
|
108
|
+
...e.graph,
|
|
109
|
+
...t.graph
|
|
115
110
|
},
|
|
116
111
|
colorContrast: "black_on_white"
|
|
117
112
|
}, (e) => !e));
|
|
118
113
|
});
|
|
119
114
|
}
|
|
120
115
|
var w = (e) => {
|
|
121
|
-
let { graph: { domain: t, labelStep:
|
|
122
|
-
if (t && (t.min = Number((t.min || 0).toFixed(2)), t.max = Number((t.max || 0).toFixed(2))),
|
|
123
|
-
e.graph.fraction = !0,
|
|
124
|
-
let t =
|
|
125
|
-
t !==
|
|
116
|
+
let { graph: { domain: t, labelStep: r, ticks: i = {} } = {} } = e, { minor: a, major: o } = i;
|
|
117
|
+
if (t && (t.min = Number((t.min || 0).toFixed(2)), t.max = Number((t.max || 0).toFixed(2))), r && typeof r == "string" && r.match(/^[1-9][0-9]*\/[1-9][0-9]*$/g)) {
|
|
118
|
+
e.graph.fraction = !0, i.tickIntervalType = "Fraction";
|
|
119
|
+
let t = n.evaluate(r);
|
|
120
|
+
t !== o && (i.major = t, i.minor = t / (o / a));
|
|
126
121
|
}
|
|
127
122
|
return e;
|
|
128
123
|
};
|
|
129
|
-
async function T(
|
|
130
|
-
if (!
|
|
131
|
-
let
|
|
124
|
+
async function T(e, n, i) {
|
|
125
|
+
if (!e) throw Error("question is null");
|
|
126
|
+
let a = await S(e), o = t(w(a).graph);
|
|
132
127
|
if (o) {
|
|
133
|
-
let
|
|
134
|
-
|
|
135
|
-
let m =
|
|
136
|
-
return
|
|
137
|
-
prompt:
|
|
128
|
+
let e = i.mode === "evaluate", t = r(a.correctResponse), s = e && b(n && n.answer || [], t), u = e && x(s), { exhibitOnly: d } = o, f = i.mode !== "gather" || d === !0, p = null;
|
|
129
|
+
i.role === "instructor" && (i.mode === "view" || e) && (p = a.teacherInstructions);
|
|
130
|
+
let m = e ? await l(u, a.feedback) : void 0;
|
|
131
|
+
return c({
|
|
132
|
+
prompt: a.prompt,
|
|
138
133
|
teacherInstructions: p,
|
|
139
134
|
graph: o,
|
|
140
135
|
disabled: f,
|
|
141
|
-
corrected:
|
|
142
|
-
correctResponse:
|
|
136
|
+
corrected: s,
|
|
137
|
+
correctResponse: e && ["unanswered", "correct"].indexOf(u) === -1 && a.correctResponse,
|
|
143
138
|
feedback: m && {
|
|
144
139
|
type: u,
|
|
145
140
|
message: m
|
|
146
141
|
},
|
|
147
|
-
colorContrast:
|
|
148
|
-
language:
|
|
149
|
-
extraCSSRules:
|
|
142
|
+
colorContrast: i.accessibility && i.accessibility.colorContrast || "black_on_white",
|
|
143
|
+
language: a.language,
|
|
144
|
+
extraCSSRules: a.extraCSSRules
|
|
150
145
|
}, (e) => !e);
|
|
151
146
|
} else throw Error("graph is undefined");
|
|
152
147
|
}
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
* Manual edits will be overwritten on next sync.
|
|
7
7
|
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
8
|
*/
|
|
9
|
+
import * as math from 'mathjs';
|
|
9
10
|
export declare const getMinorLimits: (domain: any, width: any) => {
|
|
10
|
-
min:
|
|
11
|
-
max:
|
|
11
|
+
min: number & (number | math.MathCollection<math.MathNumericType>);
|
|
12
|
+
max: number;
|
|
12
13
|
};
|
|
13
14
|
export declare const generateMinorValues: (minorLimits: any) => {
|
|
14
15
|
fraction: never[];
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js";
|
|
4
|
-
import * as r from "mathjs";
|
|
1
|
+
import * as e from "mathjs";
|
|
2
|
+
import { isNumber as t, isObject as n, uniqWith as r } from "@pie-element/shared-lodash";
|
|
5
3
|
//#region src/controller/tickUtils.ts
|
|
6
4
|
var i = [
|
|
7
5
|
.001,
|
|
@@ -155,100 +153,100 @@ var i = [
|
|
|
155
153
|
8,
|
|
156
154
|
10
|
|
157
155
|
]
|
|
158
|
-
}, s = (
|
|
159
|
-
let i =
|
|
160
|
-
if (!
|
|
161
|
-
if (
|
|
162
|
-
let a =
|
|
163
|
-
if (o === "negative" &&
|
|
164
|
-
if (o === "positive" &&
|
|
165
|
-
let s = o === "positive" ?
|
|
166
|
-
for (; s(l, a);) c.push(l), l =
|
|
156
|
+
}, s = (t, n, r) => {
|
|
157
|
+
let i = e.mod(e.abs(t), e.abs(r));
|
|
158
|
+
if (!e.equal(i, 0)) throw Error("start point must be divisible by interval");
|
|
159
|
+
if (e.equal(t, n)) return [];
|
|
160
|
+
let a = e.subtract(n, e.mod(n, e.abs(r))), o = e.larger(r, 0) ? "positive" : "negative";
|
|
161
|
+
if (o === "negative" && e.largerEq(n, t)) throw Error("start must be > than end when doing a negative decrement");
|
|
162
|
+
if (o === "positive" && e.smallerEq(n, t)) throw Error("start must be < end when doing increments");
|
|
163
|
+
let s = o === "positive" ? e.smallerEq : e.equal(a, n) ? e.largerEq : e.larger, c = [], l = t;
|
|
164
|
+
for (; s(l, a);) c.push(l), l = e.add(l, r);
|
|
167
165
|
return c;
|
|
168
|
-
}, c = (e, t) => `Can only do a positive or negative range, but got: start: ${e} and end:${t}`, l = (
|
|
169
|
-
|
|
170
|
-
let i =
|
|
171
|
-
if (
|
|
166
|
+
}, c = (e, t) => `Can only do a positive or negative range, but got: start: ${e} and end:${t}`, l = (t, n, r) => {
|
|
167
|
+
t = e.fraction(t), n = e.fraction(n), r = e.fraction(r);
|
|
168
|
+
let i = e.abs(e.subtract(n, t));
|
|
169
|
+
if (e.larger(i, e.abs(n))) throw Error(c(t, n));
|
|
172
170
|
let a = {
|
|
173
|
-
start:
|
|
174
|
-
end:
|
|
175
|
-
interval:
|
|
176
|
-
multiplier:
|
|
177
|
-
}, o =
|
|
178
|
-
return
|
|
179
|
-
}, u = (
|
|
180
|
-
|
|
181
|
-
let a =
|
|
182
|
-
return
|
|
171
|
+
start: e.abs(t),
|
|
172
|
+
end: e.abs(n),
|
|
173
|
+
interval: e.abs(r),
|
|
174
|
+
multiplier: e.smaller(r, 0) ? -1 : 1
|
|
175
|
+
}, o = e.mod(a.start, a.interval), l = s(e.larger(o, 0) ? e.add(e.subtract(a.start, o), a.interval) : a.start, a.end, a.interval), u = a.multiplier === -1 ? l.map((t) => e.multiply(t, -1)) : l;
|
|
176
|
+
return e.smaller(r, 0) && u.reverse(), u;
|
|
177
|
+
}, u = (t, n) => (t = e.fraction(t), n = e.fraction(n), e.smaller(t, n) ? t : n), d = (t, n) => (t = e.fraction(t), n = e.fraction(n), e.larger(t, n) ? t : n), f = (t, n, i) => {
|
|
178
|
+
t = e.fraction(t), n = e.fraction(n), i = e.fraction(i);
|
|
179
|
+
let a = e.larger(n, 0) ? l(d(0, t), n, i) : [];
|
|
180
|
+
return r((e.smaller(t, 0) ? l(u(0, n), t, e.multiply(i, -1)) : []).concat(a), e.equal);
|
|
183
181
|
}, p = (e, t, n) => {
|
|
184
182
|
n ||= 2;
|
|
185
183
|
let r = 10 ** -n / 2;
|
|
186
184
|
return Math.abs(e - t) < r;
|
|
187
|
-
}, m = (
|
|
188
|
-
let
|
|
185
|
+
}, m = (t, n, r) => e.smaller(_(t), _(n)) ? n : e.larger(_(t), _(r)) ? r : t, h = (t, n) => {
|
|
186
|
+
let r = t.max - t.min, i = e.number(e.multiply(10, e.divide(e.fraction(r), n)));
|
|
189
187
|
return {
|
|
190
188
|
min: i,
|
|
191
|
-
max:
|
|
189
|
+
max: e.number(e.multiply(20, i))
|
|
192
190
|
};
|
|
193
|
-
}, g = (
|
|
194
|
-
let
|
|
195
|
-
return
|
|
196
|
-
}, _ = (
|
|
197
|
-
if (
|
|
198
|
-
if (t(
|
|
199
|
-
}, v = (
|
|
200
|
-
let a = i ? i.limit !== !1 : !0, o = h(
|
|
191
|
+
}, g = (t, n) => {
|
|
192
|
+
let r = e.mod(t, n);
|
|
193
|
+
return e.equal(r, 0);
|
|
194
|
+
}, _ = (r) => {
|
|
195
|
+
if (n(r)) return e.fraction(r.n * r.s, r.d);
|
|
196
|
+
if (t(r)) return e.fraction(r);
|
|
197
|
+
}, v = (t, n, r, i) => {
|
|
198
|
+
let a = i ? i.limit !== !1 : !0, o = h(t, n), s = a ? m(_(r.minor), o.min, o.max) : _(r.minor), c = a ? m(_(r.major), s, e.multiply(s, 20)) : _(r.major);
|
|
201
199
|
if (!g(c, s)) {
|
|
202
|
-
let
|
|
200
|
+
let t = e.divide(c, s), n = t <= 2 ? 2 : Math.round(t);
|
|
203
201
|
return {
|
|
204
202
|
minor: s,
|
|
205
|
-
major:
|
|
203
|
+
major: e.multiply(s, n)
|
|
206
204
|
};
|
|
207
205
|
}
|
|
208
206
|
return {
|
|
209
207
|
major: c,
|
|
210
208
|
minor: s
|
|
211
209
|
};
|
|
212
|
-
}, y = (
|
|
213
|
-
let
|
|
214
|
-
return p(
|
|
215
|
-
x:
|
|
216
|
-
type:
|
|
210
|
+
}, y = (t, n, r, i) => (r = v(t, n, r, i), f(t.min, t.max, r.minor).filter((n) => e.smallerEq(n, e.fraction(t.max))).map((t) => {
|
|
211
|
+
let n = "minor", i = e.mod(t, r.major);
|
|
212
|
+
return p(e.number(i), 0) && (n = "major"), {
|
|
213
|
+
x: t,
|
|
214
|
+
type: n
|
|
217
215
|
};
|
|
218
|
-
})), b = (
|
|
219
|
-
let
|
|
216
|
+
})), b = (t) => {
|
|
217
|
+
let n = {
|
|
220
218
|
fraction: [],
|
|
221
219
|
decimal: []
|
|
222
220
|
};
|
|
223
|
-
return i.forEach((
|
|
224
|
-
|
|
225
|
-
}), a.forEach((
|
|
226
|
-
let i =
|
|
227
|
-
i >=
|
|
228
|
-
}),
|
|
229
|
-
}, x = (
|
|
221
|
+
return i.forEach((e) => {
|
|
222
|
+
e >= t.min && e <= t.max && n.decimal.push(e);
|
|
223
|
+
}), a.forEach((r) => {
|
|
224
|
+
let i = e.number(e.fraction(r));
|
|
225
|
+
i >= t.min && i <= t.max && n.fraction.push(r);
|
|
226
|
+
}), n;
|
|
227
|
+
}, x = (t, n, r) => {
|
|
230
228
|
let i = {
|
|
231
229
|
decimal: [],
|
|
232
230
|
fraction: []
|
|
233
|
-
}, a =
|
|
231
|
+
}, a = e.fraction(e.number(e.number(t))), s = a.n, c = a.d;
|
|
234
232
|
if (s >= 1 && c === 1) for (let a = 1; a <= 10; a++) {
|
|
235
|
-
let o =
|
|
236
|
-
S(
|
|
237
|
-
minor:
|
|
233
|
+
let o = e.number(e.multiply(s, a));
|
|
234
|
+
S(n, r, {
|
|
235
|
+
minor: t,
|
|
238
236
|
major: o
|
|
239
237
|
}, { fraction: void 0 }).filter((e) => e.type === "major").length > 1 && (i.fraction.push(o.toString()), i.decimal.push(o));
|
|
240
238
|
}
|
|
241
239
|
else for (let a in o[c]) {
|
|
242
|
-
let l =
|
|
243
|
-
S(
|
|
244
|
-
minor:
|
|
245
|
-
major:
|
|
246
|
-
}, { fraction: void 0 }).filter((e) => e.type === "major").length > 1 && (l.d === 1 ? i.fraction.push(l.n.toString()) : i.fraction.push(l.n + "/" + l.d), i.decimal.push(
|
|
240
|
+
let l = e.multiply(e.fraction(s, c), o[c][a]);
|
|
241
|
+
S(n, r, {
|
|
242
|
+
minor: t,
|
|
243
|
+
major: e.number(l)
|
|
244
|
+
}, { fraction: void 0 }).filter((e) => e.type === "major").length > 1 && (l.d === 1 ? i.fraction.push(l.n.toString()) : i.fraction.push(l.n + "/" + l.d), i.decimal.push(e.number(l)));
|
|
247
245
|
}
|
|
248
246
|
return i;
|
|
249
|
-
}, S = (
|
|
250
|
-
...
|
|
251
|
-
x:
|
|
247
|
+
}, S = (t, n, r, i) => y(t, n, r, i).map((t) => i.fraction ? t : {
|
|
248
|
+
...t,
|
|
249
|
+
x: e.number(t.x) || 0
|
|
252
250
|
});
|
|
253
251
|
//#endregion
|
|
254
252
|
export { x as generateMajorValuesForMinor, b as generateMinorValues, h as getMinorLimits };
|
package/dist/delivery/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { data_converter_exports as e, lineIsSwitched as t, switchGraphLine as n, toGraphFormat as r, toSessionFormat as i } from "./data-converter.js";
|
|
2
2
|
import { point_chooser_exports as a } from "./number-line/point-chooser/index.js";
|
|
3
|
-
import o from "
|
|
4
|
-
import
|
|
5
|
-
import c from "./number-line/
|
|
6
|
-
import l from "
|
|
7
|
-
import u from "
|
|
3
|
+
import { tick_utils_exports as o } from "./number-line/graph/tick-utils.js";
|
|
4
|
+
import s from "./number-line/graph/index.js";
|
|
5
|
+
import c from "./number-line/index.js";
|
|
6
|
+
import l from "react";
|
|
7
|
+
import { cloneDeep as u } from "@pie-element/shared-lodash";
|
|
8
8
|
import { createRoot as d } from "react-dom/client";
|
|
9
9
|
import { renderMath as f } from "@pie-element/shared-math-rendering-mathjax";
|
|
10
10
|
//#region src/delivery/index.ts
|
|
@@ -82,12 +82,12 @@ var p = class extends HTMLElement {
|
|
|
82
82
|
this._session.answer = [], this.dispatchSessionChanged(), this._render();
|
|
83
83
|
}
|
|
84
84
|
_applyInitialElements() {
|
|
85
|
-
this._model && this._model.graph && this._model.graph.initialElements && this._session && (!this._session.answer || !this._session.answer.length) && (this._session.answer =
|
|
85
|
+
this._model && this._model.graph && this._model.graph.initialElements && this._session && (!this._session.answer || !this._session.answer.length) && (this._session.answer = u(this._model.graph.initialElements));
|
|
86
86
|
}
|
|
87
87
|
_render() {
|
|
88
88
|
if (this._model && this._session) {
|
|
89
89
|
this._session.answer || this._applyInitialElements();
|
|
90
|
-
let e = (this._session.answer || []).map(r), t =
|
|
90
|
+
let e = (this._session.answer || []).map(r), t = u(this._model);
|
|
91
91
|
t.correctResponse = t.correctResponse && t.correctResponse.map(r);
|
|
92
92
|
let n = {
|
|
93
93
|
model: t,
|
|
@@ -97,7 +97,7 @@ var p = class extends HTMLElement {
|
|
|
97
97
|
onDeleteElements: this.deleteElements.bind(this),
|
|
98
98
|
onUndoElement: this.undoElement.bind(this),
|
|
99
99
|
onClearElements: this.clearElements.bind(this)
|
|
100
|
-
}, i =
|
|
100
|
+
}, i = l.createElement(c, n);
|
|
101
101
|
this._root ||= d(this), this._root.render(i), this._scheduleMathRender();
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -106,4 +106,4 @@ var p = class extends HTMLElement {
|
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
//#endregion
|
|
109
|
-
export {
|
|
109
|
+
export { s as Graph, c as NumberLineComponent, e as dataConverter, p as default, a as pointChooser, o as tickUtils };
|