@explorable-viz/fluid 0.12.2 → 0.12.3

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 (236) hide show
  1. package/dist/fluid/shared/fluid.mjs +478 -438
  2. package/dist/fluid/shared/load-figure.js +3193 -2969
  3. package/package.json +12 -26
  4. package/script/install-website.sh +27 -9
  5. package/web/lib/CodeMirror.svelte +19 -0
  6. package/web/lib/DataPane.svelte +46 -0
  7. package/web/lib/Figure.svelte +38 -0
  8. package/web/lib/FigureSrc.svelte +35 -0
  9. package/web/lib/Grid.svelte +32 -0
  10. package/web/lib/index.js +5 -0
  11. package/web/lib/view-styles.css +262 -0
  12. package/website/article/eslint.config.js +45 -0
  13. package/website/article/package.json +46 -0
  14. package/website/article/src/app.d.ts +13 -0
  15. package/website/article/src/app.html +12 -0
  16. package/website/article/src/lib/assets/css/styles.css +245 -0
  17. package/website/article/src/lib/assets/image/bristol.png +0 -0
  18. package/website/article/src/lib/assets/image/fluid.png +0 -0
  19. package/website/article/src/lib/assets/image/iccs.png +0 -0
  20. package/website/article/src/lib/assets/image/schmidt.png +0 -0
  21. package/website/article/src/lib/assets/image/turing.jpg +0 -0
  22. package/website/article/src/lib/config/nav.ts +7 -0
  23. package/website/article/src/lib/config/supporters.ts +27 -0
  24. package/website/article/src/routes/+layout.svelte +15 -0
  25. package/website/article/src/routes/+layout.ts +1 -0
  26. package/website/article/{index.html → src/routes/+page.svelte} +8 -17
  27. package/website/article/src/routes/convolution/+page.svelte +62 -0
  28. package/website/article/src/routes/energy-scatter/+page.svelte +34 -0
  29. package/website/article/src/routes/methane/+page.svelte +35 -0
  30. package/website/article/src/routes/moving-average/+page.svelte +57 -0
  31. package/website/article/src/routes/non-renewables/+page.svelte +40 -0
  32. package/website/article/src/routes/renewables-linked/+page.svelte +34 -0
  33. package/website/article/src/routes/scigen-1805.02474v1-10/+page.svelte +40 -0
  34. package/website/article/static/fluid/lib/graphics.fld +274 -0
  35. package/website/article/static/fluid/lib/matrix.fld +40 -0
  36. package/website/article/static/fluid/lib/prelude.fld +348 -0
  37. package/website/article/static/fluid/lib/stats.fld +83 -0
  38. package/website/article/svelte.config.js +13 -0
  39. package/website/article/test.mjs +66 -11
  40. package/website/article/tsconfig.json +20 -0
  41. package/website/article/vite.config.ts +6 -0
  42. package/.spago/aff/v7.1.0/.editorconfig +0 -13
  43. package/.spago/aff/v7.1.0/.eslintrc.json +0 -28
  44. package/.spago/aff/v7.1.0/.gitignore +0 -14
  45. package/.spago/aff/v7.1.0/.tidyrc.json +0 -10
  46. package/.spago/affjax/v13.0.0/.editorconfig +0 -13
  47. package/.spago/affjax/v13.0.0/.eslintrc.json +0 -28
  48. package/.spago/affjax/v13.0.0/.gitignore +0 -14
  49. package/.spago/affjax/v13.0.0/.tidyrc.json +0 -10
  50. package/.spago/affjax-web/v1.0.0/.editorconfig +0 -13
  51. package/.spago/affjax-web/v1.0.0/.eslintrc.json +0 -30
  52. package/.spago/affjax-web/v1.0.0/.gitignore +0 -14
  53. package/.spago/affjax-web/v1.0.0/.tidyrc.json +0 -10
  54. package/.spago/argonaut-codecs/v9.1.0/.editorconfig +0 -13
  55. package/.spago/argonaut-codecs/v9.1.0/.gitignore +0 -9
  56. package/.spago/argonaut-codecs/v9.1.0/.tidyrc.json +0 -10
  57. package/.spago/argonaut-core/v7.0.0/.editorconfig +0 -13
  58. package/.spago/argonaut-core/v7.0.0/.eslintrc.json +0 -29
  59. package/.spago/argonaut-core/v7.0.0/.gitignore +0 -14
  60. package/.spago/argonaut-core/v7.0.0/.tidyrc.json +0 -10
  61. package/.spago/arraybuffer-types/v3.0.2/.editorconfig +0 -13
  62. package/.spago/arraybuffer-types/v3.0.2/.gitignore +0 -9
  63. package/.spago/arraybuffer-types/v3.0.2/.tidyrc.json +0 -10
  64. package/.spago/arrays/v7.2.1/.eslintrc.json +0 -26
  65. package/.spago/arrays/v7.2.1/.gitignore +0 -9
  66. package/.spago/assert/v6.0.0/.eslintrc.json +0 -26
  67. package/.spago/assert/v6.0.0/.gitignore +0 -8
  68. package/.spago/bifunctors/v6.0.0/.gitignore +0 -7
  69. package/.spago/catenable-lists/v7.0.0/.gitignore +0 -7
  70. package/.spago/console/v6.1.0/.eslintrc.json +0 -30
  71. package/.spago/console/v6.1.0/.gitignore +0 -9
  72. package/.spago/const/v6.0.0/.gitignore +0 -7
  73. package/.spago/contravariant/v6.0.0/.gitignore +0 -7
  74. package/.spago/control/v6.0.0/.gitignore +0 -7
  75. package/.spago/datetime/v6.1.0/.eslintrc.json +0 -26
  76. package/.spago/datetime/v6.1.0/.gitignore +0 -8
  77. package/.spago/debug/v6.0.2/.eslintrc.json +0 -36
  78. package/.spago/debug/v6.0.2/.gitignore +0 -8
  79. package/.spago/distributive/v6.0.0/.gitignore +0 -7
  80. package/.spago/effect/v4.0.0/.eslintrc.json +0 -26
  81. package/.spago/effect/v4.0.0/.gitignore +0 -8
  82. package/.spago/either/v6.1.0/.gitignore +0 -7
  83. package/.spago/enums/v6.0.1/.gitignore +0 -7
  84. package/.spago/exceptions/v6.0.0/.eslintrc.json +0 -26
  85. package/.spago/exceptions/v6.0.0/.gitignore +0 -8
  86. package/.spago/exists/v6.0.0/.gitignore +0 -7
  87. package/.spago/filterable/v5.0.0/.gitignore +0 -11
  88. package/.spago/foldable-traversable/v6.0.0/.eslintrc.json +0 -26
  89. package/.spago/foldable-traversable/v6.0.0/.gitignore +0 -8
  90. package/.spago/foreign/v7.0.0/.eslintrc.json +0 -26
  91. package/.spago/foreign/v7.0.0/.gitignore +0 -8
  92. package/.spago/foreign-object/v4.1.0/.eslintrc.json +0 -26
  93. package/.spago/foreign-object/v4.1.0/.gitignore +0 -8
  94. package/.spago/form-urlencoded/v7.0.0/.editorconfig +0 -13
  95. package/.spago/form-urlencoded/v7.0.0/.gitignore +0 -9
  96. package/.spago/form-urlencoded/v7.0.0/.tidyrc.json +0 -10
  97. package/.spago/free/v7.1.0/.gitignore +0 -8
  98. package/.spago/functions/v6.0.0/.eslintrc.json +0 -26
  99. package/.spago/functions/v6.0.0/.gitignore +0 -8
  100. package/.spago/functors/v5.0.0/.gitignore +0 -7
  101. package/.spago/gen/v4.0.0/.gitignore +0 -8
  102. package/.spago/graphs/v8.1.0/.gitignore +0 -7
  103. package/.spago/http-methods/v6.0.0/.editorconfig +0 -13
  104. package/.spago/http-methods/v6.0.0/.gitignore +0 -9
  105. package/.spago/http-methods/v6.0.0/.tidyrc.json +0 -10
  106. package/.spago/identity/v6.0.0/.gitignore +0 -7
  107. package/.spago/integers/v6.0.0/.eslintrc.json +0 -26
  108. package/.spago/integers/v6.0.0/.gitignore +0 -8
  109. package/.spago/invariant/v6.0.0/.gitignore +0 -7
  110. package/.spago/js-date/v8.0.0/.editorconfig +0 -13
  111. package/.spago/js-date/v8.0.0/.eslintrc.json +0 -29
  112. package/.spago/js-date/v8.0.0/.gitignore +0 -14
  113. package/.spago/js-date/v8.0.0/.tidyrc.json +0 -10
  114. package/.spago/js-uri/v3.1.0/.eslintrc.json +0 -30
  115. package/.spago/js-uri/v3.1.0/.gitignore +0 -14
  116. package/.spago/js-uri/v3.1.0/.tidyrc.json +0 -10
  117. package/.spago/lazy/v6.0.0/.eslintrc.json +0 -26
  118. package/.spago/lazy/v6.0.0/.gitignore +0 -8
  119. package/.spago/lcg/v4.0.0/.gitignore +0 -8
  120. package/.spago/lists/v7.0.0/.gitignore +0 -7
  121. package/.spago/maybe/v6.0.0/.gitignore +0 -7
  122. package/.spago/media-types/v6.0.0/.editorconfig +0 -13
  123. package/.spago/media-types/v6.0.0/.gitignore +0 -9
  124. package/.spago/media-types/v6.0.0/.tidyrc.json +0 -10
  125. package/.spago/newtype/v5.0.0/.gitignore +0 -7
  126. package/.spago/node-buffer/v9.0.0/.eslintrc.json +0 -26
  127. package/.spago/node-buffer/v9.0.0/.gitignore +0 -8
  128. package/.spago/node-fs/v9.1.0/.eslintrc.json +0 -29
  129. package/.spago/node-fs/v9.1.0/.gitignore +0 -9
  130. package/.spago/node-path/v5.0.0/.eslintrc.json +0 -26
  131. package/.spago/node-path/v5.0.0/.gitignore +0 -8
  132. package/.spago/node-process/v11.2.0/.eslintrc.json +0 -29
  133. package/.spago/node-process/v11.2.0/.gitignore +0 -8
  134. package/.spago/node-streams/v9.0.0/.eslintrc.json +0 -29
  135. package/.spago/node-streams/v9.0.0/.gitignore +0 -8
  136. package/.spago/nonempty/v7.0.0/.gitignore +0 -7
  137. package/.spago/now/v6.0.0/.editorconfig +0 -13
  138. package/.spago/now/v6.0.0/.eslintrc.json +0 -29
  139. package/.spago/now/v6.0.0/.gitignore +0 -14
  140. package/.spago/now/v6.0.0/.tidyrc.json +0 -10
  141. package/.spago/nullable/v6.0.0/.editorconfig +0 -13
  142. package/.spago/nullable/v6.0.0/.eslintrc.json +0 -29
  143. package/.spago/nullable/v6.0.0/.gitignore +0 -14
  144. package/.spago/nullable/v6.0.0/.tidyrc.json +0 -10
  145. package/.spago/optparse/v6.0.0/.gitignore +0 -8
  146. package/.spago/optparse/v6.0.0/.npmrc +0 -1
  147. package/.spago/ordered-collections/v3.1.1/.gitignore +0 -8
  148. package/.spago/orders/v6.0.0/.gitignore +0 -7
  149. package/.spago/parallel/v7.0.0/.gitignore +0 -7
  150. package/.spago/parsing/v10.3.1/.editorconfig +0 -13
  151. package/.spago/parsing/v10.3.1/.gitignore +0 -12
  152. package/.spago/parsing/v10.3.1/.tidyoperators +0 -231
  153. package/.spago/parsing/v10.3.1/.tidyrc.json +0 -10
  154. package/.spago/partial/v4.0.0/.eslintrc.json +0 -26
  155. package/.spago/partial/v4.0.0/.gitignore +0 -8
  156. package/.spago/posix-types/v6.0.0/.gitignore +0 -7
  157. package/.spago/prelude/v6.0.1/.eslintrc.json +0 -26
  158. package/.spago/prelude/v6.0.1/.gitignore +0 -8
  159. package/.spago/profunctor/v6.0.0/.gitignore +0 -7
  160. package/.spago/psci-support/v6.0.0/.eslintrc.json +0 -28
  161. package/.spago/psci-support/v6.0.0/.gitignore +0 -8
  162. package/.spago/quickcheck/v8.0.1/.eslintrc.json +0 -26
  163. package/.spago/quickcheck/v8.0.1/.gitignore +0 -8
  164. package/.spago/random/v6.0.0/.eslintrc.json +0 -26
  165. package/.spago/random/v6.0.0/.gitignore +0 -8
  166. package/.spago/record/v4.0.0/.eslintrc.json +0 -26
  167. package/.spago/record/v4.0.0/.gitignore +0 -8
  168. package/.spago/refs/v6.0.0/.eslintrc.json +0 -26
  169. package/.spago/refs/v6.0.0/.gitignore +0 -8
  170. package/.spago/st/v6.2.0/.eslintrc.json +0 -26
  171. package/.spago/st/v6.2.0/.gitignore +0 -8
  172. package/.spago/strings/v6.0.1/.eslintrc.json +0 -26
  173. package/.spago/strings/v6.0.1/.gitignore +0 -8
  174. package/.spago/tailrec/v6.1.0/.gitignore +0 -7
  175. package/.spago/transformers/v6.0.0/.gitignore +0 -7
  176. package/.spago/tuples/v7.0.0/.gitignore +0 -7
  177. package/.spago/type-equality/v4.0.1/.gitignore +0 -7
  178. package/.spago/typelevel-prelude/v7.0.0/.gitignore +0 -8
  179. package/.spago/unfoldable/v6.0.0/.eslintrc.json +0 -26
  180. package/.spago/unfoldable/v6.0.0/.gitignore +0 -8
  181. package/.spago/unicode/v6.0.0/.editorconfig +0 -13
  182. package/.spago/unicode/v6.0.0/.gitattributes +0 -2
  183. package/.spago/unicode/v6.0.0/.gitignore +0 -19
  184. package/.spago/unicode/v6.0.0/.tidyrc.json +0 -10
  185. package/.spago/unsafe-coerce/v6.0.0/.eslintrc.json +0 -26
  186. package/.spago/unsafe-coerce/v6.0.0/.gitignore +0 -8
  187. package/.spago/web-dom/v6.0.0/.eslintrc.json +0 -29
  188. package/.spago/web-dom/v6.0.0/.gitignore +0 -9
  189. package/.spago/web-events/v4.0.0/.eslintrc.json +0 -29
  190. package/.spago/web-events/v4.0.0/.gitignore +0 -8
  191. package/.spago/web-file/v4.0.0/.eslintrc.json +0 -29
  192. package/.spago/web-file/v4.0.0/.gitignore +0 -8
  193. package/.spago/web-html/v4.1.0/.eslintrc.json +0 -29
  194. package/.spago/web-html/v4.1.0/.gitignore +0 -8
  195. package/.spago/web-storage/v5.0.0/.eslintrc.json +0 -29
  196. package/.spago/web-storage/v5.0.0/.gitignore +0 -8
  197. package/.spago/web-xhr/v5.0.1/.eslintrc.json +0 -29
  198. package/.spago/web-xhr/v5.0.1/.gitignore +0 -8
  199. package/LICENSE +0 -21
  200. package/README.md +0 -95
  201. package/dist/fluid/shared/website-test.js +0 -41
  202. package/dist/fluid/shared/webtest-lib.js +0 -300023
  203. package/script/bundle-website.sh +0 -52
  204. package/script/util/clean.sh +0 -5
  205. package/script/util/lisp-case.sh +0 -10
  206. package/website/article/convolution/index.html +0 -97
  207. package/website/article/css/styles.css +0 -325
  208. package/website/article/css/view-styles.css +0 -205
  209. package/website/article/energy-scatter/index.html +0 -47
  210. package/website/article/methane/index.html +0 -46
  211. package/website/article/moving-average/index.html +0 -64
  212. package/website/article/non-renewables/index.html +0 -52
  213. package/website/article/renewables-linked/index.html +0 -46
  214. package/website/article/scigen-1805.02474v1-10/index.html +0 -54
  215. package/website/article/shared/util.js +0 -15
  216. /package/website/article/{favicon.ico → src/lib/assets/image/favicon.ico} +0 -0
  217. /package/website/article/{dataset → static/dataset}/SciGen/1805.02474v1-10.json +0 -0
  218. /package/website/article/{dataset → static/dataset}/methane-emissions.json +0 -0
  219. /package/website/article/{dataset → static/dataset}/non-renewables.json +0 -0
  220. /package/website/article/{dataset → static/dataset}/renewable-new.json +0 -0
  221. /package/website/article/{dataset → static/dataset}/renewable.json +0 -0
  222. /package/website/article/{fluid → static/fluid}/1805.02474v1-10.fld +0 -0
  223. /package/website/article/{fluid → static/fluid}/bar-chart-line-chart.fld +0 -0
  224. /package/website/article/{fluid → static/fluid}/convolution/emboss.fld +0 -0
  225. /package/website/article/{fluid → static/fluid}/convolution/testImage.fld +0 -0
  226. /package/website/article/{fluid → static/fluid}/convolution.fld +0 -0
  227. /package/website/article/{fluid → static/fluid}/dataset/scigen/_1805_02474v1_10.fld +0 -0
  228. /package/website/article/{fluid → static/fluid}/energyscatter.fld +0 -0
  229. /package/website/article/{fluid → static/fluid}/methane.fld +0 -0
  230. /package/website/article/{fluid → static/fluid}/methane_data.fld +0 -0
  231. /package/website/article/{fluid → static/fluid}/moving-average.fld +0 -0
  232. /package/website/article/{fluid → static/fluid}/non-renewables.fld +0 -0
  233. /package/website/article/{fluid → static/fluid}/nonRenewables.fld +0 -0
  234. /package/website/article/{fluid → static/fluid}/renewables.fld +0 -0
  235. /package/website/article/{fluid → static/fluid}/scigen.fld +0 -0
  236. /package/website/article/{fluid → static/fluid}/util.fld +0 -0
