@pie-element/graphing 10.1.0-next.2 → 10.1.1-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.
Files changed (233) hide show
  1. package/dist/author/configure.d.ts +26 -0
  2. package/dist/author/configure.js +208 -0
  3. package/dist/author/correct-response.d.ts +54 -0
  4. package/dist/author/correct-response.js +304 -0
  5. package/dist/author/defaults.d.ts +294 -0
  6. package/dist/author/defaults.js +415 -0
  7. package/dist/author/graphing-config.d.ts +34 -0
  8. package/dist/author/graphing-config.js +244 -0
  9. package/dist/author/index.d.ts +59 -0
  10. package/dist/author/index.js +96 -0
  11. package/dist/author/utils.d.ts +43 -0
  12. package/dist/author/utils.js +260 -0
  13. package/dist/controller/defaults.d.ts +59 -0
  14. package/dist/controller/defaults.js +61 -0
  15. package/dist/controller/index.d.ts +34 -0
  16. package/dist/controller/index.js +181 -0
  17. package/dist/controller/utils.d.ts +37 -0
  18. package/dist/controller/utils.js +114 -0
  19. package/dist/delivery/index.d.ts +21 -0
  20. package/dist/delivery/index.js +43 -0
  21. package/dist/delivery/main.d.ts +23 -0
  22. package/dist/delivery/main.js +107 -0
  23. package/dist/delivery/utils.d.ts +22 -0
  24. package/dist/graphing.css +2 -0
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.iife.d.ts +8 -0
  27. package/dist/index.iife.js +375 -0
  28. package/dist/index.js +2 -0
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +7 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +23 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +9 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js +29 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +6 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +27 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js +7 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +9 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +7 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +12 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/intersection.js +11 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +7 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +4 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +7 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +7 -0
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +7 -0
  191. package/package.json +59 -20
  192. package/CHANGELOG.json +0 -652
  193. package/CHANGELOG.md +0 -2029
  194. package/LICENSE.md +0 -5
  195. package/README.md +0 -1
  196. package/configure/CHANGELOG.json +0 -382
  197. package/configure/CHANGELOG.md +0 -1822
  198. package/configure/lib/configure.js +0 -328
  199. package/configure/lib/configure.js.map +0 -1
  200. package/configure/lib/correct-response.js +0 -484
  201. package/configure/lib/correct-response.js.map +0 -1
  202. package/configure/lib/defaults.js +0 -448
  203. package/configure/lib/defaults.js.map +0 -1
  204. package/configure/lib/graphing-config.js +0 -388
  205. package/configure/lib/graphing-config.js.map +0 -1
  206. package/configure/lib/index.js +0 -173
  207. package/configure/lib/index.js.map +0 -1
  208. package/configure/lib/utils.js +0 -122
  209. package/configure/lib/utils.js.map +0 -1
  210. package/configure/package.json +0 -30
  211. package/controller/CHANGELOG.json +0 -412
  212. package/controller/CHANGELOG.md +0 -1254
  213. package/controller/lib/defaults.js +0 -64
  214. package/controller/lib/defaults.js.map +0 -1
  215. package/controller/lib/index.js +0 -450
  216. package/controller/lib/index.js.map +0 -1
  217. package/controller/lib/utils.js +0 -441
  218. package/controller/lib/utils.js.map +0 -1
  219. package/controller/package.json +0 -24
  220. package/docs/config-schema.json +0 -3164
  221. package/docs/config-schema.json.md +0 -2293
  222. package/docs/demo/config.js +0 -8
  223. package/docs/demo/generate.js +0 -200
  224. package/docs/demo/index.html +0 -1
  225. package/docs/demo/session.js +0 -20
  226. package/docs/pie-schema.json +0 -3495
  227. package/docs/pie-schema.json.md +0 -1345
  228. package/lib/index.js +0 -69
  229. package/lib/index.js.map +0 -1
  230. package/lib/main.js +0 -161
  231. package/lib/main.js.map +0 -1
  232. package/lib/utils.js +0 -24
  233. package/lib/utils.js.map +0 -1
