@pie-element/graphing-solution-set 6.1.1-next.0 → 6.1.1-next.29

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 (232) hide show
  1. package/CHANGELOG.json +1 -0
  2. package/CHANGELOG.md +846 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +20 -0
  5. package/configure/CHANGELOG.json +1 -0
  6. package/configure/CHANGELOG.md +806 -0
  7. package/configure/lib/configure.js +312 -0
  8. package/configure/lib/configure.js.map +1 -0
  9. package/configure/lib/correct-response.js +435 -0
  10. package/configure/lib/correct-response.js.map +1 -0
  11. package/configure/lib/defaults.js +357 -0
  12. package/configure/lib/defaults.js.map +1 -0
  13. package/configure/lib/graphing-config.js +408 -0
  14. package/configure/lib/graphing-config.js.map +1 -0
  15. package/configure/lib/index.js +163 -0
  16. package/configure/lib/index.js.map +1 -0
  17. package/configure/lib/utils.js +630 -0
  18. package/configure/lib/utils.js.map +1 -0
  19. package/configure/package.json +29 -0
  20. package/controller/CHANGELOG.json +1 -0
  21. package/controller/CHANGELOG.md +671 -0
  22. package/controller/lib/defaults.js +69 -0
  23. package/controller/lib/defaults.js.map +1 -0
  24. package/controller/lib/index.js +351 -0
  25. package/controller/lib/index.js.map +1 -0
  26. package/controller/lib/utils.js +212 -0
  27. package/controller/lib/utils.js.map +1 -0
  28. package/controller/package.json +22 -0
  29. package/demo-gss.gif +0 -0
  30. package/docs/config-schema.json +1560 -0
  31. package/docs/config-schema.json.md +1114 -0
  32. package/docs/demo/config.js +8 -0
  33. package/docs/demo/generate.js +54 -0
  34. package/docs/demo/index.html +1 -0
  35. package/docs/demo/session.js +6 -0
  36. package/docs/pie-schema.json +1800 -0
  37. package/docs/pie-schema.json.md +952 -0
  38. package/lib/index.js +164 -0
  39. package/lib/index.js.map +1 -0
  40. package/lib/main.js +355 -0
  41. package/lib/main.js.map +1 -0
  42. package/lib/utils.js +515 -0
  43. package/lib/utils.js.map +1 -0
  44. package/package.json +22 -57
  45. package/dist/author/configure.d.ts +0 -26
  46. package/dist/author/configure.js +0 -190
  47. package/dist/author/correct-response.d.ts +0 -33
  48. package/dist/author/correct-response.js +0 -206
  49. package/dist/author/defaults.d.ts +0 -238
  50. package/dist/author/defaults.js +0 -339
  51. package/dist/author/graphing-config.d.ts +0 -33
  52. package/dist/author/graphing-config.js +0 -238
  53. package/dist/author/index.d.ts +0 -62
  54. package/dist/author/index.js +0 -87
  55. package/dist/author/utils.d.ts +0 -46
  56. package/dist/author/utils.js +0 -474
  57. package/dist/controller/defaults.d.ts +0 -64
  58. package/dist/controller/defaults.js +0 -54
  59. package/dist/controller/index.d.ts +0 -24
  60. package/dist/controller/index.js +0 -112
  61. package/dist/controller/utils.d.ts +0 -20
  62. package/dist/controller/utils.js +0 -42
  63. package/dist/delivery/index.d.ts +0 -22
  64. package/dist/delivery/index.js +0 -62
  65. package/dist/delivery/main.d.ts +0 -31
  66. package/dist/delivery/main.js +0 -198
  67. package/dist/delivery/utils.d.ts +0 -12
  68. package/dist/delivery/utils.js +0 -220
  69. package/dist/graphing-solution-set.css +0 -2
  70. package/dist/index.d.ts +0 -1
  71. package/dist/index.iife.d.ts +0 -8
  72. package/dist/index.iife.js +0 -404
  73. package/dist/index.js +0 -2
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +0 -7
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +0 -7
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +0 -23
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +0 -9
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +0 -6
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +0 -27
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  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/isArguments.js +0 -10
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +0 -7
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +0 -4
  227. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +0 -7
  228. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  229. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  230. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
  231. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +0 -7
  232. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +0 -7