@@ -0,0 +1,83 @@
1
+ def split([]): ([], [])
2
+ def split(x :| xs):
3
+ def (ys, zs): split(xs)
4
+ (x :| zs, ys)
5
+
6
+ def merge(xs, ys):
7
+ match (xs, ys):
8
+ case ([], _): ys
9
+ case (x :| xs_, []): xs
10
+ case (x :| xs_, y :| ys_):
11
+ if x < y: x :| merge(xs_, ys)
12
+ else: y :| merge(xs, ys_)
13
+
14
+ def mergesort(xs):
15
+ if length(xs) < 2: xs
16
+ else:
17
+ def (ys, zs): split(xs)
18
+ merge(mergesort(ys), mergesort(zs))
19
+
20
+ def find_quantile(q, p, xs):
21
+ def rank:
22
+ (p / q) * (length(xs) - 1)
23
+
24
+ if rank == floor(rank):
25
+ nth(rank, xs)
26
+ else:
27
+ def x1: floor(rank)
28
+ def x2: ceiling(rank)
29
+ def left: nth(x1, xs)
30
+ def right: nth(x2, xs)
31
+ left + (rank - x1) * (right - left)
32
+
33
+ def find_percentile: find_quantile(100)
34
+
35
+ def accum_bins(data, Nil): []
36
+ def accum_bins(data, [l]): []
37
+ def accum_bins(data, l :| r :| es):
38
+ def (ge, le):
39
+ split_on(lambda x: x <= r, data)
40
+ (le, r - l) :| accum_bins(ge, r :| es)
41
+
42
+ def cut(xs, nbins):
43
+ def low: minimum(xs)
44
+ def binwidth:
45
+ (maximum(xs) - low) / nbins
46
+ def edges:
47
+ [low + x * binwidth for x in [0 .. nbins]]
48
+
49
+ accum_bins(xs, edges)
50
+
51
+ def qcut(xs, qs):
52
+ def (low, high):
53
+ (minimum(xs), maximum(xs))
54
+ def edges:
55
+ append((low :| [find_percentile(x, xs) for x in qs], [high]))
56
+
57
+ accum_bins(xs, edges)
58
+
59
+ def likelihood_le(xs, target):
60
+ length(filter(lambda x: x <= target, xs)) / length(xs)
61
+
62
+ def likelihood_ge(xs, target):
63
+ length(filter(lambda x: x >= target, xs)) / length(xs)
64
+
65
+ def likelihood_map(table, prob):
66
+ from_some(find(lambda x: x.prob <= prob, table)).msg
67
+
68
+ def mk_percent(num):
69
+ num_to_str(num * 100) ++ "%"
70
+
71
+ def leq_p(n, m):
72
+ if n <= m: "less"
73
+ else: "more"
74
+
75
+ def graded_leq_p(n, m):
76
+ def ratio: n / m
77
+
78
+ if ratio <= 1.0:
79
+ if ratio <= 0.5: "much less"
80
+ else: "less"
81
+ else:
82
+ if ratio >= 2.0: "much more"
83
+ else: "more"
@@ -0,0 +1,13 @@
1
+ import adapter from '@sveltejs/adapter-static';
2
+ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3
+
4
+ /** @type {import('@sveltejs/kit').Config} */
5
+ const config = {
6
+ preprocess: vitePreprocess(),
7
+
8
+ kit: {
9
+ adapter: adapter()
10
+ }
11
+ };
12
+
13
+ export default config;
@@ -1,14 +1,69 @@
1
- import { runTests, testURL, waitFor } from "./shared/webtest-lib.js"
1
+ import {
2
+ checkAttribute, checkAttributeContains, checkComputedStyle, checkTextContent,
3
+ click, clickToggle, testURL, waitFor
4
+ } from "../../script/webtest-lib.mjs"
2
5
 