@@ -1,441 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.sortedAnswers = exports.removeInvalidSegments = exports.removeDuplicateSegments = exports.equalVector = exports.equalSine = exports.equalSegment = exports.equalRay = exports.equalPolygon = exports.equalPoint = exports.equalParabola = exports.equalMarks = exports.equalLine = exports.equalExponential = exports.equalCircle = exports.equalAbsolute = exports.constructSegmentsFromPoints = void 0;
7
- var _lodashEs = require("lodash-es");
8
- var _graphingUtils = require("@pie-lib/graphing-utils");
9
- const equalPoint = (A, B) => {
10
- // x1 = x2 & y1 = y2
11
- // A point is only correct if both its position AND its label match.
12
- // Labels are not scored independently; a point in the correct position
13
- // with the wrong label is considered incorrect as a whole.
14
- let equalLabel = true;
15
- A = {
16
- ...A
17
- };
18
- B = {
19
- ...B
20
- };
21
- if (A.label || B.label) {
22
- equalLabel = (0, _lodashEs.isEqual)(A.label, B.label);
23
- }
24
- return (0, _lodashEs.isEqual)(A.x, B.x) && (0, _lodashEs.isEqual)(A.y, B.y) && equalLabel;
25
- };
26
- exports.equalPoint = equalPoint;
27
- const equalSegment = (segment1, segment2) => {
28
- // A.from = B.from, A.to = B.to OR A.from = B.to, A.to = B.from
29
- // x1 = x3 & y1 = y3 & x2 = x4 & y2 = y4
30
- return (0, _lodashEs.isEqual)(segment1.from, segment2.from) && (0, _lodashEs.isEqual)(segment1.to, segment2.to) || (0, _lodashEs.isEqual)(segment1.to, segment2.from) && (0, _lodashEs.isEqual)(segment1.from, segment2.to);
31
- };
32
- exports.equalSegment = equalSegment;
33
- const equalVector = (vector1, vector2) => {
34
- // A.from = B.from, A.to = B.to;
35
- // x1 = x3 & y1 = y3 & x2 = x4 & y2 = y4
36
- return (0, _lodashEs.isEqual)(vector1.from, vector2.from) && (0, _lodashEs.isEqual)(vector1.to, vector2.to);
37
- };
38
-
39
- // this function is implemented in configure as well
40
- exports.equalVector = equalVector;
41
- const sortedAnswers = answers => Object.keys(answers || {}).sort().reduce((result, key) => {
42
- if (key !== 'correctAnswer') {
43
- result[key] = answers[key];
44
- }
45
- return result;
46
- }, {});
47
- exports.sortedAnswers = sortedAnswers;
48
- const returnLineEquationCoefficients = line => {
49
- line = {
50
- ...line,
51
- to: {
52
- ...line.to
53
- },
54
- from: {
55
- ...line.from
56
- }
57
- };
58
- const xA = line.from.x;
59
- const yA = line.from.y;
60
- const xB = line.to.x;
61
- const yB = line.to.y;
62
- return {
63
- a: yB - yA,
64
- b: xA - xB,
65
- c: xB * yA - xA * yB
66
- };
67
- };
68
- const getSignificantDecimals = number => Math.round(number * 10000) / 10000;
69
- const equalLine = (line1, line2) => {
70
- // line equation: ax + by + c = 0
71
- // 2 lines are equal if a1/a2 = b1/b2 = c1/c2, where a, b, c are the coefficients in line equation
72
-
73
- // line equation knowing 2 points: (y - yA) / (yB - yA) = (x - xA) / (xB - xA)
74
- // extending this equation, we get: x * (yB - yA) + y * (xA - xB) + (xB * yA - xA * yB) = 0
75
- // where a = yB - yA; b = xA - xB; c = xB * yA - xA * yB
76
-
77
- const {
78
- a: a1,
79
- b: b1,
80
- c: c1
81
- } = returnLineEquationCoefficients(line1);
82
- const {
83
- a: a2,
84
- b: b2,
85
- c: c2
86
- } = returnLineEquationCoefficients(line2);
87
- const proportions = [];
88
- if (a2 !== 0) {
89
- proportions.push(getSignificantDecimals(a1 / a2));
90
- } else if (a1 !== a2) {
91
- return false;
92
- }
93
- if (b2 !== 0) {
94
- proportions.push(getSignificantDecimals(b1 / b2));
95
- } else if (b1 !== b2) {
96
- return false;
97
- }
98
- if (c2 !== 0) {
99
- proportions.push(getSignificantDecimals(c1 / c2));
100
- } else if (c1 !== c2) {
101
- return false;
102
- }
103
- return (0, _lodashEs.uniq)(proportions).length === 1;
104
-
105
- // (y2 - y1)/(x2 - x1) = (y4 - y3)/(x4 - x3);
106
- // return ((Math.abs((line1.to.y - line1.from.y) / (line1.to.x - line1.from.x))) === (Math.abs((line2.to.y - line2.from.y) / (line2.to.x - line2.from.x))));
107
- };
108
- exports.equalLine = equalLine;
109
- const equalRay = (ray1, ray2) => {
110
- ray1 = {
111
- ...ray1,
112
- to: {
113
- ...ray1.to
114
- },
115
- from: {
116
- ...ray1.from
117
- }
118
- };
119
- ray2 = {
120
- ...ray2,
121
- to: {
122
- ...ray2.to
123
- },
124
- from: {
125
- ...ray2.from
126
- }
127
- };
128
-
129
- // slope: m = (y2-y1)/(x2-x1)
130
- // slope & x1 = x3 & y1 = y3 & angle between (x1, y1) (x2, y2) is same as angle between (x3, y3) (x4, y4)
131
- const mRay1 = (ray1.to.y - ray1.from.y) / (ray1.to.x - ray1.from.x);
132
- const mRay2 = (ray2.to.y - ray2.from.y) / (ray2.to.x - ray2.from.x);
133
- const angleRay1 = Math.atan2(ray1.to.y - ray1.from.y, ray1.to.x - ray1.from.x) * 180 / Math.PI;
134
- const angleRay2 = Math.atan2(ray2.to.y - ray2.from.y, ray2.to.x - ray2.from.x) * 180 / Math.PI;
135
- return mRay1 === mRay2 && ray1.from.x === ray2.from.x && ray1.from.y === ray2.from.y && angleRay1 === angleRay2;
136
- };
137
- exports.equalRay = equalRay;
138
- const constructSegmentsFromPoints = points => {
139
- // takes the list of points that represent a polygon and transforms it into a list of segments; eg.:
140
- // points: A, B, C, D => segments: AB, BC, CD, DA
141
- return (points || []).map((point, index) => ({
142
- from: point,
143
- to: points[(index + 1) % points.length]
144
- }));
145
- };
146
- exports.constructSegmentsFromPoints = constructSegmentsFromPoints;
147
- const removeDuplicateSegments = segments => {
148
- segments = segments || [];
149
- // removes segments that are duplicates; eg. These segments are the same, so one will be removed:
150
- // segment1: from: { x: 1, y: 1 }, to: { x: 2, y: 1 }
151
- // segment2: from: { x: 2, y: 1 }, to: { x: 1, y: 1 }
152
- return (0, _lodashEs.uniqWith)(segments, (s1, s2) => equalSegment(s1, s2));
153
- };
154
- exports.removeDuplicateSegments = removeDuplicateSegments;
155
- const removeInvalidSegments = segments => {
156
- segments = segments || [];
157
- // removes segments that start in a point and end in the same point (eg.: from: { x: 1, y: 1 }, to: { x: 1, y: 1 })
158
-
159
- return segments.filter(segment => !(0, _lodashEs.isEqual)(segment.from, segment.to));
160
- };
161
- exports.removeInvalidSegments = removeInvalidSegments;
162
- const equalPolygon = (poly1, poly2) => {
163
- const {
164
- points: points1
165
- } = poly1;
166
- const {
167
- points: points2
168
- } = poly2;
169
-
170
- // generate segments
171
- const segments1 = constructSegmentsFromPoints(points1);
172
- const segments2 = constructSegmentsFromPoints(points2);
173
- const segments1NoDuplicates = removeDuplicateSegments(removeInvalidSegments(segments1));
174
- const segments2NoDuplicates = removeDuplicateSegments(removeInvalidSegments(segments2));
175
- const differentSegments1 = (0, _lodashEs.differenceWith)(segments1NoDuplicates, segments2NoDuplicates, equalSegment);
176
- const differentSegments2 = (0, _lodashEs.differenceWith)(segments2NoDuplicates, segments1NoDuplicates, equalSegment);
177
- return (!differentSegments1 || !differentSegments1.length) && (!differentSegments2 || !differentSegments2.length);
178
- };
179
- exports.equalPolygon = equalPolygon;
180
- const equalCircle = (c1, c2) => {
181
- c1 = {
182
- ...c1,
183
- root: {
184
- ...c1.root
185
- },
186
- edge: {
187
- ...c1.edge
188
- }
189
- };
190
- c2 = {
191
- ...c2,
192
- root: {
193
- ...c2.root
194
- },
195
- edge: {
196
- ...c2.edge
197
- }
198
- };
199
- const equalRootAndEdge = (0, _lodashEs.isEqual)(c2.edge, c1.edge) && (0, _lodashEs.isEqual)(c2.root, c1.root);
200
-
201
- // if both edge and root are the same, it means the shapes are exactly the same
202
- if (equalRootAndEdge) return true;
203
- const rC1 = Math.sqrt((c1.edge.x - c1.root.x) ** 2 + (c1.edge.y - c1.root.y) ** 2);
204
- const rC2 = Math.sqrt((c2.edge.x - c2.root.x) ** 2 + (c2.edge.y - c2.root.y) ** 2);
205
-
206
- // if both root and radius are the same, it means the shapes are equal
207
- return (0, _lodashEs.isEqual)(c2.root, c1.root) && (0, _lodashEs.isEqual)(rC1, rC2);
208
- };
209
- exports.equalCircle = equalCircle;
210
- const equalSine = (sine1, sine2) => {
211
- const getPoints = ({
212
- root,
213
- edge
214
- }) => {
215
- root = {
216
- ...root
217
- };
218
- edge = {
219
- ...edge
220
- };
221
- const {
222
- amplitude,
223
- freq
224
- } = (0, _graphingUtils.getAmplitudeAndFreq)(root, edge);
225
- // the height of the sine wave
226
- const tY = Math.abs(root.y - edge.y) * 2;
227
- // the distance on x axis between edge and root
228
- const tXRoot = Math.abs(root.x - edge.x);
229
- // the distance on x axis between 2 edges for sine wave (min & max)
230
- const tX = tXRoot * 2;
231
- // the first edge placed east side of root
232
- let edgeAboveZeroX = edge.x;
233
- let edgeAboveZeroY = edge.y;
234
-
235
- // if edge less then 0, find out the appropriate edge placed east side of zero (0)
236
- while (edgeAboveZeroX < 0 && tX !== 0) {
237
- edgeAboveZeroX = edgeAboveZeroX + tX;
238
- edgeAboveZeroY = edgeAboveZeroY < root.y ? edgeAboveZeroY + tY : edgeAboveZeroY - tY;
239
- }
240
-
241
- // if edge more then 0, find out the appropriate edge placed east side of zero (0)
242
- while (edgeAboveZeroX - tX > 0 && tX !== 0) {
243
- edgeAboveZeroX = edgeAboveZeroX - tX;
244
- edgeAboveZeroY = edgeAboveZeroY < root.y ? edgeAboveZeroY + tY : edgeAboveZeroY - tY;
245
- }
246
- return {
247
- amplitude: getSignificantDecimals(amplitude),
248
- freq: getSignificantDecimals(freq),
249
- min: getSignificantDecimals(edge.y < root.y ? edge.y : edge.y - tY),
250
- max: getSignificantDecimals(edge.y < root.y ? edge.y + tY : edge.y),
251
- edgeAboveZeroX: getSignificantDecimals(edgeAboveZeroX),
252
- edgeAboveZeroY: getSignificantDecimals(edgeAboveZeroY)
253
- };
254
- };
255
- const studentAnswerBpY = getPoints(sine1);
256
- const correctAnswerBpY = getPoints(sine2);
257
- const {
258
- amplitude: amplitude1,
259
- freq: freq1,
260
- min: min1,
261
- max: max1,
262
- edgeAboveZeroX: edgeAboveZeroX1,
263
- edgeAboveZeroY: edgeAboveZeroY1
264
- } = studentAnswerBpY;
265
- const {
266
- amplitude: amplitude2,
267
- freq: freq2,
268
- min: min2,
269
- max: max2,
270
- edgeAboveZeroX: edgeAboveZeroX2,
271
- edgeAboveZeroY: edgeAboveZeroY2
272
- } = correctAnswerBpY;
273
- return Math.abs(amplitude1) === Math.abs(amplitude2) && Math.abs(freq1) === Math.abs(freq2) && min1 === min2 && max1 === max2 && edgeAboveZeroX1 === edgeAboveZeroX2 && edgeAboveZeroY1 === edgeAboveZeroY2;
274
- // rootDiff1 === rootDiff2);
275
- };
276
- exports.equalSine = equalSine;
277
- const equalParabola = (p1, p2) => {
278
- const {
279
- edge: edgeP1
280
- } = p1;
281
- const {
282
- edge: edgeP2
283
- } = p2;
284
- let {
285
- root: rootP1
286
- } = p1;
287
- let {
288
- root: rootP2
289
- } = p2;
290
- rootP1 = {
291
- ...rootP1
292
- };
293
- rootP2 = {
294
- ...rootP2
295
- };
296
- const p1edge = edgeP1 || {
297
- ...rootP1
298
- };
299
- const p2edge = edgeP2 || {
300
- ...rootP2
301
- };
302
- const p1mirrorEdge = {
303
- x: rootP1.x - (p1edge.x - rootP1.x),
304
- y: p1edge.y
305
- };
306
- const p2mirrorEdge = {
307
- x: rootP2.x - (p2edge.x - rootP2.x),
308
- y: p2edge.y
309
- };
310
- if (!edgeP1 || !edgeP2) return false;
311
- const {
312
- a: a1,
313
- b: b1,
314
- c: c1
315
- } = (0, _graphingUtils.pointsToABC)(rootP1, edgeP1, p1mirrorEdge);
316
- const {
317
- a: a2,
318
- b: b2,
319
- c: c2
320
- } = (0, _graphingUtils.pointsToABC)(rootP2, edgeP2, p2mirrorEdge);
321
-
322
- // sometimes numbers have this form: 1.00000000002 because of calculations, we have to round them
323
- const round = number => Math.round(number * 10000) / 10000;
324
- return round(a1) === round(a2) && round(b1) === round(b2) && round(c1) === round(c2);
325
- };
326
-
327
- /*
328
- * Function to check if given two points for absolute function
329
- * for correct answer and student answer are equal or not.
330
- * @param p1 - student answer
331
- * @param p2 - correct answer
332
- * */
333
- exports.equalParabola = equalParabola;
334
- const equalAbsolute = (p1, p2) => {
335
- const {
336
- edge: edgeP1
337
- } = p1;
338
- const {
339
- edge: edgeP2
340
- } = p2;
341
- let {
342
- root: rootP1
343
- } = p1;
344
- let {
345
- root: rootP2
346
- } = p2;
347
- rootP1 = {
348
- ...rootP1
349
- };
350
- rootP2 = {
351
- ...rootP2
352
- };
353
- const p1edge = edgeP1 || {
354
- ...rootP1
355
- };
356
- const p2edge = edgeP2 || {
357
- ...rootP2
358
- };
359
- const p1a1 = (0, _graphingUtils.pointsToAForAbsolute)(rootP1, p1edge);
360
- const p2a2 = (0, _graphingUtils.pointsToAForAbsolute)(rootP2, p2edge);
361
-
362
- // if both root and a value are equal
363
- return (0, _lodashEs.isEqual)(rootP2, rootP1) && (0, _lodashEs.isEqual)(p2a2, p1a1);
364
- };
365
-
366
- /*
367
- * Function to check if given two points for exponential function
368
- * for correct answer and student answer are equal or not.
369
- * @param p1 - student answer
370
- * @param p2 - correct answer
371
- * */
372
- exports.equalAbsolute = equalAbsolute;
373
- const equalExponential = (p1, p2) => {
374
- const {
375
- edge: edgeP1
376
- } = p1;
377
- const {
378
- edge: edgeP2
379
- } = p2;
380
- let {
381
- root: rootP1
382
- } = p1;
383
- let {
384
- root: rootP2
385
- } = p2;
386
- rootP1 = {
387
- ...rootP1
388
- };
389
- rootP2 = {
390
- ...rootP2
391
- };
392
- const p1edge = edgeP1 || {
393
- ...rootP1
394
- };
395
- const p2edge = edgeP2 || {
396
- ...rootP2
397
- };
398
- const {
399
- a1,
400
- b1
401
- } = (0, _graphingUtils.pointsToABForExponential)(rootP1, p1edge);
402
- const {
403
- a2,
404
- b2
405
- } = (0, _graphingUtils.pointsToABForExponential)(rootP2, p2edge);
406
-
407
- // if both a and b value are equal
408
- return (0, _lodashEs.isEqual)(a2, a1) && (0, _lodashEs.isEqual)(b2, b1);
409
- };
410
- exports.equalExponential = equalExponential;
411
- const equalMarks = exports.equalMarks = {
412
- circle: (sessAnswer, mark) => equalCircle(sessAnswer, mark),
413
- line: (sessAnswer, mark) => equalLine(sessAnswer, mark),
414
- parabola: (sessAnswer, mark) => equalParabola(sessAnswer, mark),
415
- absolute: (sessAnswer, mark) => equalAbsolute(sessAnswer, mark),
416
- exponential: (sessAnswer, mark) => equalExponential(sessAnswer, mark),
417
- point: (sessAnswer, mark) => equalPoint(sessAnswer, mark),
418
- polygon: (sessAnswer, poly) => equalPolygon(sessAnswer, poly),
419
- ray: (sessAnswer, mark) => equalRay(sessAnswer, mark),
420
- segment: (sessAnswer, mark) => equalSegment(sessAnswer, mark),
421
- sine: (sessAnswer, mark) => equalSine(sessAnswer, mark),
422
- vector: (sessAnswer, mark) => equalVector(sessAnswer, mark)
423
- };
424
- const completePoint = point => point && Number.isFinite(point.x) && Number.isFinite(point.y);
425
- const completeFromTo = item => item && completeMark.point(item.from) && completeMark.point(item.to);
426
- const completeRootEdge = item => item && completeMark.point(item.edge) && completeMark.point(item.root);
427
- const completePoints = item => item && item.points && item.points.length && (item.points.filter(point => completePoint(point)) || []).length === item.points.length;
428
- const completeMark = {
429
- point: completePoint,
430
- line: completeFromTo,
431
- ray: completeFromTo,
432
- segment: completeFromTo,
433
- vector: completeFromTo,
434
- circle: completeRootEdge,
435
- parabola: completeRootEdge,
436
- absolute: completeRootEdge,
437
- exponential: completeRootEdge,
438
- sine: completeRootEdge,
439
- polygon: completePoints
440
- };
441
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","names":["_lodashEs","require","_graphingUtils","equalPoint","A","B","equalLabel","label","isEqual","x","y","exports","equalSegment","segment1","segment2","from","to","equalVector","vector1","vector2","sortedAnswers","answers","Object","keys","sort","reduce","result","key","returnLineEquationCoefficients","line","xA","yA","xB","yB","a","b","c","getSignificantDecimals","number","Math","round","equalLine","line1","line2","a1","b1","c1","a2","b2","c2","proportions","push","uniq","length","equalRay","ray1","ray2","mRay1","mRay2","angleRay1","atan2","PI","angleRay2","constructSegmentsFromPoints","points","map","point","index","removeDuplicateSegments","segments","uniqWith","s1","s2","removeInvalidSegments","filter","segment","equalPolygon","poly1","poly2","points1","points2","segments1","segments2","segments1NoDuplicates","segments2NoDuplicates","differentSegments1","differenceWith","differentSegments2","equalCircle","root","edge","equalRootAndEdge","rC1","sqrt","rC2","equalSine","sine1","sine2","getPoints","amplitude","freq","getAmplitudeAndFreq","tY","abs","tXRoot","tX","edgeAboveZeroX","edgeAboveZeroY","min","max","studentAnswerBpY","correctAnswerBpY","amplitude1","freq1","min1","max1","edgeAboveZeroX1","edgeAboveZeroY1","amplitude2","freq2","min2","max2","edgeAboveZeroX2","edgeAboveZeroY2","equalParabola","p1","p2","edgeP1","edgeP2","rootP1","rootP2","p1edge","p2edge","p1mirrorEdge","p2mirrorEdge","pointsToABC","equalAbsolute","p1a1","pointsToAForAbsolute","p2a2","equalExponential","pointsToABForExponential","equalMarks","circle","sessAnswer","mark","parabola","absolute","exponential","polygon","poly","ray","sine","vector","completePoint","Number","isFinite","completeFromTo","item","completeMark","completeRootEdge","completePoints"],"sources":["../src/utils.js"],"sourcesContent":["import { differenceWith, isEqual, uniq, uniqWith } from 'lodash-es';\nimport {\n getAmplitudeAndFreq,\n pointsToABC,\n pointsToAForAbsolute,\n pointsToABForExponential,\n} from '@pie-lib/graphing-utils';\n\nexport const equalPoint = (A, B) => {\n // x1 = x2 & y1 = y2\n // A point is only correct if both its position AND its label match.\n // Labels are not scored independently; a point in the correct position\n // with the wrong label is considered incorrect as a whole.\n let equalLabel = true;\n\n A = { ...A };\n B = { ...B };\n\n if (A.label || B.label) {\n equalLabel = isEqual(A.label, B.label);\n }\n\n return isEqual(A.x, B.x) && isEqual(A.y, B.y) && equalLabel;\n};\n\nexport const equalSegment = (segment1, segment2) => {\n // A.from = B.from, A.to = B.to OR A.from = B.to, A.to = B.from\n // x1 = x3 & y1 = y3 & x2 = x4 & y2 = y4\n return (\n (isEqual(segment1.from, segment2.from) && isEqual(segment1.to, segment2.to)) ||\n (isEqual(segment1.to, segment2.from) && isEqual(segment1.from, segment2.to))\n );\n};\n\nexport const equalVector = (vector1, vector2) => {\n // A.from = B.from, A.to = B.to;\n // x1 = x3 & y1 = y3 & x2 = x4 & y2 = y4\n return isEqual(vector1.from, vector2.from) && isEqual(vector1.to, vector2.to);\n};\n\n// this function is implemented in configure as well\nexport const sortedAnswers = (answers) =>\n Object.keys(answers || {})\n .sort()\n .reduce((result, key) => {\n if (key !== 'correctAnswer') {\n result[key] = answers[key];\n }\n\n return result;\n }, {});\n\nconst returnLineEquationCoefficients = (line) => {\n line = { ...line, to: { ...line.to }, from: { ...line.from } };\n\n const xA = line.from.x;\n const yA = line.from.y;\n const xB = line.to.x;\n const yB = line.to.y;\n\n return {\n a: yB - yA,\n b: xA - xB,\n c: xB * yA - xA * yB,\n };\n};\n\nconst getSignificantDecimals = (number) => Math.round(number * 10000) / 10000;\n\nexport const equalLine = (line1, line2) => {\n // line equation: ax + by + c = 0\n // 2 lines are equal if a1/a2 = b1/b2 = c1/c2, where a, b, c are the coefficients in line equation\n\n // line equation knowing 2 points: (y - yA) / (yB - yA) = (x - xA) / (xB - xA)\n // extending this equation, we get: x * (yB - yA) + y * (xA - xB) + (xB * yA - xA * yB) = 0\n // where a = yB - yA; b = xA - xB; c = xB * yA - xA * yB\n\n const { a: a1, b: b1, c: c1 } = returnLineEquationCoefficients(line1);\n const { a: a2, b: b2, c: c2 } = returnLineEquationCoefficients(line2);\n\n const proportions = [];\n\n if (a2 !== 0) {\n proportions.push(getSignificantDecimals(a1 / a2));\n } else if (a1 !== a2) {\n return false;\n }\n\n if (b2 !== 0) {\n proportions.push(getSignificantDecimals(b1 / b2));\n } else if (b1 !== b2) {\n return false;\n }\n\n if (c2 !== 0) {\n proportions.push(getSignificantDecimals(c1 / c2));\n } else if (c1 !== c2) {\n return false;\n }\n\n return uniq(proportions).length === 1;\n\n // (y2 - y1)/(x2 - x1) = (y4 - y3)/(x4 - x3);\n // return ((Math.abs((line1.to.y - line1.from.y) / (line1.to.x - line1.from.x))) === (Math.abs((line2.to.y - line2.from.y) / (line2.to.x - line2.from.x))));\n};\n\nexport const equalRay = (ray1, ray2) => {\n ray1 = { ...ray1, to: { ...ray1.to }, from: { ...ray1.from } };\n ray2 = { ...ray2, to: { ...ray2.to }, from: { ...ray2.from } };\n\n // slope: m = (y2-y1)/(x2-x1)\n // slope & x1 = x3 & y1 = y3 & angle between (x1, y1) (x2, y2) is same as angle between (x3, y3) (x4, y4)\n const mRay1 = (ray1.to.y - ray1.from.y) / (ray1.to.x - ray1.from.x);\n const mRay2 = (ray2.to.y - ray2.from.y) / (ray2.to.x - ray2.from.x);\n const angleRay1 = (Math.atan2(ray1.to.y - ray1.from.y, ray1.to.x - ray1.from.x) * 180) / Math.PI;\n const angleRay2 = (Math.atan2(ray2.to.y - ray2.from.y, ray2.to.x - ray2.from.x) * 180) / Math.PI;\n\n return mRay1 === mRay2 && ray1.from.x === ray2.from.x && ray1.from.y === ray2.from.y && angleRay1 === angleRay2;\n};\n\nexport const constructSegmentsFromPoints = (points) => {\n // takes the list of points that represent a polygon and transforms it into a list of segments; eg.:\n // points: A, B, C, D => segments: AB, BC, CD, DA\n return (points || []).map((point, index) => ({ from: point, to: points[(index + 1) % points.length] }));\n};\n\nexport const removeDuplicateSegments = (segments) => {\n segments = segments || [];\n // removes segments that are duplicates; eg. These segments are the same, so one will be removed:\n // segment1: from: { x: 1, y: 1 }, to: { x: 2, y: 1 }\n // segment2: from: { x: 2, y: 1 }, to: { x: 1, y: 1 }\n return uniqWith(segments, (s1, s2) => equalSegment(s1, s2));\n};\n\nexport const removeInvalidSegments = (segments) => {\n segments = segments || [];\n // removes segments that start in a point and end in the same point (eg.: from: { x: 1, y: 1 }, to: { x: 1, y: 1 })\n\n return segments.filter((segment) => !isEqual(segment.from, segment.to));\n};\n\nexport const equalPolygon = (poly1, poly2) => {\n const { points: points1 } = poly1;\n const { points: points2 } = poly2;\n\n // generate segments\n const segments1 = constructSegmentsFromPoints(points1);\n const segments2 = constructSegmentsFromPoints(points2);\n\n const segments1NoDuplicates = removeDuplicateSegments(removeInvalidSegments(segments1));\n const segments2NoDuplicates = removeDuplicateSegments(removeInvalidSegments(segments2));\n\n const differentSegments1 = differenceWith(segments1NoDuplicates, segments2NoDuplicates, equalSegment);\n const differentSegments2 = differenceWith(segments2NoDuplicates, segments1NoDuplicates, equalSegment);\n\n return (!differentSegments1 || !differentSegments1.length) && (!differentSegments2 || !differentSegments2.length);\n};\n\nexport const equalCircle = (c1, c2) => {\n c1 = { ...c1, root: { ...c1.root }, edge: { ...c1.edge } };\n c2 = { ...c2, root: { ...c2.root }, edge: { ...c2.edge } };\n const equalRootAndEdge = isEqual(c2.edge, c1.edge) && isEqual(c2.root, c1.root);\n\n // if both edge and root are the same, it means the shapes are exactly the same\n if (equalRootAndEdge) return true;\n\n const rC1 = Math.sqrt((c1.edge.x - c1.root.x) ** 2 + (c1.edge.y - c1.root.y) ** 2);\n const rC2 = Math.sqrt((c2.edge.x - c2.root.x) ** 2 + (c2.edge.y - c2.root.y) ** 2);\n\n // if both root and radius are the same, it means the shapes are equal\n return isEqual(c2.root, c1.root) && isEqual(rC1, rC2);\n};\n\nexport const equalSine = (sine1, sine2) => {\n const getPoints = ({ root, edge }) => {\n root = { ...root };\n edge = { ...edge };\n\n const { amplitude, freq } = getAmplitudeAndFreq(root, edge);\n // the height of the sine wave\n const tY = Math.abs(root.y - edge.y) * 2;\n // the distance on x axis between edge and root\n const tXRoot = Math.abs(root.x - edge.x);\n // the distance on x axis between 2 edges for sine wave (min & max)\n const tX = tXRoot * 2;\n // the first edge placed east side of root\n let edgeAboveZeroX = edge.x;\n let edgeAboveZeroY = edge.y;\n\n // if edge less then 0, find out the appropriate edge placed east side of zero (0)\n while (edgeAboveZeroX < 0 && tX !== 0) {\n edgeAboveZeroX = edgeAboveZeroX + tX;\n edgeAboveZeroY = edgeAboveZeroY < root.y ? edgeAboveZeroY + tY : edgeAboveZeroY - tY;\n }\n\n // if edge more then 0, find out the appropriate edge placed east side of zero (0)\n while (edgeAboveZeroX - tX > 0 && tX !== 0) {\n edgeAboveZeroX = edgeAboveZeroX - tX;\n edgeAboveZeroY = edgeAboveZeroY < root.y ? edgeAboveZeroY + tY : edgeAboveZeroY - tY;\n }\n\n return {\n amplitude: getSignificantDecimals(amplitude),\n freq: getSignificantDecimals(freq),\n min: getSignificantDecimals(edge.y < root.y ? edge.y : edge.y - tY),\n max: getSignificantDecimals(edge.y < root.y ? edge.y + tY : edge.y),\n edgeAboveZeroX: getSignificantDecimals(edgeAboveZeroX),\n edgeAboveZeroY: getSignificantDecimals(edgeAboveZeroY),\n };\n };\n\n const studentAnswerBpY = getPoints(sine1);\n const correctAnswerBpY = getPoints(sine2);\n\n const {\n amplitude: amplitude1,\n freq: freq1,\n min: min1,\n max: max1,\n edgeAboveZeroX: edgeAboveZeroX1,\n edgeAboveZeroY: edgeAboveZeroY1,\n } = studentAnswerBpY;\n const {\n amplitude: amplitude2,\n freq: freq2,\n min: min2,\n max: max2,\n edgeAboveZeroX: edgeAboveZeroX2,\n edgeAboveZeroY: edgeAboveZeroY2,\n } = correctAnswerBpY;\n\n return (\n Math.abs(amplitude1) === Math.abs(amplitude2) &&\n Math.abs(freq1) === Math.abs(freq2) &&\n min1 === min2 &&\n max1 === max2 &&\n edgeAboveZeroX1 === edgeAboveZeroX2 &&\n edgeAboveZeroY1 === edgeAboveZeroY2\n );\n // rootDiff1 === rootDiff2);\n};\n\nexport const equalParabola = (p1, p2) => {\n const { edge: edgeP1 } = p1;\n const { edge: edgeP2 } = p2;\n let { root: rootP1 } = p1;\n let { root: rootP2 } = p2;\n\n rootP1 = { ...rootP1 };\n rootP2 = { ...rootP2 };\n\n const p1edge = edgeP1 || { ...rootP1 };\n const p2edge = edgeP2 || { ...rootP2 };\n\n const p1mirrorEdge = { x: rootP1.x - (p1edge.x - rootP1.x), y: p1edge.y };\n const p2mirrorEdge = { x: rootP2.x - (p2edge.x - rootP2.x), y: p2edge.y };\n\n if (!edgeP1 || !edgeP2) return false;\n\n const { a: a1, b: b1, c: c1 } = pointsToABC(rootP1, edgeP1, p1mirrorEdge);\n const { a: a2, b: b2, c: c2 } = pointsToABC(rootP2, edgeP2, p2mirrorEdge);\n\n // sometimes numbers have this form: 1.00000000002 because of calculations, we have to round them\n const round = (number) => Math.round(number * 10000) / 10000;\n\n return round(a1) === round(a2) && round(b1) === round(b2) && round(c1) === round(c2);\n};\n\n/*\n * Function to check if given two points for absolute function\n * for correct answer and student answer are equal or not.\n * @param p1 - student answer\n * @param p2 - correct answer\n * */\nexport const equalAbsolute = (p1, p2) => {\n const { edge: edgeP1 } = p1;\n const { edge: edgeP2 } = p2;\n let { root: rootP1 } = p1;\n let { root: rootP2 } = p2;\n\n rootP1 = { ...rootP1 };\n rootP2 = { ...rootP2 };\n\n const p1edge = edgeP1 || { ...rootP1 };\n const p2edge = edgeP2 || { ...rootP2 };\n\n const p1a1 = pointsToAForAbsolute(rootP1, p1edge);\n const p2a2 = pointsToAForAbsolute(rootP2, p2edge);\n\n // if both root and a value are equal\n return isEqual(rootP2, rootP1) && isEqual(p2a2, p1a1);\n};\n\n/*\n * Function to check if given two points for exponential function\n * for correct answer and student answer are equal or not.\n * @param p1 - student answer\n * @param p2 - correct answer\n * */\nexport const equalExponential = (p1, p2) => {\n const { edge: edgeP1 } = p1;\n const { edge: edgeP2 } = p2;\n let { root: rootP1 } = p1;\n let { root: rootP2 } = p2;\n\n rootP1 = { ...rootP1 };\n rootP2 = { ...rootP2 };\n\n const p1edge = edgeP1 || { ...rootP1 };\n const p2edge = edgeP2 || { ...rootP2 };\n\n const { a1, b1 } = pointsToABForExponential(rootP1, p1edge);\n const { a2, b2 } = pointsToABForExponential(rootP2, p2edge);\n\n // if both a and b value are equal\n return isEqual(a2, a1) && isEqual(b2, b1);\n};\n\nexport const equalMarks = {\n circle: (sessAnswer, mark) => equalCircle(sessAnswer, mark),\n line: (sessAnswer, mark) => equalLine(sessAnswer, mark),\n parabola: (sessAnswer, mark) => equalParabola(sessAnswer, mark),\n absolute: (sessAnswer, mark) => equalAbsolute(sessAnswer, mark),\n exponential: (sessAnswer, mark) => equalExponential(sessAnswer, mark),\n point: (sessAnswer, mark) => equalPoint(sessAnswer, mark),\n polygon: (sessAnswer, poly) => equalPolygon(sessAnswer, poly),\n ray: (sessAnswer, mark) => equalRay(sessAnswer, mark),\n segment: (sessAnswer, mark) => equalSegment(sessAnswer, mark),\n sine: (sessAnswer, mark) => equalSine(sessAnswer, mark),\n vector: (sessAnswer, mark) => equalVector(sessAnswer, mark),\n};\n\nconst completePoint = (point) => point && Number.isFinite(point.x) && Number.isFinite(point.y);\nconst completeFromTo = (item) => item && completeMark.point(item.from) && completeMark.point(item.to);\nconst completeRootEdge = (item) => item && completeMark.point(item.edge) && completeMark.point(item.root);\nconst completePoints = (item) =>\n item &&\n item.points &&\n item.points.length &&\n (item.points.filter((point) => completePoint(point)) || []).length === item.points.length;\n\nconst completeMark = {\n point: completePoint,\n line: completeFromTo,\n ray: completeFromTo,\n segment: completeFromTo,\n vector: completeFromTo,\n circle: completeRootEdge,\n parabola: completeRootEdge,\n absolute: completeRootEdge,\n exponential: completeRootEdge,\n sine: completeRootEdge,\n polygon: completePoints,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAOO,MAAME,UAAU,GAAGA,CAACC,CAAC,EAAEC,CAAC,KAAK;EAClC;EACA;EACA;EACA;EACA,IAAIC,UAAU,GAAG,IAAI;EAErBF,CAAC,GAAG;IAAE,GAAGA;EAAE,CAAC;EACZC,CAAC,GAAG;IAAE,GAAGA;EAAE,CAAC;EAEZ,IAAID,CAAC,CAACG,KAAK,IAAIF,CAAC,CAACE,KAA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EAC7BR,IAAI,EAAEQ,gBAAgB;EACtBX,OAAO,EAAEY;AACX,CAAC","ignoreList":[]}
@@ -1,24 +0,0 @@
1
- {
2
- "name": "@pie-element/graphing-controller",
3
- "private": true,
4
- "version": "9.1.0-next.2",
5
- "description": "",
6
- "main": "lib/index.js",
7
- "module": "src/index.js",
8
- "scripts": {
9
- "test": "./node_modules/.bin/jest"
10
- },
11
- "dependencies": {
12
- "@pie-lib/controller-utils": "2.0.2-next.0",
13
- "@pie-lib/graphing-utils": "3.0.2-next.0",
14
- "debug": "^4.1.1"
15
- },
16
- "devDependencies": {
17
- "babel-jest": "^29.7.0",
18
- "babel-preset-env": "^1.6.1",
19
- "babel-preset-stage-0": "^6.24.1",
20
- "jest": "^29.7.0"
21
- },
22
- "author": "",
23
- "license": "ISC"
24
- }