@pie-element/graphing 10.1.0-next.25 → 10.1.1-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/dist/author/configure.d.ts +26 -0
  2. package/dist/author/configure.js +208 -0
  3. package/dist/author/correct-response.d.ts +54 -0
  4. package/dist/author/correct-response.js +304 -0
  5. package/dist/author/defaults.d.ts +294 -0
  6. package/dist/author/defaults.js +415 -0
  7. package/dist/author/graphing-config.d.ts +34 -0
  8. package/dist/author/graphing-config.js +244 -0
  9. package/dist/author/index.d.ts +59 -0
  10. package/dist/author/index.js +96 -0
  11. package/dist/author/utils.d.ts +43 -0
  12. package/dist/author/utils.js +260 -0
  13. package/dist/controller/defaults.d.ts +59 -0
  14. package/dist/controller/defaults.js +61 -0
  15. package/dist/controller/index.d.ts +34 -0
  16. package/dist/controller/index.js +181 -0
  17. package/dist/controller/utils.d.ts +37 -0
  18. package/dist/controller/utils.js +114 -0
  19. package/dist/delivery/index.d.ts +21 -0
  20. package/dist/delivery/index.js +43 -0
  21. package/dist/delivery/main.d.ts +23 -0
  22. package/dist/delivery/main.js +107 -0
  23. package/dist/delivery/utils.d.ts +22 -0
  24. package/dist/graphing.css +2 -0
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.iife.d.ts +8 -0
  27. package/dist/index.iife.js +375 -0
  28. package/dist/index.js +2 -0
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +7 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +7 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +23 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +9 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js +29 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +6 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +27 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js +7 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +9 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +7 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +12 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/intersection.js +11 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +7 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +4 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +7 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +7 -0
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +7 -0
  191. package/package.json +56 -17
  192. package/CHANGELOG.json +0 -652
  193. package/CHANGELOG.md +0 -2029
  194. package/LICENSE.md +0 -5
  195. package/README.md +0 -1
  196. package/configure/CHANGELOG.json +0 -382
  197. package/configure/CHANGELOG.md +0 -1822
  198. package/configure/lib/configure.js +0 -328
  199. package/configure/lib/configure.js.map +0 -1
  200. package/configure/lib/correct-response.js +0 -484
  201. package/configure/lib/correct-response.js.map +0 -1
  202. package/configure/lib/defaults.js +0 -448
  203. package/configure/lib/defaults.js.map +0 -1
  204. package/configure/lib/graphing-config.js +0 -388
  205. package/configure/lib/graphing-config.js.map +0 -1
  206. package/configure/lib/index.js +0 -173
  207. package/configure/lib/index.js.map +0 -1
  208. package/configure/lib/utils.js +0 -122
  209. package/configure/lib/utils.js.map +0 -1
  210. package/configure/package.json +0 -30
  211. package/controller/CHANGELOG.json +0 -412
  212. package/controller/CHANGELOG.md +0 -1254
  213. package/controller/lib/defaults.js +0 -64
  214. package/controller/lib/defaults.js.map +0 -1
  215. package/controller/lib/index.js +0 -459
  216. package/controller/lib/index.js.map +0 -1
  217. package/controller/lib/utils.js +0 -451
  218. package/controller/lib/utils.js.map +0 -1
  219. package/controller/package.json +0 -24
  220. package/docs/config-schema.json +0 -3164
  221. package/docs/config-schema.json.md +0 -2293
  222. package/docs/demo/config.js +0 -8
  223. package/docs/demo/generate.js +0 -200
  224. package/docs/demo/index.html +0 -1
  225. package/docs/demo/session.js +0 -20
  226. package/docs/pie-schema.json +0 -3495
  227. package/docs/pie-schema.json.md +0 -1345
  228. package/lib/index.js +0 -69
  229. package/lib/index.js.map +0 -1
  230. package/lib/main.js +0 -161
  231. package/lib/main.js.map +0 -1
  232. package/lib/utils.js +0 -24
  233. package/lib/utils.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/graphing/configure/src/graphing-config.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 * as React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ export declare class GraphingConfig extends React.Component {
12
+ static propTypes: {
13
+ availableTools: PropTypes.Requireable<any[]>;
14
+ authoring: PropTypes.Requireable<object>;
15
+ dimensionsEnabled: PropTypes.Requireable<boolean>;
16
+ graphDimensions: PropTypes.Requireable<object>;
17
+ gridConfigurations: PropTypes.Requireable<any[]>;
18
+ labelsPlaceholders: PropTypes.Requireable<object>;
19
+ model: PropTypes.Validator<object>;
20
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
21
+ showLabels: PropTypes.Requireable<boolean>;
22
+ showTitle: PropTypes.Requireable<boolean>;
23
+ titlePlaceholder: PropTypes.Requireable<string>;
24
+ };
25
+ constructor(props: any);
26
+ changeBackgroundMarks: any;
27
+ changeLabels: any;
28
+ changeTitle: any;
29
+ onConfigChange: any;
30
+ onChangeView: any;
31
+ changeGridConfiguration: any;
32
+ render(): React.JSX.Element;
33
+ }
34
+ export default GraphingConfig;
@@ -0,0 +1,244 @@
1
+ import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
2
+ import { applyConstraints as t, filterPlotableMarks as n, getGridValues as r, getLabelValues as i } from "./utils.js";
3
+ import * as a from "react";
4
+ import o from "prop-types";
5
+ import { styled as s } from "@mui/material/styles";
6
+ import { GraphContainer as c, GridSetup as l } from "@pie-lib/graphing";
7
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
+ import { AlertDialog as f } from "@pie-lib/config-ui";
9
+ import { MenuItem as p, OutlinedInput as m, Select as h, Typography as g } from "@mui/material";
10
+ //#region src/author/graphing-config.tsx
11
+ var _ = s("div")(({ theme: e }) => ({
12
+ display: "flex",
13
+ flexWrap: "wrap",
14
+ marginBottom: e.spacing(2.5)
15
+ })), v = s("div")(({ theme: e }) => ({
16
+ display: "flex",
17
+ flexDirection: "column",
18
+ marginRight: e.spacing(3),
19
+ marginBottom: e.spacing(2.5)
20
+ })), y = s("div")({
21
+ display: "flex",
22
+ flexDirection: "column"
23
+ }), b = s(g)(({ theme: e }) => ({
24
+ marginTop: e.spacing(1.5),
25
+ marginBottom: e.spacing(1)
26
+ })), x = s("div")(({ theme: e }) => ({
27
+ display: "flex",
28
+ flexWrap: "wrap",
29
+ alignItems: "center",
30
+ width: "100%",
31
+ marginBottom: e.spacing(2.5)
32
+ })), S = s(g)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), C = s(h)({ flex: "1" }), w = class extends a.Component {
33
+ static propTypes = {
34
+ availableTools: o.array,
35
+ authoring: o.object,
36
+ dimensionsEnabled: o.bool,
37
+ graphDimensions: o.object,
38
+ gridConfigurations: o.array,
39
+ labelsPlaceholders: o.object,
40
+ model: o.object.isRequired,
41
+ onChange: o.func.isRequired,
42
+ showLabels: o.bool,
43
+ showTitle: o.bool,
44
+ titlePlaceholder: o.string
45
+ };
46
+ constructor(e) {
47
+ super(e);
48
+ let { domain: t, range: n, graph: a } = e.model || {}, o = {
49
+ domain: r(t, a.width, !0),
50
+ range: r(n, a.height, !0)
51
+ }, s = {
52
+ domain: i(t.step),
53
+ range: i(n.step)
54
+ };
55
+ this.state = {
56
+ gridValues: o,
57
+ labelValues: s,
58
+ showPixelGuides: !1,
59
+ dialog: { isOpened: !1 },
60
+ domain: { ...t },
61
+ range: { ...n }
62
+ };
63
+ }
64
+ changeBackgroundMarks = (e) => {
65
+ let t = {
66
+ ...this.props.model,
67
+ backgroundMarks: e
68
+ };
69
+ this.props.onChange(t);
70
+ };
71
+ changeLabels = (e) => {
72
+ let { model: t, onChange: n } = this.props;
73
+ n({
74
+ ...t,
75
+ labels: e
76
+ });
77
+ };
78
+ changeTitle = (e) => {
79
+ let { model: t, onChange: n } = this.props;
80
+ n({
81
+ ...t,
82
+ title: e
83
+ });
84
+ };
85
+ onConfigChange = (r, i) => {
86
+ let { model: a, onChange: o } = this.props, { defaultGridConfiguration: s = 0 } = a, { gridValues: c, labelValues: l, domain: u, range: d } = this.state, f = {
87
+ ...a,
88
+ ...r
89
+ }, { answers: p, domain: m, includeAxes: h, graph: g, range: _, standardGrid: v } = f, y = {
90
+ domain: [],
91
+ range: []
92
+ }, b = {
93
+ domain: [],
94
+ range: []
95
+ }, x = i >= 0 ? i : s;
96
+ if (h) {
97
+ let e = t(m, g.width, c.domain, l.domain);
98
+ y.domain = e.gridValues || [], b.domain = e.labelValues || [];
99
+ }
100
+ if (v) y.range = y.domain, b.range = b.domain, _.step = m.step, _.labelStep = m.labelStep;
101
+ else if (h) {
102
+ let e = t(_, g.height, c.range, l.range);
103
+ y.range = e.gridValues || [], b.range = e.labelValues || [];
104
+ }
105
+ let S = n(m, _, p);
106
+ if (!e(p, S)) {
107
+ this.setState({ dialog: {
108
+ isOpened: !0,
109
+ onClose: () => this.setState({ dialog: { isOpened: !1 } }, o({
110
+ ...a,
111
+ domain: u,
112
+ range: d
113
+ })),
114
+ onConfirm: () => {
115
+ this.setState({
116
+ gridValues: y,
117
+ labelValues: b,
118
+ dialog: { isOpened: !1 },
119
+ domain: { ...m },
120
+ range: { ..._ }
121
+ }, o({
122
+ ...f,
123
+ answers: S,
124
+ defaultGridConfiguration: x
125
+ }));
126
+ }
127
+ } });
128
+ return;
129
+ }
130
+ this.setState({
131
+ gridValues: y,
132
+ labelValues: b,
133
+ domain: { ...m },
134
+ range: { ..._ }
135
+ }), o({
136
+ ...f,
137
+ defaultGridConfiguration: x
138
+ });
139
+ };
140
+ onChangeView = (e, t) => {
141
+ let { graphDimensions: { enabled: n } = {} } = this.props;
142
+ n && this.setState({ showPixelGuides: t });
143
+ };
144
+ changeGridConfiguration = (e) => {
145
+ let { gridConfigurations: t } = this.props, { value: n } = e.target;
146
+ this.onConfigChange(t?.[n] || {}, n);
147
+ };
148
+ render() {
149
+ let { authoring: e = {}, availableTools: t = [], gridConfigurations: n = [], graphDimensions: r = {}, labelsPlaceholders: i, model: a, showLabels: o, dimensionsEnabled: s, showTitle: h, titlePlaceholder: w, mathMlOptions: T = {}, removeIncompleteTool: E } = this.props, { arrows: D, backgroundMarks: O, coordinatesOnHover: k, defaultGridConfiguration: A, domain: j, includeAxes: M, labels: N, range: P, standardGrid: F, title: I } = a || {}, L = (a || {}).graph || {}, { min: R, max: z, step: B } = r || {}, { dialog: V = {}, gridValues: H, labelValues: U, showPixelGuides: W } = this.state, G = {
150
+ min: Math.max(150, R),
151
+ max: Math.min(800, z),
152
+ step: B >= 1 ? Math.min(200, B) : 20
153
+ }, K = {
154
+ axisLabel: e.axisLabel,
155
+ dimensionsEnabled: s,
156
+ includeAxesEnabled: e.includeAxesEnabled,
157
+ labelStep: e.labelStep,
158
+ min: e.min,
159
+ max: e.max,
160
+ standardGridEnabled: e.standardGridEnabled,
161
+ step: e.step
162
+ }, q = e.enabled && Object.values(K).some((e) => typeof e == "object" ? e.enabled : e);
163
+ return /* @__PURE__ */ d(_, { children: [
164
+ /* @__PURE__ */ d(v, { children: [n && n.length ? /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(S, {
165
+ component: "div",
166
+ variant: "h6",
167
+ children: "Grid Configuration"
168
+ }), /* @__PURE__ */ u(C, {
169
+ input: /* @__PURE__ */ u(m, {}),
170
+ displayEmpty: !0,
171
+ onChange: this.changeGridConfiguration,
172
+ value: A,
173
+ MenuProps: { transitionDuration: {
174
+ enter: 225,
175
+ exit: 195
176
+ } },
177
+ children: (n || []).map((e, t) => /* @__PURE__ */ u(p, {
178
+ value: t,
179
+ children: e.label
180
+ }, t))
181
+ })] }) : null, q && /* @__PURE__ */ u(l, {
182
+ displayedFields: K,
183
+ domain: j,
184
+ gridValues: H,
185
+ includeAxes: M,
186
+ labelValues: U,
187
+ range: P,
188
+ size: L,
189
+ sizeConstraints: G,
190
+ standardGrid: F,
191
+ onChange: this.onConfigChange,
192
+ onChangeView: this.onChangeView
193
+ })] }),
194
+ /* @__PURE__ */ d(y, { children: [
195
+ /* @__PURE__ */ u(g, {
196
+ component: "div",
197
+ variant: "h6",
198
+ children: "Define Graph Attributes"
199
+ }),
200
+ /* @__PURE__ */ u(b, {
201
+ component: "div",
202
+ variant: "body1",
203
+ children: "Use this interface to add/edit a title and/or labels, and to set background shapes"
204
+ }),
205
+ /* @__PURE__ */ u(c, {
206
+ axesSettings: { includeArrows: D },
207
+ backgroundMarks: [],
208
+ coordinatesOnHover: k,
209
+ collapsibleToolbar: !0,
210
+ collapsibleToolbarTitle: "Add Background Shapes to Graph",
211
+ domain: j,
212
+ labels: N,
213
+ labelsPlaceholders: i,
214
+ marks: O,
215
+ onChangeLabels: this.changeLabels,
216
+ onChangeMarks: this.changeBackgroundMarks,
217
+ onChangeTitle: this.changeTitle,
218
+ range: P,
219
+ showLabels: o,
220
+ showPixelGuides: W,
221
+ showTitle: h,
222
+ size: {
223
+ width: L.width,
224
+ height: L.height
225
+ },
226
+ title: I,
227
+ titlePlaceholder: w,
228
+ toolbarTools: t,
229
+ mathMlOptions: T,
230
+ removeIncompleteTool: E
231
+ }, "graphing-config")
232
+ ] }, "graph"),
233
+ /* @__PURE__ */ u(f, {
234
+ open: V.isOpened,
235
+ title: "Warning",
236
+ 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.",
237
+ onClose: V.onClose,
238
+ onConfirm: V.onConfirm
239
+ })
240
+ ] });
241
+ }
242
+ };
243
+ //#endregion
244
+ export { w as default };
@@ -0,0 +1,59 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/graphing/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
+ defaultTool: any;
13
+ range: {};
14
+ graph: {};
15
+ arrows: {
16
+ left: boolean;
17
+ right: boolean;
18
+ up: boolean;
19
+ down: boolean;
20
+ };
21
+ backgroundMarks: never[];
22
+ coordinatesOnHover: boolean;
23
+ defaultGridConfiguration: number;
24
+ domain: {
25
+ min: number;
26
+ max: number;
27
+ step: number;
28
+ labelStep: number;
29
+ axisLabel: string;
30
+ };
31
+ includeAxes: boolean;
32
+ labels: {};
33
+ labelsEnabled: boolean;
34
+ padding: boolean;
35
+ prompt: string;
36
+ promptEnabled: boolean;
37
+ rationale: string;
38
+ rationaleEnabled: boolean;
39
+ standardGrid: boolean;
40
+ studentInstructionsEnabled: boolean;
41
+ teacherInstructions: string;
42
+ teacherInstructionsEnabled: boolean;
43
+ title: string;
44
+ titleEnabled: boolean;
45
+ toolbarTools: string[];
46
+ };
47
+ constructor();
48
+ set model(m: any);
49
+ resetModelAfterConfigurationIsSet: any;
50
+ set configuration(c: any);
51
+ onModelChanged: any;
52
+ onConfigurationChanged: any;
53
+ insertImage: any;
54
+ onDeleteImage: any;
55
+ insertSound(handler: any): void;
56
+ onDeleteSound(src: any, done: any): void;
57
+ _render(): void;
58
+ disconnectedCallback(): void;
59
+ }
@@ -0,0 +1,96 @@
1
+ import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js";
2
+ import t from "./configure.js";
3
+ import n from "./defaults.js";
4
+ import r from "react";
5
+ import { createRoot as i } from "react-dom/client";
6
+ import { renderMath as a } from "@pie-element/shared-math-rendering-mathjax";
7
+ import o from "debug";
8
+ import { DeleteImageEvent as s, DeleteSoundEvent as c, InsertImageEvent as l, InsertSoundEvent as u, ModelUpdatedEvent as d } from "@pie-element/shared-configure-events";
9
+ //#region src/author/index.ts
10
+ var f = o("pie-elements:graphing:configure"), p = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), m = class o extends HTMLElement {
11
+ static createDefaultModel = (e = {}) => {
12
+ let t = {
13
+ ...n.model,
14
+ ...e
15
+ }, { answers: r = {}, domain: i = {}, defaultTool: a, graph: o = {}, range: s = {}, standardGrid: c, toolbarTools: l } = t, u = (l || []).filter((e) => e !== "label"), d = a || u.length && u[0] || "";
16
+ return {
17
+ ...t,
18
+ answers: r && r.correctAnswer && {
19
+ correctAnswer: r.correctAnswer,
20
+ ...p(r)
21
+ } || r,
22
+ defaultTool: d,
23
+ range: c && {
24
+ ...s,
25
+ min: i.min,
26
+ max: i.max,
27
+ step: i.step,
28
+ labelStep: i.labelStep
29
+ } || s,
30
+ graph: c && {
31
+ ...o,
32
+ height: o.width
33
+ } || o
34
+ };
35
+ };
36
+ constructor() {
37
+ super(), this._root = null, this._model = o.createDefaultModel(), this._configuration = n.configuration;
38
+ }
39
+ set model(t) {
40
+ this._model = o.createDefaultModel(t), this._modelCopy = e(this._model), this._render();
41
+ }
42
+ resetModelAfterConfigurationIsSet = () => {
43
+ let e = document.querySelectorAll("pie-author");
44
+ this.hasPlayerAsParent = Array.from(e).some((e) => e.contains(this)), this.hasPlayerAsParent && (this._modelCopy ? this._model = this._modelCopy : delete this._modelCopy);
45
+ };
46
+ set configuration(e) {
47
+ this._configuration = {
48
+ ...n.configuration,
49
+ ...e
50
+ }, this.resetModelAfterConfigurationIsSet(), 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();
51
+ }
52
+ onModelChanged = (e) => {
53
+ this._model = e, this._render(), f("[onModelChanged]: ", this._model), this.dispatchEvent(new d(this._model));
54
+ };
55
+ onConfigurationChanged = (e) => {
56
+ this._configuration = e, this._render();
57
+ };
58
+ insertImage = (e) => {
59
+ this.dispatchEvent(new l(e));
60
+ };
61
+ onDeleteImage = (e, t) => {
62
+ this.dispatchEvent(new s(e, t));
63
+ };
64
+ insertSound(e) {
65
+ this.dispatchEvent(new u(e));
66
+ }
67
+ onDeleteSound(e, t) {
68
+ this.dispatchEvent(new c(e, t));
69
+ }
70
+ _render() {
71
+ if (this._model) {
72
+ let e = r.createElement(t, {
73
+ onModelChanged: this.onModelChanged,
74
+ onConfigurationChanged: this.onConfigurationChanged,
75
+ model: this._model,
76
+ configuration: this._configuration,
77
+ imageSupport: {
78
+ add: this.insertImage,
79
+ delete: this.onDeleteImage
80
+ },
81
+ uploadSoundSupport: {
82
+ add: this.insertSound.bind(this),
83
+ delete: this.onDeleteSound.bind(this)
84
+ }
85
+ });
86
+ this._root ||= i(this), this._root.render(e), queueMicrotask(() => {
87
+ a(this);
88
+ });
89
+ }
90
+ }
91
+ disconnectedCallback() {
92
+ this._root && this._root.unmount();
93
+ }
94
+ };
95
+ //#endregion
96
+ export { m as default };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/graphing/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) => {};