3
6
  export const main = async () => {
4
- await runTests(testURL("convolution")([ page => waitFor("svg#fig-output")(page) ]))()
5
- const point = "div#fig .scatterplot-point"
6
- await runTests(testURL("methane")([ page => waitFor("#fig svg:nth-of-type(1)")(page) ]))()
7
- await runTests(testURL("moving-average")([ page => waitFor("svg")(page) ]))()
8
- await runTests(testURL("non-renewables")([
9
- page => waitFor("#fig-output > svg:nth-of-type(1)")(page),
10
- page => waitFor("#fig-output > svg:nth-of-type(2)")(page),
11
- ]))()
12
- await runTests(testURL("renewables-linked")([page => waitFor("#fig-output > svg:nth-of-type(1)")(page)]))()
13
- await runTests(testURL("scigen-1805.02474v1-10")([ page => waitFor("div#fig-output")(page) ]))()
7
+ await testURL("convolution", [
8
+ async page => await waitFor(page, "svg#fig-output")
9
+ ])
10
+
11
+ await testURL("energy-scatter", [
12
+ async page => {
13
+ await waitFor(page, "svg")
14
+ await clickToggle(page)
15
+
16
+ const point = "div#fig .scatterplot-point"
17
+ await waitFor(page, point)
18
+ await click(page, point)
19
+ await checkAttributeContains(page, point, "class", "selected-primary-persistent")
20
+ await checkAttribute(page, point, "r", "3.2")
21
+
22
+ const caption = "div#fig-input-renewables > div.table-caption"
23
+ await checkTextContent(page, caption, "renewables (40 of 240 × 5 of 5)")
24
+ }
25
+ ])
26
+
27
+ await testURL("methane", [
28
+ async page => await waitFor(page, "#fig svg:nth-of-type(1)")
29
+ ])
30
+
31
+ await testURL("moving-average", [
32
+ async page => await waitFor(page, "svg")
33
+ ])
34
+
35
+ await testURL("non-renewables", [
36
+ async page => await waitFor(page, "#fig-output > svg:nth-of-type(1)"),
37
+ async page => await waitFor(page, "#fig-output > svg:nth-of-type(2)"),
38
+ ])
39
+
40
+ await testURL("renewables-linked", [
41
+ async page => {
42
+ const barChart = "#fig-output > :nth-child(1)"
43
+ const lineChart = "#fig-output > :nth-child(2)"
44
+
45
+ await waitFor(page, barChart)
46
+ await waitFor(page, lineChart)
47
+ await waitFor(page, `${lineChart} g.x-axis`)
48
+
49
+ const point = `${lineChart} circle.linechart-point`
50
+ await waitFor(page, point)
51
+ await checkAttribute(page, point, "r", "2.0")
52
+
53
+ await clickToggle(page)
54
+
55
+ const bar = `${barChart} rect.bar`
56
+ await waitFor(page, bar)
57
+ await click(page, bar)
58
+ await checkAttribute(page, bar, "fill", "#57a157")
59
+
60
+ const selectedCell = "#fig-input .table-cell.selected-primary-persistent"
61
+ await waitFor(page, selectedCell)
62
+ await checkComputedStyle(page, selectedCell, "backgroundColor", "rgb(147, 233, 190)")
63
+ }
64
+ ])
65
+
66
+ await testURL("scigen-1805.02474v1-10", [
67
+ async page => await waitFor(page, "div#fig-output")
68
+ ])
14
69
  }
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "./.svelte-kit/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rewriteRelativeImportExtensions": true,
5
+ "allowJs": true,
6
+ "checkJs": false, // Purescript output doesn't have types
7
+ "esModuleInterop": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "resolveJsonModule": true,
10
+ "skipLibCheck": true,
11
+ "sourceMap": true,
12
+ "strict": true,
13
+ "moduleResolution": "bundler"
14
+ }
15
+ // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
16
+ // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
17
+ //
18
+ // To make changes to top-level options such as include and exclude, we recommend extending
19
+ // the generated config; see https://svelte.dev/docs/kit/configuration#typescript
20
+ }
@@ -0,0 +1,6 @@
1
+ import { sveltekit } from '@sveltejs/kit/vite';
2
+ import { defineConfig } from 'vite';
3
+
4
+ export default defineConfig({
5
+ plugins: [sveltekit()]
6
+ });
@@ -1,13 +0,0 @@
1
- # https://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
@@ -1,28 +0,0 @@
1
- {
2
- "extends": "eslint:recommended",
3
- "parserOptions": { "ecmaVersion": 6, "sourceType": "module" },
4
- "rules": {
5
- "block-scoped-var": "error",
6
- "consistent-return": "error",
7
- "eqeqeq": "error",
8
- "guard-for-in": "error",
9
- "no-bitwise": "error",
10
- "no-caller": "error",
11
- "no-constant-condition": ["error", { "checkLoops": false }],
12
- "no-extra-parens": "off",
13
- "no-extend-native": "error",
14
- "no-new": "error",
15
- "no-param-reassign": "error",
16
- "no-return-assign": "error",
17
- "no-sequences": "error",
18
- "no-unused-expressions": "error",
19
- "no-use-before-define": "error",
20
- "no-undef": "error",
21
- "no-eq-null": "error",
22
- "radix": ["error", "always"],
23
- "indent": ["error", 2, { "SwitchCase": 0 }],
24
- "quotes": ["error", "double"],
25
- "semi": ["error", "always"],
26
- "strict": ["error", "global"]
27
- }
28
- }
@@ -1,14 +0,0 @@
1
- .*
2
- !.gitignore
3
- !.github
4
- !.editorconfig
5
- !.tidyrc.json
6
- !.eslintrc.json
7
-
8
- output
9
- generated-docs
10
- bower_components
11
-
12
- node_modules
13
- package-lock.json
14
- *.lock
@@ -1,10 +0,0 @@
1
- {
2
- "importSort": "source",
3
- "importWrap": "source",
4
- "indent": 2,
5
- "operatorsFile": null,
6
- "ribbon": 1,
7
- "typeArrowPlacement": "first",
8
- "unicode": "never",
9
- "width": null
10
- }
@@ -1,13 +0,0 @@
1
- # https://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
@@ -1,28 +0,0 @@
1
- {
2
- "extends": "eslint:recommended",
3
- "parserOptions": { "ecmaVersion": 6, "sourceType": "module" },
4
- "rules": {
5
- "block-scoped-var": "error",
6
- "consistent-return": "error",
7
- "eqeqeq": "error",
8
- "guard-for-in": "error",
9
- "no-bitwise": "error",
10
- "no-caller": "error",
11
- "no-extra-parens": "off",
12
- "no-extend-native": "error",
13
- "no-loop-func": "error",
14
- "no-new": "error",
15
- "no-param-reassign": "error",
16
- "no-return-assign": "error",
17
- "no-sequences": "error",
18
- "no-unused-expressions": "error",
19
- "no-use-before-define": "error",
20
- "no-undef": "error",
21
- "no-eq-null": "error",
22
- "radix": ["error", "always"],
23
- "indent": ["error", 2, { "SwitchCase": 1 }],
24
- "quotes": ["error", "double"],
25
- "semi": ["error", "always"],
26
- "strict": ["error", "global"]
27
- }
28
- }
@@ -1,14 +0,0 @@
1
- .*
2
- !.gitignore
3
- !.github
4
- !.editorconfig
5
- !.tidyrc.json
6
- !.eslintrc.json
7
-
8
- output
9
- generated-docs
10
- bower_components
11
-
12
- node_modules
13
- package-lock.json
14
- *.lock
@@ -1,10 +0,0 @@
1
- {
2
- "importSort": "source",
3
- "importWrap": "source",
4
- "indent": 2,
5
- "operatorsFile": null,
6
- "ribbon": 1,
7
- "typeArrowPlacement": "first",
8
- "unicode": "never",
9
- "width": null
10
- }
@@ -1,13 +0,0 @@
1
- # https://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
@@ -1,30 +0,0 @@
1
- {
2
- "env": { "browser": true },
3
- "extends": "eslint:recommended",
4
- "parserOptions": { "ecmaVersion": 6, "sourceType": "module" },
5
- "rules": {
6
- "block-scoped-var": "error",
7
- "consistent-return": "error",
8
- "eqeqeq": "error",
9
- "guard-for-in": "error",
10
- "no-bitwise": "error",
11
- "no-caller": "error",
12
- "no-constant-condition": ["error", { "checkLoops": false }],
13
- "no-extra-parens": "off",
14
- "no-extend-native": "error",
15
- "no-loop-func": "error",
16
- "no-new": "error",
17
- "no-param-reassign": "error",
18
- "no-return-assign": "error",
19
- "no-sequences": "error",
20
- "no-unused-expressions": "error",
21
- "no-use-before-define": "error",
22
- "no-undef": "error",
23
- "no-eq-null": "error",
24
- "radix": ["error", "always"],
25
- "indent": ["error", 2, { "SwitchCase": 0 }],
26
- "quotes": ["error", "double"],
27
- "semi": ["error", "always"],
28
- "strict": ["error", "global"]
29
- }
30
- }
@@ -1,14 +0,0 @@
1
- .*
2
- !.gitignore
3
- !.github
4
- !.editorconfig
5
- !.eslintrc.json
6
- !.tidyrc.json
7
-
8
- output
9
- generated-docs
10
- bower_components
11
-
12
- node_modules
13
- package-lock.json
14
- *.lock
@@ -1,10 +0,0 @@
1
- {
2
- "importSort": "source",
3
- "importWrap": "source",
4
- "indent": 2,
5
- "operatorsFile": null,
6
- "ribbon": 1,
7
- "typeArrowPlacement": "first",
8
- "unicode": "never",
9
- "width": null
10
- }
@@ -1,13 +0,0 @@
1
- # http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
@@ -1,9 +0,0 @@
1
- .*
2
- !.gitignore
3
- !.github
4
- !.editorconfig
5
- !.tidyrc.json
6
-
7
- output
8
- generated-docs
9
- bower_components
@@ -1,10 +0,0 @@
1
- {
2
- "importSort": "source",
3
- "importWrap": "source",
4
- "indent": 2,
5
- "operatorsFile": null,
6
- "ribbon": 1,
7
- "typeArrowPlacement": "first",
8
- "unicode": "never",
9
- "width": null
10
- }
@@ -1,13 +0,0 @@
1
- # http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
@@ -1,29 +0,0 @@
1
- {
2
- "env": { "browser": true },
3
- "extends": "eslint:recommended",
4
- "parserOptions": { "ecmaVersion": 6, "sourceType": "module" },
5
- "rules": {
6
- "block-scoped-var": "error",
7
- "consistent-return": "error",
8
- "eqeqeq": "error",
9
- "guard-for-in": "error",
10
- "no-bitwise": "error",
11
- "no-caller": "error",
12
- "no-extra-parens": "off",
13
- "no-extend-native": "error",
14
- "no-loop-func": "error",
15
- "no-new": "error",
16
- "no-param-reassign": "error",
17
- "no-return-assign": "error",
18
- "no-sequences": "error",
19
- "no-unused-expressions": "error",
20
- "no-use-before-define": "error",
21
- "no-undef": "error",
22
- "no-eq-null": "error",
23
- "radix": ["error", "always"],
24
- "indent": ["error", 2, { "SwitchCase": 1 }],
25
- "quotes": ["error", "double"],
26
- "semi": ["error", "always"],
27
- "strict": ["error", "global"]
28
- }
29
- }
@@ -1,14 +0,0 @@
1
- .*
2
- !.gitignore
3
- !.github
4
- !.editorconfig
5
- !.tidyrc.json
6
- !.eslintrc.json
7
-
8
- output
9
- generated-docs
10
- bower_components
11
-
12
- node_modules
13
- *.lock
14
- package-lock.json
@@ -1,10 +0,0 @@
1
- {
2
- "importSort": "source",
3
- "importWrap": "source",
4
- "indent": 2,
5
- "operatorsFile": null,
6
- "ribbon": 1,
7
- "typeArrowPlacement": "first",
8
- "unicode": "never",
9
- "width": null
10
- }
@@ -1,13 +0,0 @@
1
- # https://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
@@ -1,9 +0,0 @@
1
- .*
2
- !.gitignore
3
- !.github
4
- !.editorconfig
5
- !.tidyrc.json
6
-
7
- output
8
- generated-docs
9
- bower_components
@@ -1,10 +0,0 @@
1
- {
2
- "importSort": "source",
3
- "importWrap": "source",
4
- "indent": 2,
5
- "operatorsFile": null,
6
- "ribbon": 1,
7
- "typeArrowPlacement": "first",
8
- "unicode": "never",
9
- "width": null
10
- }
@@ -1,26 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "rules": {
8
- "strict": [2, "global"],
9
- "block-scoped-var": 2,
10
- "consistent-return": 2,
11
- "eqeqeq": [2, "smart"],
12
- "guard-for-in": 2,
13
- "no-caller": 2,
14
- "no-extend-native": 2,
15
- "no-loop-func": 2,
16
- "no-new": 2,
17
- "no-param-reassign": 2,
18
- "no-return-assign": 2,
19
- "no-unused-expressions": 2,
20
- "no-use-before-define": 2,
21
- "radix": [2, "always"],
22
- "indent": [2, 2],
23
- "quotes": [2, "double"],
24
- "semi": [2, "always"]
25
- }
26
- }
@@ -1,9 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.github
4
- !/.eslintrc.json
5
- !/.travis.yml
6
- package-lock.json
7
- /bower_components/
8
- /node_modules/
9
- /output/
@@ -1,26 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "rules": {
8
- "strict": [2, "global"],
9
- "block-scoped-var": 2,
10
- "consistent-return": 2,
11
- "eqeqeq": [2, "smart"],
12
- "guard-for-in": 2,
13
- "no-caller": 2,
14
- "no-extend-native": 2,
15
- "no-loop-func": 2,
16
- "no-new": 2,
17
- "no-param-reassign": 2,
18
- "no-return-assign": 2,
19
- "no-unused-expressions": 2,
20
- "no-use-before-define": 2,
21
- "radix": [2, "always"],
22
- "indent": [2, 2],
23
- "quotes": [2, "double"],
24
- "semi": [2, "always"]
25
- }
26
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- /bower_components/
6
- /node_modules/
7
- /output/
8
- package-lock.json
@@ -1,7 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.github/
4
- /bower_components/
5
- /node_modules/
6
- /output/
7
- package-lock.json
@@ -1,7 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.github/
4
- /bower_components/
5
- /node_modules/
6
- /output/
7
- package-lock.json