@pie-element/graphing 10.1.1-next.1 → 10.1.1-next.11

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/CHANGELOG.json +652 -0
  2. package/CHANGELOG.md +2039 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +1 -0
  5. package/configure/CHANGELOG.json +382 -0
  6. package/configure/CHANGELOG.md +1830 -0
  7. package/configure/lib/configure.js +328 -0
  8. package/configure/lib/configure.js.map +1 -0
  9. package/configure/lib/correct-response.js +484 -0
  10. package/configure/lib/correct-response.js.map +1 -0
  11. package/configure/lib/defaults.js +448 -0
  12. package/configure/lib/defaults.js.map +1 -0
  13. package/configure/lib/graphing-config.js +388 -0
  14. package/configure/lib/graphing-config.js.map +1 -0
  15. package/configure/lib/index.js +173 -0
  16. package/configure/lib/index.js.map +1 -0
  17. package/configure/lib/utils.js +122 -0
  18. package/configure/lib/utils.js.map +1 -0
  19. package/configure/package.json +30 -0
  20. package/controller/CHANGELOG.json +412 -0
  21. package/controller/CHANGELOG.md +1263 -0
  22. package/controller/lib/defaults.js +64 -0
  23. package/controller/lib/defaults.js.map +1 -0
  24. package/controller/lib/index.js +459 -0
  25. package/controller/lib/index.js.map +1 -0
  26. package/controller/lib/utils.js +451 -0
  27. package/controller/lib/utils.js.map +1 -0
  28. package/controller/package.json +24 -0
  29. package/docs/config-schema.json +3164 -0
  30. package/docs/config-schema.json.md +2293 -0
  31. package/docs/demo/config.js +8 -0
  32. package/docs/demo/generate.js +200 -0
  33. package/docs/demo/index.html +1 -0
  34. package/docs/demo/session.js +20 -0
  35. package/docs/pie-schema.json +3495 -0
  36. package/docs/pie-schema.json.md +1345 -0
  37. package/lib/index.js +69 -0
  38. package/lib/index.js.map +1 -0
  39. package/lib/main.js +161 -0
  40. package/lib/main.js.map +1 -0
  41. package/lib/utils.js +24 -0
  42. package/lib/utils.js.map +1 -0
  43. package/package.json +21 -60
  44. package/dist/author/configure.d.ts +0 -26
  45. package/dist/author/configure.js +0 -208
  46. package/dist/author/correct-response.d.ts +0 -54
  47. package/dist/author/correct-response.js +0 -304
  48. package/dist/author/defaults.d.ts +0 -294
  49. package/dist/author/defaults.js +0 -415
  50. package/dist/author/graphing-config.d.ts +0 -34
  51. package/dist/author/graphing-config.js +0 -244
  52. package/dist/author/index.d.ts +0 -59
  53. package/dist/author/index.js +0 -96
  54. package/dist/author/utils.d.ts +0 -43
  55. package/dist/author/utils.js +0 -260
  56. package/dist/controller/defaults.d.ts +0 -59
  57. package/dist/controller/defaults.js +0 -61
  58. package/dist/controller/index.d.ts +0 -34
  59. package/dist/controller/index.js +0 -181
  60. package/dist/controller/utils.d.ts +0 -37
  61. package/dist/controller/utils.js +0 -114
  62. package/dist/delivery/index.d.ts +0 -21
  63. package/dist/delivery/index.js +0 -43
  64. package/dist/delivery/main.d.ts +0 -23
  65. package/dist/delivery/main.js +0 -107
  66. package/dist/delivery/utils.d.ts +0 -22
  67. package/dist/graphing.css +0 -2
  68. package/dist/index.d.ts +0 -1
  69. package/dist/index.iife.d.ts +0 -8
  70. package/dist/index.iife.js +0 -375
  71. package/dist/index.js +0 -2
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +0 -7
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +0 -7
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +0 -23
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +0 -9
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js +0 -29
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +0 -6
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +0 -27
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js +0 -7
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +0 -9
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +0 -10
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +0 -7
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +0 -12
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/intersection.js +0 -11
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +0 -7
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  227. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +0 -4
  228. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +0 -7
  229. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  230. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  231. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
  232. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +0 -7
  233. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +0 -7
