@explorable-viz/fluid 0.10.5 → 0.11.0
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/fluid/lib/matrix.fld +14 -18
- package/dist/fluid/fluid/lib/prelude.fld +79 -8
- package/dist/fluid/fluid/lib/stats.fld +25 -28
- package/dist/fluid/shared/fluid.mjs +3207 -2262
- package/dist/fluid/shared/load-figure.js +11059 -4058
- package/dist/fluid/shared/webtest-lib.js +29073 -29877
- package/package.json +8 -5
- package/website/article/convolution/index.html +5 -5
- package/website/article/dataset/annual-temp-anomaly.json +413 -0
- package/website/article/dataset/ccra3-risks.json +2015 -0
- package/website/article/energy-scatter/index.html +47 -0
- package/website/article/fluid/bar-chart-line-chart.fld +5 -5
- package/website/article/fluid/convolution/emboss.fld +5 -1
- package/website/article/fluid/dataset/scigen/_1805_02474v1_10.fld +1 -1
- package/website/article/fluid/energyscatter.fld +27 -0
- package/website/article/fluid/methane.fld +23 -1
- package/website/article/fluid/methane_data.fld +1 -0
- package/website/article/fluid/moving-average.fld +1 -1
- package/website/article/fluid/nonRenewables.fld +2 -2
- package/website/article/fluid/renewables.fld +1 -1
- package/website/article/methane/index.html +46 -0
- package/website/article/moving-average/index.html +2 -2
- package/website/article/non-renewables/index.html +2 -2
- package/website/article/renewables-linked/index.html +2 -2
- package/website/article/scigen-1805.02474v1-10/index.html +2 -2
- package/website/article/test.mjs +3 -1
- /package/website/article/{fluid/dataset/scigen → dataset/SciGen}/1805.02474v1-10.json +0 -0
- /package/website/article/{fluid/dataset → dataset}/methane-emissions.json +0 -0
- /package/website/article/{fluid/dataset → dataset}/non-renewables.json +0 -0
- /package/website/article/{fluid/dataset → dataset}/renewable-new.json +0 -0
- /package/website/article/{fluid/dataset → dataset}/renewable.json +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@explorable-viz/fluid",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.11.0",
|
4
4
|
"description": "A functional programming language which integrates a bidirectional dynamic analysis, connecting outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -48,9 +48,12 @@
|
|
48
48
|
"tidy": "./script/tidy.sh"
|
49
49
|
},
|
50
50
|
"dependencies": {
|
51
|
-
"@codemirror/commands": "6.
|
52
|
-
"@codemirror/
|
53
|
-
"@codemirror/
|
51
|
+
"@codemirror/commands": "^6.8.1",
|
52
|
+
"@codemirror/lang-python": "^6.2.1",
|
53
|
+
"@codemirror/state": "^6.5.2",
|
54
|
+
"@codemirror/theme-one-dark": "^6.1.3",
|
55
|
+
"@codemirror/view": "^6.38.3",
|
56
|
+
"@lezer/python": "^1.1.18",
|
54
57
|
"benchmark": "^2.1.4",
|
55
58
|
"commander": "^12.1.0",
|
56
59
|
"d3": "^7.9.0",
|
@@ -73,7 +76,7 @@
|
|
73
76
|
"karma-mocha-reporter": "2.2.5",
|
74
77
|
"mocha": "^10.0.0",
|
75
78
|
"puppeteer": "^23.2.0",
|
76
|
-
"purescript": "
|
79
|
+
"purescript": "0.15.10",
|
77
80
|
"purescript-language-server": "0.16.6",
|
78
81
|
"purescript-psa": "0.8.2",
|
79
82
|
"purs-backend-es": "^1.4.2",
|
@@ -75,15 +75,14 @@
|
|
75
75
|
<div></div>
|
76
76
|
</div>
|
77
77
|
<details>
|
78
|
-
<summary>
|
79
|
-
<div id="codemirror-
|
78
|
+
<summary>convolution.fld</summary>
|
79
|
+
<div id="codemirror-convolution"></div>
|
80
80
|
</details>
|
81
81
|
</div>
|
82
82
|
</div>
|
83
83
|
|
84
84
|
<script type="module">
|
85
|
-
import {
|
86
|
-
drawCode("../fluid/convolution.fld")()
|
85
|
+
import { loadFigure, loadCode } from "../shared/load-figure.js"
|
87
86
|
const jsonSpec = {
|
88
87
|
"fluidSrcPath": ["../fluid"],
|
89
88
|
"inputs": [ "inputImage", "filter" ],
|
@@ -91,7 +90,8 @@
|
|
91
90
|
"linking": false
|
92
91
|
}
|
93
92
|
|
94
|
-
|
93
|
+
loadCode("../fluid/convolution.fld")()
|
94
|
+
loadFigure(jsonSpec)("../fluid/convolution.fld")()
|
95
95
|
</script>
|
96
96
|
</body>
|
97
97
|
</html>
|
@@ -0,0 +1,413 @@
|
|
1
|
+
[
|
2
|
+
{ "year": 1884
|
3
|
+
, "anomaly": -0.209
|
4
|
+
}
|
5
|
+
, { "year": 1885
|
6
|
+
, "anomaly": -1.329
|
7
|
+
}
|
8
|
+
, { "year": 1886
|
9
|
+
, "anomaly": -1.239
|
10
|
+
}
|
11
|
+
, { "year": 1887
|
12
|
+
, "anomaly": -1.179
|
13
|
+
}
|
14
|
+
, { "year": 1888
|
15
|
+
, "anomaly": -1.409
|
16
|
+
}
|
17
|
+
, { "year": 1889
|
18
|
+
, "anomaly": -0.679
|
19
|
+
}
|
20
|
+
, { "year": 1890
|
21
|
+
, "anomaly": -0.729
|
22
|
+
}
|
23
|
+
, { "year": 1891
|
24
|
+
, "anomaly": -1.089
|
25
|
+
}
|
26
|
+
, { "year": 1892
|
27
|
+
, "anomaly": -1.679
|
28
|
+
}
|
29
|
+
, { "year": 1893
|
30
|
+
, "anomaly": 0.091
|
31
|
+
}
|
32
|
+
, { "year": 1894
|
33
|
+
, "anomaly": -0.499
|
34
|
+
}
|
35
|
+
, { "year": 1895
|
36
|
+
, "anomaly": -1.139
|
37
|
+
}
|
38
|
+
, { "year": 1896
|
39
|
+
, "anomaly": -0.429
|
40
|
+
}
|
41
|
+
, { "year": 1897
|
42
|
+
, "anomaly": -0.459
|
43
|
+
}
|
44
|
+
, { "year": 1898
|
45
|
+
, "anomaly": 0.191
|
46
|
+
}
|
47
|
+
, { "year": 1899
|
48
|
+
, "anomaly": -0.119
|
49
|
+
}
|
50
|
+
, { "year": 1900
|
51
|
+
, "anomaly": -0.409
|
52
|
+
}
|
53
|
+
, { "year": 1901
|
54
|
+
, "anomaly": -0.609
|
55
|
+
}
|
56
|
+
, { "year": 1902
|
57
|
+
, "anomaly": -0.959
|
58
|
+
}
|
59
|
+
, { "year": 1903
|
60
|
+
, "anomaly": -0.669
|
61
|
+
}
|
62
|
+
, { "year": 1904
|
63
|
+
, "anomaly": -0.699
|
64
|
+
}
|
65
|
+
, { "year": 1905
|
66
|
+
, "anomaly": -0.499
|
67
|
+
}
|
68
|
+
, { "year": 1906
|
69
|
+
, "anomaly": -0.399
|
70
|
+
}
|
71
|
+
, { "year": 1907
|
72
|
+
, "anomaly": -0.859
|
73
|
+
}
|
74
|
+
, { "year": 1908
|
75
|
+
, "anomaly": -0.379
|
76
|
+
}
|
77
|
+
, { "year": 1909
|
78
|
+
, "anomaly": -1.169
|
79
|
+
}
|
80
|
+
, { "year": 1910
|
81
|
+
, "anomaly": -0.599
|
82
|
+
}
|
83
|
+
, { "year": 1911
|
84
|
+
, "anomaly": 0.121
|
85
|
+
}
|
86
|
+
, { "year": 1912
|
87
|
+
, "anomaly": -0.519
|
88
|
+
}
|
89
|
+
, { "year": 1913
|
90
|
+
, "anomaly": -0.099
|
91
|
+
}
|
92
|
+
, { "year": 1914
|
93
|
+
, "anomaly": 0.011
|
94
|
+
}
|
95
|
+
, { "year": 1915
|
96
|
+
, "anomaly": -0.879
|
97
|
+
}
|
98
|
+
, { "year": 1916
|
99
|
+
, "anomaly": -0.579
|
100
|
+
}
|
101
|
+
, { "year": 1917
|
102
|
+
, "anomaly": -1.169
|
103
|
+
}
|
104
|
+
, { "year": 1918
|
105
|
+
, "anomaly": -0.359
|
106
|
+
}
|
107
|
+
, { "year": 1919
|
108
|
+
, "anomaly": -1.269
|
109
|
+
}
|
110
|
+
, { "year": 1920
|
111
|
+
, "anomaly": -0.239
|
112
|
+
}
|
113
|
+
, { "year": 1921
|
114
|
+
, "anomaly": 0.551
|
115
|
+
}
|
116
|
+
, { "year": 1922
|
117
|
+
, "anomaly": -1.059
|
118
|
+
}
|
119
|
+
, { "year": 1923
|
120
|
+
, "anomaly": -0.719
|
121
|
+
}
|
122
|
+
, { "year": 1924
|
123
|
+
, "anomaly": -0.499
|
124
|
+
}
|
125
|
+
, { "year": 1925
|
126
|
+
, "anomaly": -0.569
|
127
|
+
}
|
128
|
+
, { "year": 1926
|
129
|
+
, "anomaly": -0.099
|
130
|
+
}
|
131
|
+
, { "year": 1927
|
132
|
+
, "anomaly": -0.619
|
133
|
+
}
|
134
|
+
, { "year": 1928
|
135
|
+
, "anomaly": -0.339
|
136
|
+
}
|
137
|
+
, { "year": 1929
|
138
|
+
, "anomaly": -0.709
|
139
|
+
}
|
140
|
+
, { "year": 1930
|
141
|
+
, "anomaly": -0.399
|
142
|
+
}
|
143
|
+
, { "year": 1931
|
144
|
+
, "anomaly": -0.709
|
145
|
+
}
|
146
|
+
, { "year": 1932
|
147
|
+
, "anomaly": -0.339
|
148
|
+
}
|
149
|
+
, { "year": 1933
|
150
|
+
, "anomaly": 0.131
|
151
|
+
}
|
152
|
+
, { "year": 1934
|
153
|
+
, "anomaly": 0.181
|
154
|
+
}
|
155
|
+
, { "year": 1935
|
156
|
+
, "anomaly": -0.169
|
157
|
+
}
|
158
|
+
, { "year": 1936
|
159
|
+
, "anomaly": -0.429
|
160
|
+
}
|
161
|
+
, { "year": 1937
|
162
|
+
, "anomaly": -0.359
|
163
|
+
}
|
164
|
+
, { "year": 1938
|
165
|
+
, "anomaly": 0.231
|
166
|
+
}
|
167
|
+
, { "year": 1939
|
168
|
+
, "anomaly": -0.119
|
169
|
+
}
|
170
|
+
, { "year": 1940
|
171
|
+
, "anomaly": -0.679
|
172
|
+
}
|
173
|
+
, { "year": 1941
|
174
|
+
, "anomaly": -0.729
|
175
|
+
}
|
176
|
+
, { "year": 1942
|
177
|
+
, "anomaly": -0.659
|
178
|
+
}
|
179
|
+
, { "year": 1943
|
180
|
+
, "anomaly": 0.191
|
181
|
+
}
|
182
|
+
, { "year": 1944
|
183
|
+
, "anomaly": -0.249
|
184
|
+
}
|
185
|
+
, { "year": 1945
|
186
|
+
, "anomaly": 0.441
|
187
|
+
}
|
188
|
+
, { "year": 1946
|
189
|
+
, "anomaly": -0.339
|
190
|
+
}
|
191
|
+
, { "year": 1947
|
192
|
+
, "anomaly": -0.319
|
193
|
+
}
|
194
|
+
, { "year": 1948
|
195
|
+
, "anomaly": 0.111
|
196
|
+
}
|
197
|
+
, { "year": 1949
|
198
|
+
, "anomaly": 0.651
|
199
|
+
}
|
200
|
+
, { "year": 1950
|
201
|
+
, "anomaly": -0.389
|
202
|
+
}
|
203
|
+
, { "year": 1951
|
204
|
+
, "anomaly": -0.579
|
205
|
+
}
|
206
|
+
, { "year": 1952
|
207
|
+
, "anomaly": -0.699
|
208
|
+
}
|
209
|
+
, { "year": 1953
|
210
|
+
, "anomaly": 0.221
|
211
|
+
}
|
212
|
+
, { "year": 1954
|
213
|
+
, "anomaly": -0.559
|
214
|
+
}
|
215
|
+
, { "year": 1955
|
216
|
+
, "anomaly": -0.459
|
217
|
+
}
|
218
|
+
, { "year": 1956
|
219
|
+
, "anomaly": -0.789
|
220
|
+
}
|
221
|
+
, { "year": 1957
|
222
|
+
, "anomaly": 0.151
|
223
|
+
}
|
224
|
+
, { "year": 1958
|
225
|
+
, "anomaly": -0.439
|
226
|
+
}
|
227
|
+
, { "year": 1959
|
228
|
+
, "anomaly": 0.551
|
229
|
+
}
|
230
|
+
, { "year": 1960
|
231
|
+
, "anomaly": -0.149
|
232
|
+
}
|
233
|
+
, { "year": 1961
|
234
|
+
, "anomaly": -0.019
|
235
|
+
}
|
236
|
+
, { "year": 1962
|
237
|
+
, "anomaly": -1.129
|
238
|
+
}
|
239
|
+
, { "year": 1963
|
240
|
+
, "anomaly": -1.289
|
241
|
+
}
|
242
|
+
, { "year": 1964
|
243
|
+
, "anomaly": -0.379
|
244
|
+
}
|
245
|
+
, { "year": 1965
|
246
|
+
, "anomaly": -0.929
|
247
|
+
}
|
248
|
+
, { "year": 1966
|
249
|
+
, "anomaly": -0.499
|
250
|
+
}
|
251
|
+
, { "year": 1967
|
252
|
+
, "anomaly": -0.219
|
253
|
+
}
|
254
|
+
, { "year": 1968
|
255
|
+
, "anomaly": -0.529
|
256
|
+
}
|
257
|
+
, { "year": 1969
|
258
|
+
, "anomaly": -0.569
|
259
|
+
}
|
260
|
+
, { "year": 1970
|
261
|
+
, "anomaly": -0.379
|
262
|
+
}
|
263
|
+
, { "year": 1971
|
264
|
+
, "anomaly": 0.041
|
265
|
+
}
|
266
|
+
, { "year": 1972
|
267
|
+
, "anomaly": -0.589
|
268
|
+
}
|
269
|
+
, { "year": 1973
|
270
|
+
, "anomaly": -0.259
|
271
|
+
}
|
272
|
+
, { "year": 1974
|
273
|
+
, "anomaly": -0.309
|
274
|
+
}
|
275
|
+
, { "year": 1975
|
276
|
+
, "anomaly": 0.081
|
277
|
+
}
|
278
|
+
, { "year": 1976
|
279
|
+
, "anomaly": 0.051
|
280
|
+
}
|
281
|
+
, { "year": 1977
|
282
|
+
, "anomaly": -0.419
|
283
|
+
}
|
284
|
+
, { "year": 1978
|
285
|
+
, "anomaly": -0.459
|
286
|
+
}
|
287
|
+
, { "year": 1979
|
288
|
+
, "anomaly": -1.099
|
289
|
+
}
|
290
|
+
, { "year": 1980
|
291
|
+
, "anomaly": -0.429
|
292
|
+
}
|
293
|
+
, { "year": 1981
|
294
|
+
, "anomaly": -0.589
|
295
|
+
}
|
296
|
+
, { "year": 1982
|
297
|
+
, "anomaly": -0.029
|
298
|
+
}
|
299
|
+
, { "year": 1983
|
300
|
+
, "anomaly": 0.141
|
301
|
+
}
|
302
|
+
, { "year": 1984
|
303
|
+
, "anomaly": -0.119
|
304
|
+
}
|
305
|
+
, { "year": 1985
|
306
|
+
, "anomaly": -0.909
|
307
|
+
}
|
308
|
+
, { "year": 1986
|
309
|
+
, "anomaly": -1.019
|
310
|
+
}
|
311
|
+
, { "year": 1987
|
312
|
+
, "anomaly": -0.699
|
313
|
+
}
|
314
|
+
, { "year": 1988
|
315
|
+
, "anomaly": 0.041
|
316
|
+
}
|
317
|
+
, { "year": 1989
|
318
|
+
, "anomaly": 0.541
|
319
|
+
}
|
320
|
+
, { "year": 1990
|
321
|
+
, "anomaly": 0.691
|
322
|
+
}
|
323
|
+
, { "year": 1991
|
324
|
+
, "anomaly": -0.149
|
325
|
+
}
|
326
|
+
, { "year": 1992
|
327
|
+
, "anomaly": 0.001
|
328
|
+
}
|
329
|
+
, { "year": 1993
|
330
|
+
, "anomaly": -0.359
|
331
|
+
}
|
332
|
+
, { "year": 1994
|
333
|
+
, "anomaly": 0.201
|
334
|
+
}
|
335
|
+
, { "year": 1995
|
336
|
+
, "anomaly": 0.481
|
337
|
+
}
|
338
|
+
, { "year": 1996
|
339
|
+
, "anomaly": -0.509
|
340
|
+
}
|
341
|
+
, { "year": 1997
|
342
|
+
, "anomaly": 0.721
|
343
|
+
}
|
344
|
+
, { "year": 1998
|
345
|
+
, "anomaly": 0.471
|
346
|
+
}
|
347
|
+
, { "year": 1999
|
348
|
+
, "anomaly": 0.681
|
349
|
+
}
|
350
|
+
, { "year": 2000
|
351
|
+
, "anomaly": 0.411
|
352
|
+
}
|
353
|
+
, { "year": 2001
|
354
|
+
, "anomaly": 0.111
|
355
|
+
}
|
356
|
+
, { "year": 2002
|
357
|
+
, "anomaly": 0.751
|
358
|
+
}
|
359
|
+
, { "year": 2003
|
360
|
+
, "anomaly": 0.781
|
361
|
+
}
|
362
|
+
, { "year": 2004
|
363
|
+
, "anomaly": 0.751
|
364
|
+
}
|
365
|
+
, { "year": 2005
|
366
|
+
, "anomaly": 0.731
|
367
|
+
}
|
368
|
+
, { "year": 2006
|
369
|
+
, "anomaly": 1.011
|
370
|
+
}
|
371
|
+
, { "year": 2007
|
372
|
+
, "anomaly": 0.871
|
373
|
+
}
|
374
|
+
, { "year": 2008
|
375
|
+
, "anomaly": 0.331
|
376
|
+
}
|
377
|
+
, { "year": 2009
|
378
|
+
, "anomaly": 0.451
|
379
|
+
}
|
380
|
+
, { "year": 2010
|
381
|
+
, "anomaly": -0.749
|
382
|
+
}
|
383
|
+
, { "year": 2011
|
384
|
+
, "anomaly": 0.921
|
385
|
+
}
|
386
|
+
, { "year": 2012
|
387
|
+
, "anomaly": 0.051
|
388
|
+
}
|
389
|
+
, { "year": 2013
|
390
|
+
, "anomaly": 0.051
|
391
|
+
}
|
392
|
+
, { "year": 2014
|
393
|
+
, "anomaly": 1.191
|
394
|
+
}
|
395
|
+
, { "year": 2015
|
396
|
+
, "anomaly": 0.491
|
397
|
+
}
|
398
|
+
, { "year": 2016
|
399
|
+
, "anomaly": 0.601
|
400
|
+
}
|
401
|
+
, { "year": 2017
|
402
|
+
, "anomaly": 0.841
|
403
|
+
}
|
404
|
+
, { "year": 2018
|
405
|
+
, "anomaly": 0.761
|
406
|
+
}
|
407
|
+
, { "year": 2019
|
408
|
+
, "anomaly": 0.701
|
409
|
+
}
|
410
|
+
, { "year": 2020
|
411
|
+
, "anomaly": 0.931
|
412
|
+
}
|
413
|
+
]
|