@explorable-viz/fluid 0.0.23 → 0.7.2

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 (403) hide show
  1. package/.spago/aff/v7.0.0/.editorconfig +13 -0
  2. package/.spago/aff/v7.0.0/.eslintrc.json +28 -0
  3. package/.spago/aff/v7.0.0/.gitignore +14 -0
  4. package/.spago/aff/v7.0.0/.tidyrc.json +10 -0
  5. package/.spago/affjax/v13.0.0/.editorconfig +13 -0
  6. package/.spago/affjax/v13.0.0/.eslintrc.json +28 -0
  7. package/.spago/affjax/v13.0.0/.gitignore +14 -0
  8. package/.spago/affjax/v13.0.0/.tidyrc.json +10 -0
  9. package/.spago/affjax-node/v1.0.0/.editorconfig +13 -0
  10. package/.spago/affjax-node/v1.0.0/.eslintrc.json +30 -0
  11. package/.spago/affjax-node/v1.0.0/.gitignore +13 -0
  12. package/.spago/affjax-web/v1.0.0/.editorconfig +13 -0
  13. package/.spago/affjax-web/v1.0.0/.eslintrc.json +30 -0
  14. package/.spago/affjax-web/v1.0.0/.gitignore +14 -0
  15. package/.spago/affjax-web/v1.0.0/.tidyrc.json +10 -0
  16. package/.spago/argonaut/v9.0.0/.editorconfig +13 -0
  17. package/.spago/argonaut/v9.0.0/.gitignore +9 -0
  18. package/.spago/argonaut/v9.0.0/.tidyrc.json +10 -0
  19. package/.spago/argonaut-codecs/v9.0.0/.editorconfig +13 -0
  20. package/.spago/argonaut-codecs/v9.0.0/.gitignore +9 -0
  21. package/.spago/argonaut-codecs/v9.0.0/.tidyrc.json +10 -0
  22. package/.spago/argonaut-core/v7.0.0/.editorconfig +13 -0
  23. package/.spago/argonaut-core/v7.0.0/.eslintrc.json +29 -0
  24. package/.spago/argonaut-core/v7.0.0/.gitignore +14 -0
  25. package/.spago/argonaut-core/v7.0.0/.tidyrc.json +10 -0
  26. package/.spago/argonaut-traversals/v10.0.0/.editorconfig +13 -0
  27. package/.spago/argonaut-traversals/v10.0.0/.gitignore +9 -0
  28. package/.spago/argonaut-traversals/v10.0.0/.tidyrc.json +10 -0
  29. package/.spago/arraybuffer-types/v3.0.2/.editorconfig +13 -0
  30. package/.spago/arraybuffer-types/v3.0.2/.gitignore +9 -0
  31. package/.spago/arraybuffer-types/v3.0.2/.tidyrc.json +10 -0
  32. package/.spago/arrays/v7.0.0/.eslintrc.json +26 -0
  33. package/.spago/arrays/v7.0.0/.gitignore +9 -0
  34. package/.spago/assert/v6.0.0/.eslintrc.json +26 -0
  35. package/.spago/assert/v6.0.0/.gitignore +8 -0
  36. package/.spago/avar/v5.0.0/.editorconfig +13 -0
  37. package/.spago/avar/v5.0.0/.eslintrc.json +29 -0
  38. package/.spago/avar/v5.0.0/.gitignore +14 -0
  39. package/.spago/avar/v5.0.0/.tidyrc.json +10 -0
  40. package/.spago/bifunctors/v6.0.0/.gitignore +7 -0
  41. package/.spago/catenable-lists/v7.0.0/.gitignore +7 -0
  42. package/.spago/console/v6.0.0/.eslintrc.json +30 -0
  43. package/.spago/console/v6.0.0/.gitignore +9 -0
  44. package/.spago/const/v6.0.0/.gitignore +7 -0
  45. package/.spago/contravariant/v6.0.0/.gitignore +7 -0
  46. package/.spago/control/v6.0.0/.gitignore +7 -0
  47. package/.spago/datetime/v6.1.0/.eslintrc.json +26 -0
  48. package/.spago/datetime/v6.1.0/.gitignore +8 -0
  49. package/.spago/debug/v6.0.0/.eslintrc.json +36 -0
  50. package/.spago/debug/v6.0.0/.gitignore +8 -0
  51. package/.spago/distributive/v6.0.0/.gitignore +7 -0
  52. package/.spago/effect/v4.0.0/.eslintrc.json +26 -0
  53. package/.spago/effect/v4.0.0/.gitignore +8 -0
  54. package/.spago/either/v6.1.0/.gitignore +7 -0
  55. package/.spago/enums/v6.0.0/.gitignore +7 -0
  56. package/.spago/exceptions/v6.0.0/.eslintrc.json +26 -0
  57. package/.spago/exceptions/v6.0.0/.gitignore +8 -0
  58. package/.spago/exists/v6.0.0/.gitignore +7 -0
  59. package/.spago/filterable/v5.0.0/.gitignore +11 -0
  60. package/.spago/foldable-traversable/v6.0.0/.eslintrc.json +26 -0
  61. package/.spago/foldable-traversable/v6.0.0/.gitignore +8 -0
  62. package/.spago/foreign/v7.0.0/.eslintrc.json +26 -0
  63. package/.spago/foreign/v7.0.0/.gitignore +8 -0
  64. package/.spago/foreign-object/v4.0.0/.eslintrc.json +26 -0
  65. package/.spago/foreign-object/v4.0.0/.gitignore +8 -0
  66. package/.spago/fork/v6.0.0/.editorconfig +13 -0
  67. package/.spago/fork/v6.0.0/.gitignore +9 -0
  68. package/.spago/fork/v6.0.0/.tidyrc.json +10 -0
  69. package/.spago/form-urlencoded/v7.0.0/.editorconfig +13 -0
  70. package/.spago/form-urlencoded/v7.0.0/.gitignore +9 -0
  71. package/.spago/form-urlencoded/v7.0.0/.tidyrc.json +10 -0
  72. package/.spago/free/v7.0.0/.gitignore +8 -0
  73. package/.spago/functions/v6.0.0/.eslintrc.json +26 -0
  74. package/.spago/functions/v6.0.0/.gitignore +8 -0
  75. package/.spago/functors/v5.0.0/.gitignore +7 -0
  76. package/.spago/gen/v4.0.0/.gitignore +8 -0
  77. package/.spago/graphs/v8.0.0/.gitignore +7 -0
  78. package/.spago/http-methods/v6.0.0/.editorconfig +13 -0
  79. package/.spago/http-methods/v6.0.0/.gitignore +9 -0
  80. package/.spago/http-methods/v6.0.0/.tidyrc.json +10 -0
  81. package/.spago/identity/v6.0.0/.gitignore +7 -0
  82. package/.spago/integers/v6.0.0/.eslintrc.json +26 -0
  83. package/.spago/integers/v6.0.0/.gitignore +8 -0
  84. package/.spago/invariant/v6.0.0/.gitignore +7 -0
  85. package/.spago/js-date/v8.0.0/.editorconfig +13 -0
  86. package/.spago/js-date/v8.0.0/.eslintrc.json +29 -0
  87. package/.spago/js-date/v8.0.0/.gitignore +14 -0
  88. package/.spago/js-date/v8.0.0/.tidyrc.json +10 -0
  89. package/.spago/js-uri/v3.0.0/.eslintrc.json +30 -0
  90. package/.spago/js-uri/v3.0.0/.gitignore +14 -0
  91. package/.spago/js-uri/v3.0.0/.tidyrc.json +10 -0
  92. package/.spago/lazy/v6.0.0/.eslintrc.json +26 -0
  93. package/.spago/lazy/v6.0.0/.gitignore +8 -0
  94. package/.spago/lcg/v4.0.0/.gitignore +8 -0
  95. package/.spago/lists/v7.0.0/.gitignore +7 -0
  96. package/.spago/maybe/v6.0.0/.gitignore +7 -0
  97. package/.spago/media-types/v6.0.0/.editorconfig +13 -0
  98. package/.spago/media-types/v6.0.0/.gitignore +9 -0
  99. package/.spago/media-types/v6.0.0/.tidyrc.json +10 -0
  100. package/.spago/newtype/v5.0.0/.gitignore +7 -0
  101. package/.spago/node-buffer/v8.0.0/.eslintrc.json +26 -0
  102. package/.spago/node-buffer/v8.0.0/.gitignore +8 -0
  103. package/.spago/node-child-process/v9.0.0/.eslintrc.json +29 -0
  104. package/.spago/node-child-process/v9.0.0/.gitignore +8 -0
  105. package/.spago/node-fs/v9.1.0/.eslintrc.json +29 -0
  106. package/.spago/node-fs/v9.1.0/.gitignore +9 -0
  107. package/.spago/node-http/v8.0.0/.eslintrc.json +29 -0
  108. package/.spago/node-http/v8.0.0/.gitignore +8 -0
  109. package/.spago/node-net/v4.0.0/.eslintrc.json +29 -0
  110. package/.spago/node-net/v4.0.0/.gitignore +8 -0
  111. package/.spago/node-path/v5.0.0/.eslintrc.json +26 -0
  112. package/.spago/node-path/v5.0.0/.gitignore +8 -0
  113. package/.spago/node-process/v10.0.0/.eslintrc.json +29 -0
  114. package/.spago/node-process/v10.0.0/.gitignore +8 -0
  115. package/.spago/node-streams/v7.0.0/.eslintrc.json +29 -0
  116. package/.spago/node-streams/v7.0.0/.gitignore +8 -0
  117. package/.spago/node-url/v6.0.0/.eslintrc.json +26 -0
  118. package/.spago/node-url/v6.0.0/.gitignore +8 -0
  119. package/.spago/nonempty/v7.0.0/.gitignore +7 -0
  120. package/.spago/now/v6.0.0/.editorconfig +13 -0
  121. package/.spago/now/v6.0.0/.eslintrc.json +29 -0
  122. package/.spago/now/v6.0.0/.gitignore +14 -0
  123. package/.spago/now/v6.0.0/.tidyrc.json +10 -0
  124. package/.spago/nullable/v6.0.0/.editorconfig +13 -0
  125. package/.spago/nullable/v6.0.0/.eslintrc.json +29 -0
  126. package/.spago/nullable/v6.0.0/.gitignore +14 -0
  127. package/.spago/nullable/v6.0.0/.tidyrc.json +10 -0
  128. package/.spago/options/v7.0.0/.editorconfig +13 -0
  129. package/.spago/options/v7.0.0/.gitignore +9 -0
  130. package/.spago/options/v7.0.0/.tidyrc.json +10 -0
  131. package/.spago/optparse/v5.0.0/.gitignore +8 -0
  132. package/.spago/optparse/v5.0.0/.npmrc +1 -0
  133. package/.spago/ordered-collections/v3.0.0/.gitignore +8 -0
  134. package/.spago/orders/v6.0.0/.gitignore +7 -0
  135. package/.spago/parallel/v6.0.0/.gitignore +7 -0
  136. package/.spago/parsing/v10.0.0/.editorconfig +13 -0
  137. package/.spago/parsing/v10.0.0/.gitignore +10 -0
  138. package/.spago/parsing/v10.0.0/.tidyoperators +231 -0
  139. package/.spago/parsing/v10.0.0/.tidyrc.json +10 -0
  140. package/.spago/partial/v4.0.0/.eslintrc.json +26 -0
  141. package/.spago/partial/v4.0.0/.gitignore +8 -0
  142. package/.spago/pathy/v9.0.0/.editorconfig +13 -0
  143. package/.spago/pathy/v9.0.0/.gitignore +9 -0
  144. package/.spago/pathy/v9.0.0/.tidyrc.json +10 -0
  145. package/.spago/posix-types/v6.0.0/.gitignore +7 -0
  146. package/.spago/prelude/v6.0.0/.eslintrc.json +26 -0
  147. package/.spago/prelude/v6.0.0/.gitignore +8 -0
  148. package/.spago/profunctor/v6.0.0/.gitignore +7 -0
  149. package/.spago/profunctor-lenses/v8.0.0/.editorconfig +13 -0
  150. package/.spago/profunctor-lenses/v8.0.0/.gitignore +9 -0
  151. package/.spago/profunctor-lenses/v8.0.0/.tidyrc.json +10 -0
  152. package/.spago/psci-support/v6.0.0/.eslintrc.json +28 -0
  153. package/.spago/psci-support/v6.0.0/.gitignore +8 -0
  154. package/.spago/quickcheck/v8.0.1/.eslintrc.json +26 -0
  155. package/.spago/quickcheck/v8.0.1/.gitignore +8 -0
  156. package/.spago/random/v6.0.0/.eslintrc.json +26 -0
  157. package/.spago/random/v6.0.0/.gitignore +8 -0
  158. package/.spago/record/v4.0.0/.eslintrc.json +26 -0
  159. package/.spago/record/v4.0.0/.gitignore +8 -0
  160. package/.spago/refs/v6.0.0/.eslintrc.json +26 -0
  161. package/.spago/refs/v6.0.0/.gitignore +8 -0
  162. package/.spago/st/v6.0.0/.eslintrc.json +26 -0
  163. package/.spago/st/v6.0.0/.gitignore +8 -0
  164. package/.spago/strings/v6.0.0/.eslintrc.json +26 -0
  165. package/.spago/strings/v6.0.0/.gitignore +8 -0
  166. package/.spago/tailrec/v6.0.0/.gitignore +7 -0
  167. package/.spago/transformers/v6.0.0/.gitignore +7 -0
  168. package/.spago/tuples/v7.0.0/.gitignore +7 -0
  169. package/.spago/type-equality/v4.0.1/.gitignore +7 -0
  170. package/.spago/typelevel-prelude/v7.0.0/.gitignore +8 -0
  171. package/.spago/unfoldable/v6.0.0/.eslintrc.json +26 -0
  172. package/.spago/unfoldable/v6.0.0/.gitignore +8 -0
  173. package/.spago/unicode/v6.0.0/.editorconfig +13 -0
  174. package/.spago/unicode/v6.0.0/.gitattributes +2 -0
  175. package/.spago/unicode/v6.0.0/.gitignore +19 -0
  176. package/.spago/unicode/v6.0.0/.tidyrc.json +10 -0
  177. package/.spago/unsafe-coerce/v6.0.0/.eslintrc.json +26 -0
  178. package/.spago/unsafe-coerce/v6.0.0/.gitignore +8 -0
  179. package/.spago/web-dom/v6.0.0/.eslintrc.json +29 -0
  180. package/.spago/web-dom/v6.0.0/.gitignore +9 -0
  181. package/.spago/web-events/v4.0.0/.eslintrc.json +29 -0
  182. package/.spago/web-events/v4.0.0/.gitignore +8 -0
  183. package/.spago/web-file/v4.0.0/.eslintrc.json +29 -0
  184. package/.spago/web-file/v4.0.0/.gitignore +8 -0
  185. package/.spago/web-html/v4.0.0/.eslintrc.json +29 -0
  186. package/.spago/web-html/v4.0.0/.gitignore +8 -0
  187. package/.spago/web-storage/v5.0.0/.eslintrc.json +29 -0
  188. package/.spago/web-storage/v5.0.0/.gitignore +8 -0
  189. package/.spago/web-xhr/v5.0.0/.eslintrc.json +29 -0
  190. package/.spago/web-xhr/v5.0.0/.gitignore +8 -0
  191. package/LICENSE +1 -1
  192. package/README.md +13 -7
  193. package/dist/fluid/css/styles.css +343 -0
  194. package/dist/{article → fluid}/css/view-styles.css +66 -25
  195. package/dist/fluid/favicon.ico +0 -0
  196. package/dist/fluid/fluid/dataset/methane-emissions.fld +123 -0
  197. package/dist/{article/fluid/example/linked-inputs → fluid/fluid/dataset}/non-renewables.fld +1 -1
  198. package/dist/fluid/fluid/example/dict-list-comp.fld +1 -0
  199. package/dist/fluid/fluid/example/dicts.fld +10 -0
  200. package/dist/{article → fluid}/fluid/example/linked-inputs/energyscatter.fld +1 -1
  201. package/dist/{article → fluid}/fluid/example/linked-inputs/mini-energyscatter.fld +1 -1
  202. package/dist/{article → fluid}/fluid/example/linked-outputs/line-chart.fld +4 -2
  203. package/dist/fluid/fluid/example/linked-outputs/moving-average.fld +19 -0
  204. package/dist/fluid/fluid/example/linked-outputs/pairs-data.fld +1 -0
  205. package/dist/fluid/fluid/example/linked-outputs/pairs.fld +2 -0
  206. package/dist/fluid/fluid/example/percent.fld +1 -0
  207. package/dist/fluid/fluid/example/plot/methane.fld +14 -0
  208. package/dist/fluid/fluid/example/plot/non-renewables.fld +22 -0
  209. package/dist/fluid/fluid/example/slicing/convolution/edgeDetect.expect.fld +1 -0
  210. package/dist/fluid/fluid/example/slicing/convolution/edgeDetect.fld +1 -0
  211. package/dist/fluid/fluid/example/slicing/convolution/emboss-wrap.fld +1 -0
  212. package/dist/fluid/fluid/example/slicing/convolution/emboss.expect.fld +1 -0
  213. package/dist/fluid/fluid/example/slicing/convolution/emboss.fld +1 -0
  214. package/dist/fluid/fluid/example/slicing/convolution/gaussian.expect.fld +1 -0
  215. package/dist/fluid/fluid/example/slicing/convolution/gaussian.fld +1 -0
  216. package/dist/{article → fluid}/fluid/example/slicing/convolution/test-image.fld +1 -1
  217. package/dist/fluid/fluid/example/slicing/dict/create.expect.fld +2 -0
  218. package/dist/fluid/fluid/example/slicing/dict/create.fld +1 -0
  219. package/dist/fluid/fluid/example/slicing/dict/difference.expect.fld +4 -0
  220. package/dist/fluid/fluid/example/slicing/dict/difference.fld +3 -0
  221. package/dist/fluid/fluid/example/slicing/dict/disjointUnion.expect.fld +2 -0
  222. package/dist/fluid/fluid/example/slicing/dict/disjointUnion.fld +1 -0
  223. package/dist/fluid/fluid/example/slicing/dict/foldl.expect.fld +3 -0
  224. package/dist/fluid/fluid/example/slicing/dict/foldl.fld +1 -0
  225. package/dist/fluid/fluid/example/slicing/dict/get.expect.fld +5 -0
  226. package/dist/fluid/fluid/example/slicing/dict/get.fld +3 -0
  227. package/dist/fluid/fluid/example/slicing/dict/intersectionWith.expect.fld +5 -0
  228. package/dist/fluid/fluid/example/slicing/dict/intersectionWith.fld +4 -0
  229. package/dist/fluid/fluid/example/slicing/dict/map.expect.fld +8 -0
  230. package/dist/fluid/fluid/example/slicing/dict/map.fld +5 -0
  231. package/dist/fluid/fluid/example/slicing/dict/match.expect.fld +6 -0
  232. package/dist/fluid/fluid/example/slicing/dict/match.fld +5 -0
  233. package/dist/fluid/fluid/example/slicing/explained.expect.fld +1 -0
  234. package/dist/fluid/fluid/example/slicing/explained.fld +1 -0
  235. package/dist/{article → fluid}/fluid/example/slicing/linked-outputs/bar-chart-line-chart.fld +9 -6
  236. package/dist/{article → fluid}/fluid/example/slicing/linked-outputs/stacked-bar-scatter-plot.fld +8 -7
  237. package/dist/fluid/fluid/example/text-viz/datasets/ssp126.fld +898 -0
  238. package/dist/fluid/fluid/example/text-viz/datasets/ssp245.fld +954 -0
  239. package/dist/fluid/fluid/example/text-viz/datasets/ssp370.fld +842 -0
  240. package/dist/fluid/fluid/example/text-viz/datasets/ssp585.fld +954 -0
  241. package/dist/fluid/fluid/example/text-viz/explainable-table.fld +7 -0
  242. package/dist/fluid/fluid/example/text-viz/fake-probabilities.fld +3 -0
  243. package/dist/fluid/fluid/example/text-viz/figure-spm-4.fld +42 -0
  244. package/dist/fluid/fluid/example/text-viz/left-barchart-table.fld +5 -0
  245. package/dist/fluid/fluid/example/text-viz/likelihoods.fld +9 -0
  246. package/dist/fluid/fluid/example/text-viz/right-barchart-table.fld +5 -0
  247. package/dist/fluid/fluid/example/text-viz/table-spm-1.fld +30 -0
  248. package/dist/{article → fluid}/fluid/lib/prelude.fld +21 -1
  249. package/dist/{article/fluid/lib/nombre.fld → fluid/fluid/lib/text-viz.fld} +4 -0
  250. package/dist/fluid/fluid.mjs +28584 -0
  251. package/dist/fluid/font/GraphikLight.woff2 +0 -0
  252. package/dist/fluid/font/GraphikLightItalic.woff2 +0 -0
  253. package/dist/fluid/font/GraphikMedium.woff2 +0 -0
  254. package/dist/fluid/font/GraphikMediumItalic.woff2 +0 -0
  255. package/dist/fluid/font/OdiseanTech.woff2 +0 -0
  256. package/dist/fluid/load-fig.js +44294 -0
  257. package/dist/fluid/shared/footer.html +6 -0
  258. package/dist/fluid/shared/header.html +26 -0
  259. package/dist/fluid/shared/sub-header.html +12 -0
  260. package/dist/fluid/shared/util.js +72 -0
  261. package/index.js +44294 -0
  262. package/package.json +32 -30
  263. package/script/rebundle-website.sh +81 -0
  264. package/script/util/clean.sh +5 -0
  265. package/dist/article/app.js +0 -40580
  266. package/dist/article/css/styles.css +0 -191
  267. package/dist/article/fluid/example/dicts.fld +0 -11
  268. package/dist/article/fluid/example/graphics/small-barchart.fld +0 -5
  269. package/dist/article/fluid/example/linked-outputs/bar-chart-line-chart.fld +0 -26
  270. package/dist/article/fluid/example/linked-outputs/moving-average-data.fld +0 -9
  271. package/dist/article/fluid/example/linked-outputs/moving-average.fld +0 -15
  272. package/dist/article/fluid/example/linked-outputs/pairs-data.fld +0 -1
  273. package/dist/article/fluid/example/linked-outputs/pairs.fld +0 -3
  274. package/dist/article/fluid/example/linked-outputs/stacked-bar-chart-scatter-plot.fld +0 -38
  275. package/dist/article/fluid/example/slicing/convolution/edgeDetect.expect.fld +0 -1
  276. package/dist/article/fluid/example/slicing/convolution/edgeDetect.fld +0 -1
  277. package/dist/article/fluid/example/slicing/convolution/emboss-wrap.fld +0 -1
  278. package/dist/article/fluid/example/slicing/convolution/emboss.expect.fld +0 -1
  279. package/dist/article/fluid/example/slicing/convolution/emboss.fld +0 -1
  280. package/dist/article/fluid/example/slicing/convolution/gaussian.expect.fld +0 -1
  281. package/dist/article/fluid/example/slicing/convolution/gaussian.fld +0 -1
  282. package/dist/article/fluid/example/slicing/dict/create.expect.fld +0 -1
  283. package/dist/article/fluid/example/slicing/dict/create.fld +0 -1
  284. package/dist/article/fluid/example/slicing/dict/difference.expect.fld +0 -3
  285. package/dist/article/fluid/example/slicing/dict/difference.fld +0 -3
  286. package/dist/article/fluid/example/slicing/dict/disjointUnion.expect.fld +0 -1
  287. package/dist/article/fluid/example/slicing/dict/disjointUnion.fld +0 -1
  288. package/dist/article/fluid/example/slicing/dict/foldl.expect.fld +0 -1
  289. package/dist/article/fluid/example/slicing/dict/foldl.fld +0 -1
  290. package/dist/article/fluid/example/slicing/dict/fromRecord.expect.fld +0 -2
  291. package/dist/article/fluid/example/slicing/dict/fromRecord.fld +0 -1
  292. package/dist/article/fluid/example/slicing/dict/get.expect.fld +0 -3
  293. package/dist/article/fluid/example/slicing/dict/get.fld +0 -2
  294. package/dist/article/fluid/example/slicing/dict/intersectionWith.expect.fld +0 -2
  295. package/dist/article/fluid/example/slicing/dict/intersectionWith.fld +0 -4
  296. package/dist/article/fluid/example/slicing/dict/map.expect.fld +0 -6
  297. package/dist/article/fluid/example/slicing/dict/map.fld +0 -5
  298. package/dist/article/fluid/example/text.fld +0 -27
  299. package/dist/article/fluid/lib/moving-average.fld +0 -35
  300. package/dist/article/index.html +0 -44
  301. package/fluid.js +0 -46
  302. /package/dist/{article/fluid/example/linked-inputs → fluid/fluid/dataset}/mini-non-renewables.fld +0 -0
  303. /package/dist/{article/fluid/example/linked-inputs → fluid/fluid/dataset}/mini-renewables.fld +0 -0
  304. /package/dist/{article/fluid/example/linked-inputs/renewables.fld → fluid/fluid/dataset/renewables-new.fld} +0 -0
  305. /package/dist/{article → fluid}/fluid/dataset/renewables-restricted.fld +0 -0
  306. /package/dist/{article/fluid/example/linked-outputs → fluid/fluid/dataset}/renewables.fld +0 -0
  307. /package/dist/{article → fluid}/fluid/example/arithmetic.fld +0 -0
  308. /package/dist/{article → fluid}/fluid/example/array.fld +0 -0
  309. /package/dist/{article → fluid}/fluid/example/compose.fld +0 -0
  310. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-1.fld +0 -0
  311. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-10.fld +0 -0
  312. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-2.fld +0 -0
  313. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-3.fld +0 -0
  314. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-4.fld +0 -0
  315. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-5.fld +0 -0
  316. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-6.fld +0 -0
  317. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-7.fld +0 -0
  318. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-8.fld +0 -0
  319. /package/dist/{article → fluid}/fluid/example/desugar/list-comp-9.fld +0 -0
  320. /package/dist/{article → fluid}/fluid/example/desugar/list-enum.fld +0 -0
  321. /package/dist/{article → fluid}/fluid/example/div-mod-quot-rem.fld +0 -0
  322. /package/dist/{article → fluid}/fluid/example/factorial.fld +0 -0
  323. /package/dist/{article → fluid}/fluid/example/filter.fld +0 -0
  324. /package/dist/{article → fluid}/fluid/example/first-class-constr.fld +0 -0
  325. /package/dist/{article → fluid}/fluid/example/flatten.fld +0 -0
  326. /package/dist/{article → fluid}/fluid/example/foldr-sumSquares.fld +0 -0
  327. /package/dist/{article → fluid}/fluid/example/graphics/background.fld +0 -0
  328. /package/dist/{article → fluid}/fluid/example/graphics/grouped-bar-chart.fld +0 -0
  329. /package/dist/{article → fluid}/fluid/example/graphics/line-chart.fld +0 -0
  330. /package/dist/{article → fluid}/fluid/example/graphics/stacked-bar-chart.fld +0 -0
  331. /package/dist/{article → fluid}/fluid/example/include-input-into-output.fld +0 -0
  332. /package/dist/{article → fluid}/fluid/example/length.fld +0 -0
  333. /package/dist/{article → fluid}/fluid/example/lexicalScoping.fld +0 -0
  334. /package/dist/{article → fluid}/fluid/example/lib/some-constants.fld +0 -0
  335. /package/dist/{article → fluid}/fluid/example/linked-outputs/convolution-data.fld +0 -0
  336. /package/dist/{article → fluid}/fluid/example/linked-outputs/convolution.fld +0 -0
  337. /package/dist/{article → fluid}/fluid/example/lookup.fld +0 -0
  338. /package/dist/{article → fluid}/fluid/example/map.fld +0 -0
  339. /package/dist/{article → fluid}/fluid/example/mergeSort.fld +0 -0
  340. /package/dist/{article → fluid}/fluid/example/normalise.fld +0 -0
  341. /package/dist/{article → fluid}/fluid/example/nub.fld +0 -0
  342. /package/dist/{article → fluid}/fluid/example/pattern-match.fld +0 -0
  343. /package/dist/{article → fluid}/fluid/example/range.fld +0 -0
  344. /package/dist/{article → fluid}/fluid/example/record-lookup.fld +0 -0
  345. /package/dist/{article/fluid/example/linked-outputs/bar-chart-line-chart.expect.fld → fluid/fluid/example/records.expect.fld} +0 -0
  346. /package/dist/{article → fluid}/fluid/example/records.fld +0 -0
  347. /package/dist/{article → fluid}/fluid/example/reverse.fld +0 -0
  348. /package/dist/{article → fluid}/fluid/example/scratchpad.fld +0 -0
  349. /package/dist/{article → fluid}/fluid/example/slicing/add.expect.fld +0 -0
  350. /package/dist/{article → fluid}/fluid/example/slicing/add.fld +0 -0
  351. /package/dist/{article → fluid}/fluid/example/slicing/array/array.expect.fld +0 -0
  352. /package/dist/{article → fluid}/fluid/example/slicing/array/array.fld +0 -0
  353. /package/dist/{article → fluid}/fluid/example/slicing/array/dims.expect.fld +0 -0
  354. /package/dist/{article → fluid}/fluid/example/slicing/array/dims.fld +0 -0
  355. /package/dist/{article → fluid}/fluid/example/slicing/array/lookup.expect.fld +0 -0
  356. /package/dist/{article → fluid}/fluid/example/slicing/array/lookup.fld +0 -0
  357. /package/dist/{article/fluid/example/slicing/linked-outputs → fluid/fluid/example/slicing/array}/renewables.fld +0 -0
  358. /package/dist/{article → fluid}/fluid/example/slicing/convolution/filter/edge-detect.fld +0 -0
  359. /package/dist/{article → fluid}/fluid/example/slicing/convolution/filter/emboss.fld +0 -0
  360. /package/dist/{article → fluid}/fluid/example/slicing/convolution/filter/gaussian.fld +0 -0
  361. /package/dist/{article → fluid}/fluid/example/slicing/divide.expect.fld +0 -0
  362. /package/dist/{article → fluid}/fluid/example/slicing/divide.fld +0 -0
  363. /package/dist/{article → fluid}/fluid/example/slicing/dtw/average-series.expect.fld +0 -0
  364. /package/dist/{article → fluid}/fluid/example/slicing/dtw/average-series.fld +0 -0
  365. /package/dist/{article → fluid}/fluid/example/slicing/dtw/compute-dtw.expect.fld +0 -0
  366. /package/dist/{article → fluid}/fluid/example/slicing/dtw/compute-dtw.fld +0 -0
  367. /package/dist/{article → fluid}/fluid/example/slicing/filter.expect.fld +0 -0
  368. /package/dist/{article → fluid}/fluid/example/slicing/filter.fld +0 -0
  369. /package/dist/{article → fluid}/fluid/example/slicing/intersperse-1.expect.fld +0 -0
  370. /package/dist/{article → fluid}/fluid/example/slicing/intersperse-2.expect.fld +0 -0
  371. /package/dist/{article → fluid}/fluid/example/slicing/intersperse.fld +0 -0
  372. /package/dist/{article → fluid}/fluid/example/slicing/length.expect.fld +0 -0
  373. /package/dist/{article → fluid}/fluid/example/slicing/length.fld +0 -0
  374. /package/dist/{article → fluid}/fluid/example/slicing/linked-outputs/bar-chart-line-chart.expect.fld +0 -0
  375. /package/dist/{article → fluid}/fluid/example/slicing/linked-outputs/stacked-bar-scatter-plot.expect.fld +0 -0
  376. /package/dist/{article → fluid}/fluid/example/slicing/list-comp-1.expect.fld +0 -0
  377. /package/dist/{article → fluid}/fluid/example/slicing/list-comp-2.expect.fld +0 -0
  378. /package/dist/{article → fluid}/fluid/example/slicing/list-comp.fld +0 -0
  379. /package/dist/{article → fluid}/fluid/example/slicing/lookup.expect.fld +0 -0
  380. /package/dist/{article → fluid}/fluid/example/slicing/lookup.fld +0 -0
  381. /package/dist/{article → fluid}/fluid/example/slicing/map.expect.fld +0 -0
  382. /package/dist/{article → fluid}/fluid/example/slicing/map.fld +0 -0
  383. /package/dist/{article → fluid}/fluid/example/slicing/matrix-update.expect.fld +0 -0
  384. /package/dist/{article → fluid}/fluid/example/slicing/matrix-update.fld +0 -0
  385. /package/dist/{article → fluid}/fluid/example/slicing/multiply.expect.fld +0 -0
  386. /package/dist/{article → fluid}/fluid/example/slicing/multiply.fld +0 -0
  387. /package/dist/{article → fluid}/fluid/example/slicing/nth.expect.fld +0 -0
  388. /package/dist/{article → fluid}/fluid/example/slicing/nth.fld +0 -0
  389. /package/dist/{article → fluid}/fluid/example/slicing/output-not-source.expect.fld +0 -0
  390. /package/dist/{article → fluid}/fluid/example/slicing/output-not-source.fld +0 -0
  391. /package/dist/{article → fluid}/fluid/example/slicing/section-5-example-1.expect.fld +0 -0
  392. /package/dist/{article → fluid}/fluid/example/slicing/section-5-example-2.expect.fld +0 -0
  393. /package/dist/{article → fluid}/fluid/example/slicing/section-5-example-3.expect.fld +0 -0
  394. /package/dist/{article → fluid}/fluid/example/slicing/section-5-example.fld +0 -0
  395. /package/dist/{article → fluid}/fluid/example/slicing/zeros-1.expect.fld +0 -0
  396. /package/dist/{article → fluid}/fluid/example/slicing/zeros-2.expect.fld +0 -0
  397. /package/dist/{article → fluid}/fluid/example/slicing/zeros.fld +0 -0
  398. /package/dist/{article → fluid}/fluid/example/slicing/zipWith-1.expect.fld +0 -0
  399. /package/dist/{article → fluid}/fluid/example/slicing/zipWith.fld +0 -0
  400. /package/dist/{article → fluid}/fluid/lib/convolution.fld +0 -0
  401. /package/dist/{article → fluid}/fluid/lib/dtw.fld +0 -0
  402. /package/dist/{article → fluid}/fluid/lib/fnum.fld +0 -0
  403. /package/dist/{article → fluid}/fluid/lib/graphics.fld +0 -0
