@explorable-viz/fluid 0.12.1 → 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.
- package/dist/fluid/shared/fluid.mjs +478 -438
- package/dist/fluid/shared/load-figure.js +3199 -2975
- package/package.json +12 -26
- package/script/install-website.sh +27 -9
- package/web/lib/CodeMirror.svelte +19 -0
- package/web/lib/DataPane.svelte +46 -0
- package/web/lib/Figure.svelte +38 -0
- package/web/lib/FigureSrc.svelte +35 -0
- package/web/lib/Grid.svelte +32 -0
- package/web/lib/index.js +5 -0
- package/web/lib/view-styles.css +262 -0
- package/website/article/eslint.config.js +45 -0
- package/website/article/package.json +46 -0
- package/website/article/src/app.d.ts +13 -0
- package/website/article/src/app.html +12 -0
- package/website/article/src/lib/assets/css/styles.css +245 -0
- package/website/article/src/lib/assets/image/bristol.png +0 -0
- package/website/article/src/lib/assets/image/fluid.png +0 -0
- package/website/article/src/lib/assets/image/iccs.png +0 -0
- package/website/article/src/lib/assets/image/schmidt.png +0 -0
- package/website/article/src/lib/assets/image/turing.jpg +0 -0
- package/website/article/src/lib/config/nav.ts +7 -0
- package/website/article/src/lib/config/supporters.ts +27 -0
- package/website/article/src/routes/+layout.svelte +15 -0
- package/website/article/src/routes/+layout.ts +1 -0
- package/website/article/{index.html → src/routes/+page.svelte} +8 -17
- package/website/article/src/routes/convolution/+page.svelte +62 -0
- package/website/article/src/routes/energy-scatter/+page.svelte +34 -0
- package/website/article/src/routes/methane/+page.svelte +35 -0
- package/website/article/src/routes/moving-average/+page.svelte +57 -0
- package/website/article/src/routes/non-renewables/+page.svelte +40 -0
- package/website/article/src/routes/renewables-linked/+page.svelte +34 -0
- package/website/article/src/routes/scigen-1805.02474v1-10/+page.svelte +40 -0
- package/website/article/static/fluid/lib/graphics.fld +274 -0
- package/website/article/static/fluid/lib/matrix.fld +40 -0
- package/website/article/static/fluid/lib/prelude.fld +348 -0
- package/website/article/static/fluid/lib/stats.fld +83 -0
- package/website/article/svelte.config.js +13 -0
- package/website/article/test.mjs +66 -11
- package/website/article/tsconfig.json +20 -0
- package/website/article/vite.config.ts +6 -0
- package/.spago/aff/v7.1.0/.editorconfig +0 -13
- package/.spago/aff/v7.1.0/.eslintrc.json +0 -28
- package/.spago/aff/v7.1.0/.gitignore +0 -14
- package/.spago/aff/v7.1.0/.tidyrc.json +0 -10
- package/.spago/affjax/v13.0.0/.editorconfig +0 -13
- package/.spago/affjax/v13.0.0/.eslintrc.json +0 -28
- package/.spago/affjax/v13.0.0/.gitignore +0 -14
- package/.spago/affjax/v13.0.0/.tidyrc.json +0 -10
- package/.spago/affjax-web/v1.0.0/.editorconfig +0 -13
- package/.spago/affjax-web/v1.0.0/.eslintrc.json +0 -30
- package/.spago/affjax-web/v1.0.0/.gitignore +0 -14
- package/.spago/affjax-web/v1.0.0/.tidyrc.json +0 -10
- package/.spago/argonaut-codecs/v9.1.0/.editorconfig +0 -13
- package/.spago/argonaut-codecs/v9.1.0/.gitignore +0 -9
- package/.spago/argonaut-codecs/v9.1.0/.tidyrc.json +0 -10
- package/.spago/argonaut-core/v7.0.0/.editorconfig +0 -13
- package/.spago/argonaut-core/v7.0.0/.eslintrc.json +0 -29
- package/.spago/argonaut-core/v7.0.0/.gitignore +0 -14
- package/.spago/argonaut-core/v7.0.0/.tidyrc.json +0 -10
- package/.spago/arraybuffer-types/v3.0.2/.editorconfig +0 -13
- package/.spago/arraybuffer-types/v3.0.2/.gitignore +0 -9
- package/.spago/arraybuffer-types/v3.0.2/.tidyrc.json +0 -10
- package/.spago/arrays/v7.2.1/.eslintrc.json +0 -26
- package/.spago/arrays/v7.2.1/.gitignore +0 -9
- package/.spago/assert/v6.0.0/.eslintrc.json +0 -26
- package/.spago/assert/v6.0.0/.gitignore +0 -8
- package/.spago/bifunctors/v6.0.0/.gitignore +0 -7
- package/.spago/catenable-lists/v7.0.0/.gitignore +0 -7
- package/.spago/console/v6.1.0/.eslintrc.json +0 -30
- package/.spago/console/v6.1.0/.gitignore +0 -9
- package/.spago/const/v6.0.0/.gitignore +0 -7
- package/.spago/contravariant/v6.0.0/.gitignore +0 -7
- package/.spago/control/v6.0.0/.gitignore +0 -7
- package/.spago/datetime/v6.1.0/.eslintrc.json +0 -26
- package/.spago/datetime/v6.1.0/.gitignore +0 -8
- package/.spago/debug/v6.0.2/.eslintrc.json +0 -36
- package/.spago/debug/v6.0.2/.gitignore +0 -8
- package/.spago/distributive/v6.0.0/.gitignore +0 -7
- package/.spago/effect/v4.0.0/.eslintrc.json +0 -26
- package/.spago/effect/v4.0.0/.gitignore +0 -8
- package/.spago/either/v6.1.0/.gitignore +0 -7
- package/.spago/enums/v6.0.1/.gitignore +0 -7
- package/.spago/exceptions/v6.0.0/.eslintrc.json +0 -26
- package/.spago/exceptions/v6.0.0/.gitignore +0 -8
- package/.spago/exists/v6.0.0/.gitignore +0 -7
- package/.spago/filterable/v5.0.0/.gitignore +0 -11
- package/.spago/foldable-traversable/v6.0.0/.eslintrc.json +0 -26
- package/.spago/foldable-traversable/v6.0.0/.gitignore +0 -8
- package/.spago/foreign/v7.0.0/.eslintrc.json +0 -26
- package/.spago/foreign/v7.0.0/.gitignore +0 -8
- package/.spago/foreign-object/v4.1.0/.eslintrc.json +0 -26
- package/.spago/foreign-object/v4.1.0/.gitignore +0 -8
- package/.spago/form-urlencoded/v7.0.0/.editorconfig +0 -13
- package/.spago/form-urlencoded/v7.0.0/.gitignore +0 -9
- package/.spago/form-urlencoded/v7.0.0/.tidyrc.json +0 -10
- package/.spago/free/v7.1.0/.gitignore +0 -8
- package/.spago/functions/v6.0.0/.eslintrc.json +0 -26
- package/.spago/functions/v6.0.0/.gitignore +0 -8
- package/.spago/functors/v5.0.0/.gitignore +0 -7
- package/.spago/gen/v4.0.0/.gitignore +0 -8
- package/.spago/graphs/v8.1.0/.gitignore +0 -7
- package/.spago/http-methods/v6.0.0/.editorconfig +0 -13
- package/.spago/http-methods/v6.0.0/.gitignore +0 -9
- package/.spago/http-methods/v6.0.0/.tidyrc.json +0 -10
- package/.spago/identity/v6.0.0/.gitignore +0 -7
- package/.spago/integers/v6.0.0/.eslintrc.json +0 -26
- package/.spago/integers/v6.0.0/.gitignore +0 -8
- package/.spago/invariant/v6.0.0/.gitignore +0 -7
- package/.spago/js-date/v8.0.0/.editorconfig +0 -13
- package/.spago/js-date/v8.0.0/.eslintrc.json +0 -29
- package/.spago/js-date/v8.0.0/.gitignore +0 -14
- package/.spago/js-date/v8.0.0/.tidyrc.json +0 -10
- package/.spago/js-uri/v3.1.0/.eslintrc.json +0 -30
- package/.spago/js-uri/v3.1.0/.gitignore +0 -14
- package/.spago/js-uri/v3.1.0/.tidyrc.json +0 -10
- package/.spago/lazy/v6.0.0/.eslintrc.json +0 -26
- package/.spago/lazy/v6.0.0/.gitignore +0 -8
- package/.spago/lcg/v4.0.0/.gitignore +0 -8
- package/.spago/lists/v7.0.0/.gitignore +0 -7
- package/.spago/maybe/v6.0.0/.gitignore +0 -7
- package/.spago/media-types/v6.0.0/.editorconfig +0 -13
- package/.spago/media-types/v6.0.0/.gitignore +0 -9
- package/.spago/media-types/v6.0.0/.tidyrc.json +0 -10
- package/.spago/newtype/v5.0.0/.gitignore +0 -7
- package/.spago/node-buffer/v9.0.0/.eslintrc.json +0 -26
- package/.spago/node-buffer/v9.0.0/.gitignore +0 -8
- package/.spago/node-fs/v9.1.0/.eslintrc.json +0 -29
- package/.spago/node-fs/v9.1.0/.gitignore +0 -9
- package/.spago/node-path/v5.0.0/.eslintrc.json +0 -26
- package/.spago/node-path/v5.0.0/.gitignore +0 -8
- package/.spago/node-process/v11.2.0/.eslintrc.json +0 -29
- package/.spago/node-process/v11.2.0/.gitignore +0 -8
- package/.spago/node-streams/v9.0.0/.eslintrc.json +0 -29
- package/.spago/node-streams/v9.0.0/.gitignore +0 -8
- package/.spago/nonempty/v7.0.0/.gitignore +0 -7
- package/.spago/now/v6.0.0/.editorconfig +0 -13
- package/.spago/now/v6.0.0/.eslintrc.json +0 -29
- package/.spago/now/v6.0.0/.gitignore +0 -14
- package/.spago/now/v6.0.0/.tidyrc.json +0 -10
- package/.spago/nullable/v6.0.0/.editorconfig +0 -13
- package/.spago/nullable/v6.0.0/.eslintrc.json +0 -29
- package/.spago/nullable/v6.0.0/.gitignore +0 -14
- package/.spago/nullable/v6.0.0/.tidyrc.json +0 -10
- package/.spago/optparse/v6.0.0/.gitignore +0 -8
- package/.spago/optparse/v6.0.0/.npmrc +0 -1
- package/.spago/ordered-collections/v3.1.1/.gitignore +0 -8
- package/.spago/orders/v6.0.0/.gitignore +0 -7
- package/.spago/parallel/v7.0.0/.gitignore +0 -7
- package/.spago/parsing/v10.3.1/.editorconfig +0 -13
- package/.spago/parsing/v10.3.1/.gitignore +0 -12
- package/.spago/parsing/v10.3.1/.tidyoperators +0 -231
- package/.spago/parsing/v10.3.1/.tidyrc.json +0 -10
- package/.spago/partial/v4.0.0/.eslintrc.json +0 -26
- package/.spago/partial/v4.0.0/.gitignore +0 -8
- package/.spago/posix-types/v6.0.0/.gitignore +0 -7
- package/.spago/prelude/v6.0.1/.eslintrc.json +0 -26
- package/.spago/prelude/v6.0.1/.gitignore +0 -8
- package/.spago/profunctor/v6.0.0/.gitignore +0 -7
- package/.spago/psci-support/v6.0.0/.eslintrc.json +0 -28
- package/.spago/psci-support/v6.0.0/.gitignore +0 -8
- package/.spago/quickcheck/v8.0.1/.eslintrc.json +0 -26
- package/.spago/quickcheck/v8.0.1/.gitignore +0 -8
- package/.spago/random/v6.0.0/.eslintrc.json +0 -26
- package/.spago/random/v6.0.0/.gitignore +0 -8
- package/.spago/record/v4.0.0/.eslintrc.json +0 -26
- package/.spago/record/v4.0.0/.gitignore +0 -8
- package/.spago/refs/v6.0.0/.eslintrc.json +0 -26
- package/.spago/refs/v6.0.0/.gitignore +0 -8
- package/.spago/st/v6.2.0/.eslintrc.json +0 -26
- package/.spago/st/v6.2.0/.gitignore +0 -8
- package/.spago/strings/v6.0.1/.eslintrc.json +0 -26
- package/.spago/strings/v6.0.1/.gitignore +0 -8
- package/.spago/tailrec/v6.1.0/.gitignore +0 -7
- package/.spago/transformers/v6.0.0/.gitignore +0 -7
- package/.spago/tuples/v7.0.0/.gitignore +0 -7
- package/.spago/type-equality/v4.0.1/.gitignore +0 -7
- package/.spago/typelevel-prelude/v7.0.0/.gitignore +0 -8
- package/.spago/unfoldable/v6.0.0/.eslintrc.json +0 -26
- package/.spago/unfoldable/v6.0.0/.gitignore +0 -8
- package/.spago/unicode/v6.0.0/.editorconfig +0 -13
- package/.spago/unicode/v6.0.0/.gitattributes +0 -2
- package/.spago/unicode/v6.0.0/.gitignore +0 -19
- package/.spago/unicode/v6.0.0/.tidyrc.json +0 -10
- package/.spago/unsafe-coerce/v6.0.0/.eslintrc.json +0 -26
- package/.spago/unsafe-coerce/v6.0.0/.gitignore +0 -8
- package/.spago/web-dom/v6.0.0/.eslintrc.json +0 -29
- package/.spago/web-dom/v6.0.0/.gitignore +0 -9
- package/.spago/web-events/v4.0.0/.eslintrc.json +0 -29
- package/.spago/web-events/v4.0.0/.gitignore +0 -8
- package/.spago/web-file/v4.0.0/.eslintrc.json +0 -29
- package/.spago/web-file/v4.0.0/.gitignore +0 -8
- package/.spago/web-html/v4.1.0/.eslintrc.json +0 -29
- package/.spago/web-html/v4.1.0/.gitignore +0 -8
- package/.spago/web-storage/v5.0.0/.eslintrc.json +0 -29
- package/.spago/web-storage/v5.0.0/.gitignore +0 -8
- package/.spago/web-xhr/v5.0.1/.eslintrc.json +0 -29
- package/.spago/web-xhr/v5.0.1/.gitignore +0 -8
- package/LICENSE +0 -21
- package/README.md +0 -95
- package/dist/fluid/shared/website-test.js +0 -41
- package/dist/fluid/shared/webtest-lib.js +0 -300023
- package/script/bundle-website.sh +0 -52
- package/script/util/clean.sh +0 -5
- package/script/util/lisp-case.sh +0 -10
- package/website/article/convolution/index.html +0 -97
- package/website/article/css/styles.css +0 -325
- package/website/article/css/view-styles.css +0 -205
- package/website/article/energy-scatter/index.html +0 -47
- package/website/article/methane/index.html +0 -46
- package/website/article/moving-average/index.html +0 -64
- package/website/article/non-renewables/index.html +0 -52
- package/website/article/renewables-linked/index.html +0 -46
- package/website/article/scigen-1805.02474v1-10/index.html +0 -54
- package/website/article/shared/util.js +0 -15
- /package/website/article/{favicon.ico → src/lib/assets/image/favicon.ico} +0 -0
- /package/website/article/{dataset → static/dataset}/SciGen/1805.02474v1-10.json +0 -0
- /package/website/article/{dataset → static/dataset}/methane-emissions.json +0 -0
- /package/website/article/{dataset → static/dataset}/non-renewables.json +0 -0
- /package/website/article/{dataset → static/dataset}/renewable-new.json +0 -0
- /package/website/article/{dataset → static/dataset}/renewable.json +0 -0
- /package/website/article/{fluid → static/fluid}/1805.02474v1-10.fld +0 -0
- /package/website/article/{fluid → static/fluid}/bar-chart-line-chart.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution/emboss.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution/testImage.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution.fld +0 -0
- /package/website/article/{fluid → static/fluid}/dataset/scigen/_1805_02474v1_10.fld +0 -0
- /package/website/article/{fluid → static/fluid}/energyscatter.fld +0 -0
- /package/website/article/{fluid → static/fluid}/methane.fld +0 -0
- /package/website/article/{fluid → static/fluid}/methane_data.fld +0 -0
- /package/website/article/{fluid → static/fluid}/moving-average.fld +0 -0
- /package/website/article/{fluid → static/fluid}/non-renewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/nonRenewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/renewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/scigen.fld +0 -0
- /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;
|
package/website/article/test.mjs
CHANGED
|
@@ -1,14 +1,69 @@
|
|
|
1
|
-
import {
|
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
await
|
|
9
|
-
page =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
}
|
|
@@ -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,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,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,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,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,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
|
-
}
|