@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.
Files changed (219) hide show
  1. package/dist/author/configure.d.ts +27 -0
  2. package/dist/author/configure.d.ts.map +1 -0
  3. package/dist/author/configure.js +208 -0
  4. package/dist/author/correct-response.d.ts +55 -0
  5. package/dist/author/correct-response.d.ts.map +1 -0
  6. package/dist/author/correct-response.js +304 -0
  7. package/dist/author/defaults.d.ts +295 -0
  8. package/dist/author/defaults.d.ts.map +1 -0
  9. package/dist/author/defaults.js +415 -0
  10. package/dist/author/graphing-config.d.ts +35 -0
  11. package/dist/author/graphing-config.d.ts.map +1 -0
  12. package/dist/author/graphing-config.js +244 -0
  13. package/dist/author/index.d.ts +60 -0
  14. package/dist/author/index.d.ts.map +1 -0
  15. package/dist/author/index.js +96 -0
  16. package/dist/author/utils.d.ts +44 -0
  17. package/dist/author/utils.d.ts.map +1 -0
  18. package/dist/author/utils.js +260 -0
  19. package/dist/controller/defaults.d.ts +60 -0
  20. package/dist/controller/defaults.d.ts.map +1 -0
  21. package/dist/controller/defaults.js +61 -0
  22. package/dist/controller/index.d.ts +34 -0
  23. package/dist/controller/index.d.ts.map +1 -0
  24. package/dist/controller/index.js +177 -0
  25. package/dist/controller/utils.d.ts +37 -0
  26. package/dist/controller/utils.d.ts.map +1 -0
  27. package/dist/controller/utils.js +111 -0
  28. package/dist/delivery/index.d.ts +22 -0
  29. package/dist/delivery/index.d.ts.map +1 -0
  30. package/dist/delivery/index.js +43 -0
  31. package/dist/delivery/main.d.ts +24 -0
  32. package/dist/delivery/main.d.ts.map +1 -0
  33. package/dist/delivery/main.js +107 -0
  34. package/dist/delivery/utils.d.ts +23 -0
  35. package/dist/delivery/utils.d.ts.map +1 -0
  36. package/dist/graphing.css +2 -0
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.iife.d.ts +9 -0
  40. package/dist/index.iife.d.ts.map +1 -0
  41. package/dist/index.iife.js +374 -0
  42. package/dist/index.js +2 -0
  43. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +6 -0
  44. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +16 -0
  45. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +16 -0
  46. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +6 -0
  47. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +16 -0
  48. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +6 -0
  49. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +6 -0
  50. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +11 -0
  51. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +13 -0
  52. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
  53. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +5 -0
  54. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +6 -0
  55. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +12 -0
  56. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +7 -0
  57. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +10 -0
  58. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludes.js +7 -0
  59. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
  60. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  61. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +7 -0
  62. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +7 -0
  63. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +7 -0
  64. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +10 -0
  65. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +8 -0
  66. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +8 -0
  67. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +8 -0
  68. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +12 -0
  69. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +57 -0
  70. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +14 -0
  71. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseDifference.js +23 -0
  72. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFindIndex.js +7 -0
  73. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +13 -0
  74. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  75. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
  76. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIndexOf.js +9 -0
  77. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIntersection.js +29 -0
  78. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
  79. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +8 -0
  80. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  81. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +9 -0
  82. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNaN.js +6 -0
  83. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
  84. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +9 -0
  85. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  86. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +12 -0
  87. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
  88. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +9 -0
  89. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSet.js +22 -0
  90. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +14 -0
  91. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
  92. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +15 -0
  93. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
  94. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUniq.js +27 -0
  95. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +6 -0
  96. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castArrayLikeObject.js +7 -0
  97. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +10 -0
  98. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  99. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +10 -0
  100. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +8 -0
  101. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +8 -0
  102. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +8 -0
  103. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  104. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +8 -0
  105. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +14 -0
  106. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +8 -0
  107. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  108. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
  109. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createSet.js +9 -0
  110. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
  111. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +35 -0
  112. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +35 -0
  113. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +32 -0
  114. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
  115. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +9 -0
  116. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  117. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +8 -0
  118. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
  119. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +5 -0
  120. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
  121. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +10 -0
  122. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  123. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +23 -0
  124. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
  125. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +7 -0
  126. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +7 -0
  127. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +13 -0
  128. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +9 -0
  129. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +9 -0
  130. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +8 -0
  131. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +33 -0
  132. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +9 -0
  133. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +10 -0
  134. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
  135. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +11 -0
  136. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +7 -0
  137. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
  138. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
  139. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +6 -0
  140. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +9 -0
  141. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +8 -0
  142. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +7 -0
  143. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +8 -0
  144. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +13 -0
  145. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  146. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +7 -0
  147. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +7 -0
  148. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +8 -0
  149. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +9 -0
  150. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +11 -0
  151. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +5 -0
  152. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +5 -0
  153. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  154. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
  155. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
  156. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +8 -0
  157. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +13 -0
  158. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
  159. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +7 -0
  160. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +6 -0
  161. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +9 -0
  162. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +6 -0
  163. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +14 -0
  164. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +7 -0
  165. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +7 -0
  166. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +6 -0
  167. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +6 -0
  168. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +16 -0
  169. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_strictIndexOf.js +7 -0
  170. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +10 -0
  171. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +10 -0
  172. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
  173. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +8 -0
  174. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js +8 -0
  175. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/differenceWith.js +12 -0
  176. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
  177. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +6 -0
  178. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/intersection.js +11 -0
  179. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
  180. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
  181. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
  182. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  183. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
  184. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +21 -0
  185. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js +7 -0
  186. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
  187. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
  188. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +7 -0
  189. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
  190. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
  191. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +7 -0
  192. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
  193. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
  194. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +9 -0
  195. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
  196. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/last.js +7 -0
  197. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +16 -0
  198. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/noop.js +4 -0
  199. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/set.js +7 -0
  200. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +6 -0
  201. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
  202. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toString.js +7 -0
  203. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniq.js +7 -0
  204. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniqWith.js +7 -0
  205. package/package.json +72 -0
  206. package/src/author/configure.tsx +299 -0
  207. package/src/author/correct-response.tsx +490 -0
  208. package/src/author/defaults.tsx +434 -0
  209. package/src/author/graphing-config.tsx +333 -0
  210. package/src/author/index.ts +204 -0
  211. package/src/author/utils.ts +144 -0
  212. package/src/controller/defaults.ts +74 -0
  213. package/src/controller/index.ts +458 -0
  214. package/src/controller/utils.ts +361 -0
  215. package/src/delivery/index.ts +79 -0
  216. package/src/delivery/main.tsx +180 -0
  217. package/src/delivery/utils.ts +34 -0
  218. package/src/index.iife.ts +16 -0
  219. package/src/index.ts +1 -0