@@ -1,181 +0,0 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js";
3
- import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js";
4
- import r from "./defaults.js";
5
- import { equalMarks as i, equalPointWithLabel as a, sortedAnswers as o } from "./utils.js";
6
- import s from "debug";
7
- import { partialScoring as c } from "@pie-element/shared-controller-utils";
8
- //#region src/controller/index.ts
9
- var l = s("@pie-element:graphing:controller"), u = () => ({
10
- point: [],
11
- segment: [],
12
- line: [],
13
- ray: [],
14
- vector: [],
15
- polygon: [],
16
- circle: [],
17
- sine: [],
18
- parabola: [],
19
- absolute: [],
20
- exponential: []
21
- }), d = {
22
- incorrect: 0,
23
- correct: 1,
24
- missing: 2
25
- }, f = (e, t) => !!(e && t && e.type === t.type && i[e.type] && i[e.type](e, t)), p = (e, t) => e.label === t.label ? "correct" : "incorrect", m = ({ sessionAnswers: t, marks: n, withPointLabel: r = !1 }) => {
26
- t ||= [], n ||= [];
27
- let i = e(t).reduce((e, t) => {
28
- let i = n.find((e) => f(t, e));
29
- return t.correctness = (i && t.type === "point" && r ? a(t, i) : i) ? "correct" : "incorrect", i && (t.correctnesslabel = p(t, i), t.correctlabel = i.label ? i.label : "", t.label = t.label ? t.label : ""), [...e, t];
30
- }, []), o = e(n).reduce((e, n) => t.find((e) => f(n, e)) ? e : [...e, {
31
- ...n,
32
- correctness: "missing"
33
- }], []);
34
- return [...i, ...o];
35
- }, h = ({ scoringType: e, env: t }) => {
36
- let n = e;
37
- return e && (n = e === "partial scoring"), c.enabled({ partialScoring: n }, t);
38
- }, g = (r, i, a = {}) => {
39
- let { answers: s = {}, scoringType: c } = r || {}, { answer: l } = i || {};
40
- Object.entries(s || {}).forEach(([e, t]) => s[e] = {
41
- ...t,
42
- marks: t?.marks.filter((e) => !e.building)
43
- }), l ||= [], l = l.filter((e) => !e.building), s = t(s) ? { correctAnswer: u() } : {
44
- correctAnswer: s.correctAnswer,
45
- ...o(s)
46
- };
47
- let d = h({
48
- scoringType: c,
49
- env: a
50
- }), p = n(l, f);
51
- return Object.entries(s).reduce((e, t) => {
52
- let n = t[0], { marks: r } = t[1] || {};
53
- if (!r || !r.length) return e;
54
- let i = m({
55
- sessionAnswers: p,
56
- marks: r
57
- }), a = m({
58
- sessionAnswers: p,
59
- marks: r,
60
- withPointLabel: !0
61
- }), o = a.filter((e) => e.correctness === "correct"), s = a.filter((e) => e.correctness !== "missing"), c = r.length, l = o.length;
62
- return s.length > c && (l -= s.length - c), l < 0 && (l = 0), (l / c > e.bestScore || !e.foundOneSolution) && (d ? e.bestScore = parseFloat((l / c).toFixed(2)) : e.bestScore = Math.floor(l / c), e.bestScoreAnswerKey = n, e.answersCorrected = i, e.foundOneSolution = !0), e;
63
- }, {
64
- bestScore: 0,
65
- bestScoreAnswerKey: null,
66
- answersCorrected: e(p).map((e) => ({
67
- ...e,
68
- correctness: "incorrect"
69
- })),
70
- foundOneSolution: !1
71
- });
72
- }, _ = (e) => ({
73
- ...r,
74
- ...e
75
- });
76
- function v(e, n, r) {
77
- return new Promise((i) => {
78
- let a = _(e);
79
- n ??= {};
80
- let { defaultTool: o, extraCSSRules: s, prompt: c, promptEnabled: u, graph: f, answers: p, toolbarTools: m, ...h } = a || {}, { arrows: v } = a, { mode: y, role: b } = r || {};
81
- typeof v == "boolean" && (v = v ? {
82
- left: !0,
83
- right: !0,
84
- up: !0,
85
- down: !0
86
- } : {
87
- left: !1,
88
- right: !1,
89
- up: !1,
90
- down: !1
91
- });
92
- let x = (m || []).filter((e) => e !== "label"), S = o || x.length && x[0] || "", C = {
93
- ...h,
94
- answers: p,
95
- arrows: v,
96
- defaultTool: S,
97
- disabled: r.mode !== "gather",
98
- prompt: u ? c : null,
99
- rationale: null,
100
- size: f,
101
- showKeyLegend: r.mode === "evaluate",
102
- showToggle: r.mode === "evaluate" && !t(p) && p.correctAnswer && p.correctAnswer.marks && !t(p.correctAnswer.marks),
103
- teacherInstructions: null,
104
- toolbarTools: m,
105
- extraCSSRules: s
106
- };
107
- if (b === "instructor" && (y === "view" || y === "evaluate")) {
108
- let { rationale: e, rationaleEnabled: t, teacherInstructions: n, teacherInstructionsEnabled: r } = a || {};
109
- C.rationale = t ? e : null, C.teacherInstructions = r ? n : null;
110
- }
111
- if (y === "evaluate") if (!t(p) && p.correctAnswer && p.correctAnswer.marks && !t(p.correctAnswer.marks)) {
112
- let { answersCorrected: e, bestScoreAnswerKey: t, bestScore: i } = g(a, n, r);
113
- C.answersCorrected = e.sort((e, t) => d[e.correctness] - d[t.correctness]), C.correctResponse = t ? (p[t] || {}).marks : [], C.showToggle = C.showToggle && i !== 1;
114
- } else C.answersCorrected = n && n.answer || [], C.correctResponse = [];
115
- l("base: ", C), i(C);
116
- });
117
- }
118
- var y = (e, t, n) => {
119
- let r = [], { answers: i = {}, scoringType: a } = e || {}, o = t && t.answer || [];
120
- if (!o.length) return ["Student did not interact with the graph."];
121
- r.push(`Student added ${o.length} object(s) to the graph.`);
122
- let s = h({
123
- scoringType: a,
124
- env: n
125
- }), { answersCorrected: c, bestScore: l, bestScoreAnswerKey: u } = g(e, t, n), d = u && i[u] && i[u].marks || [], f = 0, p = 0, m = 0;
126
- for (let e = 0; e < c.length; e++) {
127
- let t = c[e].correctness;
128
- t === "correct" ? f++ : t === "incorrect" ? p++ : t === "missing" && m++;
129
- }
130
- if (f > 0 && r.push(`Correct objects: ${f}.`), p > 0 && r.push(`Incorrect objects: ${p}.`), m > 0 && r.push(`Missing required objects: ${m}.`), c.forEach((e, t) => {
131
- let n = e.type || "graph object", i = e.label ? `'${e.label}'` : "", a = `with index ${t + 1}`;
132
- e.correctness === "correct" && r.push(`${n.charAt(0).toUpperCase() + n.slice(1)} ${i || a} is correct.`), e.correctness === "incorrect" && r.push(`${n.charAt(0).toUpperCase() + n.slice(1)} ${i || a} does not match the expected ${n}.`), e.correctness === "missing" && r.push(`Expected ${n} ${i || a} was not plotted by the student.`);
133
- }), o.length > d.length) {
134
- let e = o.length - d.length;
135
- r.push(`${e} extra object(s) were plotted and are penalized in scoring.`);
136
- }
137
- return s ? r.push("Score calculated using partial scoring.") : r.push("Score calculated using all-or-nothing scoring."), r.push(`Final score: ${l}.`), r;
138
- };
139
- function b(e, n, r = {}) {
140
- return new Promise((i) => {
141
- (!n || t(n)) && i({
142
- score: 0,
143
- empty: !0,
144
- logTrace: ["Student did not interact with the graph."]
145
- }), (r.mode !== "evaluate" || t(e.answers) || e.answers && e.answers.correctAnswer && t(e.answers.correctAnswer.marks)) && i({
146
- score: 0,
147
- empty: !0,
148
- logTrace: ["Student did not interact with the graph."]
149
- });
150
- let { bestScore: a } = g(e, n, r);
151
- i({
152
- score: a,
153
- empty: !1,
154
- logTrace: y(e, n, r)
155
- });
156
- });
157
- }
158
- var x = (e, t) => new Promise((n) => {
159
- if (t.mode !== "evaluate" && t.role === "instructor") {
160
- let { answers: t } = e || {}, r = [];
161
- t && Object.values(t) && (r = (t.correctAnswer || Object.values(t)[0] || {}).marks || []), n({
162
- answer: r,
163
- id: "1"
164
- });
165
- } else n(null);
166
- }), S = (e) => (e || "").replace(/(<(?!img|iframe|source)([^>]+)>)/gi, ""), C = (e = {}, n = {}) => {
167
- let { answers: r, toolbarTools: i } = e, a = {}, o = {};
168
- return (i || []).filter((e) => e !== "label").length || (a.toolbarToolsError = "There should be at least 1 tool defined."), [
169
- "teacherInstructions",
170
- "prompt",
171
- "rationale"
172
- ].forEach((t) => {
173
- n[t]?.required && !S(e[t]) && (a[t] = "This field is required.");
174
- }), Object.entries(r || {}).forEach(([e, t]) => {
175
- t.marks.length || (o[e] = "At least 1 graph object should be defined."), t.marks.length > 0 && t.marks.forEach((t) => {
176
- t.building && (o[e] = "At least 1 graph object is not correctly defined.");
177
- });
178
- }), t(o) || (a.correctAnswerErrors = o), a;
179
- };
180
- //#endregion
181
- export { p as comparLabelMarks, f as compareMarks, x as createCorrectResponseSession, m as getAnswerCorrected, g as getBestAnswer, y as getLogTrace, v as model, _ as normalize, b as outcome, C as validate };
@@ -1,37 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/graphing/controller/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
- export declare const equalPoint: (A: any, B: any) => any;
10
- export declare const equalPointWithLabel: (A: any, B: any) => any;
11
- export declare const equalSegment: (segment1: any, segment2: any) => any;
12
- export declare const equalVector: (vector1: any, vector2: any) => any;
13
- export declare const sortedAnswers: (answers: any) => {};
14
- export declare const equalLine: (line1: any, line2: any) => boolean;
15
- export declare const equalRay: (ray1: any, ray2: any) => boolean;
16
- export declare const constructSegmentsFromPoints: (points: any) => any;
17
- export declare const removeDuplicateSegments: (segments: any) => any;
18
- export declare const removeInvalidSegments: (segments: any) => any;
19
- export declare const equalPolygon: (poly1: any, poly2: any) => boolean;
20
- export declare const equalCircle: (c1: any, c2: any) => any;
21
- export declare const equalSine: (sine1: any, sine2: any) => boolean;
22
- export declare const equalParabola: (p1: any, p2: any) => boolean;
23
- export declare const equalAbsolute: (p1: any, p2: any) => any;
24
- export declare const equalExponential: (p1: any, p2: any) => any;
25
- export declare const equalMarks: {
26
- circle: (sessAnswer: any, mark: any) => any;
27
- line: (sessAnswer: any, mark: any) => boolean;
28
- parabola: (sessAnswer: any, mark: any) => boolean;
29
- absolute: (sessAnswer: any, mark: any) => any;
30
- exponential: (sessAnswer: any, mark: any) => any;
31
- point: (sessAnswer: any, mark: any) => any;
32
- polygon: (sessAnswer: any, poly: any) => boolean;
33
- ray: (sessAnswer: any, mark: any) => boolean;
34
- segment: (sessAnswer: any, mark: any) => any;
35
- sine: (sessAnswer: any, mark: any) => boolean;
36
- vector: (sessAnswer: any, mark: any) => any;
37
- };
@@ -1,114 +0,0 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
3
- import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js";
4
- import r from "../node_modules/.bun/lodash-es@4.18.1/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 }, t(e.x, n.x) && t(e.y, n.y)), l = (e, n) => {
8
- let r = !0;
9
- return e = { ...e }, n = { ...n }, (e.label || n.label) && (r = t(e.label, n.label)), t(e.x, n.x) && t(e.y, n.y) && r;
10
- }, u = (e, n) => t(e.from, n.from) && t(e.to, n.to) || t(e.to, n.from) && t(e.from, n.to), d = (e, n) => t(e.from, n.from) && t(e.to, n.to), f = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), p = (e) => {
11
- e = {
12
- ...e,
13
- to: { ...e.to },
14
- from: { ...e.from }
15
- };
16
- let t = e.from.x, n = e.from.y, r = e.to.x, i = e.to.y;
17
- return {
18
- a: i - n,
19
- b: t - r,
20
- c: r * n - t * i
21
- };
22
- }, m = (e) => Math.round(e * 1e4) / 1e4, h = (e, t) => {
23
- let { a: r, b: i, c: a } = p(e), { a: o, b: s, c } = p(t), l = [];
24
- if (o !== 0) l.push(m(r / o));
25
- else if (r !== o) return !1;
26
- if (s !== 0) l.push(m(i / s));
27
- else if (i !== s) return !1;
28
- if (c !== 0) l.push(m(a / c));
29
- else if (a !== c) return !1;
30
- return n(l).length === 1;
31
- }, g = (e, t) => {
32
- e = {
33
- ...e,
34
- to: { ...e.to },
35
- from: { ...e.from }
36
- }, t = {
37
- ...t,
38
- to: { ...t.to },
39
- from: { ...t.from }
40
- };
41
- 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;
42
- return n === r && e.from.x === t.from.x && e.from.y === t.from.y && i === a;
43
- }, _ = (e) => (e || []).map((t, n) => ({
44
- from: t,
45
- to: e[(n + 1) % e.length]
46
- })), v = (e) => (e ||= [], r(e, (e, t) => u(e, t))), y = (e) => (e ||= [], e.filter((e) => !t(e.from, e.to))), b = (t, n) => {
47
- let { points: r } = t, { points: i } = n, a = _(r), o = _(i), s = v(y(a)), c = v(y(o)), l = e(s, c, u), d = e(c, s, u);
48
- return (!l || !l.length) && (!d || !d.length);
49
- }, x = (e, n) => {
50
- if (e = {
51
- ...e,
52
- root: { ...e.root },
53
- edge: { ...e.edge }
54
- }, n = {
55
- ...n,
56
- root: { ...n.root },
57
- edge: { ...n.edge }
58
- }, t(n.edge, e.edge) && t(n.root, e.root)) return !0;
59
- 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);
60
- return t(n.root, e.root) && t(r, i);
61
- }, S = (e, t) => {
62
- let n = ({ root: e, edge: t }) => {
63
- e = { ...e }, t = { ...t };
64
- 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;
65
- for (; s < 0 && o !== 0;) s += o, c = c < e.y ? c + a : c - a;
66
- for (; s - o > 0 && o !== 0;) s -= o, c = c < e.y ? c + a : c - a;
67
- return {
68
- amplitude: m(n),
69
- freq: m(r),
70
- min: m(t.y < e.y ? t.y : t.y - a),
71
- max: m(t.y < e.y ? t.y + a : t.y),
72
- edgeAboveZeroX: m(s),
73
- edgeAboveZeroY: m(c)
74
- };
75
- }, r = n(e), a = n(t), { amplitude: o, freq: s, min: c, max: l, edgeAboveZeroX: u, edgeAboveZeroY: d } = r, { amplitude: f, freq: p, min: h, max: g, edgeAboveZeroX: _, edgeAboveZeroY: v } = a;
76
- return Math.abs(o) === Math.abs(f) && Math.abs(s) === Math.abs(p) && c === h && l === g && u === _ && d === v;
77
- }, C = (e, t) => {
78
- let { edge: n } = e, { edge: r } = t, { root: i } = e, { root: o } = t;
79
- i = { ...i }, o = { ...o };
80
- let s = n || { ...i }, c = r || { ...o }, l = {
81
- x: i.x - (s.x - i.x),
82
- y: s.y
83
- }, u = {
84
- x: o.x - (c.x - o.x),
85
- y: c.y
86
- };
87
- if (!n || !r) return !1;
88
- 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;
89
- return _(d) === _(m) && _(f) === _(h) && _(p) === _(g);
90
- }, w = (e, n) => {
91
- let { edge: r } = e, { edge: i } = n, { root: a } = e, { root: o } = n;
92
- a = { ...a }, o = { ...o };
93
- let c = r || { ...a }, l = i || { ...o }, u = s(a, c), d = s(o, l);
94
- return t(o, a) && t(d, u);
95
- }, T = (e, n) => {
96
- let { edge: r } = e, { edge: i } = n, { root: a } = e, { root: s } = n;
97
- a = { ...a }, s = { ...s };
98
- let c = r || { ...a }, l = i || { ...s }, { a1: u, b1: d } = o(a, c), { a2: f, b2: p } = o(s, l);
99
- return t(f, u) && t(p, d);
100
- }, E = {
101
- circle: (e, t) => x(e, t),
102
- line: (e, t) => h(e, t),
103
- parabola: (e, t) => C(e, t),
104
- absolute: (e, t) => w(e, t),
105
- exponential: (e, t) => T(e, t),
106
- point: (e, t) => c(e, t),
107
- polygon: (e, t) => b(e, t),
108
- ray: (e, t) => g(e, t),
109
- segment: (e, t) => u(e, t),
110
- sine: (e, t) => S(e, t),
111
- vector: (e, t) => d(e, t)
112
- };
113
- //#endregion
114
- export { E as equalMarks, l as equalPointWithLabel, f as sortedAnswers };
@@ -1,21 +0,0 @@
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
- }
@@ -1,43 +0,0 @@
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 };
@@ -1,23 +0,0 @@
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;
@@ -1,107 +0,0 @@
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 };
@@ -1,22 +0,0 @@
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 };