@@ -1,238 +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/isEqual.js";
3
- import { applyConstraints as n, filterPlotableMarks as r, getGridValues as i, getLabelValues as a } from "./utils.js";
4
- import * as o from "react";
5
- import s from "prop-types";
6
- import { styled as c } from "@mui/material/styles";
7
- import { GraphContainer as l, GridSetup as u } from "@pie-lib/graphing-solution-set";
8
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
- import { AlertDialog as p } from "@pie-lib/config-ui";
10
- import { MenuItem as m, OutlinedInput as h, Select as g, Typography as _ } from "@mui/material";
11
- //#region src/author/graphing-config.tsx
12
- var v = c("div")(({ theme: e }) => ({
13
- display: "flex",
14
- flexWrap: "wrap",
15
- marginBottom: e.spacing(2.5)
16
- })), y = c("div")(({ theme: e }) => ({
17
- display: "flex",
18
- flexDirection: "column",
19
- marginRight: e.spacing(3),
20
- marginBottom: e.spacing(2.5)
21
- })), b = c("div")({
22
- display: "flex",
23
- flexDirection: "column"
24
- }), x = c(_)(({ theme: e }) => ({
25
- marginTop: e.spacing(1.5),
26
- marginBottom: e.spacing(1)
27
- })), S = c("div")(({ theme: e }) => ({
28
- display: "flex",
29
- flexWrap: "wrap",
30
- alignItems: "center",
31
- width: "100%",
32
- marginBottom: e.spacing(2.5)
33
- })), C = c(_)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), w = c(g)({ flex: "1" }), T = class extends o.Component {
34
- static propTypes = {
35
- availableTools: s.array,
36
- authoring: s.object,
37
- dimensionsEnabled: s.bool,
38
- graphDimensions: s.object,
39
- gridConfigurations: s.array,
40
- labelsPlaceholders: s.object,
41
- model: s.object.isRequired,
42
- onChange: s.func.isRequired,
43
- showLabels: s.bool,
44
- showTitle: s.bool,
45
- titlePlaceholder: s.string
46
- };
47
- constructor(e) {
48
- super(e);
49
- let { domain: t, range: n, graph: r } = e.model || {}, o = {
50
- domain: i(t, r.width, !0),
51
- range: i(n, r.height, !0)
52
- }, s = {
53
- domain: a(t.step),
54
- range: a(n.step)
55
- };
56
- this.state = {
57
- gridValues: o,
58
- labelValues: s,
59
- showPixelGuides: !1,
60
- dialog: { isOpened: !1 },
61
- domain: { ...t },
62
- range: { ...n }
63
- };
64
- }
65
- changeLabels = (e) => {
66
- let { model: t, onChange: n } = this.props;
67
- n({
68
- ...t,
69
- labels: e
70
- });
71
- };
72
- changeTitle = (e) => {
73
- let { model: t, onChange: n } = this.props;
74
- n({
75
- ...t,
76
- title: e
77
- });
78
- };
79
- onConfigChange = (i, a) => {
80
- let { model: o, onChange: s } = this.props, { defaultGridConfiguration: c = 0 } = o, { gridValues: l, labelValues: u, domain: d, range: f } = this.state, p = {
81
- ...o,
82
- ...i
83
- }, { answers: m, domain: h, includeAxes: g = !0, graph: _, range: v, standardGrid: y } = p, b = {
84
- domain: [],
85
- range: []
86
- }, x = {
87
- domain: [],
88
- range: []
89
- }, S = a >= 0 ? a : c;
90
- if (g) {
91
- let e = n(h, _.width, l.domain, u.domain);
92
- b.domain = e.gridValues || [], x.domain = e.labelValues || [];
93
- }
94
- if (y) b.range = b.domain, x.range = x.domain, v.step = h.step, v.labelStep = h.labelStep;
95
- else if (g) {
96
- let e = n(v, _.height, l.range, u.range);
97
- b.range = e.gridValues || [], x.range = e.labelValues || [];
98
- }
99
- let C = e(m);
100
- C.correctAnswer.marks = m.correctAnswer.marks.filter((e) => e.type !== "polygon");
101
- let w = r(h, v, C);
102
- if (!t(C, w)) {
103
- this.setState({ dialog: {
104
- isOpened: !0,
105
- onClose: () => this.setState({ dialog: { isOpened: !1 } }, s({
106
- ...o,
107
- domain: d,
108
- range: f
109
- })),
110
- onConfirm: () => {
111
- p.gssLineData.sections = [], p.gssLineData.selectedTool = "lineA", this.setState({
112
- gridValues: b,
113
- labelValues: x,
114
- dialog: { isOpened: !1 },
115
- domain: { ...h },
116
- range: { ...v }
117
- }, s({
118
- ...p,
119
- answers: w,
120
- defaultGridConfiguration: S
121
- }));
122
- }
123
- } });
124
- return;
125
- }
126
- this.setState({
127
- gridValues: b,
128
- labelValues: x,
129
- domain: { ...h },
130
- range: { ...v }
131
- }), s({
132
- ...p,
133
- defaultGridConfiguration: S
134
- });
135
- };
136
- onChangeView = (e, t) => {
137
- let { graphDimensions: { enabled: n } = {} } = this.props;
138
- n && this.setState({ showPixelGuides: t });
139
- };
140
- changeGridConfiguration = (e) => {
141
- let { gridConfigurations: t } = this.props, { value: n } = e.target;
142
- this.onConfigChange(t?.[n] || {}, n);
143
- };
144
- render() {
145
- let { authoring: e = {}, gridConfigurations: t = [], graphDimensions: n = {}, labelsPlaceholders: r, model: i, showLabels: a, dimensionsEnabled: o, showTitle: s, titlePlaceholder: c, mathMlOptions: g = {} } = this.props, { arrows: T, coordinatesOnHover: E, defaultGridConfiguration: D, domain: O, labels: k, range: A, standardGrid: j, title: M } = i || {}, N = (i || {}).graph || {}, { min: P, max: F, step: I } = n || {}, { dialog: L = {}, gridValues: R, labelValues: z, showPixelGuides: B } = this.state, V = {
146
- min: Math.max(150, P),
147
- max: Math.min(800, F),
148
- step: I >= 1 ? Math.min(200, I) : 20
149
- }, H = {
150
- axisLabel: e.axisLabel,
151
- dimensionsEnabled: o,
152
- includeAxesEnabled: !1,
153
- labelStep: e.labelStep,
154
- min: e.min,
155
- max: e.max,
156
- standardGridEnabled: e.standardGridEnabled,
157
- step: e.step
158
- }, U = e.enabled && Object.values(H).some((e) => typeof e == "object" ? e.enabled : e);
159
- return /* @__PURE__ */ f(v, { children: [
160
- /* @__PURE__ */ f(y, { children: [t && t.length ? /* @__PURE__ */ f(S, { children: [/* @__PURE__ */ d(C, {
161
- component: "div",
162
- variant: "h6",
163
- children: "Grid Configuration"
164
- }), /* @__PURE__ */ d(w, {
165
- input: /* @__PURE__ */ d(h, { labelWidth: 10 }),
166
- displayEmpty: !0,
167
- onChange: this.changeGridConfiguration,
168
- value: D,
169
- MenuProps: { transitionDuration: {
170
- enter: 225,
171
- exit: 195
172
- } },
173
- children: (t || []).map((e, t) => /* @__PURE__ */ d(m, {
174
- value: t,
175
- children: e.label
176
- }, t))
177
- })] }) : null, U && /* @__PURE__ */ d(u, {
178
- displayedFields: H,
179
- domain: O,
180
- gridValues: R,
181
- includeAxes: !0,
182
- labelValues: z,
183
- range: A,
184
- size: N,
185
- sizeConstraints: V,
186
- standardGrid: j,
187
- onChange: this.onConfigChange,
188
- onChangeView: this.onChangeView
189
- })] }),
190
- /* @__PURE__ */ f(b, { children: [
191
- /* @__PURE__ */ d(_, {
192
- component: "div",
193
- variant: "h6",
194
- children: "Define Graph Attributes"
195
- }),
196
- /* @__PURE__ */ d(x, {
197
- component: "div",
198
- variant: "body1",
199
- children: "Use this interface to add/edit a title and/or labels"
200
- }),
201
- /* @__PURE__ */ d(l, {
202
- axesSettings: { includeArrows: T },
203
- backgroundMarks: [],
204
- coordinatesOnHover: E,
205
- collapsibleToolbar: !0,
206
- collapsibleToolbarTitle: "Add Background Shapes to Graph",
207
- domain: O,
208
- labels: k,
209
- labelsPlaceholders: r,
210
- marks: [],
211
- onChangeLabels: this.changeLabels,
212
- onChangeTitle: this.changeTitle,
213
- range: A,
214
- showLabels: a,
215
- showPixelGuides: B,
216
- showTitle: s,
217
- size: {
218
- width: N.width,
219
- height: N.height
220
- },
221
- title: M,
222
- titlePlaceholder: c,
223
- disableToolbar: !0,
224
- mathMlOptions: g
225
- }, "graphing-config")
226
- ] }, "graph"),
227
- /* @__PURE__ */ d(p, {
228
- open: L.isOpened,
229
- title: "Warning",
230
- text: "This change would make it impossible for students to plot one or more graph objects in the current correct answers. If you proceed, all such graph objects will be removed from the correct answers.",
231
- onClose: L.onClose,
232
- onConfirm: L.onConfirm
233
- })
234
- ] });
235
- }
236
- };
237
- //#endregion
238
- export { T as default };
@@ -1,62 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/graphing-solution-set/configure/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
- export default class GraphLinesConfigure extends HTMLElement {
10
- static createDefaultModel: (model?: {}) => {
11
- answers: any;
12
- range: {};
13
- graph: {};
14
- arrows: {
15
- left: boolean;
16
- right: boolean;
17
- up: boolean;
18
- down: boolean;
19
- };
20
- marks: never[];
21
- defaultGridConfiguration: number;
22
- domain: {
23
- min: number;
24
- max: number;
25
- step: number;
26
- labelStep: number;
27
- axisLabel: string;
28
- };
29
- gssLineData: {
30
- numberOfLines: number;
31
- selectedTool: string;
32
- sections: never[];
33
- lineA: {
34
- lineType: string;
35
- };
36
- };
37
- includeAxes: boolean;
38
- labels: {};
39
- labelsEnabled: boolean;
40
- padding: boolean;
41
- prompt: string;
42
- rationale: string;
43
- standardGrid: boolean;
44
- title: string;
45
- coordinatesOnHover: boolean;
46
- promptEnabled: boolean;
47
- rationaleEnabled: boolean;
48
- teacherInstructionsEnabled: boolean;
49
- studentInstructionsEnabled: boolean;
50
- };
51
- constructor();
52
- set model(m: any);
53
- set configuration(c: any);
54
- onModelChanged: any;
55
- onConfigurationChanged: any;
56
- insertImage: any;
57
- onDeleteImage: any;
58
- insertSound(handler: any): void;
59
- onDeleteSound(src: any, done: any): void;
60
- _render(): void;
61
- disconnectedCallback(): void;
62
- }
@@ -1,87 +0,0 @@
1
- import e from "./configure.js";
2
- import t from "./defaults.js";
3
- import n from "react";
4
- import { createRoot as r } from "react-dom/client";
5
- import { renderMath as i } from "@pie-element/shared-math-rendering-mathjax";
6
- import a from "debug";
7
- import { DeleteImageEvent as o, DeleteSoundEvent as s, InsertImageEvent as c, InsertSoundEvent as l, ModelUpdatedEvent as u } from "@pie-element/shared-configure-events";
8
- //#region src/author/index.ts
9
- var d = a("pie-elements:graphing-solution-set:configure"), f = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), p = class a extends HTMLElement {
10
- static createDefaultModel = (e = {}) => {
11
- let n = {
12
- ...t.model,
13
- ...e
14
- }, { answers: r = {}, domain: i = {}, graph: a = {}, range: o = {}, standardGrid: s } = n;
15
- return {
16
- ...n,
17
- answers: r && r.correctAnswer && {
18
- correctAnswer: r.correctAnswer,
19
- ...f(r)
20
- } || r,
21
- range: s && {
22
- ...o,
23
- min: i.min,
24
- max: i.max,
25
- step: i.step,
26
- labelStep: i.labelStep
27
- } || o,
28
- graph: s && {
29
- ...a,
30
- height: a.width
31
- } || a
32
- };
33
- };
34
- constructor() {
35
- super(), this._root = null, this._model = a.createDefaultModel(), this._configuration = t.configuration;
36
- }
37
- set model(e) {
38
- this._model = a.createDefaultModel(e), this._render();
39
- }
40
- set configuration(e) {
41
- this._configuration = e, e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings ? this._model.language && (this._configuration.language.enabled = !0) : delete this._model.language, this._render();
42
- }
43
- onModelChanged = (e) => {
44
- this._model = e, this._render(), d("[onModelChanged]: ", this._model), this.dispatchEvent(new u(this._model));
45
- };
46
- onConfigurationChanged = (e) => {
47
- this._configuration = e, this._render();
48
- };
49
- insertImage = (e) => {
50
- this.dispatchEvent(new c(e));
51
- };
52
- onDeleteImage = (e, t) => {
53
- this.dispatchEvent(new o(e, t));
54
- };
55
- insertSound(e) {
56
- this.dispatchEvent(new l(e));
57
- }
58
- onDeleteSound(e, t) {
59
- this.dispatchEvent(new s(e, t));
60
- }
61
- _render() {
62
- if (this._model) {
63
- let t = n.createElement(e, {
64
- onModelChanged: this.onModelChanged,
65
- onConfigurationChanged: this.onConfigurationChanged,
66
- model: this._model,
67
- configuration: this._configuration,
68
- imageSupport: {
69
- add: this.insertImage,
70
- delete: this.onDeleteImage
71
- },
72
- uploadSoundSupport: {
73
- add: this.insertSound.bind(this),
74
- delete: this.onDeleteSound.bind(this)
75
- }
76
- });
77
- this._root ||= r(this), this._root.render(t), queueMicrotask(() => {
78
- i(this);
79
- });
80
- }
81
- }
82
- disconnectedCallback() {
83
- this._root && this._root.unmount();
84
- }
85
- };
86
- //#endregion
87
- export { p as default };
@@ -1,46 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/graphing-solution-set/configure/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 VALID_LABEL_VALUES: {
10
- 0.01: number[];
11
- 0.02: number[];
12
- 0.04: number[];
13
- 0.05: number[];
14
- 0.0625: number[];
15
- 0.1: number[];
16
- 0.125: number[];
17
- 0.2: number[];
18
- 0.25: number[];
19
- 0.5: number[];
20
- 1: number[];
21
- 2: number[];
22
- 3: number[];
23
- 4: number[];
24
- 5: number[];
25
- 8: number[];
26
- 10: number[];
27
- 12: number[];
28
- 15: number[];
29
- 20: number[];
30
- 40: number[];
31
- 50: number[];
32
- 64: number[];
33
- 100: number[];
34
- 500: number[];
35
- 1000: number[];
36
- };
37
- export declare const getGridValues: (axis: any, size: any, prefferedValues?: boolean) => number[];
38
- export declare const getLabelValues: (value: any) => any;
39
- export declare const applyConstraints: (axis: any, size: any, oldGridValues: any, oldLabelValues: any) => {
40
- gridValues: number[];
41
- labelValues: any;
42
- };
43
- export declare const filterPlotableMarks: (domain: any, range: any, answers: any) => {};
44
- export declare const findSectionsInSolutionSet: (gssLineData: any, answers: any, domain: any, range: any) => any;
45
- export declare const pointInsidePolygon: (point: any, polygon: any) => boolean;
46
- export declare const checkIfLinesAreAdded: (gssLineData: any, answer: any) => boolean | undefined;