@@ -0,0 +1,111 @@
1
+ import e from "../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/differenceWith.js";
2
+ import t from "../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js";
3
+ import n from "../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniq.js";
4
+ import r from "../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/uniqWith.js";
5
+ import { getAmplitudeAndFreq as i, pointsToABC as a, pointsToABForExponential as o, pointsToAForAbsolute as s } from "@pie-lib/graphing-utils";
6
+ //#region src/controller/utils.ts
7
+ var c = (e, n) => (e = { ...e }, n = { ...n }, (e.label || n.label) && t(e.label, n.label), t(e.x, n.x) && t(e.y, n.y)), l = (e, n) => t(e.from, n.from) && t(e.to, n.to) || t(e.to, n.from) && t(e.from, n.to), u = (e, n) => t(e.from, n.from) && t(e.to, n.to), d = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), f = (e) => {
8
+ e = {
9
+ ...e,
10
+ to: { ...e.to },
11
+ from: { ...e.from }
12
+ };
13
+ let t = e.from.x, n = e.from.y, r = e.to.x, i = e.to.y;
14
+ return {
15
+ a: i - n,
16
+ b: t - r,
17
+ c: r * n - t * i
18
+ };
19
+ }, p = (e) => Math.round(e * 1e4) / 1e4, m = (e, t) => {
20
+ let { a: r, b: i, c: a } = f(e), { a: o, b: s, c } = f(t), l = [];
21
+ if (o !== 0) l.push(p(r / o));
22
+ else if (r !== o) return !1;
23
+ if (s !== 0) l.push(p(i / s));
24
+ else if (i !== s) return !1;
25
+ if (c !== 0) l.push(p(a / c));
26
+ else if (a !== c) return !1;
27
+ return n(l).length === 1;
28
+ }, h = (e, t) => {
29
+ e = {
30
+ ...e,
31
+ to: { ...e.to },
32
+ from: { ...e.from }
33
+ }, t = {
34
+ ...t,
35
+ to: { ...t.to },
36
+ from: { ...t.from }
37
+ };
38
+ let n = (e.to.y - e.from.y) / (e.to.x - e.from.x), r = (t.to.y - t.from.y) / (t.to.x - t.from.x), i = Math.atan2(e.to.y - e.from.y, e.to.x - e.from.x) * 180 / Math.PI, a = Math.atan2(t.to.y - t.from.y, t.to.x - t.from.x) * 180 / Math.PI;
39
+ return n === r && e.from.x === t.from.x && e.from.y === t.from.y && i === a;
40
+ }, g = (e) => (e || []).map((t, n) => ({
41
+ from: t,
42
+ to: e[(n + 1) % e.length]
43
+ })), _ = (e) => (e ||= [], r(e, (e, t) => l(e, t))), v = (e) => (e ||= [], e.filter((e) => !t(e.from, e.to))), y = (t, n) => {
44
+ let { points: r } = t, { points: i } = n, a = g(r), o = g(i), s = _(v(a)), c = _(v(o)), u = e(s, c, l), d = e(c, s, l);
45
+ return (!u || !u.length) && (!d || !d.length);
46
+ }, b = (e, n) => {
47
+ if (e = {
48
+ ...e,
49
+ root: { ...e.root },
50
+ edge: { ...e.edge }
51
+ }, n = {
52
+ ...n,
53
+ root: { ...n.root },
54
+ edge: { ...n.edge }
55
+ }, t(n.edge, e.edge) && t(n.root, e.root)) return !0;
56
+ let r = Math.sqrt((e.edge.x - e.root.x) ** 2 + (e.edge.y - e.root.y) ** 2), i = Math.sqrt((n.edge.x - n.root.x) ** 2 + (n.edge.y - n.root.y) ** 2);
57
+ return t(n.root, e.root) && t(r, i);
58
+ }, x = (e, t) => {
59
+ let n = ({ root: e, edge: t }) => {
60
+ e = { ...e }, t = { ...t };
61
+ let { amplitude: n, freq: r } = i(e, t), a = Math.abs(e.y - t.y) * 2, o = Math.abs(e.x - t.x) * 2, s = t.x, c = t.y;
62
+ for (; s < 0 && o !== 0;) s += o, c = c < e.y ? c + a : c - a;
63
+ for (; s - o > 0 && o !== 0;) s -= o, c = c < e.y ? c + a : c - a;
64
+ return {
65
+ amplitude: p(n),
66
+ freq: p(r),
67
+ min: p(t.y < e.y ? t.y : t.y - a),
68
+ max: p(t.y < e.y ? t.y + a : t.y),
69
+ edgeAboveZeroX: p(s),
70
+ edgeAboveZeroY: p(c)
71
+ };
72
+ }, r = n(e), a = n(t), { amplitude: o, freq: s, min: c, max: l, edgeAboveZeroX: u, edgeAboveZeroY: d } = r, { amplitude: f, freq: m, min: h, max: g, edgeAboveZeroX: _, edgeAboveZeroY: v } = a;
73
+ return Math.abs(o) === Math.abs(f) && Math.abs(s) === Math.abs(m) && c === h && l === g && u === _ && d === v;
74
+ }, S = (e, t) => {
75
+ let { edge: n } = e, { edge: r } = t, { root: i } = e, { root: o } = t;
76
+ i = { ...i }, o = { ...o };
77
+ let s = n || { ...i }, c = r || { ...o }, l = {
78
+ x: i.x - (s.x - i.x),
79
+ y: s.y
80
+ }, u = {
81
+ x: o.x - (c.x - o.x),
82
+ y: c.y
83
+ };
84
+ if (!n || !r) return !1;
85
+ let { a: d, b: f, c: p } = a(i, n, l), { a: m, b: h, c: g } = a(o, r, u), _ = (e) => Math.round(e * 1e4) / 1e4;
86
+ return _(d) === _(m) && _(f) === _(h) && _(p) === _(g);
87
+ }, C = (e, n) => {
88
+ let { edge: r } = e, { edge: i } = n, { root: a } = e, { root: o } = n;
89
+ a = { ...a }, o = { ...o };
90
+ let c = r || { ...a }, l = i || { ...o }, u = s(a, c), d = s(o, l);
91
+ return t(o, a) && t(d, u);
92
+ }, w = (e, n) => {
93
+ let { edge: r } = e, { edge: i } = n, { root: a } = e, { root: s } = n;
94
+ a = { ...a }, s = { ...s };
95
+ let c = r || { ...a }, l = i || { ...s }, { a1: u, b1: d } = o(a, c), { a2: f, b2: p } = o(s, l);
96
+ return t(f, u) && t(p, d);
97
+ }, T = {
98
+ circle: (e, t) => b(e, t),
99
+ line: (e, t) => m(e, t),
100
+ parabola: (e, t) => S(e, t),
101
+ absolute: (e, t) => C(e, t),
102
+ exponential: (e, t) => w(e, t),
103
+ point: (e, t) => c(e, t),
104
+ polygon: (e, t) => y(e, t),
105
+ ray: (e, t) => h(e, t),
106
+ segment: (e, t) => l(e, t),
107
+ sine: (e, t) => x(e, t),
108
+ vector: (e, t) => u(e, t)
109
+ };
110
+ //#endregion
111
+ export { T as equalMarks, d as sortedAnswers };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/graphing/src/index.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import Main from './main.js';
10
+ export { Main as Component };
11
+ export default class Graphing extends HTMLElement {
12
+ constructor();
13
+ set model(m: any);
14
+ set session(s: any);
15
+ get session(): any;
16
+ connectedCallback(): void;
17
+ isComplete: (answer: any) => boolean;
18
+ changeAnswers: any;
19
+ _render(): void;
20
+ disconnectedCallback(): void;
21
+ }
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/delivery/index.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAOH,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,CAAC;AAE7B,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW;;IAM/C,IAAI,KAAK,CAAC,CAAC,KAAA,EAGV;IAED,IAAI,OAAO,CAAC,CAAC,KAAA,EAGZ;IAED,IAAI,OAAO,QAEV;IAED,iBAAiB;IAIjB,UAAU,GAAI,WAAM,aAAgD;IAEpE,aAAa,EAAE,GAAG,CAMhB;IAEF,OAAO;IAoBP,oBAAoB;CAKrB"}
@@ -0,0 +1,43 @@
1
+ import e from "./main.js";
2
+ import t from "react";
3
+ import { createRoot as n } from "react-dom/client";
4
+ import { SessionChangedEvent as r } from "@pie-element/shared-player-events";
5
+ import { renderMath as i } from "@pie-element/shared-math-rendering-mathjax";
6
+ //#region src/delivery/index.ts
7
+ var a = class extends HTMLElement {
8
+ constructor() {
9
+ super(), this._root = null;
10
+ }
11
+ set model(e) {
12
+ this._model = e, this._render();
13
+ }
14
+ set session(e) {
15
+ this._session = e, this._render();
16
+ }
17
+ get session() {
18
+ return this._session;
19
+ }
20
+ connectedCallback() {
21
+ this._render();
22
+ }
23
+ isComplete = (e) => Array.isArray(e) && e.length > 0;
24
+ changeAnswers = (e) => {
25
+ this._session.answer = e, this.dispatchEvent(new r(this.tagName.toLowerCase(), this.isComplete(this._session.answer))), this._render();
26
+ };
27
+ _render() {
28
+ if (!this._model || !this._session) return;
29
+ let r = t.createElement(e, {
30
+ model: this._model,
31
+ session: this._session,
32
+ onAnswersChange: this.changeAnswers
33
+ });
34
+ this._root ||= n(this), this._root.render(r), queueMicrotask(() => {
35
+ i(this);
36
+ });
37
+ }
38
+ disconnectedCallback() {
39
+ this._root && this._root.unmount();
40
+ }
41
+ };
42
+ //#endregion
43
+ export { e as Component, a as default };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/graphing/src/main.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare class Main extends React.Component {
12
+ static propTypes: {
13
+ model: PropTypes.Validator<object>;
14
+ session: PropTypes.Validator<object>;
15
+ onAnswersChange: PropTypes.Requireable<(...args: any[]) => any>;
16
+ };
17
+ state: {
18
+ showingCorrect: boolean;
19
+ };
20
+ toggleCorrect: (showingCorrect: any) => void;
21
+ render(): React.JSX.Element;
22
+ }
23
+ export default Main;
24
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/delivery/main.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAkDnC,qBAAa,IAAK,SAAQ,KAAK,CAAC,SAAS;IACvC,MAAM,CAAC,SAAS;;;;MAId;IAEF,KAAK;;MAA6B;IAElC,aAAa,GAAI,mBAAc,UAAuC;IAEtE,MAAM;CAyGP;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,107 @@
1
+ import e from "react";
2
+ import t from "prop-types";
3
+ import { styled as n } from "@mui/material/styles";
4
+ import { GraphContainer as r, KeyLegend as i } from "@pie-lib/graphing";
5
+ import * as a from "@pie-lib/render-ui";
6
+ import { Collapsible as o, PreviewPrompt as s, UiLayout as c, color as l, hasMedia as u, hasText as d } from "@pie-lib/render-ui";
7
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
8
+ import m from "@pie-lib/correct-answer-toggle";
9
+ //#region src/delivery/main.tsx
10
+ function h(e) {
11
+ return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
12
+ }
13
+ function g(e, t) {
14
+ return !e || h(e) ? e : h(e.default) ? e.default : t && h(e[t]) ? e[t] : t && h(e[t]?.default) ? e[t].default : e;
15
+ }
16
+ var _ = g(c, "UiLayout") || g(S.UiLayout, "UiLayout"), v = g(s, "PreviewPrompt") || g(S.PreviewPrompt, "PreviewPrompt"), y = g(o, "Collapsible") || g(S.Collapsible, "Collapsible"), b = a, x = b.default, S = x && typeof x == "object" ? x : b, C = n(_)({
17
+ color: l.text(),
18
+ backgroundColor: l.background()
19
+ }), w = n(y)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), T = n(r)(({ theme: e }) => ({
20
+ marginTop: e.spacing(2),
21
+ marginBottom: e.spacing(2)
22
+ })), E = class extends e.Component {
23
+ static propTypes = {
24
+ model: t.object.isRequired,
25
+ session: t.object.isRequired,
26
+ onAnswersChange: t.func
27
+ };
28
+ state = { showingCorrect: !1 };
29
+ toggleCorrect = (e) => this.setState({ showingCorrect: e });
30
+ render() {
31
+ let { model: e, onAnswersChange: t, session: n } = this.props, { showingCorrect: r } = this.state, { answer: a } = n || {}, { answersCorrected: o, arrows: s, backgroundMarks: c, coordinatesOnHover: l, correctResponse: h, defaultTool: g, disabled: _, domain: b, extraCSSRules: x, labels: S, labelsEnabled: E, prompt: D, range: O, rationale: k, showKeyLegend: A, showToggle: j, title: M, titleEnabled: N, teacherInstructions: P, toolbarTools: F, language: I } = e || {}, L = e?.size || e?.graph || {}, R = o || a || [], z = F?.includes("label") || !1, B = e.rationale && (d(e.rationale) || u(e.rationale));
32
+ return /* @__PURE__ */ p(C, {
33
+ extraCSSRules: x,
34
+ children: [
35
+ e.teacherInstructions && (d(e.teacherInstructions) || u(e.teacherInstructions)) && /* @__PURE__ */ f(w, {
36
+ labels: {
37
+ hidden: "Show Teacher Instructions",
38
+ visible: "Hide Teacher Instructions"
39
+ },
40
+ children: /* @__PURE__ */ f(v, { prompt: P })
41
+ }),
42
+ D && /* @__PURE__ */ f(v, {
43
+ className: "prompt",
44
+ prompt: D
45
+ }),
46
+ /* @__PURE__ */ f(m, {
47
+ show: j,
48
+ toggled: r,
49
+ onToggle: this.toggleCorrect,
50
+ language: I
51
+ }),
52
+ r && j ? /* @__PURE__ */ f(T, {
53
+ axesSettings: { includeArrows: s },
54
+ backgroundMarks: c.filter((e) => !e.building),
55
+ coordinatesOnHover: l,
56
+ disabled: !0,
57
+ disabledLabels: !0,
58
+ disabledTitle: !0,
59
+ domain: b,
60
+ labels: S,
61
+ marks: h.map((e) => ({
62
+ ...e,
63
+ correctness: "correct"
64
+ })),
65
+ onChangeMarks: t,
66
+ range: O,
67
+ showLabels: E,
68
+ showTitle: N,
69
+ size: L,
70
+ title: M,
71
+ toolbarTools: F,
72
+ language: I
73
+ }) : /* @__PURE__ */ f(T, {
74
+ axesSettings: { includeArrows: s },
75
+ backgroundMarks: c.filter((e) => !e.building),
76
+ coordinatesOnHover: l,
77
+ defaultTool: g,
78
+ disabled: _,
79
+ disabledLabels: !0,
80
+ disabledTitle: !0,
81
+ domain: b,
82
+ labels: S,
83
+ marks: R,
84
+ onChangeMarks: t,
85
+ range: O,
86
+ showLabels: E,
87
+ showTitle: N,
88
+ size: L,
89
+ title: M,
90
+ toolbarTools: F,
91
+ language: I,
92
+ limitLabeling: !0
93
+ }),
94
+ A && !r && /* @__PURE__ */ f(i, { isLabelAvailable: z }),
95
+ B && /* @__PURE__ */ f(y, {
96
+ labels: {
97
+ hidden: "Show Rationale",
98
+ visible: "Hide Rationale"
99
+ },
100
+ children: /* @__PURE__ */ f(v, { prompt: k })
101
+ })
102
+ ]
103
+ });
104
+ }
105
+ };
106
+ //#endregion
107
+ export { E as default };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/graphing/src/utils.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ declare const completeMark: {
10
+ point: (point: any) => any;
11
+ line: (item: any) => any;
12
+ ray: (item: any) => any;
13
+ segment: (item: any) => any;
14
+ vector: (item: any) => any;
15
+ circle: (item: any) => any;
16
+ parabola: (item: any) => any;
17
+ absolute: (item: any) => any;
18
+ exponential: (item: any) => any;
19
+ sine: (item: any) => any;
20
+ polygon: (item: any) => any;
21
+ };
22
+ export { completeMark };
23
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/delivery/utils.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAWH,QAAA,MAAM,YAAY;;;;;;;;;;;;CAYjB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}