@@ -1,191 +0,0 @@
1
- @charset "UTF-8";
2
- @font-face {
3
- font-family: "Fira Code";
4
- src: url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
5
- }
6
-
7
- .glowing, a {
8
- transition: all .25s;
9
- }
10
-
11
- a:hover {
12
- text-shadow: 0 0 2px #FFF, 0 0 5px #A0A0FF, 0 0 7px #8080A0;
13
- }
14
-
15
- .nowrap {
16
- white-space: nowrap;
17
- }
18
-
19
- code {
20
- font-size: 11pt;
21
- }
22
-
23
- body {
24
- font-size: 11pt;
25
- font-family: "Roboto", sans-serif;
26
- font-weight: 300;
27
- line-height: 1.25;
28
- padding: 0;
29
- margin: 0;
30
- background-color: #FFFFFF; /* #181818; */
31
- color: #404040;
32
- margin-bottom: 10em;
33
- }
34
-
35
- .center {
36
- height: 100%;
37
- }
38
-
39
- .align-right {
40
- text-align: right;
41
- }
42
-
43
- .title {
44
- color: darkblue;
45
- }
46
-
47
- h3 {
48
- font-family: "Roboto", sans-serif;
49
- font-weight: 600;
50
- margin-top: 10pt;
51
- margin-bottom: 0;
52
- font-size: '24px'
53
- }
54
-
55
- h4 {
56
- margin-top: 10pt;
57
- margin-block-start: 1em;
58
- margin-bottom: 0;
59
- }
60
-
61
- .glowing {
62
- transition-timing-function: ease-out
63
- }
64
-
65
- a {
66
- text-decoration: none;
67
- color: inherit;
68
- transition-timing-function: ease-out
69
- }
70
-
71
- a.not_decorated,
72
- a:hover {
73
- text-decoration: none;
74
- }
75
-
76
- ul {
77
- padding-left: 0
78
- }
79
-
80
- li {
81
- margin-bottom: 1ex
82
- }
83
-
84
- li:last-child {
85
- margin-bottom: 0
86
- }
87
-
88
- table {
89
- margin: 4mm;
90
- }
91
-
92
- .table-caption {
93
- text-align: left;
94
- }
95
-
96
- th {
97
- font-size: 11px;
98
- text-align: left;
99
- border-bottom: 'thin solid';
100
- }
101
-
102
- td {
103
- font-size: 11px;
104
- }
105
-
106
- td:nth-child(1) {
107
- color: lightgray;
108
- }
109
-
110
- nav ul {
111
- list-style: none;
112
- }
113
-
114
- nav ul li {
115
- float: left;
116
- overflow: hidden;
117
- }
118
-
119
- nav ul li a {
120
- display: block;
121
- width: 100%;
122
- text-align: left;
123
- padding-right: 8px;
124
- text-decoration: none;
125
- }
126
-
127
- nav ul li a.active-page {
128
- text-shadow: 0 0 2px #FFF, 0 0 5px #A0A0FF, 0 0 7px #8080A0;
129
- }
130
-
131
- .cm-line {
132
- font-family: 'Fira Code';
133
- font-size: 8pt;
134
- }
135
-
136
- .grid-container {
137
- display: grid;
138
- width: 100%;
139
- grid-template-columns: 10px 47.5% fit-content(10px) 47.5%;
140
- }
141
-
142
- .flex-left-align {
143
- display: flex;
144
- flex-direction: column;
145
- align-items: start;
146
- }
147
-
148
- .flex-right-align {
149
- display: flex;
150
- flex-direction: column;
151
- align-items: flex-end;
152
- }
153
-
154
- .flex-bottom-align {
155
- display: flex;
156
- flex-direction: row;
157
- align-items: flex-end;
158
- }
159
-
160
- .data-pane-button {
161
- font-size: 9pt;
162
- }
163
-
164
- .toggle-button {
165
- color: #CCCCCC;
166
- user-select: none;
167
- }
168
-
169
- .toggle-button:hover {
170
- color: #999999;
171
- }
172
-
173
- .data-pane {
174
- background-color: #F5F5F5;
175
- }
176
-
177
- /* Standalone figures have hardcoded zoom for presentation purposes. */
178
- .double-size {
179
- zoom: 1.8;
180
- }
181
-
182
- body.standalone {
183
- height: 100%;
184
- display: grid; /* outer grid for vertical centering of inner */
185
- place-items: center;
186
- }
187
-
188
- /* Needed for contained height specifications to work */
189
- html {
190
- height: 100%;
191
- }
@@ -1,11 +0,0 @@
1
- let d = {||};
2
- e = {| "a" := 5, "a" ++ "b" := 6 |};
3
- f = {| "ab" := 12 |}
4
- in {
5
- d: d,
6
- e: e,
7
- e_ab: dict_get "ab" e,
8
- f: dict_map ((+) 1) e,
9
- g: dict_difference e f,
10
- h: dict_fromRecord {fst: 4, snd: [6, 7]}
11
- }
@@ -1,5 +0,0 @@
1
- let countryData = [ { x: "USA", bars: [ { y: "output", z: 196.7 } ] } ]
2
- in BarChart {
3
- caption: "Total output by country",
4
- data: countryData
5
- }
@@ -1,26 +0,0 @@
1
- MultiView {|
2
- "bar-chart" :=
3
- let totalFor c rows =
4
- sum [ row.output | row <- rows, row.country == c ];
5
- let data2015 = [ row | row <- renewables, row.year == 2015 ];
6
- countryData = [ { x: c, bars: [ { y: "output", z: totalFor c data2015 } ] }
7
- | c <- ["China", "USA", "Germany"] ]
8
- in BarChart {
9
- caption: "Total output by country",
10
- data: countryData
11
- },
12
- "line-chart" :=
13
- let series type country = [
14
- { x: row.year, y: row.output }
15
- | year <- [2013..2018], row <- renewables,
16
- row.year == year, row.energyType == type, row.country == country
17
- ] in LineChart {
18
- caption: "Output of USA relative to China",
19
- plots: [
20
- LinePlot { name: type, data: plot }
21
- | type <- ["Bio", "Hydro", "Solar", "Wind"],
22
- let plot = zipWith (fun p1 p2 -> { x: p1.x, y: p1.y / p2.y })
23
- (series type "USA") (series type "China")
24
- ]
25
- }
26
- |}
@@ -1,9 +0,0 @@
1
- [
2
- { x: 2010, y: 10 },
3
- { x: 2011, y: 14 },
4
- { x: 2012, y: 23 },
5
- { x: 2013, y: 34 },
6
- { x: 2014, y: 13 },
7
- { x: 2015, y: 65 },
8
- { x: 2016, y: 720 }
9
- ]
@@ -1,15 +0,0 @@
1
- let newPoints offset = map (fun point -> { x: point.x, y: (point.y + offset) }) points;
2
-
3
- let points' = newPoints 0;
4
- cavgs = mAvgChop points' 1;
5
- cavgs' = mAvgShrink points' 1;
6
- savgs = sAvgShrink points' 2
7
- in MultiView {|
8
- "line-chart-1" :=
9
- LineChart {
10
- caption: "Moving averages",
11
- plots: [ LinePlot { name: "Simple", data: savgs }
12
- , LinePlot { name: "Central", data: cavgs }
13
- , LinePlot { name: "Original Curve", data: points' } ]
14
- }
15
- |}
@@ -1 +0,0 @@
1
- (1, (2, (3, 4)))
@@ -1,3 +0,0 @@
1
- let q = 1 in
2
- ((fun (w, (x, (y, z))) -> (w + x, (x + y, y + z))) data,
3
- (fun (w, (x, (y, z))) -> (w + q, (x + q, (y + q, z + q)))) data)
@@ -1,38 +0,0 @@
1
- MultiView {|
2
- "stacked-bar-chart" :=
3
- let totalFor year country rows =
4
- let [ row ] = [ row | row <- rows, row.year == year, row.country == country ]
5
- in row.nuclearOut + row.gasOut + row.coalOut + row.petrolOut;
6
- let stack year = [ { y: country, z: totalFor year country nonRenewables }
7
- | country <- ["BRA", "EGY", "IND", "JPN"] ]
8
- in BarChart {
9
- caption: "Non-renewables by country",
10
- data: [ { x: numToStr year, bars: stack year }
11
- | year <- [2014..2018] ]
12
- },
13
- "scatter-plot" :=
14
- let isCountry name x = name == x.country;
15
- isYear year x = year == x.year;
16
-
17
- let plot year countries =
18
- let rens = filter (isYear year) renewables;
19
- nonRens = filter (isYear year) nonRenewables;
20
- let plotCountry country =
21
- let rens' = filter (isCountry country) rens;
22
- rensOut = sum (map (fun x -> x.output) rens');
23
- rensCap = sum (map (fun x -> x.capacity) rens');
24
- x = head (filter (isCountry country) nonRens);
25
- nonRensCap = x.nuclearCap + x.petrolCap + x.gasCap + x.coalCap
26
- in {
27
- x: rensCap / (rensCap + nonRensCap),
28
- y: (rensOut + x.nuclearOut) / (rensCap + x.nuclearCap)
29
- }
30
- in map plotCountry countries
31
-
32
- in ScatterPlot {
33
- caption: "Clean energy efficiency vs. proportion of renewable energy capacity",
34
- data: plot 2018 [ "BRA", "CHN", "DEU", "FRA", "EGY", "IND", "JPN", "MEX", "NGA", "USA" ],
35
- xlabel: "Renewables/TotalEnergyCap",
36
- ylabel: "Clean Capacity Factor"
37
- }
38
- |}
@@ -1 +0,0 @@
1
- convolve input_image filter extend
@@ -1 +0,0 @@
1
- convolve input_image filter extend
@@ -1 +0,0 @@
1
- convolve input_image filter wrap
@@ -1 +0,0 @@
1
- convolve input_image filter zero
@@ -1 +0,0 @@
1
- convolve input_image filter zero
@@ -1 +0,0 @@
1
- convolve input_image filter zero
@@ -1 +0,0 @@
1
- convolve input_image filter zero
@@ -1 +0,0 @@
1
- {|"a" := 5, ⸨"a"⸩ ++ ⸨"b"⸩ := 6|}
@@ -1 +0,0 @@
1
- {| "a" := 5, "a" ++ "b" := 6 |}
@@ -1,3 +0,0 @@
1
- let e = ⸨{|"a" := 5, "a" ++ "b" := 6|}⸩;
2
- f = ⸨{|"ab" := 12|}⸩ in
3
- dict_difference e f
@@ -1,3 +0,0 @@
1
- let e = {| "a" := 5, "a" ++ "b" := 6 |};
2
- f = {| "ab" := 12 |}
3
- in dict_difference e f
@@ -1 +0,0 @@
1
- {|⸨"a"⸩ := 5, "b" := 6|} `dict_disjointUnion` {|"c" := ⸨7⸩|}
@@ -1 +0,0 @@
1
- {| "a" := 5, "b" := 6 |} `dict_disjointUnion` {| "c" := 7 |}
@@ -1 +0,0 @@
1
- foldl (*) 1 (dict_foldl concat2 [] {|"a" := [5, 6], "b" := [⸨0⸩, 10], "c" := [3, 4]|})
@@ -1 +0,0 @@
1
- foldl (*) 1 (dict_foldl concat2 [] {| "a" := [5, 6], "b" := [0, 10], "c" := [3, 4] |})
@@ -1,2 +0,0 @@
1
- dict_fromRecord ⸨{a : 5,
2
- ab : 6}⸩
@@ -1 +0,0 @@
1
- dict_fromRecord { a: 5, ab: 6 }
@@ -1,3 +0,0 @@
1
- let d = {|"a" := 5, "a" ++ "b" := {fst : 6,
2
- snd : ⸨0⸩}|} in
3
- dict_get "a" d * (dict_get "ab" d).snd
@@ -1,2 +0,0 @@
1
- let d = {| "a" := 5, "a" ++ "b" := {fst: 6, snd: 0} |}
2
- in dict_get "a" d * (dict_get "ab" d).snd
@@ -1,2 +0,0 @@
1
- dict_intersectionWith (let x = ⸨2⸩ in
2
- (fun n m = (n + m) * x)) {|"a" := 5, "b" := ⸨6⸩, "c" := ⸨3⸩|} {|"b" := ⸨-6⸩, "c" := ⸨7⸩|}
@@ -1,4 +0,0 @@
1
- dict_intersectionWith
2
- (let x = 2 in (fun n m = (( n + m ) * x )) )
3
- {| "a" := 5, "b" := 6, "c" := 3 |}
4
- {| "b" := -6, "c" := 7 |}
@@ -1,6 +0,0 @@
1
- let incHead = let x = ⸨3⸩ in
2
- (fun xs = head xs + x);
3
- d = {|"a" := [⸨5⸩, 6], "b" := [⸨9⸩, 10], "c" := [3, 4]|};
4
- e = {|"c" := []|};
5
- d' = dict_map incHead (dict_difference d e) in
6
- dict_get "a" d' + dict_get "b" d'
@@ -1,5 +0,0 @@
1
- let incHead = let x = 3 in fun xs -> head xs + x;
2
- d = {| "a" := [5, 6], "b" := [9, 10], "c" := [3, 4] |};
3
- e = {| "c" := [] |};
4
- d' = dict_map incHead (dict_difference d e)
5
- in dict_get "a" d' + dict_get "b" d'
@@ -1,27 +0,0 @@
1
- let totalFor c rows =
2
- sum [ row.output | row <- rows, row.country == c ];
3
- let lookupOutput name type dataset = (head [ row | row <- dataset, row.country == name, row.energyType == type]).output;
4
- let data2015 = [ row | row <- renewables, row.year == 2015 ];
5
- countryData = [ { x: c, bars: [ { y: "output", z: totalFor c data2015 } ] }
6
- | c <- ["China", "USA", "Germany"] ];
7
- germany = lookupOutput "Germany" "Bio" data2015;
8
- usa = lookupOutput "USA" "Bio" data2015;
9
- china = lookupOutput "China" "Bio" data2015
10
- in MultiView {|
11
- "bar-chart" :=
12
- BarChart {
13
- caption: "Total output by country",
14
- data: countryData
15
- },
16
- "one" :=
17
- LinkedText( ["The total for the USA is: "
18
- , numToStr (totalFor "USA" data2015)
19
- , ", compared to that of China, which is actually: "
20
- , numToStr (totalFor "China" data2015) ] ),
21
- "two" :=
22
- LinkedText( ["By inspecting the data, we can see that Germany produced "
23
- , gradedLeqP germany usa
24
- , " Bio energy than the USA (for the year 2015), whilst the USA produced "
25
- , gradedLeqP usa china
26
- , " than China." ] )
27
- |}
@@ -1,35 +0,0 @@
1
- let zipPairs = zipWith (fun x y -> {x : x, y : y});
2
- let getXs = map (fun rec -> rec.x);
3
- let getYs = map (fun rec -> rec.y);
4
-
5
- -- ISSUE: With the ones that shrink, the values near the ends will be incorrect,
6
- -- since the actual number of points is less than the size of window (= 1 + (2 * window))
7
- -- To fix this, need to change the constant we divide by, but using length induces dependency on whole list
8
-
9
- -- Central average, but stops near the ends of the sequence
10
- let cMAvg ns window =
11
- [ (sum (slice (ind - window) (ind + window + 1) ns)) / (1 + 2 * window) | ind <- [window..length ns - window] ];
12
-
13
- let mAvgChop ps window =
14
- zipPairs (slice window (length ps - window) (getXs ps)) (cMAvg (getYs ps) window);
15
-
16
- -- Central average, but end points use incomplete data
17
- let cMAvg' ns window =
18
- [ (sum (slice (ind - window) (ind + window + 1) ns)) / (1 + 2 * window) | ind <- [0..length ns] ];
19
-
20
- let mAvgShrink ps window =
21
- zipPairs (getXs ps) (cMAvg' (getYs ps) window);
22
-
23
- -- Simple (rearward) average, chops the beginning off the sequence
24
- let sMAvg ns window =
25
- [ (sum (slice (ind - window) (ind + 1) ns)) / window | ind <- [window..length ns] ];
26
-
27
- let sAvgChop ps window =
28
- zipPairs (slice window (length ps) (getXs ps)) (sMAvg (getYs ps) window);
29
-
30
- -- Simple (rearward average), doesn't chop beginning off
31
- let sMAvg' ns window =
32
- [ (sum (slice (ind - window) (ind + 1) ns)) / window | ind <- [0..length ns] ];
33
-
34
- let sAvgShrink ps window =
35
- zipPairs (getXs ps) (sMAvg' (getYs ps) window);
@@ -1,44 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <title>Fluid: Data-Linked Visualisations</title>
8
- <link href="/css/styles.css" rel="stylesheet" type="text/css">
9
- <link href="/css/view-styles.css" rel="stylesheet" type="text/css">
10
- <script src="https://use.fontawesome.com/1091715d00.js"></script>
11
- <script>
12
- // move to PureScript
13
- function toggle(id) {
14
- const elem = document.getElementById(id)
15
- if (elem.style.visibility == 'hidden')
16
- elem.style.visibility = 'visible'
17
- else
18
- elem.style.visibility = 'hidden'
19
- }
20
- </script>
21
- </head>
22
- <body class="standalone">
23
- <div class="grid-container double-size">
24
- <div></div>
25
- <div></div>
26
- <div></div>
27
- <div></div>
28
- <div></div>
29
- <div id="fig-input" class="flex-right-align data-pane"></div>
30
- <div>
31
- <div onclick="toggle('fig-input')"><span class="data-pane-button toggle-button">◀▶</span></div>
32
- </div>
33
- <div class="flex-left-align">
34
- <div id="fig"></div>
35
- </div>
36
- </div>
37
-
38
- <script src="app.js"></script>
39
- <script>
40
- // move to PureScript
41
- toggle('fig-input')
42
- </script>
43
- </body>
44
- </html>
package/fluid.js DELETED
@@ -1,46 +0,0 @@
1
- #!/usr/bin/env node
2
- const { program } = require('commander');
3
- const fs = require('node:fs');
4
- const webFS = require('fs').promises;
5
- const filenameRegex = /\w+\.yml/ //may need to expand character set
6
- const express = require('express');
7
- const serve = require('express-static');
8
-
9
- const app = express();
10
- const host = '127.0.0.1';
11
- const port = 8080;
12
-
13
- program.command('load')
14
- .arguments('<file>')
15
- .action(function(file)
16
- {
17
- if (file.match(filenameRegex) != null)
18
- {
19
- try
20
- {
21
- //read data stream if file is large
22
- //const data = fs.readFileSync(__dirname + "/" + file, 'utf8');
23
- const data = fs.readFileSync(process.cwd() + "/" + file, 'utf8'); //assuming file is located at command line's current directory
24
- console.log(data);
25
-
26
- app.use(serve(__dirname + '/dist/article'));
27
-
28
- const server = app.listen(port, host, function()
29
- {
30
- console.log("Server running: " + __dirname + '/dist/article\n' +
31
- `Access on http://${host}:${port}`
32
- );
33
- })
34
- }
35
- catch (err)
36
- {
37
- console.error(err);
38
- }
39
- }
40
- else
41
- {
42
- console.error("Invalid input file: Must be a .yml file.")
43
- }
44
- });
45
-
46
- program.parse()
File without changes